From f98ece2ab73b44cdab04892f9b0e81ef18995390 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 23 Feb 2023 10:11:26 -0800 Subject: [PATCH] feat: [dialogflow-cx] added gcs.proto. added support for GcsDestination and TextToSpeechSettings (#3998) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added gcs.proto. added support for GcsDestination and TextToSpeechSettings. feat!: Remove [REQUIRED] for VersionConfig docs: add more meaningful comments PiperOrigin-RevId: 510257108 Source-Link: https://github.com/googleapis/googleapis/commit/140334ba7124add3d6a6068db353b1578b43c9c9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/88ee5015667d71642e8e9cf9c6e605a382ee394c Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6Ijg4ZWU1MDE1NjY3ZDcxNjQyZThlOWNmOWM2ZTYwNWEzODJlZTM5NGMifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: added gcs.proto. added support for GcsDestination and TextToSpeechSettings feat!: Remove [REQUIRED] for VersionConfig docs: add more meaningful comments PiperOrigin-RevId: 511306725 Source-Link: https://github.com/googleapis/googleapis/commit/57673deca3ffe1b4f5f42549de19698fc73c6c6f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9adddda268e1b131d6dfcb934f8b34f78489bf08 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6IjlhZGRkZGEyNjhlMWIxMzFkNmRmY2I5MzRmOGIzNGY3ODQ4OWJmMDgifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: sofisl <55454395+sofisl@users.noreply.github.com> --- .../dialogflow/cx/v3/advanced_settings.proto | 8 + .../google/cloud/dialogflow/cx/v3/agent.proto | 6 + .../cloud/dialogflow/cx/v3/audio_config.proto | 8 + .../cloud/dialogflow/cx/v3/environment.proto | 8 +- .../google/cloud/dialogflow/cx/v3/flow.proto | 1 + .../google/cloud/dialogflow/cx/v3/gcs.proto | 39 + .../cloud/dialogflow/cx/v3/version.proto | 1 + .../cx/v3beta1/advanced_settings.proto | 8 + .../cloud/dialogflow/cx/v3beta1/agent.proto | 6 + .../dialogflow/cx/v3beta1/audio_config.proto | 8 + .../dialogflow/cx/v3beta1/environment.proto | 8 +- .../cloud/dialogflow/cx/v3beta1/flow.proto | 1 + .../cloud/dialogflow/cx/v3beta1/gcs.proto | 39 + .../cloud/dialogflow/cx/v3beta1/version.proto | 1 + .../protos/protos.d.ts | 12392 ++--- .../protos/protos.js | 42322 ++++++++-------- .../protos/protos.json | 742 +- ...etadata.google.cloud.dialogflow.cx.v3.json | 2 +- ...ta.google.cloud.dialogflow.cx.v3beta1.json | 2 +- .../src/v3/agents_proto_list.json | 1 + .../src/v3/changelogs_proto_list.json | 1 + .../src/v3/deployments_proto_list.json | 1 + .../src/v3/entity_types_proto_list.json | 1 + .../src/v3/environments_proto_list.json | 1 + .../src/v3/experiments_proto_list.json | 1 + .../src/v3/flows_proto_list.json | 1 + .../src/v3/intents_proto_list.json | 1 + .../src/v3/pages_proto_list.json | 1 + .../security_settings_service_proto_list.json | 1 + .../v3/session_entity_types_proto_list.json | 1 + .../src/v3/sessions_proto_list.json | 1 + .../src/v3/test_cases_proto_list.json | 1 + .../transition_route_groups_proto_list.json | 1 + .../src/v3/versions_proto_list.json | 1 + .../src/v3/webhooks_proto_list.json | 1 + .../src/v3beta1/agents_proto_list.json | 1 + .../src/v3beta1/changelogs_proto_list.json | 1 + .../src/v3beta1/deployments_proto_list.json | 1 + .../src/v3beta1/entity_types_proto_list.json | 1 + .../src/v3beta1/environments_proto_list.json | 1 + .../src/v3beta1/experiments_proto_list.json | 1 + .../src/v3beta1/flows_proto_list.json | 1 + .../src/v3beta1/intents_proto_list.json | 1 + .../src/v3beta1/pages_proto_list.json | 1 + .../security_settings_service_proto_list.json | 1 + .../session_entity_types_proto_list.json | 1 + .../src/v3beta1/sessions_proto_list.json | 1 + .../src/v3beta1/test_cases_proto_list.json | 1 + .../transition_route_groups_proto_list.json | 1 + .../src/v3beta1/versions_proto_list.json | 1 + .../src/v3beta1/webhooks_proto_list.json | 1 + 51 files changed, 28632 insertions(+), 27002 deletions(-) create mode 100644 packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/gcs.proto create mode 100644 packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto 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 01d0485775e..05460932a81 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 @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3; import "google/api/field_behavior.proto"; +import "google/cloud/dialogflow/cx/v3/gcs.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; @@ -48,6 +49,13 @@ message AdvancedSettings { bool enable_interaction_logging = 3; } + // If present, incoming audio is exported by Dialogflow to the configured + // Google Cloud Storage destination. + // Exposed at the following levels: + // - Agent level + // - Flow level + GcsDestination audio_export_gcs_destination = 2; + // Settings for logging. // Settings for Dialogflow History, Contact Center messages, StackDriver logs, // and speech logging. 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 1f5f93f9275..2c7ed1adb5e 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 @@ -21,10 +21,12 @@ 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/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; @@ -266,6 +268,10 @@ message Agent { // Hierarchical advanced settings for this agent. The settings exposed at the // lower level overrides the settings exposed at the higher level. AdvancedSettings advanced_settings = 22; + + // Settings on instructing the speech synthesizer on how to generate the + // output audio content. + TextToSpeechSettings text_to_speech_settings = 31; } // The request message for 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 ea06c183942..259c81cb40c 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 @@ -316,3 +316,11 @@ message OutputAudioConfig { // Optional. Configuration of how speech should be synthesized. SynthesizeSpeechConfig synthesize_speech_config = 3; } + +// Settings related to speech generating. +message TextToSpeechSettings { + // Configuration of how speech should be synthesized, mapping from + // language (https://dialogflow.com/docs/reference/language) to + // SynthesizeSpeechConfig. + map synthesize_speech_configs = 1; +} 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 8b42411d542..5175a15f79b 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 @@ -25,6 +25,7 @@ import "google/cloud/dialogflow/cx/v3/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; @@ -253,12 +254,11 @@ message Environment { // 500 characters. If exceeded, the request is rejected. string description = 3; - // Required. A list of configurations for flow versions. You should include - // version configs for all flows that are reachable from [`Start + // A list of configurations for flow versions. You should include version + // configs for all flows that are reachable from [`Start // Flow`][Agent.start_flow] in the agent. Otherwise, an error will be // returned. - repeated VersionConfig version_configs = 6 - [(google.api.field_behavior) = REQUIRED]; + repeated VersionConfig version_configs = 6; // Output only. Update time of this environment. google.protobuf.Timestamp update_time = 5 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 ea7d71a73ee..d84be312f72 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 @@ -25,6 +25,7 @@ import "google/cloud/dialogflow/cx/v3/validation_message.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.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/gcs.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/gcs.proto new file mode 100644 index 00000000000..bf1a43cb2b7 --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3/gcs.proto @@ -0,0 +1,39 @@ +// 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3; + +import "google/api/field_behavior.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; +option java_multiple_files = true; +option java_outer_classname = "GcsProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; + +// Google Cloud Storage location for a Dialogflow operation that writes or +// exports objects (e.g. exported agent or transcripts) outside of Dialogflow. +message GcsDestination { + // Required. The Google Cloud Storage URI for the exported objects. A URI is + // of the form: + // gs://bucket/object-name-or-prefix + // Whether a full object name, or just a prefix, its usage depends on the + // Dialogflow operation. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; +} 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 335cb835de7..d2adfee4fd3 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 @@ -24,6 +24,7 @@ import "google/cloud/dialogflow/cx/v3/flow.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.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/advanced_settings.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto index 4b5ee62bd1f..32e181b8a84 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 @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.dialogflow.cx.v3beta1; import "google/api/field_behavior.proto"; +import "google/cloud/dialogflow/cx/v3beta1/gcs.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; @@ -48,6 +49,13 @@ message AdvancedSettings { bool enable_interaction_logging = 3; } + // If present, incoming audio is exported by Dialogflow to the configured + // Google Cloud Storage destination. + // Exposed at the following levels: + // - Agent level + // - Flow level + GcsDestination audio_export_gcs_destination = 2; + // Settings for logging. // Settings for Dialogflow History, Contact Center messages, StackDriver logs, // and speech logging. 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 96ce5cdd312..d3f314ee4fa 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 @@ -21,10 +21,12 @@ 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/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; @@ -266,6 +268,10 @@ message Agent { // Hierarchical advanced settings for this agent. The settings exposed at the // lower level overrides the settings exposed at the higher level. AdvancedSettings advanced_settings = 22; + + // Settings on instructing the speech synthesizer on how to generate the + // output audio content. + TextToSpeechSettings text_to_speech_settings = 31; } // The request message for 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 bc8a5c5839a..455b3695cb2 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 @@ -316,3 +316,11 @@ message OutputAudioConfig { // Optional. Configuration of how speech should be synthesized. SynthesizeSpeechConfig synthesize_speech_config = 3; } + +// Settings related to speech generating. +message TextToSpeechSettings { + // Configuration of how speech should be synthesized, mapping from + // language (https://dialogflow.com/docs/reference/language) to + // SynthesizeSpeechConfig. + map synthesize_speech_configs = 1; +} 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 b1822e2327f..6b975bf997a 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 @@ -25,6 +25,7 @@ import "google/cloud/dialogflow/cx/v3beta1/webhook.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; @@ -253,12 +254,11 @@ message Environment { // 500 characters. If exceeded, the request is rejected. string description = 3; - // Required. A list of configurations for flow versions. You should include - // version configs for all flows that are reachable from [`Start + // A list of configurations for flow versions. You should include version + // configs for all flows that are reachable from [`Start // Flow`][Agent.start_flow] in the agent. Otherwise, an error will be // returned. - repeated VersionConfig version_configs = 6 - [(google.api.field_behavior) = REQUIRED]; + repeated VersionConfig version_configs = 6; // Output only. Update time of this environment. google.protobuf.Timestamp update_time = 5 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 ded289e759c..736ce1acdd4 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 @@ -25,6 +25,7 @@ import "google/cloud/dialogflow/cx/v3beta1/validation_message.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.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/gcs.proto b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto new file mode 100644 index 00000000000..19ed9a8f1ed --- /dev/null +++ b/packages/google-cloud-dialogflow-cx/protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto @@ -0,0 +1,39 @@ +// 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.dialogflow.cx.v3beta1; + +import "google/api/field_behavior.proto"; + +option cc_enable_arenas = true; +option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb"; +option java_multiple_files = true; +option java_outer_classname = "GcsProto"; +option java_package = "com.google.cloud.dialogflow.cx.v3beta1"; +option objc_class_prefix = "DF"; +option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1"; + +// Google Cloud Storage location for a Dialogflow operation that writes or +// exports objects (e.g. exported agent or transcripts) outside of Dialogflow. +message GcsDestination { + // Required. The Google Cloud Storage URI for the exported objects. A URI is + // of the form: + // gs://bucket/object-name-or-prefix + // Whether a full object name, or just a prefix, its usage depends on the + // Dialogflow operation. + string uri = 1 [(google.api.field_behavior) = REQUIRED]; +} 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 0a07206a4c6..52b58025be2 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 @@ -24,6 +24,7 @@ import "google/cloud/dialogflow/cx/v3beta1/flow.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.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/protos.d.ts b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts index e1c5e4e6fd6..b1545bf5d90 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow-cx/protos/protos.d.ts @@ -32,6 +32,9 @@ export namespace google { /** Properties of an AdvancedSettings. */ interface IAdvancedSettings { + /** AdvancedSettings audioExportGcsDestination */ + audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3.IGcsDestination|null); + /** AdvancedSettings loggingSettings */ loggingSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null); } @@ -45,6 +48,9 @@ export namespace google { */ constructor(properties?: google.cloud.dialogflow.cx.v3.IAdvancedSettings); + /** AdvancedSettings audioExportGcsDestination. */ + public audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3.IGcsDestination|null); + /** AdvancedSettings loggingSettings. */ public loggingSettings?: (google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null); @@ -232,6 +238,103 @@ export namespace google { } } + /** Properties of a GcsDestination. */ + interface IGcsDestination { + + /** GcsDestination uri */ + uri?: (string|null); + } + + /** Represents a GcsDestination. */ + class GcsDestination implements IGcsDestination { + + /** + * Constructs a new GcsDestination. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGcsDestination); + + /** GcsDestination uri. */ + public uri: string; + + /** + * Creates a new GcsDestination instance using the specified properties. + * @param [properties] Properties to set + * @returns GcsDestination instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGcsDestination): google.cloud.dialogflow.cx.v3.GcsDestination; + + /** + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcsDestination message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcsDestination + * @throws {Error} If the payload is not a reader or 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.GcsDestination; + + /** + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcsDestination + * @throws {Error} If the payload is not a 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.GcsDestination; + + /** + * Verifies a GcsDestination message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcsDestination + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GcsDestination; + + /** + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. + * @param message GcsDestination + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcsDestination to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcsDestination + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents an Agents */ class Agents extends $protobuf.rpc.Service { @@ -586,6 +689,9 @@ export namespace google { /** Agent advancedSettings */ advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + + /** Agent textToSpeechSettings */ + textToSpeechSettings?: (google.cloud.dialogflow.cx.v3.ITextToSpeechSettings|null); } /** Represents an Agent. */ @@ -639,6 +745,9 @@ export namespace google { /** Agent advancedSettings. */ public advancedSettings?: (google.cloud.dialogflow.cx.v3.IAdvancedSettings|null); + /** Agent textToSpeechSettings. */ + public textToSpeechSettings?: (google.cloud.dialogflow.cx.v3.ITextToSpeechSettings|null); + /** * Creates a new Agent instance using the specified properties. * @param [properties] Properties to set @@ -1997,3255 +2106,3971 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Flows */ - class Flows extends $protobuf.rpc.Service { + /** 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 + } - /** - * Constructs a new Flows 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); + /** SpeechModelVariant enum. */ + enum SpeechModelVariant { + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, + USE_BEST_AVAILABLE = 1, + USE_STANDARD = 2, + USE_ENHANCED = 3 + } - /** - * Creates new Flows 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): Flows; + /** Properties of a SpeechWordInfo. */ + interface ISpeechWordInfo { - /** - * Calls CreateFlow. - * @param request CreateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback): void; + /** SpeechWordInfo word */ + word?: (string|null); - /** - * Calls CreateFlow. - * @param request CreateFlowRequest message or plain object - * @returns Promise - */ - public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): Promise; + /** SpeechWordInfo startOffset */ + startOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteFlow. - * @param request DeleteFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback): void; + /** SpeechWordInfo endOffset */ + endOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteFlow. - * @param request DeleteFlowRequest message or plain object - * @returns Promise - */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): Promise; + /** SpeechWordInfo confidence */ + confidence?: (number|null); + } - /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFlowsResponse - */ - public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback): void; + /** Represents a SpeechWordInfo. */ + class SpeechWordInfo implements ISpeechWordInfo { /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @returns Promise + * Constructs a new SpeechWordInfo. + * @param [properties] Properties to set */ - public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo); - /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback): void; + /** SpeechWordInfo word. */ + public word: string; - /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @returns Promise - */ - public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest): Promise; + /** SpeechWordInfo startOffset. */ + public startOffset?: (google.protobuf.IDuration|null); - /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback): void; + /** SpeechWordInfo endOffset. */ + public endOffset?: (google.protobuf.IDuration|null); + + /** SpeechWordInfo confidence. */ + public confidence: number; /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @returns Promise + * Creates a new SpeechWordInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeechWordInfo instance */ - public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @returns Promise + * 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 trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult + * 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 SpeechWordInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public validateFlow(request: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ValidateFlowCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @returns Promise + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpeechWordInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public validateFlow(request: google.cloud.dialogflow.cx.v3.IValidateFlowRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult + * Verifies a SpeechWordInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResultCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @returns Promise + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpeechWordInfo */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SpeechWordInfo; /** - * Calls ImportFlow. - * @param request ImportFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 importFlow(request: google.cloud.dialogflow.cx.v3.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ImportFlowCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ImportFlow. - * @param request ImportFlowRequest message or plain object - * @returns Promise + * Converts this SpeechWordInfo to JSON. + * @returns JSON object */ - public importFlow(request: google.cloud.dialogflow.cx.v3.IImportFlowRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ExportFlow. - * @param request ExportFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for SpeechWordInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public exportFlow(request: google.cloud.dialogflow.cx.v3.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ExportFlowCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InputAudioConfig. */ + interface IInputAudioConfig { + + /** InputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding|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 InputAudioConfig. */ + class InputAudioConfig implements IInputAudioConfig { /** - * Calls ExportFlow. - * @param request ExportFlowRequest message or plain object - * @returns Promise + * Constructs a new InputAudioConfig. + * @param [properties] Properties to set */ - public exportFlow(request: google.cloud.dialogflow.cx.v3.IExportFlowRequest): Promise; - } + constructor(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig); - namespace Flows { + /** InputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding); + + /** 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; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|createFlow}. - * @param error Error, if any - * @param [response] Flow + * Creates a new InputAudioConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InputAudioConfig instance */ - type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IInputAudioConfig): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|deleteFlow}. - * @param error Error, if any - * @param [response] Empty + * 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 */ - type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|listFlows}. - * @param error Error, if any - * @param [response] ListFlowsResponse + * 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 */ - type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListFlowsResponse) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlow}. - * @param error Error, if any - * @param [response] Flow + * 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 InputAudioConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|updateFlow}. - * @param error Error, if any - * @param [response] Flow + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputAudioConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|trainFlow}. - * @param error Error, if any - * @param [response] Operation + * Verifies an InputAudioConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|validateFlow}. - * @param error Error, if any - * @param [response] FlowValidationResult + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputAudioConfig */ - type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FlowValidationResult) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlowValidationResult}. - * @param error Error, if any - * @param [response] FlowValidationResult + * 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 */ - type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FlowValidationResult) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|importFlow}. - * @param error Error, if any - * @param [response] Operation + * Converts this InputAudioConfig to JSON. + * @returns JSON object */ - type ImportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|exportFlow}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for InputAudioConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ExportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NluSettings. */ - interface INluSettings { + /** SsmlVoiceGender enum. */ + enum SsmlVoiceGender { + SSML_VOICE_GENDER_UNSPECIFIED = 0, + SSML_VOICE_GENDER_MALE = 1, + SSML_VOICE_GENDER_FEMALE = 2, + SSML_VOICE_GENDER_NEUTRAL = 3 + } - /** NluSettings modelType */ - modelType?: (google.cloud.dialogflow.cx.v3.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelType|null); + /** Properties of a VoiceSelectionParams. */ + interface IVoiceSelectionParams { - /** NluSettings classificationThreshold */ - classificationThreshold?: (number|null); + /** VoiceSelectionParams name */ + name?: (string|null); - /** NluSettings modelTrainingMode */ - modelTrainingMode?: (google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|null); + /** VoiceSelectionParams ssmlGender */ + ssmlGender?: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null); } - /** Represents a NluSettings. */ - class NluSettings implements INluSettings { + /** Represents a VoiceSelectionParams. */ + class VoiceSelectionParams implements IVoiceSelectionParams { /** - * Constructs a new NluSettings. + * Constructs a new VoiceSelectionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.INluSettings); - - /** NluSettings modelType. */ - public modelType: (google.cloud.dialogflow.cx.v3.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelType); + constructor(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams); - /** NluSettings classificationThreshold. */ - public classificationThreshold: number; + /** VoiceSelectionParams name. */ + public name: string; - /** NluSettings modelTrainingMode. */ - public modelTrainingMode: (google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode); + /** VoiceSelectionParams ssmlGender. */ + public ssmlGender: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender); /** - * Creates a new NluSettings instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @param [properties] Properties to set - * @returns NluSettings instance + * @returns VoiceSelectionParams instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.INluSettings): google.cloud.dialogflow.cx.v3.NluSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. - * @param message NluSettings 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.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. - * @param message NluSettings 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.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NluSettings 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 NluSettings + * @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.NluSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Decodes a NluSettings 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 NluSettings + * @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.NluSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Verifies a NluSettings 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 NluSettings 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 NluSettings + * @returns VoiceSelectionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.NluSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.VoiceSelectionParams; /** - * Creates a plain object from a NluSettings message. Also converts values to other types if specified. - * @param message NluSettings + * 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.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NluSettings to JSON. + * Converts this VoiceSelectionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NluSettings + * Gets the default type url for VoiceSelectionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NluSettings { + /** Properties of a SynthesizeSpeechConfig. */ + interface ISynthesizeSpeechConfig { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - MODEL_TYPE_STANDARD = 1, - MODEL_TYPE_ADVANCED = 3 - } + /** SynthesizeSpeechConfig speakingRate */ + speakingRate?: (number|null); - /** ModelTrainingMode enum. */ - enum ModelTrainingMode { - MODEL_TRAINING_MODE_UNSPECIFIED = 0, - MODEL_TRAINING_MODE_AUTOMATIC = 1, - MODEL_TRAINING_MODE_MANUAL = 2 - } - } - - /** Properties of a Flow. */ - interface IFlow { - - /** Flow name */ - name?: (string|null); - - /** Flow displayName */ - displayName?: (string|null); - - /** Flow description */ - description?: (string|null); - - /** Flow transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + /** SynthesizeSpeechConfig pitch */ + pitch?: (number|null); - /** Flow eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); + /** SynthesizeSpeechConfig volumeGainDb */ + volumeGainDb?: (number|null); - /** Flow transitionRouteGroups */ - transitionRouteGroups?: (string[]|null); + /** SynthesizeSpeechConfig effectsProfileId */ + effectsProfileId?: (string[]|null); - /** Flow nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** SynthesizeSpeechConfig voice */ + voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); } - /** Represents a Flow. */ - class Flow implements IFlow { + /** Represents a SynthesizeSpeechConfig. */ + class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { /** - * Constructs a new Flow. + * Constructs a new SynthesizeSpeechConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFlow); - - /** Flow name. */ - public name: string; - - /** Flow displayName. */ - public displayName: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig); - /** Flow description. */ - public description: string; + /** SynthesizeSpeechConfig speakingRate. */ + public speakingRate: number; - /** Flow transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + /** SynthesizeSpeechConfig pitch. */ + public pitch: number; - /** Flow eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; + /** SynthesizeSpeechConfig volumeGainDb. */ + public volumeGainDb: number; - /** Flow transitionRouteGroups. */ - public transitionRouteGroups: string[]; + /** SynthesizeSpeechConfig effectsProfileId. */ + public effectsProfileId: string[]; - /** Flow nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** SynthesizeSpeechConfig voice. */ + public voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); /** - * Creates a new Flow instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Flow instance + * @returns SynthesizeSpeechConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IFlow): google.cloud.dialogflow.cx.v3.Flow; + public static create(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. - * @param message Flow 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.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. - * @param message Flow 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.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Flow 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 Flow + * @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.Flow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Decodes a Flow 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 Flow + * @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.Flow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Verifies a Flow 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 Flow 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 Flow + * @returns SynthesizeSpeechConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Flow; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig; /** - * Creates a plain object from a Flow message. Also converts values to other types if specified. - * @param message Flow + * 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.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Flow to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Flow + * Gets the default type url for SynthesizeSpeechConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFlowRequest. */ - interface ICreateFlowRequest { + /** 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 + } - /** CreateFlowRequest parent */ - parent?: (string|null); + /** Properties of an OutputAudioConfig. */ + interface IOutputAudioConfig { - /** CreateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + /** OutputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding|null); - /** CreateFlowRequest languageCode */ - languageCode?: (string|null); + /** OutputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** OutputAudioConfig synthesizeSpeechConfig */ + synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); } - /** Represents a CreateFlowRequest. */ - class CreateFlowRequest implements ICreateFlowRequest { + /** Represents an OutputAudioConfig. */ + class OutputAudioConfig implements IOutputAudioConfig { /** - * Constructs a new CreateFlowRequest. + * Constructs a new OutputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig); - /** CreateFlowRequest parent. */ - public parent: string; + /** OutputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.OutputAudioEncoding); - /** CreateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + /** OutputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; - /** CreateFlowRequest languageCode. */ - public languageCode: string; + /** OutputAudioConfig synthesizeSpeechConfig. */ + public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); /** - * Creates a new CreateFlowRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFlowRequest instance + * @returns OutputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): google.cloud.dialogflow.cx.v3.CreateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. - * @param message CreateFlowRequest 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.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. - * @param message CreateFlowRequest 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.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFlowRequest 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 CreateFlowRequest + * @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.CreateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Decodes a CreateFlowRequest 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 CreateFlowRequest + * @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.CreateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Verifies a CreateFlowRequest 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 CreateFlowRequest 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 CreateFlowRequest + * @returns OutputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.OutputAudioConfig; /** - * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. - * @param message CreateFlowRequest + * 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.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFlowRequest + * Gets the default type url for OutputAudioConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFlowRequest. */ - interface IDeleteFlowRequest { - - /** DeleteFlowRequest name */ - name?: (string|null); + /** Properties of a TextToSpeechSettings. */ + interface ITextToSpeechSettings { - /** DeleteFlowRequest force */ - force?: (boolean|null); + /** TextToSpeechSettings synthesizeSpeechConfigs */ + synthesizeSpeechConfigs?: ({ [k: string]: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig }|null); } - /** Represents a DeleteFlowRequest. */ - class DeleteFlowRequest implements IDeleteFlowRequest { + /** Represents a TextToSpeechSettings. */ + class TextToSpeechSettings implements ITextToSpeechSettings { /** - * Constructs a new DeleteFlowRequest. + * Constructs a new TextToSpeechSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest); - - /** DeleteFlowRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.ITextToSpeechSettings); - /** DeleteFlowRequest force. */ - public force: boolean; + /** TextToSpeechSettings synthesizeSpeechConfigs. */ + public synthesizeSpeechConfigs: { [k: string]: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig }; /** - * Creates a new DeleteFlowRequest instance using the specified properties. + * Creates a new TextToSpeechSettings instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFlowRequest instance + * @returns TextToSpeechSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITextToSpeechSettings): google.cloud.dialogflow.cx.v3.TextToSpeechSettings; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. - * @param message DeleteFlowRequest message or plain object to encode + * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextToSpeechSettings.verify|verify} messages. + * @param message TextToSpeechSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. - * @param message DeleteFlowRequest message or plain object to encode + * Encodes the specified TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextToSpeechSettings.verify|verify} messages. + * @param message TextToSpeechSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer. + * Decodes a TextToSpeechSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFlowRequest + * @returns TextToSpeechSettings * @throws {Error} If the payload is not a reader or 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.DeleteFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TextToSpeechSettings; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFlowRequest + * @returns TextToSpeechSettings * @throws {Error} If the payload is not a 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.DeleteFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TextToSpeechSettings; /** - * Verifies a DeleteFlowRequest message. + * Verifies a TextToSpeechSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFlowRequest + * @returns TextToSpeechSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TextToSpeechSettings; /** - * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. - * @param message DeleteFlowRequest + * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. + * @param message TextToSpeechSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TextToSpeechSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFlowRequest to JSON. + * Converts this TextToSpeechSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFlowRequest + * Gets the default type url for TextToSpeechSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFlowsRequest. */ - interface IListFlowsRequest { - - /** ListFlowsRequest parent */ - parent?: (string|null); - - /** ListFlowsRequest pageSize */ - pageSize?: (number|null); - - /** ListFlowsRequest pageToken */ - pageToken?: (string|null); - - /** ListFlowsRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a ListFlowsRequest. */ - class ListFlowsRequest implements IListFlowsRequest { + /** Represents a Flows */ + class Flows extends $protobuf.rpc.Service { /** - * Constructs a new ListFlowsRequest. - * @param [properties] Properties to set + * Constructs a new Flows 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.IListFlowsRequest); - - /** ListFlowsRequest parent. */ - public parent: string; - - /** ListFlowsRequest pageSize. */ - public pageSize: number; - - /** ListFlowsRequest pageToken. */ - public pageToken: string; - - /** ListFlowsRequest languageCode. */ - public languageCode: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ListFlowsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFlowsRequest instance + * Creates new Flows 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.IListFlowsRequest): google.cloud.dialogflow.cx.v3.ListFlowsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Flows; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. - * @param message ListFlowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateFlow. + * @param request CreateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback): void; /** - * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. - * @param message ListFlowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateFlow. + * @param request CreateFlowRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createFlow(request: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): Promise; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFlowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFlow. + * @param request DeleteFlowRequest 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.ListFlowsRequest; + public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback): void; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFlowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFlow. + * @param request DeleteFlowRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListFlowsRequest; + public deleteFlow(request: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): Promise; /** - * Verifies a ListFlowsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListFlows. + * @param request ListFlowsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFlowsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback): void; /** - * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFlowsRequest + * Calls ListFlows. + * @param request ListFlowsRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListFlowsRequest; + public listFlows(request: google.cloud.dialogflow.cx.v3.IListFlowsRequest): Promise; /** - * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. - * @param message ListFlowsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls GetFlow. + * @param request GetFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback): void; /** - * Converts this ListFlowsRequest to JSON. - * @returns JSON object + * Calls GetFlow. + * @param request GetFlowRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getFlow(request: google.cloud.dialogflow.cx.v3.IGetFlowRequest): Promise; /** - * Gets the default type url for ListFlowsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls UpdateFlow. + * @param request UpdateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListFlowsResponse. */ - interface IListFlowsResponse { - - /** ListFlowsResponse flows */ - flows?: (google.cloud.dialogflow.cx.v3.IFlow[]|null); - - /** ListFlowsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListFlowsResponse. */ - class ListFlowsResponse implements IListFlowsResponse { + public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback): void; /** - * Constructs a new ListFlowsResponse. - * @param [properties] Properties to set + * Calls UpdateFlow. + * @param request UpdateFlowRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListFlowsResponse); - - /** ListFlowsResponse flows. */ - public flows: google.cloud.dialogflow.cx.v3.IFlow[]; - - /** ListFlowsResponse nextPageToken. */ - public nextPageToken: string; + public updateFlow(request: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): Promise; /** - * Creates a new ListFlowsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFlowsResponse instance + * Calls TrainFlow. + * @param request TrainFlowRequest 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.IListFlowsResponse): google.cloud.dialogflow.cx.v3.ListFlowsResponse; + public trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback): void; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. - * @param message ListFlowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls TrainFlow. + * @param request TrainFlowRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public trainFlow(request: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): Promise; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. - * @param message ListFlowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FlowValidationResult */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public validateFlow(request: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ValidateFlowCallback): void; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFlowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListFlowsResponse; + public validateFlow(request: google.cloud.dialogflow.cx.v3.IValidateFlowRequest): Promise; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFlowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FlowValidationResult */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListFlowsResponse; + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResultCallback): void; /** - * Verifies a ListFlowsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest): Promise; /** - * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFlowsResponse + * Calls ImportFlow. + * @param request ImportFlowRequest 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.ListFlowsResponse; + public importFlow(request: google.cloud.dialogflow.cx.v3.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ImportFlowCallback): void; /** - * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. - * @param message ListFlowsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls ImportFlow. + * @param request ImportFlowRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public importFlow(request: google.cloud.dialogflow.cx.v3.IImportFlowRequest): Promise; /** - * Converts this ListFlowsResponse to JSON. - * @returns JSON object + * Calls ExportFlow. + * @param request ExportFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; + public exportFlow(request: google.cloud.dialogflow.cx.v3.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3.Flows.ExportFlowCallback): void; /** - * Gets the default type url for ListFlowsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ExportFlow. + * @param request ExportFlowRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetFlowRequest. */ - interface IGetFlowRequest { - - /** GetFlowRequest name */ - name?: (string|null); - - /** GetFlowRequest languageCode */ - languageCode?: (string|null); + public exportFlow(request: google.cloud.dialogflow.cx.v3.IExportFlowRequest): Promise; } - /** Represents a GetFlowRequest. */ - class GetFlowRequest implements IGetFlowRequest { + namespace Flows { /** - * Constructs a new GetFlowRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|createFlow}. + * @param error Error, if any + * @param [response] Flow */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetFlowRequest); - - /** GetFlowRequest name. */ - public name: string; - - /** GetFlowRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new GetFlowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFlowRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetFlowRequest): google.cloud.dialogflow.cx.v3.GetFlowRequest; + type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. - * @param message GetFlowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|deleteFlow}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. - * @param message GetFlowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|listFlows}. + * @param error Error, if any + * @param [response] ListFlowsResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListFlowsResponse) => void; /** - * Decodes a GetFlowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFlowRequest - * @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.Flows|getFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetFlowRequest; + type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFlowRequest - * @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.Flows|updateFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetFlowRequest; + type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Flow) => void; /** - * Verifies a GetFlowRequest 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.Flows|trainFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFlowRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|validateFlow}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetFlowRequest; + type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FlowValidationResult) => void; /** - * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. - * @param message GetFlowRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlowValidationResult}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.FlowValidationResult) => void; /** - * Converts this GetFlowRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|importFlow}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type ImportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for GetFlowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|exportFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ExportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of an UpdateFlowRequest. */ - interface IUpdateFlowRequest { + /** Properties of a NluSettings. */ + interface INluSettings { - /** UpdateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + /** NluSettings modelType */ + modelType?: (google.cloud.dialogflow.cx.v3.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelType|null); - /** UpdateFlowRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** NluSettings classificationThreshold */ + classificationThreshold?: (number|null); - /** UpdateFlowRequest languageCode */ - languageCode?: (string|null); + /** NluSettings modelTrainingMode */ + modelTrainingMode?: (google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|null); } - /** Represents an UpdateFlowRequest. */ - class UpdateFlowRequest implements IUpdateFlowRequest { + /** Represents a NluSettings. */ + class NluSettings implements INluSettings { /** - * Constructs a new UpdateFlowRequest. + * Constructs a new NluSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.INluSettings); - /** UpdateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + /** NluSettings modelType. */ + public modelType: (google.cloud.dialogflow.cx.v3.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelType); - /** UpdateFlowRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** NluSettings classificationThreshold. */ + public classificationThreshold: number; - /** UpdateFlowRequest languageCode. */ - public languageCode: string; + /** NluSettings modelTrainingMode. */ + public modelTrainingMode: (google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode); /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Creates a new NluSettings instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFlowRequest instance + * @returns NluSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.INluSettings): google.cloud.dialogflow.cx.v3.NluSettings; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. - * @param message UpdateFlowRequest message or plain object to encode + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. + * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. - * @param message UpdateFlowRequest message or plain object to encode + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. + * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * Decodes a NluSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFlowRequest + * @returns NluSettings * @throws {Error} If the payload is not a reader or 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.UpdateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.NluSettings; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFlowRequest + * @returns NluSettings * @throws {Error} If the payload is not a 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.UpdateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.NluSettings; /** - * Verifies an UpdateFlowRequest message. + * Verifies a NluSettings message. * @param message Plain 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 UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFlowRequest + * @returns NluSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.NluSettings; /** - * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. - * @param message UpdateFlowRequest + * Creates a plain object from a NluSettings message. Also converts values to other types if specified. + * @param message NluSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFlowRequest to JSON. + * Converts this NluSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFlowRequest + * Gets the default type url for NluSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainFlowRequest. */ - interface ITrainFlowRequest { + namespace NluSettings { - /** TrainFlowRequest name */ + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + MODEL_TYPE_STANDARD = 1, + MODEL_TYPE_ADVANCED = 3 + } + + /** ModelTrainingMode enum. */ + enum ModelTrainingMode { + MODEL_TRAINING_MODE_UNSPECIFIED = 0, + MODEL_TRAINING_MODE_AUTOMATIC = 1, + MODEL_TRAINING_MODE_MANUAL = 2 + } + } + + /** Properties of a Flow. */ + interface IFlow { + + /** Flow name */ name?: (string|null); + + /** Flow displayName */ + displayName?: (string|null); + + /** Flow description */ + description?: (string|null); + + /** Flow transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + + /** Flow eventHandlers */ + eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); + + /** Flow transitionRouteGroups */ + transitionRouteGroups?: (string[]|null); + + /** Flow nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); } - /** Represents a TrainFlowRequest. */ - class TrainFlowRequest implements ITrainFlowRequest { + /** Represents a Flow. */ + class Flow implements IFlow { /** - * Constructs a new TrainFlowRequest. + * Constructs a new Flow. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ITrainFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFlow); - /** TrainFlowRequest name. */ + /** Flow name. */ public name: string; + /** Flow displayName. */ + public displayName: string; + + /** Flow description. */ + public description: string; + + /** Flow transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + + /** Flow eventHandlers. */ + public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; + + /** Flow transitionRouteGroups. */ + public transitionRouteGroups: string[]; + + /** Flow nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3.INluSettings|null); + /** - * Creates a new TrainFlowRequest instance using the specified properties. + * Creates a new Flow instance using the specified properties. * @param [properties] Properties to set - * @returns TrainFlowRequest instance + * @returns Flow instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): google.cloud.dialogflow.cx.v3.TrainFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFlow): google.cloud.dialogflow.cx.v3.Flow; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. - * @param message TrainFlowRequest message or plain object to encode + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. + * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. - * @param message TrainFlowRequest message or plain object to encode + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. + * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer. + * Decodes a Flow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainFlowRequest + * @returns Flow * @throws {Error} If the payload is not a reader or 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.TrainFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Flow; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a Flow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainFlowRequest + * @returns Flow * @throws {Error} If the payload is not a 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.TrainFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Flow; /** - * Verifies a TrainFlowRequest message. + * Verifies a Flow message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Flow message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainFlowRequest + * @returns Flow */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TrainFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Flow; /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. - * @param message TrainFlowRequest + * Creates a plain object from a Flow message. Also converts values to other types if specified. + * @param message Flow * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainFlowRequest to JSON. + * Converts this Flow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainFlowRequest + * Gets the default type url for Flow * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateFlowRequest. */ - interface IValidateFlowRequest { + /** Properties of a CreateFlowRequest. */ + interface ICreateFlowRequest { - /** ValidateFlowRequest name */ - name?: (string|null); + /** CreateFlowRequest parent */ + parent?: (string|null); - /** ValidateFlowRequest languageCode */ + /** CreateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + + /** CreateFlowRequest languageCode */ languageCode?: (string|null); } - /** Represents a ValidateFlowRequest. */ - class ValidateFlowRequest implements IValidateFlowRequest { + /** Represents a CreateFlowRequest. */ + class CreateFlowRequest implements ICreateFlowRequest { /** - * Constructs a new ValidateFlowRequest. + * Constructs a new CreateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IValidateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateFlowRequest); - /** ValidateFlowRequest name. */ - public name: string; + /** CreateFlowRequest parent. */ + public parent: string; - /** ValidateFlowRequest languageCode. */ + /** CreateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); + + /** CreateFlowRequest languageCode. */ public languageCode: string; /** - * Creates a new ValidateFlowRequest instance using the specified properties. + * Creates a new CreateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateFlowRequest instance + * @returns CreateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IValidateFlowRequest): google.cloud.dialogflow.cx.v3.ValidateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateFlowRequest): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** - * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. - * @param message ValidateFlowRequest message or plain object to encode + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. + * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. - * @param message ValidateFlowRequest message or plain object to encode + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. + * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * Decodes a CreateFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateFlowRequest + * @returns CreateFlowRequest * @throws {Error} If the payload is not a reader or 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.ValidateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateFlowRequest + * @returns CreateFlowRequest * @throws {Error} If the payload is not a 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.ValidateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** - * Verifies a ValidateFlowRequest message. + * Verifies a CreateFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateFlowRequest + * @returns CreateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ValidateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateFlowRequest; /** - * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. - * @param message ValidateFlowRequest + * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. + * @param message CreateFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateFlowRequest to JSON. + * Converts this CreateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateFlowRequest + * Gets the default type url for CreateFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFlowValidationResultRequest. */ - interface IGetFlowValidationResultRequest { + /** Properties of a DeleteFlowRequest. */ + interface IDeleteFlowRequest { - /** GetFlowValidationResultRequest name */ + /** DeleteFlowRequest name */ name?: (string|null); - /** GetFlowValidationResultRequest languageCode */ - languageCode?: (string|null); + /** DeleteFlowRequest force */ + force?: (boolean|null); } - /** Represents a GetFlowValidationResultRequest. */ - class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { + /** Represents a DeleteFlowRequest. */ + class DeleteFlowRequest implements IDeleteFlowRequest { /** - * Constructs a new GetFlowValidationResultRequest. + * Constructs a new DeleteFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest); - /** GetFlowValidationResultRequest name. */ + /** DeleteFlowRequest name. */ public name: string; - /** GetFlowValidationResultRequest languageCode. */ - public languageCode: string; + /** DeleteFlowRequest force. */ + public force: boolean; /** - * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFlowValidationResultRequest instance + * @returns DeleteFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** - * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. - * @param message GetFlowValidationResultRequest message or plain object to encode + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. + * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. - * @param message GetFlowValidationResultRequest message or plain object to encode + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. + * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFlowValidationResultRequest + * @returns DeleteFlowRequest * @throws {Error} If the payload is not a reader or 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.GetFlowValidationResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFlowValidationResultRequest + * @returns DeleteFlowRequest * @throws {Error} If the payload is not a 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.GetFlowValidationResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** - * Verifies a GetFlowValidationResultRequest message. + * Verifies a DeleteFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFlowValidationResultRequest + * @returns DeleteFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteFlowRequest; /** - * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. - * @param message GetFlowValidationResultRequest + * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. + * @param message DeleteFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFlowValidationResultRequest to JSON. + * Converts this DeleteFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFlowValidationResultRequest + * Gets the default type url for DeleteFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FlowValidationResult. */ - interface IFlowValidationResult { + /** Properties of a ListFlowsRequest. */ + interface IListFlowsRequest { - /** FlowValidationResult name */ - name?: (string|null); + /** ListFlowsRequest parent */ + parent?: (string|null); - /** FlowValidationResult validationMessages */ - validationMessages?: (google.cloud.dialogflow.cx.v3.IValidationMessage[]|null); + /** ListFlowsRequest pageSize */ + pageSize?: (number|null); - /** FlowValidationResult updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListFlowsRequest pageToken */ + pageToken?: (string|null); + + /** ListFlowsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a FlowValidationResult. */ - class FlowValidationResult implements IFlowValidationResult { + /** Represents a ListFlowsRequest. */ + class ListFlowsRequest implements IListFlowsRequest { /** - * Constructs a new FlowValidationResult. + * Constructs a new ListFlowsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IFlowValidationResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListFlowsRequest); - /** FlowValidationResult name. */ - public name: string; + /** ListFlowsRequest parent. */ + public parent: string; - /** FlowValidationResult validationMessages. */ - public validationMessages: google.cloud.dialogflow.cx.v3.IValidationMessage[]; + /** ListFlowsRequest pageSize. */ + public pageSize: number; - /** FlowValidationResult updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListFlowsRequest pageToken. */ + public pageToken: string; + + /** ListFlowsRequest languageCode. */ + public languageCode: string; /** - * Creates a new FlowValidationResult instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FlowValidationResult instance + * @returns ListFlowsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IFlowValidationResult): google.cloud.dialogflow.cx.v3.FlowValidationResult; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListFlowsRequest): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** - * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. - * @param message FlowValidationResult message or plain object to encode + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. + * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. - * @param message FlowValidationResult message or plain object to encode + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. + * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FlowValidationResult message from the specified reader or buffer. + * Decodes a ListFlowsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FlowValidationResult + * @returns ListFlowsRequest * @throws {Error} If the payload is not a reader or 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.FlowValidationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** - * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FlowValidationResult + * @returns ListFlowsRequest * @throws {Error} If the payload is not a 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.FlowValidationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** - * Verifies a FlowValidationResult message. + * Verifies a ListFlowsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FlowValidationResult + * @returns ListFlowsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FlowValidationResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListFlowsRequest; /** - * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. - * @param message FlowValidationResult + * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. + * @param message ListFlowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FlowValidationResult to JSON. + * Converts this ListFlowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FlowValidationResult + * Gets the default type url for ListFlowsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFlowRequest. */ - interface IImportFlowRequest { - - /** ImportFlowRequest parent */ - parent?: (string|null); - - /** ImportFlowRequest flowUri */ - flowUri?: (string|null); + /** Properties of a ListFlowsResponse. */ + interface IListFlowsResponse { - /** ImportFlowRequest flowContent */ - flowContent?: (Uint8Array|string|null); + /** ListFlowsResponse flows */ + flows?: (google.cloud.dialogflow.cx.v3.IFlow[]|null); - /** ImportFlowRequest importOption */ - importOption?: (google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|null); + /** ListFlowsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ImportFlowRequest. */ - class ImportFlowRequest implements IImportFlowRequest { + /** Represents a ListFlowsResponse. */ + class ListFlowsResponse implements IListFlowsResponse { /** - * Constructs a new ImportFlowRequest. + * Constructs a new ListFlowsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportFlowRequest); - - /** ImportFlowRequest parent. */ - public parent: string; - - /** ImportFlowRequest flowUri. */ - public flowUri?: (string|null); - - /** ImportFlowRequest flowContent. */ - public flowContent?: (Uint8Array|string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListFlowsResponse); - /** ImportFlowRequest importOption. */ - public importOption: (google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption); + /** ListFlowsResponse flows. */ + public flows: google.cloud.dialogflow.cx.v3.IFlow[]; - /** ImportFlowRequest flow. */ - public flow?: ("flowUri"|"flowContent"); + /** ListFlowsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ImportFlowRequest instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFlowRequest instance + * @returns ListFlowsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportFlowRequest): google.cloud.dialogflow.cx.v3.ImportFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListFlowsResponse): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** - * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. - * @param message ImportFlowRequest message or plain object to encode + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. + * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. - * @param message ImportFlowRequest message or plain object to encode + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. + * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer. + * Decodes a ListFlowsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFlowRequest + * @returns ListFlowsResponse * @throws {Error} If the payload is not a reader or 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.ImportFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFlowRequest + * @returns ListFlowsResponse * @throws {Error} If the payload is not a 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.ImportFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** - * Verifies an ImportFlowRequest message. + * Verifies a ListFlowsResponse message. * @param message Plain 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 ImportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFlowRequest + * @returns ListFlowsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListFlowsResponse; /** - * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. - * @param message ImportFlowRequest + * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. + * @param message ListFlowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFlowRequest to JSON. + * Converts this ListFlowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFlowRequest + * Gets the default type url for ListFlowsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ImportFlowRequest { - - /** ImportOption enum. */ - enum ImportOption { - IMPORT_OPTION_UNSPECIFIED = 0, - KEEP = 1, - FALLBACK = 2 - } - } + /** Properties of a GetFlowRequest. */ + interface IGetFlowRequest { - /** Properties of an ImportFlowResponse. */ - interface IImportFlowResponse { + /** GetFlowRequest name */ + name?: (string|null); - /** ImportFlowResponse flow */ - flow?: (string|null); + /** GetFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an ImportFlowResponse. */ - class ImportFlowResponse implements IImportFlowResponse { + /** Represents a GetFlowRequest. */ + class GetFlowRequest implements IGetFlowRequest { /** - * Constructs a new ImportFlowResponse. + * Constructs a new GetFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IImportFlowResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetFlowRequest); - /** ImportFlowResponse flow. */ - public flow: string; + /** GetFlowRequest name. */ + public name: string; + + /** GetFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new ImportFlowResponse instance using the specified properties. + * Creates a new GetFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFlowResponse instance + * @returns GetFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IImportFlowResponse): google.cloud.dialogflow.cx.v3.ImportFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetFlowRequest): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** - * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. - * @param message ImportFlowResponse message or plain object to encode + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. + * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. - * @param message ImportFlowResponse message or plain object to encode + * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. + * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer. + * Decodes a GetFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFlowResponse + * @returns GetFlowRequest * @throws {Error} If the payload is not a reader or 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.ImportFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFlowResponse + * @returns GetFlowRequest * @throws {Error} If the payload is not a 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.ImportFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** - * Verifies an ImportFlowResponse message. + * Verifies a GetFlowRequest message. * @param message Plain 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 ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFlowResponse + * @returns GetFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetFlowRequest; /** - * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. - * @param message ImportFlowResponse + * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. + * @param message GetFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ImportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFlowResponse to JSON. + * Converts this GetFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFlowResponse + * Gets the default type url for GetFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFlowRequest. */ - interface IExportFlowRequest { + /** Properties of an UpdateFlowRequest. */ + interface IUpdateFlowRequest { - /** ExportFlowRequest name */ - name?: (string|null); + /** UpdateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); - /** ExportFlowRequest flowUri */ - flowUri?: (string|null); + /** UpdateFlowRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** ExportFlowRequest includeReferencedFlows */ - includeReferencedFlows?: (boolean|null); + /** UpdateFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an ExportFlowRequest. */ - class ExportFlowRequest implements IExportFlowRequest { + /** Represents an UpdateFlowRequest. */ + class UpdateFlowRequest implements IUpdateFlowRequest { /** - * Constructs a new ExportFlowRequest. + * Constructs a new UpdateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest); - /** ExportFlowRequest name. */ - public name: string; + /** UpdateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3.IFlow|null); - /** ExportFlowRequest flowUri. */ - public flowUri: string; + /** UpdateFlowRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ExportFlowRequest includeReferencedFlows. */ - public includeReferencedFlows: boolean; + /** UpdateFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new ExportFlowRequest instance using the specified properties. + * Creates a new UpdateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFlowRequest instance + * @returns UpdateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportFlowRequest): google.cloud.dialogflow.cx.v3.ExportFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** - * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. - * @param message ExportFlowRequest message or plain object to encode + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. + * @param message UpdateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. - * @param message ExportFlowRequest message or plain object to encode + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. + * @param message UpdateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer. + * Decodes an UpdateFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFlowRequest + * @returns UpdateFlowRequest * @throws {Error} If the payload is not a reader or 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.ExportFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFlowRequest + * @returns UpdateFlowRequest * @throws {Error} If the payload is not a 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.ExportFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** - * Verifies an ExportFlowRequest message. + * Verifies an UpdateFlowRequest message. * @param message Plain 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 ExportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFlowRequest + * @returns UpdateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateFlowRequest; /** - * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. - * @param message ExportFlowRequest + * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. + * @param message UpdateFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFlowRequest to JSON. + * Converts this UpdateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFlowRequest + * Gets the default type url for UpdateFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFlowResponse. */ - interface IExportFlowResponse { - - /** ExportFlowResponse flowUri */ - flowUri?: (string|null); + /** Properties of a TrainFlowRequest. */ + interface ITrainFlowRequest { - /** ExportFlowResponse flowContent */ - flowContent?: (Uint8Array|string|null); + /** TrainFlowRequest name */ + name?: (string|null); } - /** Represents an ExportFlowResponse. */ - class ExportFlowResponse implements IExportFlowResponse { + /** Represents a TrainFlowRequest. */ + class TrainFlowRequest implements ITrainFlowRequest { /** - * Constructs a new ExportFlowResponse. + * Constructs a new TrainFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IExportFlowResponse); - - /** ExportFlowResponse flowUri. */ - public flowUri?: (string|null); - - /** ExportFlowResponse flowContent. */ - public flowContent?: (Uint8Array|string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITrainFlowRequest); - /** ExportFlowResponse flow. */ - public flow?: ("flowUri"|"flowContent"); + /** TrainFlowRequest name. */ + public name: string; /** - * Creates a new ExportFlowResponse instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFlowResponse instance + * @returns TrainFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IExportFlowResponse): google.cloud.dialogflow.cx.v3.ExportFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITrainFlowRequest): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** - * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. - * @param message ExportFlowResponse message or plain object to encode + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. + * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. - * @param message ExportFlowResponse message or plain object to encode + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. + * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer. + * Decodes a TrainFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFlowResponse + * @returns TrainFlowRequest * @throws {Error} If the payload is not a reader or 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.ExportFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFlowResponse + * @returns TrainFlowRequest * @throws {Error} If the payload is not a 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.ExportFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** - * Verifies an ExportFlowResponse message. + * Verifies a TrainFlowRequest message. * @param message Plain 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 ExportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFlowResponse + * @returns TrainFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TrainFlowRequest; /** - * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. - * @param message ExportFlowResponse + * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. + * @param message TrainFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ExportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFlowResponse to JSON. + * Converts this TrainFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFlowResponse + * Gets the default type url for TrainFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Pages */ - class Pages extends $protobuf.rpc.Service { + /** Properties of a ValidateFlowRequest. */ + interface IValidateFlowRequest { - /** - * Constructs a new Pages 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); + /** ValidateFlowRequest name */ + name?: (string|null); + + /** ValidateFlowRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a ValidateFlowRequest. */ + class ValidateFlowRequest implements IValidateFlowRequest { /** - * Creates new Pages 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. + * Constructs a new ValidateFlowRequest. + * @param [properties] Properties to set */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Pages; + constructor(properties?: google.cloud.dialogflow.cx.v3.IValidateFlowRequest); + + /** ValidateFlowRequest name. */ + public name: string; + + /** ValidateFlowRequest languageCode. */ + public languageCode: string; /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPagesResponse + * Creates a new ValidateFlowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateFlowRequest instance */ - public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IValidateFlowRequest): google.cloud.dialogflow.cx.v3.ValidateFlowRequest; /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @returns Promise + * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. + * @param message ValidateFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. + * @param message ValidateFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.GetPageCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @returns Promise + * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ValidateFlowRequest; /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ValidateFlowRequest; /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @returns Promise + * Verifies a ValidateFlowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateFlowRequest */ - public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ValidateFlowRequest; /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @returns Promise + * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. + * @param message ValidateFlowRequest + * @param [options] Conversion options + * @returns Plain object */ - public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this ValidateFlowRequest to JSON. + * @returns JSON object */ - public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @returns Promise + * Gets the default type url for ValidateFlowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Pages { + /** Properties of a GetFlowValidationResultRequest. */ + interface IGetFlowValidationResultRequest { + + /** GetFlowValidationResultRequest name */ + name?: (string|null); + + /** GetFlowValidationResultRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetFlowValidationResultRequest. */ + class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|listPages}. - * @param error Error, if any - * @param [response] ListPagesResponse + * Constructs a new GetFlowValidationResultRequest. + * @param [properties] Properties to set */ - type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListPagesResponse) => void; + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest); + + /** GetFlowValidationResultRequest name. */ + public name: string; + + /** GetFlowValidationResultRequest languageCode. */ + public languageCode: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|getPage}. - * @param error Error, if any - * @param [response] Page + * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFlowValidationResultRequest instance */ - type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|createPage}. - * @param error Error, if any - * @param [response] Page + * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. + * @param message GetFlowValidationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|updatePage}. - * @param error Error, if any - * @param [response] Page + * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. + * @param message GetFlowValidationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|deletePage}. - * @param error Error, if any - * @param [response] Empty + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFlowValidationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest; - /** Properties of a Page. */ - interface IPage { + /** + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFlowValidationResultRequest + * @throws {Error} If the payload is not a 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.GetFlowValidationResultRequest; - /** Page name */ - name?: (string|null); + /** + * Verifies a GetFlowValidationResultRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Page displayName */ - displayName?: (string|null); + /** + * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFlowValidationResultRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest; - /** Page entryFulfillment */ - entryFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + /** + * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. + * @param message GetFlowValidationResultRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Page form */ - form?: (google.cloud.dialogflow.cx.v3.IForm|null); + /** + * Converts this GetFlowValidationResultRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Page transitionRouteGroups */ - transitionRouteGroups?: (string[]|null); + /** + * Gets the default type url for GetFlowValidationResultRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Page transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + /** Properties of a FlowValidationResult. */ + interface IFlowValidationResult { - /** Page eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); + /** FlowValidationResult name */ + name?: (string|null); + + /** FlowValidationResult validationMessages */ + validationMessages?: (google.cloud.dialogflow.cx.v3.IValidationMessage[]|null); + + /** FlowValidationResult updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Page. */ - class Page implements IPage { + /** Represents a FlowValidationResult. */ + class FlowValidationResult implements IFlowValidationResult { /** - * Constructs a new Page. + * Constructs a new FlowValidationResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IPage); + constructor(properties?: google.cloud.dialogflow.cx.v3.IFlowValidationResult); - /** Page name. */ + /** FlowValidationResult name. */ public name: string; - /** Page displayName. */ - public displayName: string; - - /** Page entryFulfillment. */ - public entryFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); - - /** Page form. */ - public form?: (google.cloud.dialogflow.cx.v3.IForm|null); - - /** Page transitionRouteGroups. */ - public transitionRouteGroups: string[]; - - /** Page transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + /** FlowValidationResult validationMessages. */ + public validationMessages: google.cloud.dialogflow.cx.v3.IValidationMessage[]; - /** Page eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; + /** FlowValidationResult updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Page instance using the specified properties. + * Creates a new FlowValidationResult instance using the specified properties. * @param [properties] Properties to set - * @returns Page instance + * @returns FlowValidationResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IPage): google.cloud.dialogflow.cx.v3.Page; + public static create(properties?: google.cloud.dialogflow.cx.v3.IFlowValidationResult): google.cloud.dialogflow.cx.v3.FlowValidationResult; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. - * @param message Page message or plain object to encode + * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. + * @param message FlowValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. - * @param message Page message or plain object to encode + * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. + * @param message FlowValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes a FlowValidationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Page + * @returns FlowValidationResult * @throws {Error} If the payload is not a reader or 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.Page; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.FlowValidationResult; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Page + * @returns FlowValidationResult * @throws {Error} If the payload is not a 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.Page; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.FlowValidationResult; /** - * Verifies a Page message. + * Verifies a FlowValidationResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Page message from a plain object. Also converts values to their respective internal types. + * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Page + * @returns FlowValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Page; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.FlowValidationResult; /** - * Creates a plain object from a Page message. Also converts values to other types if specified. - * @param message Page + * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. + * @param message FlowValidationResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Page to JSON. + * Converts this FlowValidationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Page + * Gets the default type url for FlowValidationResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Form. */ - interface IForm { + /** Properties of an ImportFlowRequest. */ + interface IImportFlowRequest { - /** Form parameters */ - parameters?: (google.cloud.dialogflow.cx.v3.Form.IParameter[]|null); + /** ImportFlowRequest parent */ + parent?: (string|null); + + /** ImportFlowRequest flowUri */ + flowUri?: (string|null); + + /** ImportFlowRequest flowContent */ + flowContent?: (Uint8Array|string|null); + + /** ImportFlowRequest importOption */ + importOption?: (google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|null); } - /** Represents a Form. */ - class Form implements IForm { + /** Represents an ImportFlowRequest. */ + class ImportFlowRequest implements IImportFlowRequest { /** - * Constructs a new Form. + * Constructs a new ImportFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IForm); + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportFlowRequest); - /** Form parameters. */ - public parameters: google.cloud.dialogflow.cx.v3.Form.IParameter[]; + /** ImportFlowRequest parent. */ + public parent: string; + + /** ImportFlowRequest flowUri. */ + public flowUri?: (string|null); + + /** ImportFlowRequest flowContent. */ + public flowContent?: (Uint8Array|string|null); + + /** ImportFlowRequest importOption. */ + public importOption: (google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption); + + /** ImportFlowRequest flow. */ + public flow?: ("flowUri"|"flowContent"); /** - * Creates a new Form instance using the specified properties. + * Creates a new ImportFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Form instance + * @returns ImportFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IForm): google.cloud.dialogflow.cx.v3.Form; + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportFlowRequest): google.cloud.dialogflow.cx.v3.ImportFlowRequest; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. - * @param message Form message or plain object to encode + * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. + * @param message ImportFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. - * @param message Form message or plain object to encode + * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. + * @param message ImportFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Form message from the specified reader or buffer. + * Decodes an ImportFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Form + * @returns ImportFlowRequest * @throws {Error} If the payload is not a reader or 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.Form; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ImportFlowRequest; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Form + * @returns ImportFlowRequest * @throws {Error} If the payload is not a 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.Form; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ImportFlowRequest; /** - * Verifies a Form message. + * Verifies an ImportFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Form message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Form + * @returns ImportFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportFlowRequest; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. - * @param message Form + * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. + * @param message ImportFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Form to JSON. + * Converts this ImportFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Form + * Gets the default type url for ImportFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Form { - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter displayName */ - displayName?: (string|null); - - /** Parameter required */ - required?: (boolean|null); + namespace ImportFlowRequest { - /** Parameter entityType */ - entityType?: (string|null); + /** ImportOption enum. */ + enum ImportOption { + IMPORT_OPTION_UNSPECIFIED = 0, + KEEP = 1, + FALLBACK = 2 + } + } - /** Parameter isList */ - isList?: (boolean|null); + /** Properties of an ImportFlowResponse. */ + interface IImportFlowResponse { - /** Parameter fillBehavior */ - fillBehavior?: (google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null); + /** ImportFlowResponse flow */ + flow?: (string|null); + } - /** Parameter defaultValue */ - defaultValue?: (google.protobuf.IValue|null); + /** Represents an ImportFlowResponse. */ + class ImportFlowResponse implements IImportFlowResponse { - /** Parameter redact */ - redact?: (boolean|null); - } + /** + * Constructs a new ImportFlowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IImportFlowResponse); - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** ImportFlowResponse flow. */ + public flow: string; - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Form.IParameter); + /** + * Creates a new ImportFlowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFlowResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IImportFlowResponse): google.cloud.dialogflow.cx.v3.ImportFlowResponse; - /** Parameter displayName. */ - public displayName: string; + /** + * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. + * @param message ImportFlowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Parameter required. */ - public required: boolean; + /** + * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. + * @param message ImportFlowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Parameter entityType. */ - public entityType: string; + /** + * Decodes an ImportFlowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFlowResponse + * @throws {Error} If the payload is not a reader or 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.ImportFlowResponse; - /** Parameter isList. */ - public isList: boolean; + /** + * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFlowResponse + * @throws {Error} If the payload is not a 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.ImportFlowResponse; - /** Parameter fillBehavior. */ - public fillBehavior?: (google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null); + /** + * Verifies an ImportFlowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Parameter defaultValue. */ - public defaultValue?: (google.protobuf.IValue|null); + /** + * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFlowResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ImportFlowResponse; - /** Parameter redact. */ - public redact: boolean; + /** + * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * @param message ImportFlowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ImportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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.Form.IParameter): google.cloud.dialogflow.cx.v3.Form.Parameter; + /** + * Converts this ImportFlowResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ImportFlowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ExportFlowRequest. */ + interface IExportFlowRequest { - /** - * 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.Form.Parameter; + /** ExportFlowRequest name */ + name?: (string|null); - /** - * 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.Form.Parameter; + /** ExportFlowRequest flowUri */ + flowUri?: (string|null); - /** - * 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); + /** ExportFlowRequest includeReferencedFlows */ + includeReferencedFlows?: (boolean|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.Form.Parameter; + /** Represents an ExportFlowRequest. */ + class ExportFlowRequest implements IExportFlowRequest { - /** - * 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.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ExportFlowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportFlowRequest); - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ExportFlowRequest name. */ + public name: string; - /** - * Gets the default type url for Parameter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ExportFlowRequest flowUri. */ + public flowUri: string; - namespace Parameter { + /** ExportFlowRequest includeReferencedFlows. */ + public includeReferencedFlows: boolean; - /** Properties of a FillBehavior. */ - interface IFillBehavior { + /** + * Creates a new ExportFlowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFlowRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportFlowRequest): google.cloud.dialogflow.cx.v3.ExportFlowRequest; - /** FillBehavior initialPromptFulfillment */ - initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + /** + * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. + * @param message ExportFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FillBehavior repromptEventHandlers */ - repromptEventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); - } + /** + * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. + * @param message ExportFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a FillBehavior. */ - class FillBehavior implements IFillBehavior { - - /** - * Constructs a new FillBehavior. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior); - - /** FillBehavior initialPromptFulfillment. */ - public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); - - /** FillBehavior repromptEventHandlers. */ - public repromptEventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; - - /** - * Creates a new FillBehavior instance using the specified properties. - * @param [properties] Properties to set - * @returns FillBehavior instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; - - /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. - * @param message FillBehavior message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. - * @param message FillBehavior message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FillBehavior message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FillBehavior - * @throws {Error} If the payload is not a reader or 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.Form.Parameter.FillBehavior; + /** + * Decodes an ExportFlowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFlowRequest + * @throws {Error} If the payload is not a reader or 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.ExportFlowRequest; - /** - * Decodes a FillBehavior message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FillBehavior - * @throws {Error} If the payload is not a 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.Form.Parameter.FillBehavior; + /** + * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFlowRequest + * @throws {Error} If the payload is not a 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.ExportFlowRequest; - /** - * Verifies a FillBehavior message. - * @param message 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 an ExportFlowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FillBehavior - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; + /** + * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFlowRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportFlowRequest; - /** - * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. - * @param message FillBehavior - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. + * @param message ExportFlowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FillBehavior to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ExportFlowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FillBehavior - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for ExportFlowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventHandler. */ - interface IEventHandler { - - /** EventHandler name */ - name?: (string|null); - - /** EventHandler event */ - event?: (string|null); - - /** EventHandler triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + /** Properties of an ExportFlowResponse. */ + interface IExportFlowResponse { - /** EventHandler targetPage */ - targetPage?: (string|null); + /** ExportFlowResponse flowUri */ + flowUri?: (string|null); - /** EventHandler targetFlow */ - targetFlow?: (string|null); + /** ExportFlowResponse flowContent */ + flowContent?: (Uint8Array|string|null); } - /** Represents an EventHandler. */ - class EventHandler implements IEventHandler { + /** Represents an ExportFlowResponse. */ + class ExportFlowResponse implements IExportFlowResponse { /** - * Constructs a new EventHandler. + * Constructs a new ExportFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEventHandler); - - /** EventHandler name. */ - public name: string; - - /** EventHandler event. */ - public event: string; - - /** EventHandler triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + constructor(properties?: google.cloud.dialogflow.cx.v3.IExportFlowResponse); - /** EventHandler targetPage. */ - public targetPage?: (string|null); + /** ExportFlowResponse flowUri. */ + public flowUri?: (string|null); - /** EventHandler targetFlow. */ - public targetFlow?: (string|null); + /** ExportFlowResponse flowContent. */ + public flowContent?: (Uint8Array|string|null); - /** EventHandler target. */ - public target?: ("targetPage"|"targetFlow"); + /** ExportFlowResponse flow. */ + public flow?: ("flowUri"|"flowContent"); /** - * Creates a new EventHandler instance using the specified properties. + * Creates a new ExportFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EventHandler instance + * @returns ExportFlowResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IEventHandler): google.cloud.dialogflow.cx.v3.EventHandler; + public static create(properties?: google.cloud.dialogflow.cx.v3.IExportFlowResponse): google.cloud.dialogflow.cx.v3.ExportFlowResponse; /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. - * @param message EventHandler message or plain object to encode + * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. + * @param message ExportFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. - * @param message EventHandler message or plain object to encode + * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. + * @param message ExportFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventHandler message from the specified reader or buffer. + * Decodes an ExportFlowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventHandler + * @returns ExportFlowResponse * @throws {Error} If the payload is not a reader or 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.EventHandler; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ExportFlowResponse; /** - * Decodes an EventHandler message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventHandler + * @returns ExportFlowResponse * @throws {Error} If the payload is not a 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.EventHandler; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ExportFlowResponse; /** - * Verifies an EventHandler message. + * Verifies an ExportFlowResponse message. * @param message Plain 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 EventHandler message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventHandler + * @returns ExportFlowResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventHandler; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ExportFlowResponse; /** - * Creates a plain object from an EventHandler message. Also converts values to other types if specified. - * @param message EventHandler + * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. + * @param message ExportFlowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ExportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventHandler to JSON. + * Converts this ExportFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventHandler + * Gets the default type url for ExportFlowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TransitionRoute. */ - interface ITransitionRoute { - - /** TransitionRoute name */ - name?: (string|null); - - /** TransitionRoute intent */ - intent?: (string|null); - - /** TransitionRoute condition */ - condition?: (string|null); - - /** TransitionRoute triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); - - /** TransitionRoute targetPage */ - targetPage?: (string|null); - - /** TransitionRoute targetFlow */ - targetFlow?: (string|null); - } - - /** Represents a TransitionRoute. */ - class TransitionRoute implements ITransitionRoute { + /** Represents a Pages */ + class Pages extends $protobuf.rpc.Service { /** - * Constructs a new TransitionRoute. - * @param [properties] Properties to set + * Constructs a new Pages 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.ITransitionRoute); - - /** TransitionRoute name. */ - public name: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** TransitionRoute intent. */ - public intent: string; + /** + * Creates new Pages 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): Pages; - /** TransitionRoute condition. */ - public condition: string; + /** + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPagesResponse + */ + public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback): void; - /** TransitionRoute triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + /** + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @returns Promise + */ + public listPages(request: google.cloud.dialogflow.cx.v3.IListPagesRequest): Promise; - /** TransitionRoute targetPage. */ - public targetPage?: (string|null); + /** + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page + */ + public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.GetPageCallback): void; - /** TransitionRoute targetFlow. */ - public targetFlow?: (string|null); + /** + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @returns Promise + */ + public getPage(request: google.cloud.dialogflow.cx.v3.IGetPageRequest): Promise; - /** TransitionRoute target. */ - public target?: ("targetPage"|"targetFlow"); + /** + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page + */ + public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback): void; /** - * Creates a new TransitionRoute instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionRoute instance + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRoute): google.cloud.dialogflow.cx.v3.TransitionRoute; + public createPage(request: google.cloud.dialogflow.cx.v3.ICreatePageRequest): Promise; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. - * @param message TransitionRoute message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback): void; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. - * @param message TransitionRoute message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public updatePage(request: google.cloud.dialogflow.cx.v3.IUpdatePageRequest): Promise; /** - * Decodes a TransitionRoute message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionRoute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeletePage. + * @param request DeletePageRequest 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.TransitionRoute; + public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback): void; /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionRoute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeletePage. + * @param request DeletePageRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRoute; + public deletePage(request: google.cloud.dialogflow.cx.v3.IDeletePageRequest): Promise; + } + + namespace Pages { /** - * Verifies a TransitionRoute 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.Pages|listPages}. + * @param error Error, if any + * @param [response] ListPagesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListPagesResponse) => void; /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionRoute + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|getPage}. + * @param error Error, if any + * @param [response] Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRoute; + type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; /** - * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. - * @param message TransitionRoute - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|createPage}. + * @param error Error, if any + * @param [response] Page */ - public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; /** - * Converts this TransitionRoute to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|updatePage}. + * @param error Error, if any + * @param [response] Page */ - public toJSON(): { [k: string]: any }; + type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Page) => void; /** - * Gets the default type url for TransitionRoute - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|deletePage}. + * @param error Error, if any + * @param [response] Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a ListPagesRequest. */ - interface IListPagesRequest { + /** Properties of a Page. */ + interface IPage { - /** ListPagesRequest parent */ - parent?: (string|null); + /** Page name */ + name?: (string|null); - /** ListPagesRequest languageCode */ - languageCode?: (string|null); + /** Page displayName */ + displayName?: (string|null); - /** ListPagesRequest pageSize */ - pageSize?: (number|null); + /** Page entryFulfillment */ + entryFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); - /** ListPagesRequest pageToken */ - pageToken?: (string|null); + /** Page form */ + form?: (google.cloud.dialogflow.cx.v3.IForm|null); + + /** Page transitionRouteGroups */ + transitionRouteGroups?: (string[]|null); + + /** Page transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3.ITransitionRoute[]|null); + + /** Page eventHandlers */ + eventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); } - /** Represents a ListPagesRequest. */ - class ListPagesRequest implements IListPagesRequest { + /** Represents a Page. */ + class Page implements IPage { /** - * Constructs a new ListPagesRequest. + * Constructs a new Page. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListPagesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IPage); - /** ListPagesRequest parent. */ - public parent: string; + /** Page name. */ + public name: string; - /** ListPagesRequest languageCode. */ - public languageCode: string; + /** Page displayName. */ + public displayName: string; - /** ListPagesRequest pageSize. */ - public pageSize: number; + /** Page entryFulfillment. */ + public entryFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); - /** ListPagesRequest pageToken. */ - public pageToken: string; + /** Page form. */ + public form?: (google.cloud.dialogflow.cx.v3.IForm|null); + + /** Page transitionRouteGroups. */ + public transitionRouteGroups: string[]; + + /** Page transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3.ITransitionRoute[]; + + /** Page eventHandlers. */ + public eventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; /** - * Creates a new ListPagesRequest instance using the specified properties. + * Creates a new Page instance using the specified properties. * @param [properties] Properties to set - * @returns ListPagesRequest instance + * @returns Page instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListPagesRequest): google.cloud.dialogflow.cx.v3.ListPagesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IPage): google.cloud.dialogflow.cx.v3.Page; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. - * @param message ListPagesRequest message or plain object to encode + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. + * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. - * @param message ListPagesRequest message or plain object to encode + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. + * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPagesRequest message from the specified reader or buffer. + * Decodes a Page message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPagesRequest + * @returns Page * @throws {Error} If the payload is not a reader or 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.ListPagesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Page; /** - * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. + * Decodes a Page message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPagesRequest + * @returns Page * @throws {Error} If the payload is not a 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.ListPagesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Page; /** - * Verifies a ListPagesRequest message. + * Verifies a Page message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Page message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPagesRequest + * @returns Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListPagesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Page; /** - * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. - * @param message ListPagesRequest - * @param [options] Conversion options + * Creates a plain object from a Page message. Also converts values to other types if specified. + * @param message Page + * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPagesRequest to JSON. + * Converts this Page to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPagesRequest + * Gets the default type url for Page * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPagesResponse. */ - interface IListPagesResponse { - - /** ListPagesResponse pages */ - pages?: (google.cloud.dialogflow.cx.v3.IPage[]|null); + /** Properties of a Form. */ + interface IForm { - /** ListPagesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Form parameters */ + parameters?: (google.cloud.dialogflow.cx.v3.Form.IParameter[]|null); } - /** Represents a ListPagesResponse. */ - class ListPagesResponse implements IListPagesResponse { + /** Represents a Form. */ + class Form implements IForm { /** - * Constructs a new ListPagesResponse. + * Constructs a new Form. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListPagesResponse); - - /** ListPagesResponse pages. */ - public pages: google.cloud.dialogflow.cx.v3.IPage[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IForm); - /** ListPagesResponse nextPageToken. */ - public nextPageToken: string; + /** Form parameters. */ + public parameters: google.cloud.dialogflow.cx.v3.Form.IParameter[]; /** - * Creates a new ListPagesResponse instance using the specified properties. + * Creates a new Form instance using the specified properties. * @param [properties] Properties to set - * @returns ListPagesResponse instance + * @returns Form instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListPagesResponse): google.cloud.dialogflow.cx.v3.ListPagesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3.IForm): google.cloud.dialogflow.cx.v3.Form; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. - * @param message ListPagesResponse message or plain object to encode + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. + * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. - * @param message ListPagesResponse message or plain object to encode + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. + * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPagesResponse message from the specified reader or buffer. + * Decodes a Form message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPagesResponse + * @returns Form * @throws {Error} If the payload is not a reader or 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.ListPagesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Form; /** - * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * Decodes a Form message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPagesResponse + * @returns Form * @throws {Error} If the payload is not a 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.ListPagesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Form; /** - * Verifies a ListPagesResponse message. + * Verifies a Form message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Form message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPagesResponse + * @returns Form */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListPagesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form; /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. - * @param message ListPagesResponse + * Creates a plain object from a Form message. Also converts values to other types if specified. + * @param message Form * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPagesResponse to JSON. + * Converts this Form to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPagesResponse + * Gets the default type url for Form * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPageRequest. */ - interface IGetPageRequest { + namespace Form { - /** GetPageRequest name */ + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter displayName */ + displayName?: (string|null); + + /** Parameter required */ + required?: (boolean|null); + + /** Parameter entityType */ + entityType?: (string|null); + + /** Parameter isList */ + isList?: (boolean|null); + + /** Parameter fillBehavior */ + fillBehavior?: (google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null); + + /** Parameter defaultValue */ + defaultValue?: (google.protobuf.IValue|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.Form.IParameter); + + /** Parameter displayName. */ + public displayName: string; + + /** Parameter required. */ + public required: boolean; + + /** Parameter entityType. */ + public entityType: string; + + /** Parameter isList. */ + public isList: boolean; + + /** Parameter fillBehavior. */ + public fillBehavior?: (google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null); + + /** Parameter defaultValue. */ + public defaultValue?: (google.protobuf.IValue|null); + + /** 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.Form.IParameter): google.cloud.dialogflow.cx.v3.Form.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.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.Form.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.Form.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.Form.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.Form.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.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Parameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Parameter { + + /** Properties of a FillBehavior. */ + interface IFillBehavior { + + /** FillBehavior initialPromptFulfillment */ + initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + + /** FillBehavior repromptEventHandlers */ + repromptEventHandlers?: (google.cloud.dialogflow.cx.v3.IEventHandler[]|null); + } + + /** Represents a FillBehavior. */ + class FillBehavior implements IFillBehavior { + + /** + * Constructs a new FillBehavior. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior); + + /** FillBehavior initialPromptFulfillment. */ + public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + + /** FillBehavior repromptEventHandlers. */ + public repromptEventHandlers: google.cloud.dialogflow.cx.v3.IEventHandler[]; + + /** + * Creates a new FillBehavior instance using the specified properties. + * @param [properties] Properties to set + * @returns FillBehavior instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; + + /** + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. + * @param message FillBehavior message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. + * @param message FillBehavior message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FillBehavior message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FillBehavior + * @throws {Error} If the payload is not a reader or 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.Form.Parameter.FillBehavior; + + /** + * Decodes a FillBehavior message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FillBehavior + * @throws {Error} If the payload is not a 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.Form.Parameter.FillBehavior; + + /** + * Verifies a FillBehavior message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FillBehavior + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior; + + /** + * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. + * @param message FillBehavior + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FillBehavior to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FillBehavior + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of an EventHandler. */ + interface IEventHandler { + + /** EventHandler name */ name?: (string|null); - /** GetPageRequest languageCode */ - languageCode?: (string|null); + /** EventHandler event */ + event?: (string|null); + + /** EventHandler triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + + /** EventHandler targetPage */ + targetPage?: (string|null); + + /** EventHandler targetFlow */ + targetFlow?: (string|null); } - /** Represents a GetPageRequest. */ - class GetPageRequest implements IGetPageRequest { + /** Represents an EventHandler. */ + class EventHandler implements IEventHandler { /** - * Constructs a new GetPageRequest. + * Constructs a new EventHandler. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetPageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEventHandler); - /** GetPageRequest name. */ + /** EventHandler name. */ public name: string; - /** GetPageRequest languageCode. */ - public languageCode: string; + /** EventHandler event. */ + public event: string; + + /** EventHandler triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + + /** EventHandler targetPage. */ + public targetPage?: (string|null); + + /** EventHandler targetFlow. */ + public targetFlow?: (string|null); + + /** EventHandler target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Creates a new GetPageRequest instance using the specified properties. + * Creates a new EventHandler instance using the specified properties. * @param [properties] Properties to set - * @returns GetPageRequest instance + * @returns EventHandler instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetPageRequest): google.cloud.dialogflow.cx.v3.GetPageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IEventHandler): google.cloud.dialogflow.cx.v3.EventHandler; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. - * @param message GetPageRequest message or plain object to encode + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. + * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. - * @param message GetPageRequest message or plain object to encode + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. + * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPageRequest message from the specified reader or buffer. + * Decodes an EventHandler message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPageRequest + * @returns EventHandler * @throws {Error} If the payload is not a reader or 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.GetPageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EventHandler; /** - * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * Decodes an EventHandler message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPageRequest + * @returns EventHandler * @throws {Error} If the payload is not a 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.GetPageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EventHandler; /** - * Verifies a GetPageRequest message. + * Verifies an EventHandler message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPageRequest + * @returns EventHandler */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetPageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EventHandler; /** - * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. - * @param message GetPageRequest + * Creates a plain object from an EventHandler message. Also converts values to other types if specified. + * @param message EventHandler * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPageRequest to JSON. + * Converts this EventHandler to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPageRequest + * Gets the default type url for EventHandler * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePageRequest. */ - interface ICreatePageRequest { + /** Properties of a TransitionRoute. */ + interface ITransitionRoute { - /** CreatePageRequest parent */ - parent?: (string|null); + /** TransitionRoute name */ + name?: (string|null); - /** CreatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** TransitionRoute intent */ + intent?: (string|null); - /** CreatePageRequest languageCode */ - languageCode?: (string|null); + /** TransitionRoute condition */ + condition?: (string|null); + + /** TransitionRoute triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + + /** TransitionRoute targetPage */ + targetPage?: (string|null); + + /** TransitionRoute targetFlow */ + targetFlow?: (string|null); } - /** Represents a CreatePageRequest. */ - class CreatePageRequest implements ICreatePageRequest { + /** Represents a TransitionRoute. */ + class TransitionRoute implements ITransitionRoute { /** - * Constructs a new CreatePageRequest. + * Constructs a new TransitionRoute. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreatePageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.ITransitionRoute); - /** CreatePageRequest parent. */ - public parent: string; + /** TransitionRoute name. */ + public name: string; - /** CreatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3.IPage|null); + /** TransitionRoute intent. */ + public intent: string; - /** CreatePageRequest languageCode. */ - public languageCode: string; + /** TransitionRoute condition. */ + public condition: string; + + /** TransitionRoute triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3.IFulfillment|null); + + /** TransitionRoute targetPage. */ + public targetPage?: (string|null); + + /** TransitionRoute targetFlow. */ + public targetFlow?: (string|null); + + /** TransitionRoute target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Creates a new CreatePageRequest instance using the specified properties. + * Creates a new TransitionRoute instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePageRequest instance + * @returns TransitionRoute instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreatePageRequest): google.cloud.dialogflow.cx.v3.CreatePageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.ITransitionRoute): google.cloud.dialogflow.cx.v3.TransitionRoute; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. - * @param message CreatePageRequest message or plain object to encode + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. + * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. - * @param message CreatePageRequest message or plain object to encode + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. + * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePageRequest message from the specified reader or buffer. + * Decodes a TransitionRoute message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePageRequest + * @returns TransitionRoute * @throws {Error} If the payload is not a reader or 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.CreatePageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.TransitionRoute; /** - * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePageRequest + * @returns TransitionRoute * @throws {Error} If the payload is not a 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.CreatePageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.TransitionRoute; /** - * Verifies a CreatePageRequest message. + * Verifies a TransitionRoute message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePageRequest + * @returns TransitionRoute */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreatePageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.TransitionRoute; + + /** + * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * @param message TransitionRoute + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TransitionRoute to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TransitionRoute + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPagesRequest. */ + interface IListPagesRequest { + + /** ListPagesRequest parent */ + parent?: (string|null); + + /** ListPagesRequest languageCode */ + languageCode?: (string|null); + + /** ListPagesRequest pageSize */ + pageSize?: (number|null); + + /** ListPagesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListPagesRequest. */ + class ListPagesRequest implements IListPagesRequest { + + /** + * Constructs a new ListPagesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListPagesRequest); + + /** ListPagesRequest parent. */ + public parent: string; + + /** ListPagesRequest languageCode. */ + public languageCode: string; + + /** ListPagesRequest pageSize. */ + public pageSize: number; + + /** ListPagesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListPagesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPagesRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListPagesRequest): google.cloud.dialogflow.cx.v3.ListPagesRequest; + + /** + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. + * @param message ListPagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. + * @param message ListPagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPagesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPagesRequest + * @throws {Error} If the payload is not a reader or 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.ListPagesRequest; + + /** + * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPagesRequest + * @throws {Error} If the payload is not a 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.ListPagesRequest; + + /** + * Verifies a ListPagesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPagesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListPagesRequest; + + /** + * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. + * @param message ListPagesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPagesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPagesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPagesResponse. */ + interface IListPagesResponse { + + /** ListPagesResponse pages */ + pages?: (google.cloud.dialogflow.cx.v3.IPage[]|null); + + /** ListPagesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPagesResponse. */ + class ListPagesResponse implements IListPagesResponse { + + /** + * Constructs a new ListPagesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListPagesResponse); + + /** ListPagesResponse pages. */ + public pages: google.cloud.dialogflow.cx.v3.IPage[]; + + /** ListPagesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListPagesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPagesResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListPagesResponse): google.cloud.dialogflow.cx.v3.ListPagesResponse; + + /** + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. + * @param message ListPagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. + * @param message ListPagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPagesResponse + * @throws {Error} If the payload is not a reader or 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.ListPagesResponse; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPagesResponse + * @throws {Error} If the payload is not a 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.ListPagesResponse; + + /** + * Verifies a ListPagesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPagesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListPagesResponse; + + /** + * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * @param message ListPagesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPagesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPagesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPageRequest. */ + interface IGetPageRequest { + + /** GetPageRequest name */ + name?: (string|null); + + /** GetPageRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetPageRequest. */ + class GetPageRequest implements IGetPageRequest { + + /** + * Constructs a new GetPageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetPageRequest); + + /** GetPageRequest name. */ + public name: string; + + /** GetPageRequest languageCode. */ + public languageCode: string; + + /** + * Creates a new GetPageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPageRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetPageRequest): google.cloud.dialogflow.cx.v3.GetPageRequest; + + /** + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. + * @param message GetPageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. + * @param message GetPageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPageRequest + * @throws {Error} If the payload is not a reader or 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.GetPageRequest; + + /** + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPageRequest + * @throws {Error} If the payload is not a 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.GetPageRequest; + + /** + * Verifies a GetPageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetPageRequest; + + /** + * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. + * @param message GetPageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPageRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreatePageRequest. */ + interface ICreatePageRequest { + + /** CreatePageRequest parent */ + parent?: (string|null); + + /** CreatePageRequest page */ + page?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** CreatePageRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a CreatePageRequest. */ + class CreatePageRequest implements ICreatePageRequest { + + /** + * Constructs a new CreatePageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreatePageRequest); + + /** CreatePageRequest parent. */ + public parent: string; + + /** CreatePageRequest page. */ + public page?: (google.cloud.dialogflow.cx.v3.IPage|null); + + /** CreatePageRequest languageCode. */ + public languageCode: string; + + /** + * Creates a new CreatePageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePageRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreatePageRequest): google.cloud.dialogflow.cx.v3.CreatePageRequest; + + /** + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. + * @param message CreatePageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. + * @param message CreatePageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePageRequest + * @throws {Error} If the payload is not a reader or 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.CreatePageRequest; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePageRequest + * @throws {Error} If the payload is not a 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.CreatePageRequest; + + /** + * Verifies a CreatePageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreatePageRequest; /** * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. @@ -7351,2999 +8176,2380 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 + /** Represents a Changelogs */ + class Changelogs extends $protobuf.rpc.Service { + + /** + * 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; } - /** SpeechModelVariant enum. */ - enum SpeechModelVariant { - SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, - USE_BEST_AVAILABLE = 1, - USE_STANDARD = 2, - USE_ENHANCED = 3 + namespace Changelogs { + + /** + * 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 SpeechWordInfo. */ - interface ISpeechWordInfo { + /** Properties of a ListChangelogsRequest. */ + interface IListChangelogsRequest { - /** SpeechWordInfo word */ - word?: (string|null); + /** ListChangelogsRequest parent */ + parent?: (string|null); - /** SpeechWordInfo startOffset */ - startOffset?: (google.protobuf.IDuration|null); + /** ListChangelogsRequest filter */ + filter?: (string|null); - /** SpeechWordInfo endOffset */ - endOffset?: (google.protobuf.IDuration|null); + /** ListChangelogsRequest pageSize */ + pageSize?: (number|null); - /** SpeechWordInfo confidence */ - confidence?: (number|null); + /** ListChangelogsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a SpeechWordInfo. */ - class SpeechWordInfo implements ISpeechWordInfo { + /** Represents a ListChangelogsRequest. */ + class ListChangelogsRequest implements IListChangelogsRequest { /** - * Constructs a new SpeechWordInfo. + * Constructs a new ListChangelogsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISpeechWordInfo); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest); - /** SpeechWordInfo word. */ - public word: string; + /** ListChangelogsRequest parent. */ + public parent: string; - /** SpeechWordInfo startOffset. */ - public startOffset?: (google.protobuf.IDuration|null); + /** ListChangelogsRequest filter. */ + public filter: string; - /** SpeechWordInfo endOffset. */ - public endOffset?: (google.protobuf.IDuration|null); + /** ListChangelogsRequest pageSize. */ + public pageSize: number; - /** SpeechWordInfo confidence. */ - public confidence: number; + /** ListChangelogsRequest pageToken. */ + public pageToken: string; /** - * Creates a new SpeechWordInfo instance using the specified properties. + * Creates a new ListChangelogsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SpeechWordInfo instance + * @returns ListChangelogsRequest 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.IListChangelogsRequest): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * 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 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.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, 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 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.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SpeechWordInfo 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 SpeechWordInfo + * @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.SpeechWordInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * Decodes a SpeechWordInfo 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 SpeechWordInfo + * @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.SpeechWordInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; /** - * Verifies a SpeechWordInfo 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 SpeechWordInfo 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 SpeechWordInfo + * @returns ListChangelogsRequest */ - 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.ListChangelogsRequest; /** - * 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 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.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SpeechWordInfo to JSON. + * Converts this ListChangelogsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SpeechWordInfo + * Gets the default type url for ListChangelogsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InputAudioConfig. */ - interface IInputAudioConfig { - - /** InputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3.AudioEncoding|null); - - /** InputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); - - /** InputAudioConfig enableWordInfo */ - enableWordInfo?: (boolean|null); - - /** InputAudioConfig phraseHints */ - phraseHints?: (string[]|null); - - /** InputAudioConfig model */ - model?: (string|null); + /** Properties of a ListChangelogsResponse. */ + interface IListChangelogsResponse { - /** InputAudioConfig modelVariant */ - modelVariant?: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant|null); + /** ListChangelogsResponse changelogs */ + changelogs?: (google.cloud.dialogflow.cx.v3.IChangelog[]|null); - /** InputAudioConfig singleUtterance */ - singleUtterance?: (boolean|null); + /** ListChangelogsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an InputAudioConfig. */ - class InputAudioConfig implements IInputAudioConfig { + /** Represents a ListChangelogsResponse. */ + class ListChangelogsResponse implements IListChangelogsResponse { /** - * Constructs a new InputAudioConfig. + * Constructs a new ListChangelogsResponse. * @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); - - /** InputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; - - /** InputAudioConfig enableWordInfo. */ - public enableWordInfo: boolean; - - /** InputAudioConfig phraseHints. */ - public phraseHints: string[]; - - /** InputAudioConfig model. */ - public model: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsResponse); - /** InputAudioConfig modelVariant. */ - public modelVariant: (google.cloud.dialogflow.cx.v3.SpeechModelVariant|keyof typeof google.cloud.dialogflow.cx.v3.SpeechModelVariant); + /** ListChangelogsResponse changelogs. */ + public changelogs: google.cloud.dialogflow.cx.v3.IChangelog[]; - /** InputAudioConfig singleUtterance. */ - public singleUtterance: boolean; + /** ListChangelogsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new InputAudioConfig instance using the specified properties. + * Creates a new ListChangelogsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns InputAudioConfig instance + * @returns ListChangelogsResponse 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.IListChangelogsResponse): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; /** - * 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 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.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListChangelogsResponse, 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 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.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputAudioConfig message from the specified reader or buffer. + * 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 InputAudioConfig + * @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 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.ListChangelogsResponse; /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a ListChangelogsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InputAudioConfig + * @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.InputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListChangelogsResponse; /** - * Verifies an InputAudioConfig message. + * 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); /** - * Creates an InputAudioConfig 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. * @param object Plain object - * @returns InputAudioConfig + * @returns ListChangelogsResponse */ - 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.ListChangelogsResponse; /** - * 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 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.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputAudioConfig to JSON. + * Converts this ListChangelogsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InputAudioConfig + * Gets the default type url for ListChangelogsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** SsmlVoiceGender enum. */ - enum SsmlVoiceGender { - SSML_VOICE_GENDER_UNSPECIFIED = 0, - SSML_VOICE_GENDER_MALE = 1, - SSML_VOICE_GENDER_FEMALE = 2, - SSML_VOICE_GENDER_NEUTRAL = 3 - } - - /** Properties of a VoiceSelectionParams. */ - interface IVoiceSelectionParams { + /** Properties of a GetChangelogRequest. */ + interface IGetChangelogRequest { - /** VoiceSelectionParams name */ + /** GetChangelogRequest name */ name?: (string|null); - - /** VoiceSelectionParams ssmlGender */ - ssmlGender?: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null); } - /** Represents a VoiceSelectionParams. */ - class VoiceSelectionParams implements IVoiceSelectionParams { + /** Represents a GetChangelogRequest. */ + class GetChangelogRequest implements IGetChangelogRequest { /** - * Constructs a new VoiceSelectionParams. + * Constructs a new GetChangelogRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IVoiceSelectionParams); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest); - /** VoiceSelectionParams name. */ + /** GetChangelogRequest name. */ public name: string; - /** VoiceSelectionParams ssmlGender. */ - public ssmlGender: (google.cloud.dialogflow.cx.v3.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3.SsmlVoiceGender); - /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new GetChangelogRequest instance using the specified properties. * @param [properties] Properties to set - * @returns VoiceSelectionParams instance + * @returns GetChangelogRequest 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.IGetChangelogRequest): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * 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 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.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, 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 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.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VoiceSelectionParams 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 VoiceSelectionParams + * @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.VoiceSelectionParams; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * Decodes a VoiceSelectionParams 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 VoiceSelectionParams + * @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.VoiceSelectionParams; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetChangelogRequest; /** - * Verifies a VoiceSelectionParams 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 VoiceSelectionParams 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 VoiceSelectionParams + * @returns GetChangelogRequest */ - 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.GetChangelogRequest; /** - * 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 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.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this GetChangelogRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VoiceSelectionParams + * Gets the default type url for GetChangelogRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SynthesizeSpeechConfig. */ - interface ISynthesizeSpeechConfig { + /** Properties of a Changelog. */ + interface IChangelog { - /** SynthesizeSpeechConfig speakingRate */ - speakingRate?: (number|null); + /** Changelog name */ + name?: (string|null); - /** SynthesizeSpeechConfig pitch */ - pitch?: (number|null); + /** Changelog userEmail */ + userEmail?: (string|null); - /** SynthesizeSpeechConfig volumeGainDb */ - volumeGainDb?: (number|null); + /** Changelog displayName */ + displayName?: (string|null); - /** SynthesizeSpeechConfig effectsProfileId */ - effectsProfileId?: (string[]|null); + /** Changelog action */ + action?: (string|null); - /** SynthesizeSpeechConfig voice */ - voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); + /** Changelog type */ + type?: (string|null); + + /** Changelog resource */ + resource?: (string|null); + + /** Changelog createTime */ + createTime?: (google.protobuf.ITimestamp|null); } - /** Represents a SynthesizeSpeechConfig. */ - class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { + /** Represents a Changelog. */ + class Changelog implements IChangelog { /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new Changelog. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3.IChangelog); - /** SynthesizeSpeechConfig speakingRate. */ - public speakingRate: number; + /** Changelog name. */ + public name: string; - /** SynthesizeSpeechConfig pitch. */ - public pitch: number; + /** Changelog userEmail. */ + public userEmail: string; - /** SynthesizeSpeechConfig volumeGainDb. */ - public volumeGainDb: number; + /** Changelog displayName. */ + public displayName: string; - /** SynthesizeSpeechConfig effectsProfileId. */ - public effectsProfileId: string[]; + /** Changelog action. */ + public action: string; - /** SynthesizeSpeechConfig voice. */ - public voice?: (google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null); + /** Changelog type. */ + public type: string; + + /** Changelog resource. */ + public resource: string; + + /** Changelog createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new Changelog instance using the specified properties. * @param [properties] Properties to set - * @returns SynthesizeSpeechConfig instance + * @returns Changelog 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.IChangelog): google.cloud.dialogflow.cx.v3.Changelog; /** - * 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 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.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IChangelog, 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 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.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Changelog; /** - * Decodes a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Changelog; /** - * Verifies a SynthesizeSpeechConfig 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 SynthesizeSpeechConfig 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 SynthesizeSpeechConfig + * @returns Changelog */ - 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.Changelog; /** - * 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 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.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this Changelog to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SynthesizeSpeechConfig + * Gets the default type url for Changelog * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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); - - /** OutputAudioConfig synthesizeSpeechConfig */ - synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); - } - - /** Represents an OutputAudioConfig. */ - class OutputAudioConfig implements IOutputAudioConfig { + /** Represents a Deployments */ + class Deployments extends $protobuf.rpc.Service { /** - * Constructs a new OutputAudioConfig. - * @param [properties] Properties to set + * 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(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; - - /** OutputAudioConfig synthesizeSpeechConfig. */ - public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new OutputAudioConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputAudioConfig instance + * 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(properties?: google.cloud.dialogflow.cx.v3.IOutputAudioConfig): google.cloud.dialogflow.cx.v3.OutputAudioConfig; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments; /** - * 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 + * 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; + + /** + * Calls ListDeployments. + * @param request ListDeploymentsRequest message or plain object + * @returns Promise + */ + public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): Promise; + + /** + * 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; + + /** + * Calls GetDeployment. + * @param request GetDeploymentRequest message or plain object + * @returns Promise + */ + public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): Promise; + } + + 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; + } + + /** 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 Deployment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployment); + + /** Deployment 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); + + /** + * Creates a new Deployment instance using the specified properties. + * @param [properties] Properties to set + * @returns Deployment instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IDeployment): google.cloud.dialogflow.cx.v3.Deployment; + + /** + * 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.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeployment, 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 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.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputAudioConfig 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 OutputAudioConfig + * @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.OutputAudioConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Deployment; /** - * Decodes an OutputAudioConfig 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 OutputAudioConfig + * @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.OutputAudioConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Deployment; /** - * Verifies an OutputAudioConfig 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 OutputAudioConfig 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 OutputAudioConfig + * @returns Deployment */ - 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.Deployment; /** - * 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 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.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this Deployment to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputAudioConfig + * Gets the default type url for Deployment * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Changelogs */ - class Changelogs extends $protobuf.rpc.Service { + namespace Deployment { - /** - * 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); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + RUNNING = 1, + SUCCEEDED = 2, + FAILED = 3 + } - /** - * 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; + /** Properties of a Result. */ + interface IResult { - /** - * 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; + /** Result deploymentTestResults */ + deploymentTestResults?: (string[]|null); - /** - * Calls ListChangelogs. - * @param request ListChangelogsRequest message or plain object - * @returns Promise - */ - public listChangelogs(request: google.cloud.dialogflow.cx.v3.IListChangelogsRequest): Promise; + /** Result experiment */ + experiment?: (string|null); + } - /** - * 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; + /** Represents a Result. */ + class Result implements IResult { - /** - * Calls GetChangelog. - * @param request GetChangelogRequest message or plain object - * @returns Promise - */ - public getChangelog(request: google.cloud.dialogflow.cx.v3.IGetChangelogRequest): Promise; - } + /** + * Constructs a new Result. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult); - namespace Changelogs { + /** Result deploymentTestResults. */ + public deploymentTestResults: string[]; - /** - * 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; + /** Result experiment. */ + public experiment: string; - /** - * 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; + /** + * 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 }; + + /** + * Gets the default type url for Result + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a ListChangelogsRequest. */ - interface IListChangelogsRequest { + /** Properties of a ListDeploymentsRequest. */ + interface IListDeploymentsRequest { - /** ListChangelogsRequest parent */ + /** ListDeploymentsRequest parent */ parent?: (string|null); - /** ListChangelogsRequest filter */ - filter?: (string|null); - - /** ListChangelogsRequest pageSize */ + /** ListDeploymentsRequest pageSize */ pageSize?: (number|null); - /** ListChangelogsRequest pageToken */ + /** ListDeploymentsRequest pageToken */ pageToken?: (string|null); } - /** Represents a ListChangelogsRequest. */ - class ListChangelogsRequest implements IListChangelogsRequest { + /** Represents a ListDeploymentsRequest. */ + class ListDeploymentsRequest implements IListDeploymentsRequest { /** - * Constructs a new ListChangelogsRequest. + * Constructs a new ListDeploymentsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest); - /** ListChangelogsRequest parent. */ + /** ListDeploymentsRequest parent. */ public parent: string; - /** ListChangelogsRequest filter. */ - public filter: string; - - /** ListChangelogsRequest pageSize. */ + /** ListDeploymentsRequest pageSize. */ public pageSize: number; - /** ListChangelogsRequest pageToken. */ + /** ListDeploymentsRequest pageToken. */ public pageToken: string; /** - * Creates a new ListChangelogsRequest instance using the specified properties. + * Creates a new ListDeploymentsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListChangelogsRequest instance + * @returns ListDeploymentsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsRequest): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * 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 + * 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.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IListChangelogsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListChangelogsRequest 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 ListChangelogsRequest + * @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.ListChangelogsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Decodes a ListChangelogsRequest 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 ListChangelogsRequest + * @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.ListChangelogsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Verifies a ListChangelogsRequest 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 ListChangelogsRequest 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 ListChangelogsRequest + * @returns ListDeploymentsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListChangelogsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; /** - * Creates a plain object from a ListChangelogsRequest message. Also converts values to other types if specified. - * @param message ListChangelogsRequest + * 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.ListChangelogsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListChangelogsRequest to JSON. + * Converts this ListDeploymentsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListChangelogsRequest + * Gets the default type url for ListDeploymentsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListChangelogsResponse. */ - interface IListChangelogsResponse { + /** Properties of a ListDeploymentsResponse. */ + interface IListDeploymentsResponse { - /** ListChangelogsResponse changelogs */ - changelogs?: (google.cloud.dialogflow.cx.v3.IChangelog[]|null); + /** ListDeploymentsResponse deployments */ + deployments?: (google.cloud.dialogflow.cx.v3.IDeployment[]|null); - /** ListChangelogsResponse nextPageToken */ + /** ListDeploymentsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListChangelogsResponse. */ - class ListChangelogsResponse implements IListChangelogsResponse { + /** Represents a ListDeploymentsResponse. */ + class ListDeploymentsResponse implements IListDeploymentsResponse { /** - * Constructs a new ListChangelogsResponse. + * Constructs a new ListDeploymentsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListChangelogsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse); - /** ListChangelogsResponse changelogs. */ - public changelogs: google.cloud.dialogflow.cx.v3.IChangelog[]; + /** ListDeploymentsResponse deployments. */ + public deployments: google.cloud.dialogflow.cx.v3.IDeployment[]; - /** ListChangelogsResponse nextPageToken. */ + /** ListDeploymentsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListChangelogsResponse instance using the specified properties. + * Creates a new ListDeploymentsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListChangelogsResponse instance + * @returns ListDeploymentsResponse 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.IListDeploymentsResponse): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * 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 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.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, 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 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.IListChangelogsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListChangelogsResponse 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 ListChangelogsResponse + * @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.ListChangelogsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * Decodes a ListChangelogsResponse 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 ListChangelogsResponse + * @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.ListChangelogsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListDeploymentsResponse; /** - * Verifies a ListChangelogsResponse 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 ListChangelogsResponse 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 ListChangelogsResponse + * @returns ListDeploymentsResponse */ - 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.ListDeploymentsResponse; /** - * Creates a plain object from a ListChangelogsResponse message. Also converts values to other types if specified. - * @param message ListChangelogsResponse + * 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.ListChangelogsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListChangelogsResponse to JSON. + * Converts this ListDeploymentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListChangelogsResponse + * Gets the default type url for ListDeploymentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetChangelogRequest. */ - interface IGetChangelogRequest { + /** Properties of a GetDeploymentRequest. */ + interface IGetDeploymentRequest { - /** GetChangelogRequest name */ + /** GetDeploymentRequest name */ name?: (string|null); } - /** Represents a GetChangelogRequest. */ - class GetChangelogRequest implements IGetChangelogRequest { + /** Represents a GetDeploymentRequest. */ + class GetDeploymentRequest implements IGetDeploymentRequest { /** - * Constructs a new GetChangelogRequest. + * Constructs a new GetDeploymentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest); - /** GetChangelogRequest name. */ + /** GetDeploymentRequest name. */ public name: string; /** - * Creates a new GetChangelogRequest instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetChangelogRequest instance + * @returns GetDeploymentRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetChangelogRequest): google.cloud.dialogflow.cx.v3.GetChangelogRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * 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 + * 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.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IGetChangelogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetChangelogRequest 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 GetChangelogRequest + * @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.GetChangelogRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Decodes a GetChangelogRequest 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 GetChangelogRequest + * @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.GetChangelogRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Verifies a GetChangelogRequest 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 a GetChangelogRequest 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 GetChangelogRequest + * @returns GetDeploymentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetChangelogRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetDeploymentRequest; /** - * Creates a plain object from a GetChangelogRequest message. Also converts values to other types if specified. - * @param message GetChangelogRequest + * 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.GetChangelogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetChangelogRequest to JSON. + * Converts this GetDeploymentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetChangelogRequest + * Gets the default type url for GetDeploymentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Changelog. */ - interface IChangelog { - - /** Changelog name */ - name?: (string|null); - - /** Changelog userEmail */ - userEmail?: (string|null); - - /** Changelog displayName */ - displayName?: (string|null); - - /** Changelog action */ - action?: (string|null); - - /** Changelog type */ - type?: (string|null); - - /** Changelog resource */ - resource?: (string|null); - - /** Changelog createTime */ - createTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a Changelog. */ - class Changelog implements IChangelog { - - /** - * Constructs a new Changelog. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IChangelog); - - /** Changelog name. */ - public name: string; - - /** Changelog userEmail. */ - public userEmail: string; - - /** Changelog displayName. */ - public displayName: string; - - /** Changelog action. */ - public action: string; - - /** Changelog type. */ - public type: string; - - /** Changelog resource. */ - public resource: string; - - /** Changelog createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Represents an EntityTypes */ + class EntityTypes extends $protobuf.rpc.Service { /** - * Creates a new Changelog instance using the specified properties. - * @param [properties] Properties to set - * @returns Changelog instance + * 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 */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IChangelog): google.cloud.dialogflow.cx.v3.Changelog; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * 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 + * 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 encode(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EntityTypes; /** - * 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 + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IChangelog, writer?: $protobuf.Writer): $protobuf.Writer; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback): void; /** - * 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 Changelog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.Changelog; + public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): Promise; /** - * Decodes a Changelog message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Changelog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.Changelog; + public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback): void; /** - * Verifies a Changelog message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): Promise; /** - * Creates a Changelog message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Changelog + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Changelog; + public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback): void; /** - * 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 + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3.Changelog, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): Promise; /** - * Converts this Changelog to JSON. - * @returns JSON object + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public toJSON(): { [k: string]: any }; + public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback): void; /** - * Gets the default type url for Changelog - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Represents a Deployments */ - class Deployments extends $protobuf.rpc.Service { + public updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): Promise; /** - * 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 + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback): void; /** - * 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. + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Deployments; + public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): Promise; + } - /** - * 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; + namespace EntityTypes { /** - * Calls ListDeployments. - * @param request ListDeploymentsRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse */ - public listDeployments(request: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): Promise; + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) => void; /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Deployment + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|getEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest, callback: google.cloud.dialogflow.cx.v3.Deployments.GetDeploymentCallback): void; + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Calls GetDeployment. - * @param request GetDeploymentRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|createEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public getDeployment(request: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest): Promise; - } - - namespace Deployments { + type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments|listDeployments}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|updateEntityType}. * @param error Error, if any - * @param [response] ListDeploymentsResponse + * @param [response] EntityType */ - type ListDeploymentsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) => void; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Deployments|getDeployment}. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|deleteEntityType}. * @param error Error, if any - * @param [response] Deployment + * @param [response] Empty */ - type GetDeploymentCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.Deployment) => void; + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a Deployment. */ - interface IDeployment { + /** Properties of an EntityType. */ + interface IEntityType { - /** Deployment name */ + /** EntityType name */ name?: (string|null); - /** Deployment flowVersion */ - flowVersion?: (string|null); + /** EntityType displayName */ + displayName?: (string|null); - /** Deployment state */ - state?: (google.cloud.dialogflow.cx.v3.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3.Deployment.State|null); + /** EntityType kind */ + kind?: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind|null); - /** Deployment result */ - result?: (google.cloud.dialogflow.cx.v3.Deployment.IResult|null); + /** EntityType autoExpansionMode */ + autoExpansionMode?: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|null); - /** Deployment startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** EntityType entities */ + entities?: (google.cloud.dialogflow.cx.v3.EntityType.IEntity[]|null); - /** Deployment endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** EntityType excludedPhrases */ + excludedPhrases?: (google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]|null); + + /** EntityType enableFuzzyExtraction */ + enableFuzzyExtraction?: (boolean|null); + + /** EntityType redact */ + redact?: (boolean|null); } - /** Represents a Deployment. */ - class Deployment implements IDeployment { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new Deployment. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeployment); + constructor(properties?: google.cloud.dialogflow.cx.v3.IEntityType); - /** Deployment name. */ + /** EntityType name. */ public name: string; - /** Deployment flowVersion. */ - public flowVersion: string; + /** EntityType displayName. */ + public displayName: string; - /** Deployment state. */ - public state: (google.cloud.dialogflow.cx.v3.Deployment.State|keyof typeof google.cloud.dialogflow.cx.v3.Deployment.State); + /** EntityType kind. */ + public kind: (google.cloud.dialogflow.cx.v3.EntityType.Kind|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.Kind); - /** Deployment result. */ - public result?: (google.cloud.dialogflow.cx.v3.Deployment.IResult|null); + /** EntityType autoExpansionMode. */ + public autoExpansionMode: (google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode|keyof typeof google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode); - /** Deployment startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** EntityType entities. */ + public entities: google.cloud.dialogflow.cx.v3.EntityType.IEntity[]; - /** Deployment endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** EntityType excludedPhrases. */ + public excludedPhrases: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]; + + /** EntityType enableFuzzyExtraction. */ + public enableFuzzyExtraction: boolean; + + /** EntityType redact. */ + public redact: boolean; /** - * Creates a new Deployment instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns Deployment instance + * @returns EntityType 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.IEntityType): google.cloud.dialogflow.cx.v3.EntityType; /** - * 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 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.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IEntityType, 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 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.IDeployment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Deployment 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 Deployment + * @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.Deployment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType; /** - * Decodes a Deployment 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 Deployment + * @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.Deployment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType; /** - * Verifies a Deployment 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 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. * @param object Plain object - * @returns Deployment + * @returns EntityType */ - 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.EntityType; /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. - * @param message Deployment + * 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.Deployment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Deployment to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Deployment + * Gets the default type url for EntityType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Deployment { + namespace EntityType { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - RUNNING = 1, - SUCCEEDED = 2, - FAILED = 3 + /** Kind enum. */ + enum Kind { + KIND_UNSPECIFIED = 0, + KIND_MAP = 1, + KIND_LIST = 2, + KIND_REGEXP = 3 } - /** Properties of a Result. */ - interface IResult { + /** AutoExpansionMode enum. */ + enum AutoExpansionMode { + AUTO_EXPANSION_MODE_UNSPECIFIED = 0, + AUTO_EXPANSION_MODE_DEFAULT = 1 + } - /** Result deploymentTestResults */ - deploymentTestResults?: (string[]|null); + /** Properties of an Entity. */ + interface IEntity { - /** Result experiment */ - experiment?: (string|null); + /** Entity value */ + value?: (string|null); + + /** Entity synonyms */ + synonyms?: (string[]|null); } - /** Represents a Result. */ - class Result implements IResult { + /** Represents an Entity. */ + class Entity implements IEntity { /** - * Constructs a new Result. + * Constructs a new Entity. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult); + constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity); - /** Result deploymentTestResults. */ - public deploymentTestResults: string[]; + /** Entity value. */ + public value: string; - /** Result experiment. */ - public experiment: string; + /** Entity synonyms. */ + public synonyms: string[]; /** - * Creates a new Result instance using the specified properties. + * Creates a new Entity instance using the specified properties. * @param [properties] Properties to set - * @returns Result instance + * @returns Entity instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3.Deployment.IResult): google.cloud.dialogflow.cx.v3.Deployment.Result; + public static create(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** - * 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 + * 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.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, 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 + * 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.Deployment.IResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.EntityType.IEntity, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Result message from the specified reader or buffer. + * 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 Result + * @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.Deployment.Result; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an Entity message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Result + * @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.Deployment.Result; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** - * Verifies a Result message. + * 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); /** - * 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. * @param object Plain object - * @returns Result + * @returns Entity */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.Deployment.Result; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.EntityType.Entity; /** - * Creates a plain object from a Result message. Also converts values to other types if specified. - * @param message Result + * 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.Deployment.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.EntityType.Entity, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Result to JSON. + * Converts this Entity to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Result + * Gets the default type url for Entity * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a ListDeploymentsRequest. */ - interface IListDeploymentsRequest { + /** Properties of an ExcludedPhrase. */ + interface IExcludedPhrase { - /** ListDeploymentsRequest parent */ - parent?: (string|null); + /** ExcludedPhrase value */ + value?: (string|null); + } - /** ListDeploymentsRequest pageSize */ - pageSize?: (number|null); + /** Represents an ExcludedPhrase. */ + class ExcludedPhrase implements IExcludedPhrase { - /** ListDeploymentsRequest pageToken */ - pageToken?: (string|null); - } + /** + * Constructs a new ExcludedPhrase. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase); - /** Represents a ListDeploymentsRequest. */ - class ListDeploymentsRequest implements IListDeploymentsRequest { + /** ExcludedPhrase value. */ + public value: string; - /** - * Constructs a new ListDeploymentsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest); + /** + * 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; - /** ListDeploymentsRequest parent. */ - public parent: string; + /** + * 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; - /** ListDeploymentsRequest pageSize. */ - public pageSize: number; + /** + * 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; - /** ListDeploymentsRequest pageToken. */ - public pageToken: string; + /** + * 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; - /** - * Creates a new ListDeploymentsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListDeploymentsRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsRequest): google.cloud.dialogflow.cx.v3.ListDeploymentsRequest; + /** + * 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 }; + + /** + * Gets the default type url for ExcludedPhrase + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { + + /** ListEntityTypesRequest parent */ + parent?: (string|null); + + /** ListEntityTypesRequest languageCode */ + languageCode?: (string|null); + + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); + + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { /** - * 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 + * Constructs a new ListEntityTypesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest); + + /** ListEntityTypesRequest parent. */ + public parent: string; + + /** ListEntityTypesRequest languageCode. */ + public languageCode: string; + + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; + + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListEntityTypesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; + + /** + * 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.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, 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 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.IListDeploymentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsRequest 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 ListDeploymentsRequest + * @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.ListDeploymentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Decodes a ListDeploymentsRequest 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 ListDeploymentsRequest + * @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.ListDeploymentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesRequest; /** - * Verifies a ListDeploymentsRequest 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 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. * @param object Plain object - * @returns ListDeploymentsRequest + * @returns ListEntityTypesRequest */ - 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.ListEntityTypesRequest; /** - * 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 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.ListDeploymentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this ListEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentsRequest + * Gets the default type url for ListEntityTypesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentsResponse. */ - interface IListDeploymentsResponse { + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { - /** ListDeploymentsResponse deployments */ - deployments?: (google.cloud.dialogflow.cx.v3.IDeployment[]|null); + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.dialogflow.cx.v3.IEntityType[]|null); - /** ListDeploymentsResponse nextPageToken */ + /** ListEntityTypesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListDeploymentsResponse. */ - class ListDeploymentsResponse implements IListDeploymentsResponse { + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new ListDeploymentsResponse. + * Constructs a new ListEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse); - /** ListDeploymentsResponse deployments. */ - public deployments: google.cloud.dialogflow.cx.v3.IDeployment[]; + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.dialogflow.cx.v3.IEntityType[]; - /** ListDeploymentsResponse nextPageToken. */ + /** ListEntityTypesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListDeploymentsResponse instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentsResponse instance + * @returns ListEntityTypesResponse 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.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; /** - * 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 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 static encode(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, 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 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 static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListDeploymentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer. + * 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 ListDeploymentsResponse + * @returns ListEntityTypesResponse * @throws {Error} If the payload is not a reader or 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.ListEntityTypesResponse; /** - * Decodes a ListDeploymentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentsResponse + * @returns ListEntityTypesResponse * @throws {Error} If the payload is not a 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.ListEntityTypesResponse; /** - * Verifies a ListDeploymentsResponse message. + * 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); /** - * 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. * @param object Plain object - * @returns ListDeploymentsResponse + * @returns ListEntityTypesResponse */ - 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.ListEntityTypesResponse; /** - * Creates a plain object from a ListDeploymentsResponse message. Also converts values to other types if specified. - * @param message ListDeploymentsResponse + * 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 */ - 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.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentsResponse to JSON. + * Converts this ListEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentsResponse + * Gets the default type url for ListEntityTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDeploymentRequest. */ - interface IGetDeploymentRequest { + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** GetDeploymentRequest name */ + /** GetEntityTypeRequest name */ name?: (string|null); + + /** GetEntityTypeRequest languageCode */ + languageCode?: (string|null); } - /** Represents a GetDeploymentRequest. */ - class GetDeploymentRequest implements IGetDeploymentRequest { + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Constructs a new GetDeploymentRequest. + * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetDeploymentRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest); - /** GetDeploymentRequest name. */ + /** GetEntityTypeRequest name. */ public name: string; + /** GetEntityTypeRequest languageCode. */ + public languageCode: string; + /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDeploymentRequest instance + * @returns GetEntityTypeRequest 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.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * 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 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.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, 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 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.IGetDeploymentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDeploymentRequest 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 GetDeploymentRequest + * @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.GetDeploymentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Decodes a GetDeploymentRequest 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 GetDeploymentRequest + * @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.GetDeploymentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; /** - * Verifies a GetDeploymentRequest 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 GetDeploymentRequest 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 GetDeploymentRequest + * @returns GetEntityTypeRequest */ - 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.GetEntityTypeRequest; /** - * 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 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.GetDeploymentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDeploymentRequest to JSON. + * Converts this GetEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDeploymentRequest + * Gets the default type url for GetEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an EntityTypes */ - class EntityTypes extends $protobuf.rpc.Service { + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** - * 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 - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** CreateEntityTypeRequest parent */ + parent?: (string|null); - /** - * 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): EntityTypes; + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse - */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypesCallback): void; + /** CreateEntityTypeRequest languageCode */ + languageCode?: (string|null); + } - /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @returns Promise - */ - public listEntityTypes(request: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest): Promise; + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Constructs a new CreateEntityTypeRequest. + * @param [properties] Properties to set */ - public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityTypeCallback): void; + constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest); - /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @returns Promise - */ - public getEntityType(request: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): Promise; + /** CreateEntityTypeRequest parent. */ + public parent: string; - /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType - */ - public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityTypeCallback): void; + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); + + /** CreateEntityTypeRequest languageCode. */ + public languageCode: string; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @returns Promise + * Creates a new CreateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeRequest instance */ - public createEntityType(request: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * 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 updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityTypeCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @returns Promise + * 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 updateEntityType(request: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * 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 CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, callback: google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @returns Promise + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteEntityType(request: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): Promise; - } - - namespace EntityTypes { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|listEntityTypes}. - * @param error Error, if any - * @param [response] ListEntityTypesResponse + * Verifies a CreateEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|getEntityType}. - * @param error Error, if any - * @param [response] EntityType + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEntityTypeRequest */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|createEntityType}. - * @param error Error, if any - * @param [response] EntityType + * 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 */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|updateEntityType}. - * @param error Error, if any - * @param [response] EntityType + * Converts this CreateEntityTypeRequest to JSON. + * @returns JSON object */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3.EntityType) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.EntityTypes|deleteEntityType}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for CreateEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EntityType. */ - interface IEntityType { - - /** EntityType name */ - name?: (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); + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** EntityType excludedPhrases */ - excludedPhrases?: (google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** EntityType enableFuzzyExtraction */ - enableFuzzyExtraction?: (boolean|null); + /** UpdateEntityTypeRequest languageCode */ + languageCode?: (string|null); - /** EntityType redact */ - redact?: (boolean|null); + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents an EntityType. */ - class EntityType implements IEntityType { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new EntityType. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IEntityType); - - /** EntityType name. */ - public name: 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[]; + constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest); - /** EntityType excludedPhrases. */ - public excludedPhrases: google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase[]; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - /** EntityType enableFuzzyExtraction. */ - public enableFuzzyExtraction: boolean; + /** UpdateEntityTypeRequest languageCode. */ + public languageCode: string; - /** EntityType redact. */ - public redact: boolean; + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new EntityType instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns UpdateEntityTypeRequest 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.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * 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 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.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, 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 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.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType 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 EntityType + * @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.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Decodes an EntityType 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 EntityType + * @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.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; /** - * Verifies an EntityType 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 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. * @param object Plain object - * @returns EntityType + * @returns UpdateEntityTypeRequest */ - 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.UpdateEntityTypeRequest; /** - * 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 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.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityType + * Gets the default type url for UpdateEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - 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 { - - /** Entity value */ - value?: (string|null); - - /** Entity synonyms */ - synonyms?: (string[]|null); - } - - /** Represents an Entity. */ - class Entity implements IEntity { - - /** - * Constructs a new Entity. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.EntityType.IEntity); - - /** Entity value. */ - public value: string; - - /** Entity synonyms. */ - public synonyms: string[]; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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; - - /** - * 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); - - /** - * 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; - - /** - * 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 }; - - /** - * Converts this Entity to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Entity - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExcludedPhrase. */ - interface IExcludedPhrase { - - /** ExcludedPhrase value */ - value?: (string|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 }; - - /** - * Gets the default type url for ExcludedPhrase - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { - - /** ListEntityTypesRequest parent */ - parent?: (string|null); - - /** ListEntityTypesRequest languageCode */ - languageCode?: (string|null); + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** DeleteEntityTypeRequest name */ + name?: (string|null); - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesRequest); - - /** ListEntityTypesRequest parent. */ - public parent: string; - - /** ListEntityTypesRequest languageCode. */ - public languageCode: string; + constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest); - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; + /** DeleteEntityTypeRequest name. */ + public name: string; - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; + /** DeleteEntityTypeRequest force. */ + public force: boolean; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns DeleteEntityTypeRequest 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.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * 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 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.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, 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 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.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest 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 ListEntityTypesRequest + * @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.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Decodes a ListEntityTypesRequest 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 ListEntityTypesRequest + * @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.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; /** - * Verifies a ListEntityTypesRequest 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 ListEntityTypesRequest 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 ListEntityTypesRequest + * @returns DeleteEntityTypeRequest */ - 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.DeleteEntityTypeRequest; /** - * 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 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.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesRequest + * Gets the default type url for DeleteEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 { + /** Represents an Environments */ + class Environments extends $protobuf.rpc.Service { /** - * Constructs a new ListEntityTypesResponse. - * @param [properties] Properties to set + * 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(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse); - - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.dialogflow.cx.v3.IEntityType[]; - - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ListEntityTypesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance + * 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(properties?: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Environments; /** - * 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 + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEnvironmentsResponse */ - public static encode(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest, callback: google.cloud.dialogflow.cx.v3.Environments.ListEnvironmentsCallback): void; /** - * 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 + * Calls ListEnvironments. + * @param request ListEnvironmentsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): Promise; /** - * 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 + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Environment */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback): void; /** - * 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 + * Calls GetEnvironment. + * @param request GetEnvironmentRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): Promise; /** - * Verifies a ListEntityTypesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.CreateEnvironmentCallback): void; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEntityTypesResponse + * Calls CreateEnvironment. + * @param request CreateEnvironmentRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.ListEntityTypesResponse; + public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): Promise; /** - * 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 + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.dialogflow.cx.v3.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback): void; /** - * Converts this ListEntityTypesResponse to JSON. - * @returns JSON object + * Calls UpdateEnvironment. + * @param request UpdateEnvironmentRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): Promise; /** - * Gets the default type url for ListEntityTypesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { - - /** GetEntityTypeRequest name */ - name?: (string|null); - - /** GetEntityTypeRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback): void; /** - * Constructs a new GetEntityTypeRequest. - * @param [properties] Properties to set + * Calls DeleteEnvironment. + * @param request DeleteEnvironmentRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest); - - /** GetEntityTypeRequest name. */ - public name: string; + public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest): Promise; - /** GetEntityTypeRequest languageCode. */ - public languageCode: string; + /** + * 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; /** - * Creates a new GetEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * Calls LookupEnvironmentHistory. + * @param request LookupEnvironmentHistoryRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; + public lookupEnvironmentHistory(request: google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest): Promise; /** - * 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 + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public runContinuousTest(request: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest, callback: google.cloud.dialogflow.cx.v3.Environments.RunContinuousTestCallback): void; /** - * 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 + * Calls RunContinuousTest. + * @param request RunContinuousTestRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.GetEntityTypeRequest; - - /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.GetEntityTypeRequest; - - /** - * 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 GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.GetEntityTypeRequest; - - /** - * 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.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for GetEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { - - /** CreateEntityTypeRequest parent */ - parent?: (string|null); - - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - - /** CreateEntityTypeRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { - - /** - * Constructs a new CreateEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest); - - /** CreateEntityTypeRequest parent. */ - public parent: string; - - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - - /** CreateEntityTypeRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; - - /** - * 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.ICreateEntityTypeRequest, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.CreateEntityTypeRequest; - - /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.CreateEntityTypeRequest; - - /** - * 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 CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest; - - /** - * 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.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CreateEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - - /** UpdateEntityTypeRequest languageCode */ - languageCode?: (string|null); - - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { - - /** - * Constructs a new UpdateEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.dialogflow.cx.v3.IEntityType|null); - - /** UpdateEntityTypeRequest languageCode. */ - public languageCode: string; - - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; - - /** - * 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.IUpdateEntityTypeRequest, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.UpdateEntityTypeRequest; - - /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.UpdateEntityTypeRequest; - - /** - * 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 an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest; - - /** - * 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.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { - - /** DeleteEntityTypeRequest name */ - name?: (string|null); - - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { - - /** - * Constructs a new DeleteEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest); - - /** DeleteEntityTypeRequest name. */ - public name: string; - - /** DeleteEntityTypeRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; - - /** - * 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.IDeleteEntityTypeRequest, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.DeleteEntityTypeRequest; - - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.DeleteEntityTypeRequest; - - /** - * 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 DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest; - - /** - * 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.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DeleteEntityTypeRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DeleteEntityTypeRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Represents an Environments */ - class Environments extends $protobuf.rpc.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 - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * 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; - - /** - * 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; - - /** - * Calls ListEnvironments. - * @param request ListEnvironmentsRequest message or plain object - * @returns Promise - */ - public listEnvironments(request: google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest): Promise; - - /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Environment - */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback): void; - - /** - * Calls GetEnvironment. - * @param request GetEnvironmentRequest message or plain object - * @returns Promise - */ - public getEnvironment(request: google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest): Promise; - - /** - * 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; - - /** - * Calls CreateEnvironment. - * @param request CreateEnvironmentRequest message or plain object - * @returns Promise - */ - public createEnvironment(request: google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest): Promise; - - /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironmentCallback): void; - - /** - * Calls UpdateEnvironment. - * @param request UpdateEnvironmentRequest message or plain object - * @returns Promise - */ - public updateEnvironment(request: google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest): Promise; - - /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteEnvironment(request: google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest, callback: google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback): void; - - /** - * Calls DeleteEnvironment. - * @param request DeleteEnvironmentRequest message or plain object - * @returns 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; + public runContinuousTest(request: google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest): Promise; /** * Calls ListContinuousTestResults. @@ -29923,6 +30129,9 @@ export namespace google { /** Properties of an AdvancedSettings. */ interface IAdvancedSettings { + /** AdvancedSettings audioExportGcsDestination */ + audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null); + /** AdvancedSettings loggingSettings */ loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); } @@ -29936,6 +30145,9 @@ export namespace google { */ constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings); + /** AdvancedSettings audioExportGcsDestination. */ + public audioExportGcsDestination?: (google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null); + /** AdvancedSettings loggingSettings. */ public loggingSettings?: (google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null); @@ -30123,6 +30335,103 @@ export namespace google { } } + /** Properties of a GcsDestination. */ + interface IGcsDestination { + + /** GcsDestination uri */ + uri?: (string|null); + } + + /** Represents a GcsDestination. */ + class GcsDestination implements IGcsDestination { + + /** + * Constructs a new GcsDestination. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGcsDestination); + + /** GcsDestination uri. */ + public uri: string; + + /** + * Creates a new GcsDestination instance using the specified properties. + * @param [properties] Properties to set + * @returns GcsDestination instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGcsDestination): google.cloud.dialogflow.cx.v3beta1.GcsDestination; + + /** + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcsDestination message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcsDestination + * @throws {Error} If the payload is not a reader or 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.GcsDestination; + + /** + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcsDestination + * @throws {Error} If the payload is not a 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.GcsDestination; + + /** + * Verifies a GcsDestination message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcsDestination + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GcsDestination; + + /** + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. + * @param message GcsDestination + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcsDestination to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcsDestination + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents an Agents */ class Agents extends $protobuf.rpc.Service { @@ -30477,6 +30786,9 @@ export namespace google { /** Agent advancedSettings */ advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + + /** Agent textToSpeechSettings */ + textToSpeechSettings?: (google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null); } /** Represents an Agent. */ @@ -30530,6 +30842,9 @@ export namespace google { /** Agent advancedSettings. */ public advancedSettings?: (google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null); + /** Agent textToSpeechSettings. */ + public textToSpeechSettings?: (google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null); + /** * Creates a new Agent instance using the specified properties. * @param [properties] Properties to set @@ -31888,3255 +32203,3971 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Flows */ - class Flows extends $protobuf.rpc.Service { + /** 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 + } - /** - * Constructs a new Flows 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); + /** SpeechModelVariant enum. */ + enum SpeechModelVariant { + SPEECH_MODEL_VARIANT_UNSPECIFIED = 0, + USE_BEST_AVAILABLE = 1, + USE_STANDARD = 2, + USE_ENHANCED = 3 + } - /** - * Creates new Flows 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): Flows; + /** Properties of a SpeechWordInfo. */ + interface ISpeechWordInfo { - /** - * Calls CreateFlow. - * @param request CreateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void; + /** SpeechWordInfo word */ + word?: (string|null); - /** - * Calls CreateFlow. - * @param request CreateFlowRequest message or plain object - * @returns Promise - */ - public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): Promise; + /** SpeechWordInfo startOffset */ + startOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteFlow. - * @param request DeleteFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback): void; + /** SpeechWordInfo endOffset */ + endOffset?: (google.protobuf.IDuration|null); - /** - * Calls DeleteFlow. - * @param request DeleteFlowRequest message or plain object - * @returns Promise - */ - public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): Promise; + /** SpeechWordInfo confidence */ + confidence?: (number|null); + } - /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFlowsResponse - */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void; + /** Represents a SpeechWordInfo. */ + class SpeechWordInfo implements ISpeechWordInfo { /** - * Calls ListFlows. - * @param request ListFlowsRequest message or plain object - * @returns Promise + * Constructs a new SpeechWordInfo. + * @param [properties] Properties to set */ - public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo); - /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback): void; + /** SpeechWordInfo word. */ + public word: string; - /** - * Calls GetFlow. - * @param request GetFlowRequest message or plain object - * @returns Promise - */ - public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise; + /** SpeechWordInfo startOffset. */ + public startOffset?: (google.protobuf.IDuration|null); - /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Flow - */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback): void; + /** SpeechWordInfo endOffset. */ + public endOffset?: (google.protobuf.IDuration|null); + + /** SpeechWordInfo confidence. */ + public confidence: number; /** - * Calls UpdateFlow. - * @param request UpdateFlowRequest message or plain object - * @returns Promise + * Creates a new SpeechWordInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SpeechWordInfo instance */ - public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls TrainFlow. - * @param request TrainFlowRequest message or plain object - * @returns Promise + * 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 trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult + * 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 SpeechWordInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Calls ValidateFlow. - * @param request ValidateFlowRequest message or plain object - * @returns Promise + * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpeechWordInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @param callback Node-style callback called with the error, if any, and FlowValidationResult + * Verifies a SpeechWordInfo message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetFlowValidationResult. - * @param request GetFlowValidationResultRequest message or plain object - * @returns Promise + * Creates a SpeechWordInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpeechWordInfo */ - public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; /** - * Calls ImportFlow. - * @param request ImportFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * 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 importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback): void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ImportFlow. - * @param request ImportFlowRequest message or plain object - * @returns Promise + * Converts this SpeechWordInfo to JSON. + * @returns JSON object */ - public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ExportFlow. - * @param request ExportFlowRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for SpeechWordInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an InputAudioConfig. */ + interface IInputAudioConfig { + + /** InputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|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 InputAudioConfig. */ + class InputAudioConfig implements IInputAudioConfig { /** - * Calls ExportFlow. - * @param request ExportFlowRequest message or plain object - * @returns Promise + * Constructs a new InputAudioConfig. + * @param [properties] Properties to set */ - public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): Promise; - } + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig); - namespace Flows { + /** InputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding); + + /** 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; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. - * @param error Error, if any - * @param [response] Flow + * Creates a new InputAudioConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InputAudioConfig instance */ - type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. - * @param error Error, if any - * @param [response] Empty + * 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 */ - type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|listFlows}. - * @param error Error, if any - * @param [response] ListFlowsResponse + * 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 */ - type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlow}. - * @param error Error, if any - * @param [response] Flow + * 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 InputAudioConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|updateFlow}. - * @param error Error, if any - * @param [response] Flow + * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputAudioConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|trainFlow}. - * @param error Error, if any - * @param [response] Operation + * Verifies an InputAudioConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. - * @param error Error, if any - * @param [response] FlowValidationResult + * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputAudioConfig */ - type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. - * @param error Error, if any - * @param [response] FlowValidationResult + * 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 */ - type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. - * @param error Error, if any - * @param [response] Operation + * Converts this InputAudioConfig to JSON. + * @returns JSON object */ - type ImportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for InputAudioConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ExportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NluSettings. */ - interface INluSettings { + /** SsmlVoiceGender enum. */ + enum SsmlVoiceGender { + SSML_VOICE_GENDER_UNSPECIFIED = 0, + SSML_VOICE_GENDER_MALE = 1, + SSML_VOICE_GENDER_FEMALE = 2, + SSML_VOICE_GENDER_NEUTRAL = 3 + } - /** NluSettings modelType */ - modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); + /** Properties of a VoiceSelectionParams. */ + interface IVoiceSelectionParams { - /** NluSettings classificationThreshold */ - classificationThreshold?: (number|null); + /** VoiceSelectionParams name */ + name?: (string|null); - /** NluSettings modelTrainingMode */ - modelTrainingMode?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null); + /** VoiceSelectionParams ssmlGender */ + ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); } - /** Represents a NluSettings. */ - class NluSettings implements INluSettings { + /** Represents a VoiceSelectionParams. */ + class VoiceSelectionParams implements IVoiceSelectionParams { /** - * Constructs a new NluSettings. + * Constructs a new VoiceSelectionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); - - /** NluSettings modelType. */ - public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); - /** NluSettings classificationThreshold. */ - public classificationThreshold: number; + /** VoiceSelectionParams name. */ + public name: string; - /** NluSettings modelTrainingMode. */ - public modelTrainingMode: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode); + /** VoiceSelectionParams ssmlGender. */ + public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); /** - * Creates a new NluSettings instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @param [properties] Properties to set - * @returns NluSettings instance + * @returns VoiceSelectionParams instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. - * @param message NluSettings 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.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. - * @param message NluSettings 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.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NluSettings 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 NluSettings + * @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.NluSettings; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Decodes a NluSettings 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 NluSettings + * @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.NluSettings; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Verifies a NluSettings 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 NluSettings 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 NluSettings + * @returns VoiceSelectionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.NluSettings; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; /** - * Creates a plain object from a NluSettings message. Also converts values to other types if specified. - * @param message NluSettings + * 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.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NluSettings to JSON. + * Converts this VoiceSelectionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NluSettings + * Gets the default type url for VoiceSelectionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NluSettings { + /** Properties of a SynthesizeSpeechConfig. */ + interface ISynthesizeSpeechConfig { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - MODEL_TYPE_STANDARD = 1, - MODEL_TYPE_ADVANCED = 3 - } + /** SynthesizeSpeechConfig speakingRate */ + speakingRate?: (number|null); - /** ModelTrainingMode enum. */ - enum ModelTrainingMode { - MODEL_TRAINING_MODE_UNSPECIFIED = 0, - MODEL_TRAINING_MODE_AUTOMATIC = 1, - MODEL_TRAINING_MODE_MANUAL = 2 - } - } - - /** Properties of a Flow. */ - interface IFlow { - - /** Flow name */ - name?: (string|null); - - /** Flow displayName */ - displayName?: (string|null); - - /** Flow description */ - description?: (string|null); - - /** Flow transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + /** SynthesizeSpeechConfig pitch */ + pitch?: (number|null); - /** Flow eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + /** SynthesizeSpeechConfig volumeGainDb */ + volumeGainDb?: (number|null); - /** Flow transitionRouteGroups */ - transitionRouteGroups?: (string[]|null); + /** SynthesizeSpeechConfig effectsProfileId */ + effectsProfileId?: (string[]|null); - /** Flow nluSettings */ - nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** SynthesizeSpeechConfig voice */ + voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); } - /** Represents a Flow. */ - class Flow implements IFlow { + /** Represents a SynthesizeSpeechConfig. */ + class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { /** - * Constructs a new Flow. + * Constructs a new SynthesizeSpeechConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); - - /** Flow name. */ - public name: string; - - /** Flow displayName. */ - public displayName: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); - /** Flow description. */ - public description: string; + /** SynthesizeSpeechConfig speakingRate. */ + public speakingRate: number; - /** Flow transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + /** SynthesizeSpeechConfig pitch. */ + public pitch: number; - /** Flow eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + /** SynthesizeSpeechConfig volumeGainDb. */ + public volumeGainDb: number; - /** Flow transitionRouteGroups. */ - public transitionRouteGroups: string[]; + /** SynthesizeSpeechConfig effectsProfileId. */ + public effectsProfileId: string[]; - /** Flow nluSettings. */ - public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** SynthesizeSpeechConfig voice. */ + public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); /** - * Creates a new Flow instance using the specified properties. + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Flow instance + * @returns SynthesizeSpeechConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow): google.cloud.dialogflow.cx.v3beta1.Flow; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. - * @param message Flow 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.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. - * @param message Flow 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.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Flow 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 Flow + * @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.Flow; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Decodes a Flow 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 Flow + * @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.Flow; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Verifies a Flow 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 Flow 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 Flow + * @returns SynthesizeSpeechConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Flow; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig; /** - * Creates a plain object from a Flow message. Also converts values to other types if specified. - * @param message Flow + * 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.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Flow to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Flow + * Gets the default type url for SynthesizeSpeechConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFlowRequest. */ - interface ICreateFlowRequest { + /** 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 + } - /** CreateFlowRequest parent */ - parent?: (string|null); + /** Properties of an OutputAudioConfig. */ + interface IOutputAudioConfig { - /** CreateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** OutputAudioConfig audioEncoding */ + audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); - /** CreateFlowRequest languageCode */ - languageCode?: (string|null); + /** OutputAudioConfig sampleRateHertz */ + sampleRateHertz?: (number|null); + + /** OutputAudioConfig synthesizeSpeechConfig */ + synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); } - /** Represents a CreateFlowRequest. */ - class CreateFlowRequest implements ICreateFlowRequest { + /** Represents an OutputAudioConfig. */ + class OutputAudioConfig implements IOutputAudioConfig { /** - * Constructs a new CreateFlowRequest. + * Constructs a new OutputAudioConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig); - /** CreateFlowRequest parent. */ - public parent: string; + /** OutputAudioConfig audioEncoding. */ + public audioEncoding: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding); - /** CreateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** OutputAudioConfig sampleRateHertz. */ + public sampleRateHertz: number; - /** CreateFlowRequest languageCode. */ - public languageCode: string; + /** OutputAudioConfig synthesizeSpeechConfig. */ + public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); /** - * Creates a new CreateFlowRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFlowRequest instance + * @returns OutputAudioConfig instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. - * @param message CreateFlowRequest 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.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. - * @param message CreateFlowRequest 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.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFlowRequest 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 CreateFlowRequest + * @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.CreateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Decodes a CreateFlowRequest 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 CreateFlowRequest + * @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.CreateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Verifies a CreateFlowRequest 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 CreateFlowRequest 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 CreateFlowRequest + * @returns OutputAudioConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig; /** - * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. - * @param message CreateFlowRequest + * 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.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFlowRequest + * Gets the default type url for OutputAudioConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFlowRequest. */ - interface IDeleteFlowRequest { - - /** DeleteFlowRequest name */ - name?: (string|null); + /** Properties of a TextToSpeechSettings. */ + interface ITextToSpeechSettings { - /** DeleteFlowRequest force */ - force?: (boolean|null); + /** TextToSpeechSettings synthesizeSpeechConfigs */ + synthesizeSpeechConfigs?: ({ [k: string]: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig }|null); } - /** Represents a DeleteFlowRequest. */ - class DeleteFlowRequest implements IDeleteFlowRequest { + /** Represents a TextToSpeechSettings. */ + class TextToSpeechSettings implements ITextToSpeechSettings { /** - * Constructs a new DeleteFlowRequest. + * Constructs a new TextToSpeechSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); - - /** DeleteFlowRequest name. */ - public name: string; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings); - /** DeleteFlowRequest force. */ - public force: boolean; + /** TextToSpeechSettings synthesizeSpeechConfigs. */ + public synthesizeSpeechConfigs: { [k: string]: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig }; /** - * Creates a new DeleteFlowRequest instance using the specified properties. + * Creates a new TextToSpeechSettings instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFlowRequest instance + * @returns TextToSpeechSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. - * @param message DeleteFlowRequest message or plain object to encode + * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. + * @param message TextToSpeechSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. - * @param message DeleteFlowRequest message or plain object to encode + * Encodes the specified TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. + * @param message TextToSpeechSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer. + * Decodes a TextToSpeechSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFlowRequest + * @returns TextToSpeechSettings * @throws {Error} If the payload is not a reader or 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.DeleteFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; /** - * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFlowRequest + * @returns TextToSpeechSettings * @throws {Error} If the payload is not a 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.DeleteFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; /** - * Verifies a DeleteFlowRequest message. + * Verifies a TextToSpeechSettings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFlowRequest + * @returns TextToSpeechSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings; /** - * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. - * @param message DeleteFlowRequest + * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. + * @param message TextToSpeechSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFlowRequest to JSON. + * Converts this TextToSpeechSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFlowRequest + * Gets the default type url for TextToSpeechSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFlowsRequest. */ - interface IListFlowsRequest { - - /** ListFlowsRequest parent */ - parent?: (string|null); - - /** ListFlowsRequest pageSize */ - pageSize?: (number|null); - - /** ListFlowsRequest pageToken */ - pageToken?: (string|null); - - /** ListFlowsRequest languageCode */ - languageCode?: (string|null); - } - - /** Represents a ListFlowsRequest. */ - class ListFlowsRequest implements IListFlowsRequest { + /** Represents a Flows */ + class Flows extends $protobuf.rpc.Service { /** - * Constructs a new ListFlowsRequest. - * @param [properties] Properties to set + * Constructs a new Flows 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.IListFlowsRequest); - - /** ListFlowsRequest parent. */ - public parent: string; - - /** ListFlowsRequest pageSize. */ - public pageSize: number; - - /** ListFlowsRequest pageToken. */ - public pageToken: string; - - /** ListFlowsRequest languageCode. */ - public languageCode: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ListFlowsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFlowsRequest instance + * Creates new Flows 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.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Flows; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. - * @param message ListFlowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateFlow. + * @param request CreateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback): void; /** - * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. - * @param message ListFlowsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateFlow. + * @param request CreateFlowRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createFlow(request: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): Promise; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFlowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFlow. + * @param request DeleteFlowRequest 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.ListFlowsRequest; + public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback): void; /** - * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFlowsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFlow. + * @param request DeleteFlowRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public deleteFlow(request: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): Promise; /** - * Verifies a ListFlowsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListFlows. + * @param request ListFlowsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFlowsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback): void; /** - * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFlowsRequest + * Calls ListFlows. + * @param request ListFlowsRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; + public listFlows(request: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): Promise; /** - * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. - * @param message ListFlowsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls GetFlow. + * @param request GetFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback): void; /** - * Converts this ListFlowsRequest to JSON. - * @returns JSON object + * Calls GetFlow. + * @param request GetFlowRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getFlow(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): Promise; /** - * Gets the default type url for ListFlowsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls UpdateFlow. + * @param request UpdateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Flow */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListFlowsResponse. */ - interface IListFlowsResponse { - - /** ListFlowsResponse flows */ - flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); - - /** ListFlowsResponse nextPageToken */ - nextPageToken?: (string|null); - } - - /** Represents a ListFlowsResponse. */ - class ListFlowsResponse implements IListFlowsResponse { + public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback): void; /** - * Constructs a new ListFlowsResponse. - * @param [properties] Properties to set + * Calls UpdateFlow. + * @param request UpdateFlowRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); - - /** ListFlowsResponse flows. */ - public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; - - /** ListFlowsResponse nextPageToken. */ - public nextPageToken: string; + public updateFlow(request: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): Promise; /** - * Creates a new ListFlowsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFlowsResponse instance + * Calls TrainFlow. + * @param request TrainFlowRequest 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.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback): void; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. - * @param message ListFlowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls TrainFlow. + * @param request TrainFlowRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public trainFlow(request: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): Promise; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. - * @param message ListFlowsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FlowValidationResult */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback): void; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFlowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ValidateFlow. + * @param request ValidateFlowRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public validateFlow(request: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): Promise; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFlowsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @param callback Node-style callback called with the error, if any, and FlowValidationResult */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback): void; /** - * Verifies a ListFlowsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetFlowValidationResult. + * @param request GetFlowValidationResultRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getFlowValidationResult(request: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): Promise; /** - * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFlowsResponse + * Calls ImportFlow. + * @param request ImportFlowRequest 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.ListFlowsResponse; + public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback): void; /** - * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. - * @param message ListFlowsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls ImportFlow. + * @param request ImportFlowRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public importFlow(request: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): Promise; /** - * Converts this ListFlowsResponse to JSON. - * @returns JSON object + * Calls ExportFlow. + * @param request ExportFlowRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; + public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, callback: google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback): void; /** - * Gets the default type url for ListFlowsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ExportFlow. + * @param request ExportFlowRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetFlowRequest. */ - interface IGetFlowRequest { - - /** GetFlowRequest name */ - name?: (string|null); - - /** GetFlowRequest languageCode */ - languageCode?: (string|null); + public exportFlow(request: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): Promise; } - /** Represents a GetFlowRequest. */ - class GetFlowRequest implements IGetFlowRequest { + namespace Flows { /** - * Constructs a new GetFlowRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. + * @param error Error, if any + * @param [response] Flow */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); - - /** GetFlowRequest name. */ - public name: string; - - /** GetFlowRequest languageCode. */ - public languageCode: string; - - /** - * Creates a new GetFlowRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFlowRequest instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + type CreateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. - * @param message GetFlowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteFlowCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. - * @param message GetFlowRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|listFlows}. + * @param error Error, if any + * @param [response] ListFlowsResponse */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFlowsCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) => void; /** - * Decodes a GetFlowRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFlowRequest - * @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.Flows|getFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + type GetFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFlowRequest - * @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.Flows|updateFlow}. + * @param error Error, if any + * @param [response] Flow */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + type UpdateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Flow) => void; /** - * Verifies a GetFlowRequest 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.Flows|trainFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type TrainFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFlowRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; + type ValidateFlowCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; /** - * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. - * @param message GetFlowRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. + * @param error Error, if any + * @param [response] FlowValidationResult */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetFlowValidationResultCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) => void; /** - * Converts this GetFlowRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type ImportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for GetFlowRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ExportFlowCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of an UpdateFlowRequest. */ - interface IUpdateFlowRequest { + /** Properties of a NluSettings. */ + interface INluSettings { - /** UpdateFlowRequest flow */ - flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** NluSettings modelType */ + modelType?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null); - /** UpdateFlowRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** NluSettings classificationThreshold */ + classificationThreshold?: (number|null); - /** UpdateFlowRequest languageCode */ - languageCode?: (string|null); + /** NluSettings modelTrainingMode */ + modelTrainingMode?: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null); } - /** Represents an UpdateFlowRequest. */ - class UpdateFlowRequest implements IUpdateFlowRequest { + /** Represents a NluSettings. */ + class NluSettings implements INluSettings { /** - * Constructs a new UpdateFlowRequest. + * Constructs a new NluSettings. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings); - /** UpdateFlowRequest flow. */ - public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + /** NluSettings modelType. */ + public modelType: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType); - /** UpdateFlowRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** NluSettings classificationThreshold. */ + public classificationThreshold: number; - /** UpdateFlowRequest languageCode. */ - public languageCode: string; + /** NluSettings modelTrainingMode. */ + public modelTrainingMode: (google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|keyof typeof google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode); /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Creates a new NluSettings instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFlowRequest instance + * @returns NluSettings instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.INluSettings): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. - * @param message UpdateFlowRequest message or plain object to encode + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. - * @param message UpdateFlowRequest message or plain object to encode + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. + * @param message NluSettings message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.INluSettings, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * Decodes a NluSettings message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFlowRequest + * @returns NluSettings * @throws {Error} If the payload is not a reader or 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.UpdateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFlowRequest + * @returns NluSettings * @throws {Error} If the payload is not a 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.UpdateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Verifies an UpdateFlowRequest message. + * Verifies a NluSettings message. * @param message Plain 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 UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFlowRequest + * @returns NluSettings */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.NluSettings; /** - * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. - * @param message UpdateFlowRequest + * Creates a plain object from a NluSettings message. Also converts values to other types if specified. + * @param message NluSettings * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.NluSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFlowRequest to JSON. + * Converts this NluSettings to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFlowRequest + * Gets the default type url for NluSettings * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainFlowRequest. */ - interface ITrainFlowRequest { + namespace NluSettings { - /** TrainFlowRequest name */ + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + MODEL_TYPE_STANDARD = 1, + MODEL_TYPE_ADVANCED = 3 + } + + /** ModelTrainingMode enum. */ + enum ModelTrainingMode { + MODEL_TRAINING_MODE_UNSPECIFIED = 0, + MODEL_TRAINING_MODE_AUTOMATIC = 1, + MODEL_TRAINING_MODE_MANUAL = 2 + } + } + + /** Properties of a Flow. */ + interface IFlow { + + /** Flow name */ name?: (string|null); + + /** Flow displayName */ + displayName?: (string|null); + + /** Flow description */ + description?: (string|null); + + /** Flow transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + + /** Flow eventHandlers */ + eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + + /** Flow transitionRouteGroups */ + transitionRouteGroups?: (string[]|null); + + /** Flow nluSettings */ + nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); } - /** Represents a TrainFlowRequest. */ - class TrainFlowRequest implements ITrainFlowRequest { + /** Represents a Flow. */ + class Flow implements IFlow { /** - * Constructs a new TrainFlowRequest. + * Constructs a new Flow. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow); - /** TrainFlowRequest name. */ + /** Flow name. */ public name: string; + /** Flow displayName. */ + public displayName: string; + + /** Flow description. */ + public description: string; + + /** Flow transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + + /** Flow eventHandlers. */ + public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + + /** Flow transitionRouteGroups. */ + public transitionRouteGroups: string[]; + + /** Flow nluSettings. */ + public nluSettings?: (google.cloud.dialogflow.cx.v3beta1.INluSettings|null); + /** - * Creates a new TrainFlowRequest instance using the specified properties. + * Creates a new Flow instance using the specified properties. * @param [properties] Properties to set - * @returns TrainFlowRequest instance + * @returns Flow instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlow): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. - * @param message TrainFlowRequest message or plain object to encode + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. - * @param message TrainFlowRequest message or plain object to encode + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. + * @param message Flow message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlow, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer. + * Decodes a Flow message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainFlowRequest + * @returns Flow * @throws {Error} If the payload is not a reader or 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.TrainFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a Flow message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainFlowRequest + * @returns Flow * @throws {Error} If the payload is not a 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.TrainFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Verifies a TrainFlowRequest message. + * Verifies a Flow message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Flow message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainFlowRequest + * @returns Flow */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Flow; /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. - * @param message TrainFlowRequest + * Creates a plain object from a Flow message. Also converts values to other types if specified. + * @param message Flow * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Flow, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainFlowRequest to JSON. + * Converts this Flow to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainFlowRequest + * Gets the default type url for Flow * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ValidateFlowRequest. */ - interface IValidateFlowRequest { + /** Properties of a CreateFlowRequest. */ + interface ICreateFlowRequest { - /** ValidateFlowRequest name */ - name?: (string|null); + /** CreateFlowRequest parent */ + parent?: (string|null); - /** ValidateFlowRequest languageCode */ + /** CreateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + + /** CreateFlowRequest languageCode */ languageCode?: (string|null); } - /** Represents a ValidateFlowRequest. */ - class ValidateFlowRequest implements IValidateFlowRequest { + /** Represents a CreateFlowRequest. */ + class CreateFlowRequest implements ICreateFlowRequest { /** - * Constructs a new ValidateFlowRequest. + * Constructs a new CreateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest); - /** ValidateFlowRequest name. */ - public name: string; + /** CreateFlowRequest parent. */ + public parent: string; - /** ValidateFlowRequest languageCode. */ + /** CreateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); + + /** CreateFlowRequest languageCode. */ public languageCode: string; /** - * Creates a new ValidateFlowRequest instance using the specified properties. + * Creates a new CreateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ValidateFlowRequest instance + * @returns CreateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. - * @param message ValidateFlowRequest message or plain object to encode + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. - * @param message ValidateFlowRequest message or plain object to encode + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. + * @param message CreateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * Decodes a CreateFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ValidateFlowRequest + * @returns CreateFlowRequest * @throws {Error} If the payload is not a reader or 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.ValidateFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ValidateFlowRequest + * @returns CreateFlowRequest * @throws {Error} If the payload is not a 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.ValidateFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Verifies a ValidateFlowRequest message. + * Verifies a CreateFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ValidateFlowRequest + * @returns CreateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest; /** - * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. - * @param message ValidateFlowRequest + * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. + * @param message CreateFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ValidateFlowRequest to JSON. + * Converts this CreateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ValidateFlowRequest + * Gets the default type url for CreateFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFlowValidationResultRequest. */ - interface IGetFlowValidationResultRequest { + /** Properties of a DeleteFlowRequest. */ + interface IDeleteFlowRequest { - /** GetFlowValidationResultRequest name */ + /** DeleteFlowRequest name */ name?: (string|null); - /** GetFlowValidationResultRequest languageCode */ - languageCode?: (string|null); + /** DeleteFlowRequest force */ + force?: (boolean|null); } - /** Represents a GetFlowValidationResultRequest. */ - class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { + /** Represents a DeleteFlowRequest. */ + class DeleteFlowRequest implements IDeleteFlowRequest { /** - * Constructs a new GetFlowValidationResultRequest. + * Constructs a new DeleteFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest); - /** GetFlowValidationResultRequest name. */ + /** DeleteFlowRequest name. */ public name: string; - /** GetFlowValidationResultRequest languageCode. */ - public languageCode: string; + /** DeleteFlowRequest force. */ + public force: boolean; /** - * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFlowValidationResultRequest instance + * @returns DeleteFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. - * @param message GetFlowValidationResultRequest message or plain object to encode + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. - * @param message GetFlowValidationResultRequest message or plain object to encode + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. + * @param message DeleteFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFlowValidationResultRequest + * @returns DeleteFlowRequest * @throws {Error} If the payload is not a reader or 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.GetFlowValidationResultRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFlowValidationResultRequest + * @returns DeleteFlowRequest * @throws {Error} If the payload is not a 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.GetFlowValidationResultRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Verifies a GetFlowValidationResultRequest message. + * Verifies a DeleteFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFlowValidationResultRequest + * @returns DeleteFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest; /** - * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. - * @param message GetFlowValidationResultRequest + * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. + * @param message DeleteFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFlowValidationResultRequest to JSON. + * Converts this DeleteFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFlowValidationResultRequest + * Gets the default type url for DeleteFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FlowValidationResult. */ - interface IFlowValidationResult { + /** Properties of a ListFlowsRequest. */ + interface IListFlowsRequest { - /** FlowValidationResult name */ - name?: (string|null); + /** ListFlowsRequest parent */ + parent?: (string|null); - /** FlowValidationResult validationMessages */ - validationMessages?: (google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]|null); + /** ListFlowsRequest pageSize */ + pageSize?: (number|null); - /** FlowValidationResult updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListFlowsRequest pageToken */ + pageToken?: (string|null); + + /** ListFlowsRequest languageCode */ + languageCode?: (string|null); } - /** Represents a FlowValidationResult. */ - class FlowValidationResult implements IFlowValidationResult { + /** Represents a ListFlowsRequest. */ + class ListFlowsRequest implements IListFlowsRequest { /** - * Constructs a new FlowValidationResult. + * Constructs a new ListFlowsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest); - /** FlowValidationResult name. */ - public name: string; + /** ListFlowsRequest parent. */ + public parent: string; - /** FlowValidationResult validationMessages. */ - public validationMessages: google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]; + /** ListFlowsRequest pageSize. */ + public pageSize: number; - /** FlowValidationResult updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListFlowsRequest pageToken. */ + public pageToken: string; + + /** ListFlowsRequest languageCode. */ + public languageCode: string; /** - * Creates a new FlowValidationResult instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FlowValidationResult instance + * @returns ListFlowsRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. - * @param message FlowValidationResult message or plain object to encode + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. - * @param message FlowValidationResult message or plain object to encode + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. + * @param message ListFlowsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FlowValidationResult message from the specified reader or buffer. + * Decodes a ListFlowsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FlowValidationResult + * @returns ListFlowsRequest * @throws {Error} If the payload is not a reader or 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.FlowValidationResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FlowValidationResult + * @returns ListFlowsRequest * @throws {Error} If the payload is not a 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.FlowValidationResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Verifies a FlowValidationResult message. + * Verifies a ListFlowsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FlowValidationResult + * @returns ListFlowsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest; /** - * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. - * @param message FlowValidationResult + * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. + * @param message ListFlowsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FlowValidationResult to JSON. + * Converts this ListFlowsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FlowValidationResult + * Gets the default type url for ListFlowsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFlowRequest. */ - interface IImportFlowRequest { - - /** ImportFlowRequest parent */ - parent?: (string|null); - - /** ImportFlowRequest flowUri */ - flowUri?: (string|null); + /** Properties of a ListFlowsResponse. */ + interface IListFlowsResponse { - /** ImportFlowRequest flowContent */ - flowContent?: (Uint8Array|string|null); + /** ListFlowsResponse flows */ + flows?: (google.cloud.dialogflow.cx.v3beta1.IFlow[]|null); - /** ImportFlowRequest importOption */ - importOption?: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null); + /** ListFlowsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ImportFlowRequest. */ - class ImportFlowRequest implements IImportFlowRequest { + /** Represents a ListFlowsResponse. */ + class ListFlowsResponse implements IListFlowsResponse { /** - * Constructs a new ImportFlowRequest. + * Constructs a new ListFlowsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest); - - /** ImportFlowRequest parent. */ - public parent: string; - - /** ImportFlowRequest flowUri. */ - public flowUri?: (string|null); - - /** ImportFlowRequest flowContent. */ - public flowContent?: (Uint8Array|string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse); - /** ImportFlowRequest importOption. */ - public importOption: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption); + /** ListFlowsResponse flows. */ + public flows: google.cloud.dialogflow.cx.v3beta1.IFlow[]; - /** ImportFlowRequest flow. */ - public flow?: ("flowUri"|"flowContent"); + /** ListFlowsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ImportFlowRequest instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFlowRequest instance + * @returns ListFlowsResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. - * @param message ImportFlowRequest message or plain object to encode + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. - * @param message ImportFlowRequest message or plain object to encode + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * @param message ListFlowsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer. + * Decodes a ListFlowsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFlowRequest + * @returns ListFlowsResponse * @throws {Error} If the payload is not a reader or 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.ImportFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFlowRequest + * @returns ListFlowsResponse * @throws {Error} If the payload is not a 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.ImportFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Verifies an ImportFlowRequest message. + * Verifies a ListFlowsResponse message. * @param message Plain 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 ImportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFlowRequest + * @returns ListFlowsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse; /** - * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. - * @param message ImportFlowRequest + * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. + * @param message ListFlowsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFlowRequest to JSON. + * Converts this ListFlowsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFlowRequest + * Gets the default type url for ListFlowsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ImportFlowRequest { - - /** ImportOption enum. */ - enum ImportOption { - IMPORT_OPTION_UNSPECIFIED = 0, - KEEP = 1, - FALLBACK = 2 - } - } + /** Properties of a GetFlowRequest. */ + interface IGetFlowRequest { - /** Properties of an ImportFlowResponse. */ - interface IImportFlowResponse { + /** GetFlowRequest name */ + name?: (string|null); - /** ImportFlowResponse flow */ - flow?: (string|null); + /** GetFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an ImportFlowResponse. */ - class ImportFlowResponse implements IImportFlowResponse { + /** Represents a GetFlowRequest. */ + class GetFlowRequest implements IGetFlowRequest { /** - * Constructs a new ImportFlowResponse. + * Constructs a new GetFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest); - /** ImportFlowResponse flow. */ - public flow: string; + /** GetFlowRequest name. */ + public name: string; + + /** GetFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new ImportFlowResponse instance using the specified properties. + * Creates a new GetFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFlowResponse instance + * @returns GetFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. - * @param message ImportFlowResponse message or plain object to encode + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. - * @param message ImportFlowResponse message or plain object to encode + * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * @param message GetFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer. + * Decodes a GetFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFlowResponse + * @returns GetFlowRequest * @throws {Error} If the payload is not a reader or 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.ImportFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFlowResponse + * @returns GetFlowRequest * @throws {Error} If the payload is not a 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.ImportFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Verifies an ImportFlowResponse message. + * Verifies a GetFlowRequest message. * @param message Plain 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 ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFlowResponse + * @returns GetFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowRequest; /** - * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. - * @param message ImportFlowResponse + * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. + * @param message GetFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFlowResponse to JSON. + * Converts this GetFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFlowResponse + * Gets the default type url for GetFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFlowRequest. */ - interface IExportFlowRequest { + /** Properties of an UpdateFlowRequest. */ + interface IUpdateFlowRequest { - /** ExportFlowRequest name */ - name?: (string|null); + /** UpdateFlowRequest flow */ + flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** ExportFlowRequest flowUri */ - flowUri?: (string|null); + /** UpdateFlowRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** ExportFlowRequest includeReferencedFlows */ - includeReferencedFlows?: (boolean|null); + /** UpdateFlowRequest languageCode */ + languageCode?: (string|null); } - /** Represents an ExportFlowRequest. */ - class ExportFlowRequest implements IExportFlowRequest { + /** Represents an UpdateFlowRequest. */ + class UpdateFlowRequest implements IUpdateFlowRequest { /** - * Constructs a new ExportFlowRequest. + * Constructs a new UpdateFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest); - /** ExportFlowRequest name. */ - public name: string; + /** UpdateFlowRequest flow. */ + public flow?: (google.cloud.dialogflow.cx.v3beta1.IFlow|null); - /** ExportFlowRequest flowUri. */ - public flowUri: string; + /** UpdateFlowRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ExportFlowRequest includeReferencedFlows. */ - public includeReferencedFlows: boolean; + /** UpdateFlowRequest languageCode. */ + public languageCode: string; /** - * Creates a new ExportFlowRequest instance using the specified properties. + * Creates a new UpdateFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFlowRequest instance + * @returns UpdateFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. - * @param message ExportFlowRequest message or plain object to encode + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * @param message UpdateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. - * @param message ExportFlowRequest message or plain object to encode + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * @param message UpdateFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer. + * Decodes an UpdateFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFlowRequest + * @returns UpdateFlowRequest * @throws {Error} If the payload is not a reader or 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.ExportFlowRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFlowRequest + * @returns UpdateFlowRequest * @throws {Error} If the payload is not a 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.ExportFlowRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Verifies an ExportFlowRequest message. + * Verifies an UpdateFlowRequest message. * @param message Plain 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 ExportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFlowRequest + * @returns UpdateFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest; /** - * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. - * @param message ExportFlowRequest + * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. + * @param message UpdateFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFlowRequest to JSON. + * Converts this UpdateFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFlowRequest + * Gets the default type url for UpdateFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFlowResponse. */ - interface IExportFlowResponse { - - /** ExportFlowResponse flowUri */ - flowUri?: (string|null); + /** Properties of a TrainFlowRequest. */ + interface ITrainFlowRequest { - /** ExportFlowResponse flowContent */ - flowContent?: (Uint8Array|string|null); + /** TrainFlowRequest name */ + name?: (string|null); } - /** Represents an ExportFlowResponse. */ - class ExportFlowResponse implements IExportFlowResponse { + /** Represents a TrainFlowRequest. */ + class TrainFlowRequest implements ITrainFlowRequest { /** - * Constructs a new ExportFlowResponse. + * Constructs a new TrainFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse); - - /** ExportFlowResponse flowUri. */ - public flowUri?: (string|null); - - /** ExportFlowResponse flowContent. */ - public flowContent?: (Uint8Array|string|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest); - /** ExportFlowResponse flow. */ - public flow?: ("flowUri"|"flowContent"); + /** TrainFlowRequest name. */ + public name: string; /** - * Creates a new ExportFlowResponse instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFlowResponse instance + * @returns TrainFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. - * @param message ExportFlowResponse message or plain object to encode + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. - * @param message ExportFlowResponse message or plain object to encode + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * @param message TrainFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer. + * Decodes a TrainFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFlowResponse + * @returns TrainFlowRequest * @throws {Error} If the payload is not a reader or 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.ExportFlowResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFlowResponse + * @returns TrainFlowRequest * @throws {Error} If the payload is not a 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.ExportFlowResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Verifies an ExportFlowResponse message. + * Verifies a TrainFlowRequest message. * @param message Plain 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 ExportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFlowResponse + * @returns TrainFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest; /** - * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. - * @param message ExportFlowResponse + * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. + * @param message TrainFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFlowResponse to JSON. + * Converts this TrainFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFlowResponse + * Gets the default type url for TrainFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a Pages */ - class Pages extends $protobuf.rpc.Service { + /** Properties of a ValidateFlowRequest. */ + interface IValidateFlowRequest { - /** - * Constructs a new Pages 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); + /** ValidateFlowRequest name */ + name?: (string|null); + + /** ValidateFlowRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a ValidateFlowRequest. */ + class ValidateFlowRequest implements IValidateFlowRequest { /** - * Creates new Pages 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. + * Constructs a new ValidateFlowRequest. + * @param [properties] Properties to set */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Pages; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest); + + /** ValidateFlowRequest name. */ + public name: string; + + /** ValidateFlowRequest languageCode. */ + public languageCode: string; /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPagesResponse + * Creates a new ValidateFlowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ValidateFlowRequest instance */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls ListPages. - * @param request ListPagesRequest message or plain object - * @returns Promise + * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * @param message ValidateFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * @param message ValidateFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetPage. - * @param request GetPageRequest message or plain object - * @returns Promise + * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ValidateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ValidateFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls CreatePage. - * @param request CreatePageRequest message or plain object - * @returns Promise + * Verifies a ValidateFlowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Page + * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ValidateFlowRequest */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest; /** - * Calls UpdatePage. - * @param request UpdatePageRequest message or plain object - * @returns Promise + * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. + * @param message ValidateFlowRequest + * @param [options] Conversion options + * @returns Plain object */ - public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this ValidateFlowRequest to JSON. + * @returns JSON object */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeletePage. - * @param request DeletePageRequest message or plain object - * @returns Promise + * Gets the default type url for ValidateFlowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Pages { + /** Properties of a GetFlowValidationResultRequest. */ + interface IGetFlowValidationResultRequest { + + /** GetFlowValidationResultRequest name */ + name?: (string|null); + + /** GetFlowValidationResultRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetFlowValidationResultRequest. */ + class GetFlowValidationResultRequest implements IGetFlowValidationResultRequest { /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. - * @param error Error, if any - * @param [response] ListPagesResponse + * Constructs a new GetFlowValidationResultRequest. + * @param [properties] Properties to set */ - type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest); + + /** GetFlowValidationResultRequest name. */ + public name: string; + + /** GetFlowValidationResultRequest languageCode. */ + public languageCode: string; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. - * @param error Error, if any - * @param [response] Page + * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetFlowValidationResultRequest instance */ - type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. - * @param error Error, if any - * @param [response] Page + * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * @param message GetFlowValidationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. - * @param error Error, if any - * @param [response] Page + * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * @param message GetFlowValidationResultRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. - * @param error Error, if any - * @param [response] Empty + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetFlowValidationResultRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - } + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; - /** Properties of a Page. */ - interface IPage { + /** + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetFlowValidationResultRequest + * @throws {Error} If the payload is not a 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.GetFlowValidationResultRequest; - /** Page name */ - name?: (string|null); + /** + * Verifies a GetFlowValidationResultRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Page displayName */ - displayName?: (string|null); + /** + * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetFlowValidationResultRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest; - /** Page entryFulfillment */ - entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. + * @param message GetFlowValidationResultRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Page form */ - form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + /** + * Converts this GetFlowValidationResultRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Page transitionRouteGroups */ - transitionRouteGroups?: (string[]|null); + /** + * Gets the default type url for GetFlowValidationResultRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Page transitionRoutes */ - transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + /** Properties of a FlowValidationResult. */ + interface IFlowValidationResult { - /** Page eventHandlers */ - eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + /** FlowValidationResult name */ + name?: (string|null); + + /** FlowValidationResult validationMessages */ + validationMessages?: (google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]|null); + + /** FlowValidationResult updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Page. */ - class Page implements IPage { + /** Represents a FlowValidationResult. */ + class FlowValidationResult implements IFlowValidationResult { /** - * Constructs a new Page. + * Constructs a new FlowValidationResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPage); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult); - /** Page name. */ + /** FlowValidationResult name. */ public name: string; - /** Page displayName. */ - public displayName: string; - - /** Page entryFulfillment. */ - public entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - - /** Page form. */ - public form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); - - /** Page transitionRouteGroups. */ - public transitionRouteGroups: string[]; - - /** Page transitionRoutes. */ - public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + /** FlowValidationResult validationMessages. */ + public validationMessages: google.cloud.dialogflow.cx.v3beta1.IValidationMessage[]; - /** Page eventHandlers. */ - public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + /** FlowValidationResult updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Page instance using the specified properties. + * Creates a new FlowValidationResult instance using the specified properties. * @param [properties] Properties to set - * @returns Page instance + * @returns FlowValidationResult instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPage): google.cloud.dialogflow.cx.v3beta1.Page; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. - * @param message Page message or plain object to encode + * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * @param message FlowValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. - * @param message Page message or plain object to encode + * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * @param message FlowValidationResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes a FlowValidationResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Page + * @returns FlowValidationResult * @throws {Error} If the payload is not a reader or 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.Page; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Page + * @returns FlowValidationResult * @throws {Error} If the payload is not a 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.Page; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Verifies a Page message. + * Verifies a FlowValidationResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Page message from a plain object. Also converts values to their respective internal types. + * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Page + * @returns FlowValidationResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Page; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.FlowValidationResult; /** - * Creates a plain object from a Page message. Also converts values to other types if specified. - * @param message Page + * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. + * @param message FlowValidationResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Page to JSON. + * Converts this FlowValidationResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Page + * Gets the default type url for FlowValidationResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Form. */ - interface IForm { + /** Properties of an ImportFlowRequest. */ + interface IImportFlowRequest { - /** Form parameters */ - parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); + /** ImportFlowRequest parent */ + parent?: (string|null); + + /** ImportFlowRequest flowUri */ + flowUri?: (string|null); + + /** ImportFlowRequest flowContent */ + flowContent?: (Uint8Array|string|null); + + /** ImportFlowRequest importOption */ + importOption?: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null); } - /** Represents a Form. */ - class Form implements IForm { + /** Represents an ImportFlowRequest. */ + class ImportFlowRequest implements IImportFlowRequest { /** - * Constructs a new Form. + * Constructs a new ImportFlowRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest); - /** Form parameters. */ - public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; + /** ImportFlowRequest parent. */ + public parent: string; + + /** ImportFlowRequest flowUri. */ + public flowUri?: (string|null); + + /** ImportFlowRequest flowContent. */ + public flowContent?: (Uint8Array|string|null); + + /** ImportFlowRequest importOption. */ + public importOption: (google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|keyof typeof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption); + + /** ImportFlowRequest flow. */ + public flow?: ("flowUri"|"flowContent"); /** - * Creates a new Form instance using the specified properties. + * Creates a new ImportFlowRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Form instance + * @returns ImportFlowRequest instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IForm): google.cloud.dialogflow.cx.v3beta1.Form; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. - * @param message Form message or plain object to encode + * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * @param message ImportFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. - * @param message Form message or plain object to encode + * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * @param message ImportFlowRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Form message from the specified reader or buffer. + * Decodes an ImportFlowRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Form + * @returns ImportFlowRequest * @throws {Error} If the payload is not a reader or 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.Form; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Form + * @returns ImportFlowRequest * @throws {Error} If the payload is not a 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.Form; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; /** - * Verifies a Form message. + * Verifies an ImportFlowRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Form message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Form + * @returns ImportFlowRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. - * @param message Form + * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. + * @param message ImportFlowRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Form to JSON. + * Converts this ImportFlowRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Form + * Gets the default type url for ImportFlowRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Form { - - /** Properties of a Parameter. */ - interface IParameter { - - /** Parameter displayName */ - displayName?: (string|null); - - /** Parameter required */ - required?: (boolean|null); + namespace ImportFlowRequest { - /** Parameter entityType */ - entityType?: (string|null); + /** ImportOption enum. */ + enum ImportOption { + IMPORT_OPTION_UNSPECIFIED = 0, + KEEP = 1, + FALLBACK = 2 + } + } - /** Parameter isList */ - isList?: (boolean|null); + /** Properties of an ImportFlowResponse. */ + interface IImportFlowResponse { - /** Parameter fillBehavior */ - fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + /** ImportFlowResponse flow */ + flow?: (string|null); + } - /** Parameter defaultValue */ - defaultValue?: (google.protobuf.IValue|null); + /** Represents an ImportFlowResponse. */ + class ImportFlowResponse implements IImportFlowResponse { - /** Parameter redact */ - redact?: (boolean|null); - } + /** + * Constructs a new ImportFlowResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse); - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** ImportFlowResponse flow. */ + public flow: string; - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.IParameter); + /** + * Creates a new ImportFlowResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFlowResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; - /** Parameter displayName. */ - public displayName: string; + /** + * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * @param message ImportFlowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Parameter required. */ - public required: boolean; + /** + * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * @param message ImportFlowResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Parameter entityType. */ - public entityType: string; + /** + * Decodes an ImportFlowResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFlowResponse + * @throws {Error} If the payload is not a reader or 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.ImportFlowResponse; - /** Parameter isList. */ - public isList: boolean; + /** + * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFlowResponse + * @throws {Error} If the payload is not a 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.ImportFlowResponse; - /** Parameter fillBehavior. */ - public fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + /** + * Verifies an ImportFlowResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** Parameter defaultValue. */ - public defaultValue?: (google.protobuf.IValue|null); + /** + * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFlowResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse; - /** Parameter redact. */ - public redact: boolean; + /** + * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * @param message ImportFlowResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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.Form.IParameter): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + /** + * Converts this ImportFlowResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ImportFlowResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ExportFlowRequest. */ + interface IExportFlowRequest { - /** - * 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.Form.Parameter; + /** ExportFlowRequest name */ + name?: (string|null); - /** - * 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.Form.Parameter; + /** ExportFlowRequest flowUri */ + flowUri?: (string|null); - /** - * 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); + /** ExportFlowRequest includeReferencedFlows */ + includeReferencedFlows?: (boolean|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.Form.Parameter; + /** Represents an ExportFlowRequest. */ + class ExportFlowRequest implements IExportFlowRequest { - /** - * 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.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ExportFlowRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest); - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ExportFlowRequest name. */ + public name: string; - /** - * Gets the default type url for Parameter - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ExportFlowRequest flowUri. */ + public flowUri: string; - namespace Parameter { + /** ExportFlowRequest includeReferencedFlows. */ + public includeReferencedFlows: boolean; - /** Properties of a FillBehavior. */ - interface IFillBehavior { + /** + * Creates a new ExportFlowRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFlowRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; - /** FillBehavior initialPromptFulfillment */ - initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * @param message ExportFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** FillBehavior repromptEventHandlers */ - repromptEventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); - } + /** + * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * @param message ExportFlowRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a FillBehavior. */ - class FillBehavior implements IFillBehavior { - - /** - * Constructs a new FillBehavior. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior); - - /** FillBehavior initialPromptFulfillment. */ - public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - - /** FillBehavior repromptEventHandlers. */ - public repromptEventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; - - /** - * Creates a new FillBehavior instance using the specified properties. - * @param [properties] Properties to set - * @returns FillBehavior instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; - - /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @param message FillBehavior message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @param message FillBehavior message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FillBehavior message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FillBehavior - * @throws {Error} If the payload is not a reader or 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.Form.Parameter.FillBehavior; + /** + * Decodes an ExportFlowRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFlowRequest + * @throws {Error} If the payload is not a reader or 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.ExportFlowRequest; - /** - * Decodes a FillBehavior message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FillBehavior - * @throws {Error} If the payload is not a 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.Form.Parameter.FillBehavior; + /** + * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFlowRequest + * @throws {Error} If the payload is not a 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.ExportFlowRequest; - /** - * Verifies a FillBehavior message. - * @param message 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 an ExportFlowRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FillBehavior - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + /** + * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFlowRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest; - /** - * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. - * @param message FillBehavior - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. + * @param message ExportFlowRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FillBehavior to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this ExportFlowRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FillBehavior - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for ExportFlowRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EventHandler. */ - interface IEventHandler { - - /** EventHandler name */ - name?: (string|null); - - /** EventHandler event */ - event?: (string|null); - - /** EventHandler triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** Properties of an ExportFlowResponse. */ + interface IExportFlowResponse { - /** EventHandler targetPage */ - targetPage?: (string|null); + /** ExportFlowResponse flowUri */ + flowUri?: (string|null); - /** EventHandler targetFlow */ - targetFlow?: (string|null); + /** ExportFlowResponse flowContent */ + flowContent?: (Uint8Array|string|null); } - /** Represents an EventHandler. */ - class EventHandler implements IEventHandler { + /** Represents an ExportFlowResponse. */ + class ExportFlowResponse implements IExportFlowResponse { /** - * Constructs a new EventHandler. + * Constructs a new ExportFlowResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler); - - /** EventHandler name. */ - public name: string; - - /** EventHandler event. */ - public event: string; - - /** EventHandler triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse); - /** EventHandler targetPage. */ - public targetPage?: (string|null); + /** ExportFlowResponse flowUri. */ + public flowUri?: (string|null); - /** EventHandler targetFlow. */ - public targetFlow?: (string|null); + /** ExportFlowResponse flowContent. */ + public flowContent?: (Uint8Array|string|null); - /** EventHandler target. */ - public target?: ("targetPage"|"targetFlow"); + /** ExportFlowResponse flow. */ + public flow?: ("flowUri"|"flowContent"); /** - * Creates a new EventHandler instance using the specified properties. + * Creates a new ExportFlowResponse instance using the specified properties. * @param [properties] Properties to set - * @returns EventHandler instance + * @returns ExportFlowResponse instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler): google.cloud.dialogflow.cx.v3beta1.EventHandler; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. - * @param message EventHandler message or plain object to encode + * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * @param message ExportFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. - * @param message EventHandler message or plain object to encode + * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * @param message ExportFlowResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EventHandler message from the specified reader or buffer. + * Decodes an ExportFlowResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EventHandler + * @returns ExportFlowResponse * @throws {Error} If the payload is not a reader or 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.EventHandler; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Decodes an EventHandler message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EventHandler + * @returns ExportFlowResponse * @throws {Error} If the payload is not a 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.EventHandler; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Verifies an EventHandler message. + * Verifies an ExportFlowResponse message. * @param message Plain 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 EventHandler message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EventHandler + * @returns ExportFlowResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventHandler; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse; /** - * Creates a plain object from an EventHandler message. Also converts values to other types if specified. - * @param message EventHandler + * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. + * @param message ExportFlowResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EventHandler to JSON. + * Converts this ExportFlowResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EventHandler + * Gets the default type url for ExportFlowResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TransitionRoute. */ - interface ITransitionRoute { - - /** TransitionRoute name */ - name?: (string|null); - - /** TransitionRoute intent */ - intent?: (string|null); - - /** TransitionRoute condition */ - condition?: (string|null); - - /** TransitionRoute triggerFulfillment */ - triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - - /** TransitionRoute targetPage */ - targetPage?: (string|null); - - /** TransitionRoute targetFlow */ - targetFlow?: (string|null); - } - - /** Represents a TransitionRoute. */ - class TransitionRoute implements ITransitionRoute { + /** Represents a Pages */ + class Pages extends $protobuf.rpc.Service { /** - * Constructs a new TransitionRoute. - * @param [properties] Properties to set + * Constructs a new Pages 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.ITransitionRoute); - - /** TransitionRoute name. */ - public name: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** TransitionRoute intent. */ - public intent: string; + /** + * Creates new Pages 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): Pages; - /** TransitionRoute condition. */ - public condition: string; + /** + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPagesResponse + */ + public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback): void; - /** TransitionRoute triggerFulfillment. */ - public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + /** + * Calls ListPages. + * @param request ListPagesRequest message or plain object + * @returns Promise + */ + public listPages(request: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): Promise; - /** TransitionRoute targetPage. */ - public targetPage?: (string|null); + /** + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page + */ + public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback): void; - /** TransitionRoute targetFlow. */ - public targetFlow?: (string|null); + /** + * Calls GetPage. + * @param request GetPageRequest message or plain object + * @returns Promise + */ + public getPage(request: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): Promise; - /** TransitionRoute target. */ - public target?: ("targetPage"|"targetFlow"); + /** + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page + */ + public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback): void; /** - * Creates a new TransitionRoute instance using the specified properties. - * @param [properties] Properties to set - * @returns TransitionRoute instance + * Calls CreatePage. + * @param request CreatePageRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public createPage(request: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): Promise; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. - * @param message TransitionRoute message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Page */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback): void; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. - * @param message TransitionRoute message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdatePage. + * @param request UpdatePageRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; + public updatePage(request: google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest): Promise; /** - * Decodes a TransitionRoute message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransitionRoute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeletePage. + * @param request DeletePageRequest 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.TransitionRoute; + public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest, callback: google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback): void; /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransitionRoute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeletePage. + * @param request DeletePageRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + public deletePage(request: google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest): Promise; + } + + namespace Pages { /** - * Verifies a TransitionRoute 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.Pages|listPages}. + * @param error Error, if any + * @param [response] ListPagesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListPagesCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) => void; /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransitionRoute + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. + * @param error Error, if any + * @param [response] Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + type GetPageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. - * @param message TransitionRoute - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. + * @param error Error, if any + * @param [response] Page */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CreatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Converts this TransitionRoute to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. + * @param error Error, if any + * @param [response] Page */ - public toJSON(): { [k: string]: any }; + type UpdatePageCallback = (error: (Error|null), response?: google.cloud.dialogflow.cx.v3beta1.Page) => void; /** - * Gets the default type url for TransitionRoute - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. + * @param error Error, if any + * @param [response] Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type DeletePageCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a ListPagesRequest. */ - interface IListPagesRequest { + /** Properties of a Page. */ + interface IPage { - /** ListPagesRequest parent */ - parent?: (string|null); + /** Page name */ + name?: (string|null); - /** ListPagesRequest languageCode */ - languageCode?: (string|null); + /** Page displayName */ + displayName?: (string|null); - /** ListPagesRequest pageSize */ - pageSize?: (number|null); + /** Page entryFulfillment */ + entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - /** ListPagesRequest pageToken */ - pageToken?: (string|null); + /** Page form */ + form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + + /** Page transitionRouteGroups */ + transitionRouteGroups?: (string[]|null); + + /** Page transitionRoutes */ + transitionRoutes?: (google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]|null); + + /** Page eventHandlers */ + eventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); } - /** Represents a ListPagesRequest. */ - class ListPagesRequest implements IListPagesRequest { + /** Represents a Page. */ + class Page implements IPage { /** - * Constructs a new ListPagesRequest. + * Constructs a new Page. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IPage); - /** ListPagesRequest parent. */ - public parent: string; + /** Page name. */ + public name: string; - /** ListPagesRequest languageCode. */ - public languageCode: string; + /** Page displayName. */ + public displayName: string; - /** ListPagesRequest pageSize. */ - public pageSize: number; + /** Page entryFulfillment. */ + public entryFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); - /** ListPagesRequest pageToken. */ - public pageToken: string; + /** Page form. */ + public form?: (google.cloud.dialogflow.cx.v3beta1.IForm|null); + + /** Page transitionRouteGroups. */ + public transitionRouteGroups: string[]; + + /** Page transitionRoutes. */ + public transitionRoutes: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute[]; + + /** Page eventHandlers. */ + public eventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; /** - * Creates a new ListPagesRequest instance using the specified properties. + * Creates a new Page instance using the specified properties. * @param [properties] Properties to set - * @returns ListPagesRequest instance + * @returns Page instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IPage): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. - * @param message ListPagesRequest message or plain object to encode + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. - * @param message ListPagesRequest message or plain object to encode + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * @param message Page message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IPage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPagesRequest message from the specified reader or buffer. + * Decodes a Page message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPagesRequest + * @returns Page * @throws {Error} If the payload is not a reader or 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.ListPagesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. + * Decodes a Page message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPagesRequest + * @returns Page * @throws {Error} If the payload is not a 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.ListPagesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Verifies a ListPagesRequest message. + * Verifies a Page message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Page message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPagesRequest + * @returns Page */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Page; /** - * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. - * @param message ListPagesRequest - * @param [options] Conversion options + * Creates a plain object from a Page message. Also converts values to other types if specified. + * @param message Page + * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Page, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPagesRequest to JSON. + * Converts this Page to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPagesRequest + * Gets the default type url for Page * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPagesResponse. */ - interface IListPagesResponse { - - /** ListPagesResponse pages */ - pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); + /** Properties of a Form. */ + interface IForm { - /** ListPagesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Form parameters */ + parameters?: (google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]|null); } - /** Represents a ListPagesResponse. */ - class ListPagesResponse implements IListPagesResponse { + /** Represents a Form. */ + class Form implements IForm { /** - * Constructs a new ListPagesResponse. + * Constructs a new Form. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); - - /** ListPagesResponse pages. */ - public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IForm); - /** ListPagesResponse nextPageToken. */ - public nextPageToken: string; + /** Form parameters. */ + public parameters: google.cloud.dialogflow.cx.v3beta1.Form.IParameter[]; /** - * Creates a new ListPagesResponse instance using the specified properties. + * Creates a new Form instance using the specified properties. * @param [properties] Properties to set - * @returns ListPagesResponse instance + * @returns Form instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IForm): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. - * @param message ListPagesResponse message or plain object to encode + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. - * @param message ListPagesResponse message or plain object to encode + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * @param message Form message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IForm, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPagesResponse message from the specified reader or buffer. + * Decodes a Form message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPagesResponse + * @returns Form * @throws {Error} If the payload is not a reader or 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.ListPagesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * Decodes a Form message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPagesResponse + * @returns Form * @throws {Error} If the payload is not a 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.ListPagesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Verifies a ListPagesResponse message. + * Verifies a Form message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Form message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPagesResponse + * @returns Form */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form; /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. - * @param message ListPagesResponse + * Creates a plain object from a Form message. Also converts values to other types if specified. + * @param message Form * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPagesResponse to JSON. + * Converts this Form to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPagesResponse + * Gets the default type url for Form * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPageRequest. */ - interface IGetPageRequest { + namespace Form { - /** GetPageRequest name */ + /** Properties of a Parameter. */ + interface IParameter { + + /** Parameter displayName */ + displayName?: (string|null); + + /** Parameter required */ + required?: (boolean|null); + + /** Parameter entityType */ + entityType?: (string|null); + + /** Parameter isList */ + isList?: (boolean|null); + + /** Parameter fillBehavior */ + fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + + /** Parameter defaultValue */ + defaultValue?: (google.protobuf.IValue|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.Form.IParameter); + + /** Parameter displayName. */ + public displayName: string; + + /** Parameter required. */ + public required: boolean; + + /** Parameter entityType. */ + public entityType: string; + + /** Parameter isList. */ + public isList: boolean; + + /** Parameter fillBehavior. */ + public fillBehavior?: (google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null); + + /** Parameter defaultValue. */ + public defaultValue?: (google.protobuf.IValue|null); + + /** 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.Form.IParameter): google.cloud.dialogflow.cx.v3beta1.Form.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.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.Form.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.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.Form.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.Form.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.Form.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.Form.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.Form.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Parameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Parameter { + + /** Properties of a FillBehavior. */ + interface IFillBehavior { + + /** FillBehavior initialPromptFulfillment */ + initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** FillBehavior repromptEventHandlers */ + repromptEventHandlers?: (google.cloud.dialogflow.cx.v3beta1.IEventHandler[]|null); + } + + /** Represents a FillBehavior. */ + class FillBehavior implements IFillBehavior { + + /** + * Constructs a new FillBehavior. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior); + + /** FillBehavior initialPromptFulfillment. */ + public initialPromptFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** FillBehavior repromptEventHandlers. */ + public repromptEventHandlers: google.cloud.dialogflow.cx.v3beta1.IEventHandler[]; + + /** + * Creates a new FillBehavior instance using the specified properties. + * @param [properties] Properties to set + * @returns FillBehavior instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + + /** + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * @param message FillBehavior message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * @param message FillBehavior message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FillBehavior message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FillBehavior + * @throws {Error} If the payload is not a reader or 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.Form.Parameter.FillBehavior; + + /** + * Decodes a FillBehavior message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FillBehavior + * @throws {Error} If the payload is not a 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.Form.Parameter.FillBehavior; + + /** + * Verifies a FillBehavior message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FillBehavior + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior; + + /** + * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. + * @param message FillBehavior + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FillBehavior to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FillBehavior + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Properties of an EventHandler. */ + interface IEventHandler { + + /** EventHandler name */ name?: (string|null); - /** GetPageRequest languageCode */ - languageCode?: (string|null); + /** EventHandler event */ + event?: (string|null); + + /** EventHandler triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** EventHandler targetPage */ + targetPage?: (string|null); + + /** EventHandler targetFlow */ + targetFlow?: (string|null); } - /** Represents a GetPageRequest. */ - class GetPageRequest implements IGetPageRequest { + /** Represents an EventHandler. */ + class EventHandler implements IEventHandler { /** - * Constructs a new GetPageRequest. + * Constructs a new EventHandler. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler); - /** GetPageRequest name. */ + /** EventHandler name. */ public name: string; - /** GetPageRequest languageCode. */ - public languageCode: string; + /** EventHandler event. */ + public event: string; + + /** EventHandler triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** EventHandler targetPage. */ + public targetPage?: (string|null); + + /** EventHandler targetFlow. */ + public targetFlow?: (string|null); + + /** EventHandler target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Creates a new GetPageRequest instance using the specified properties. + * Creates a new EventHandler instance using the specified properties. * @param [properties] Properties to set - * @returns GetPageRequest instance + * @returns EventHandler instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IEventHandler): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. - * @param message GetPageRequest message or plain object to encode + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. - * @param message GetPageRequest message or plain object to encode + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * @param message EventHandler message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IEventHandler, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPageRequest message from the specified reader or buffer. + * Decodes an EventHandler message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPageRequest + * @returns EventHandler * @throws {Error} If the payload is not a reader or 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.GetPageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * Decodes an EventHandler message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPageRequest + * @returns EventHandler * @throws {Error} If the payload is not a 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.GetPageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Verifies a GetPageRequest message. + * Verifies an EventHandler message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPageRequest + * @returns EventHandler */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.EventHandler; /** - * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. - * @param message GetPageRequest + * Creates a plain object from an EventHandler message. Also converts values to other types if specified. + * @param message EventHandler * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.EventHandler, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPageRequest to JSON. + * Converts this EventHandler to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPageRequest + * Gets the default type url for EventHandler * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePageRequest. */ - interface ICreatePageRequest { + /** Properties of a TransitionRoute. */ + interface ITransitionRoute { - /** CreatePageRequest parent */ - parent?: (string|null); + /** TransitionRoute name */ + name?: (string|null); - /** CreatePageRequest page */ - page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** TransitionRoute intent */ + intent?: (string|null); - /** CreatePageRequest languageCode */ - languageCode?: (string|null); + /** TransitionRoute condition */ + condition?: (string|null); + + /** TransitionRoute triggerFulfillment */ + triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** TransitionRoute targetPage */ + targetPage?: (string|null); + + /** TransitionRoute targetFlow */ + targetFlow?: (string|null); } - /** Represents a CreatePageRequest. */ - class CreatePageRequest implements ICreatePageRequest { + /** Represents a TransitionRoute. */ + class TransitionRoute implements ITransitionRoute { /** - * Constructs a new CreatePageRequest. + * Constructs a new TransitionRoute. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute); - /** CreatePageRequest parent. */ - public parent: string; + /** TransitionRoute name. */ + public name: string; - /** CreatePageRequest page. */ - public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + /** TransitionRoute intent. */ + public intent: string; - /** CreatePageRequest languageCode. */ - public languageCode: string; + /** TransitionRoute condition. */ + public condition: string; + + /** TransitionRoute triggerFulfillment. */ + public triggerFulfillment?: (google.cloud.dialogflow.cx.v3beta1.IFulfillment|null); + + /** TransitionRoute targetPage. */ + public targetPage?: (string|null); + + /** TransitionRoute targetFlow. */ + public targetFlow?: (string|null); + + /** TransitionRoute target. */ + public target?: ("targetPage"|"targetFlow"); /** - * Creates a new CreatePageRequest instance using the specified properties. + * Creates a new TransitionRoute instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePageRequest instance + * @returns TransitionRoute instance */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. - * @param message CreatePageRequest message or plain object to encode + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. - * @param message CreatePageRequest message or plain object to encode + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * @param message TransitionRoute message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ITransitionRoute, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePageRequest message from the specified reader or buffer. + * Decodes a TransitionRoute message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePageRequest + * @returns TransitionRoute * @throws {Error} If the payload is not a reader or 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.CreatePageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePageRequest + * @returns TransitionRoute * @throws {Error} If the payload is not a 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.CreatePageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; /** - * Verifies a CreatePageRequest message. + * Verifies a TransitionRoute message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePageRequest + * @returns TransitionRoute */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.TransitionRoute; + + /** + * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * @param message TransitionRoute + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.TransitionRoute, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TransitionRoute to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TransitionRoute + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPagesRequest. */ + interface IListPagesRequest { + + /** ListPagesRequest parent */ + parent?: (string|null); + + /** ListPagesRequest languageCode */ + languageCode?: (string|null); + + /** ListPagesRequest pageSize */ + pageSize?: (number|null); + + /** ListPagesRequest pageToken */ + pageToken?: (string|null); + } + + /** Represents a ListPagesRequest. */ + class ListPagesRequest implements IListPagesRequest { + + /** + * Constructs a new ListPagesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest); + + /** ListPagesRequest parent. */ + public parent: string; + + /** ListPagesRequest languageCode. */ + public languageCode: string; + + /** ListPagesRequest pageSize. */ + public pageSize: number; + + /** ListPagesRequest pageToken. */ + public pageToken: string; + + /** + * Creates a new ListPagesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPagesRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + + /** + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * @param message ListPagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. + * @param message ListPagesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPagesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPagesRequest + * @throws {Error} If the payload is not a reader or 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.ListPagesRequest; + + /** + * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPagesRequest + * @throws {Error} If the payload is not a 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.ListPagesRequest; + + /** + * Verifies a ListPagesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPagesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesRequest; + + /** + * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. + * @param message ListPagesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPagesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPagesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListPagesResponse. */ + interface IListPagesResponse { + + /** ListPagesResponse pages */ + pages?: (google.cloud.dialogflow.cx.v3beta1.IPage[]|null); + + /** ListPagesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListPagesResponse. */ + class ListPagesResponse implements IListPagesResponse { + + /** + * Constructs a new ListPagesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse); + + /** ListPagesResponse pages. */ + public pages: google.cloud.dialogflow.cx.v3beta1.IPage[]; + + /** ListPagesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListPagesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPagesResponse instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + + /** + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @param message ListPagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @param message ListPagesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IListPagesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPagesResponse + * @throws {Error} If the payload is not a reader or 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.ListPagesResponse; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPagesResponse + * @throws {Error} If the payload is not a 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.ListPagesResponse; + + /** + * Verifies a ListPagesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPagesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ListPagesResponse; + + /** + * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * @param message ListPagesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListPagesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListPagesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetPageRequest. */ + interface IGetPageRequest { + + /** GetPageRequest name */ + name?: (string|null); + + /** GetPageRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a GetPageRequest. */ + class GetPageRequest implements IGetPageRequest { + + /** + * Constructs a new GetPageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest); + + /** GetPageRequest name. */ + public name: string; + + /** GetPageRequest languageCode. */ + public languageCode: string; + + /** + * Creates a new GetPageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPageRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + + /** + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * @param message GetPageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * @param message GetPageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IGetPageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetPageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPageRequest + * @throws {Error} If the payload is not a reader or 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.GetPageRequest; + + /** + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPageRequest + * @throws {Error} If the payload is not a 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.GetPageRequest; + + /** + * Verifies a GetPageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.GetPageRequest; + + /** + * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. + * @param message GetPageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.GetPageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetPageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetPageRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreatePageRequest. */ + interface ICreatePageRequest { + + /** CreatePageRequest parent */ + parent?: (string|null); + + /** CreatePageRequest page */ + page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** CreatePageRequest languageCode */ + languageCode?: (string|null); + } + + /** Represents a CreatePageRequest. */ + class CreatePageRequest implements ICreatePageRequest { + + /** + * Constructs a new CreatePageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest); + + /** CreatePageRequest parent. */ + public parent: string; + + /** CreatePageRequest page. */ + public page?: (google.cloud.dialogflow.cx.v3beta1.IPage|null); + + /** CreatePageRequest languageCode. */ + public languageCode: string; + + /** + * Creates a new CreatePageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePageRequest instance + */ + public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; + + /** + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @param message CreatePageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @param message CreatePageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePageRequest + * @throws {Error} If the payload is not a reader or 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.CreatePageRequest; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePageRequest + * @throws {Error} If the payload is not a 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.CreatePageRequest; + + /** + * Verifies a CreatePageRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.CreatePageRequest; /** * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. @@ -36930,931 +37961,312 @@ export namespace google { * @param message TelephonyTransferCall message or plain object to encode * @param [writer] Writer to encode to * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TelephonyTransferCall - * @throws {Error} If the payload is not a reader or 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.ResponseMessage.TelephonyTransferCall; - - /** - * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TelephonyTransferCall - * @throws {Error} If the payload is not a 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.ResponseMessage.TelephonyTransferCall; - - /** - * Verifies a TelephonyTransferCall message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TelephonyTransferCall - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; - - /** - * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. - * @param message TelephonyTransferCall - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TelephonyTransferCall to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TelephonyTransferCall - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ValidationMessage. */ - interface IValidationMessage { - - /** ValidationMessage resourceType */ - resourceType?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null); - - /** ValidationMessage resources */ - resources?: (string[]|null); - - /** ValidationMessage resourceNames */ - resourceNames?: (google.cloud.dialogflow.cx.v3beta1.IResourceName[]|null); - - /** ValidationMessage severity */ - severity?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null); - - /** ValidationMessage detail */ - detail?: (string|null); - } - - /** Represents a ValidationMessage. */ - class ValidationMessage implements IValidationMessage { - - /** - * Constructs a new ValidationMessage. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage); - - /** ValidationMessage resourceType. */ - public resourceType: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType); - - /** ValidationMessage resources. */ - public resources: string[]; - - /** ValidationMessage resourceNames. */ - public resourceNames: google.cloud.dialogflow.cx.v3beta1.IResourceName[]; - - /** ValidationMessage severity. */ - public severity: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity); - - /** ValidationMessage detail. */ - public detail: string; - - /** - * Creates a new ValidationMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns ValidationMessage instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; - - /** - * Encodes the specified ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. - * @param message ValidationMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. - * @param message ValidationMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ValidationMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ValidationMessage - * @throws {Error} If the payload is not a reader or 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.ValidationMessage; - - /** - * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ValidationMessage - * @throws {Error} If the payload is not a 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.ValidationMessage; - - /** - * Verifies a ValidationMessage message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ValidationMessage message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ValidationMessage - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; - - /** - * Creates a plain object from a ValidationMessage message. Also converts values to other types if specified. - * @param message ValidationMessage - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ValidationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ValidationMessage to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ValidationMessage - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ValidationMessage { - - /** ResourceType enum. */ - enum ResourceType { - 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 - } - - /** Severity enum. */ - enum Severity { - SEVERITY_UNSPECIFIED = 0, - INFO = 1, - WARNING = 2, - ERROR = 3 - } - } - - /** Properties of a ResourceName. */ - interface IResourceName { - - /** ResourceName name */ - name?: (string|null); - - /** ResourceName displayName */ - displayName?: (string|null); - } - - /** Represents a ResourceName. */ - class ResourceName implements IResourceName { - - /** - * Constructs a new ResourceName. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName); - - /** ResourceName name. */ - public name: string; - - /** ResourceName displayName. */ - public displayName: string; - - /** - * Creates a new ResourceName instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourceName instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName): google.cloud.dialogflow.cx.v3beta1.ResourceName; - - /** - * Encodes the specified ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. - * @param message ResourceName message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.dialogflow.cx.v3beta1.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. - * @param message ResourceName message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourceName message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourceName - * @throws {Error} If the payload is not a reader or 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.ResourceName; - - /** - * Decodes a ResourceName message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResourceName - * @throws {Error} If the payload is not a 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.ResourceName; - - /** - * Verifies a ResourceName message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ResourceName message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResourceName - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResourceName; - - /** - * Creates a plain object from a ResourceName message. Also converts values to other types if specified. - * @param message ResourceName - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResourceName, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ResourceName to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ResourceName - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** 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; - - /** SpeechWordInfo startOffset. */ - public startOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo endOffset. */ - public endOffset?: (google.protobuf.IDuration|null); - - /** SpeechWordInfo confidence. */ - public confidence: number; - - /** - * Creates a new SpeechWordInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SpeechWordInfo instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; - - /** - * 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.ISpeechWordInfo, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.SpeechWordInfo; - - /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.SpeechWordInfo; - - /** - * 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 SpeechWordInfo message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpeechWordInfo - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo; - - /** - * 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.SpeechWordInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SpeechWordInfo to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SpeechWordInfo - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an InputAudioConfig. */ - interface IInputAudioConfig { - - /** InputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.AudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.AudioEncoding|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 InputAudioConfig. */ - class InputAudioConfig implements IInputAudioConfig { - - /** - * Constructs a new InputAudioConfig. - * @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); - - /** 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 InputAudioConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns InputAudioConfig instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; - - /** - * 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.IInputAudioConfig, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.InputAudioConfig; - - /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.InputAudioConfig; - - /** - * 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 InputAudioConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputAudioConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.InputAudioConfig; - - /** - * 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.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InputAudioConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InputAudioConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** SsmlVoiceGender enum. */ - enum SsmlVoiceGender { - SSML_VOICE_GENDER_UNSPECIFIED = 0, - SSML_VOICE_GENDER_MALE = 1, - SSML_VOICE_GENDER_FEMALE = 2, - SSML_VOICE_GENDER_NEUTRAL = 3 - } - - /** Properties of a VoiceSelectionParams. */ - interface IVoiceSelectionParams { - - /** VoiceSelectionParams name */ - name?: (string|null); - - /** VoiceSelectionParams ssmlGender */ - ssmlGender?: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null); - } - - /** Represents a VoiceSelectionParams. */ - class VoiceSelectionParams implements IVoiceSelectionParams { - - /** - * Constructs a new VoiceSelectionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams); - - /** VoiceSelectionParams name. */ - public name: string; - - /** VoiceSelectionParams ssmlGender. */ - public ssmlGender: (google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|keyof typeof google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender); - - /** - * Creates a new VoiceSelectionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VoiceSelectionParams instance - */ - public static create(properties?: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; - - /** - * 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.IVoiceSelectionParams, 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 - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.VoiceSelectionParams; + */ + public static encodeDelimited(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.VoiceSelectionParams; + /** + * Decodes a TelephonyTransferCall message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TelephonyTransferCall + * @throws {Error} If the payload is not a reader or 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.ResponseMessage.TelephonyTransferCall; - /** - * 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); + /** + * Decodes a TelephonyTransferCall message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TelephonyTransferCall + * @throws {Error} If the payload is not a 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.ResponseMessage.TelephonyTransferCall; - /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VoiceSelectionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams; + /** + * Verifies a TelephonyTransferCall message. + * @param message Plain object 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 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.VoiceSelectionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a TelephonyTransferCall message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TelephonyTransferCall + */ + public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall; - /** - * Converts this VoiceSelectionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a TelephonyTransferCall message. Also converts values to other types if specified. + * @param message TelephonyTransferCall + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for VoiceSelectionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this TelephonyTransferCall to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TelephonyTransferCall + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a SynthesizeSpeechConfig. */ - interface ISynthesizeSpeechConfig { + /** Properties of a ValidationMessage. */ + interface IValidationMessage { - /** SynthesizeSpeechConfig speakingRate */ - speakingRate?: (number|null); + /** ValidationMessage resourceType */ + resourceType?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|null); - /** SynthesizeSpeechConfig pitch */ - pitch?: (number|null); + /** ValidationMessage resources */ + resources?: (string[]|null); - /** SynthesizeSpeechConfig volumeGainDb */ - volumeGainDb?: (number|null); + /** ValidationMessage resourceNames */ + resourceNames?: (google.cloud.dialogflow.cx.v3beta1.IResourceName[]|null); - /** SynthesizeSpeechConfig effectsProfileId */ - effectsProfileId?: (string[]|null); + /** ValidationMessage severity */ + severity?: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|null); - /** SynthesizeSpeechConfig voice */ - voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + /** ValidationMessage detail */ + detail?: (string|null); } - /** Represents a SynthesizeSpeechConfig. */ - class SynthesizeSpeechConfig implements ISynthesizeSpeechConfig { + /** Represents a ValidationMessage. */ + class ValidationMessage implements IValidationMessage { /** - * Constructs a new SynthesizeSpeechConfig. + * Constructs a new ValidationMessage. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IValidationMessage); - /** SynthesizeSpeechConfig speakingRate. */ - public speakingRate: number; + /** ValidationMessage resourceType. */ + public resourceType: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType); - /** SynthesizeSpeechConfig pitch. */ - public pitch: number; + /** ValidationMessage resources. */ + public resources: string[]; - /** SynthesizeSpeechConfig volumeGainDb. */ - public volumeGainDb: number; + /** ValidationMessage resourceNames. */ + public resourceNames: google.cloud.dialogflow.cx.v3beta1.IResourceName[]; - /** SynthesizeSpeechConfig effectsProfileId. */ - public effectsProfileId: string[]; + /** ValidationMessage severity. */ + public severity: (google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity|keyof typeof google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity); - /** SynthesizeSpeechConfig voice. */ - public voice?: (google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null); + /** ValidationMessage detail. */ + public detail: string; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new ValidationMessage instance using the specified properties. * @param [properties] Properties to set - * @returns SynthesizeSpeechConfig instance + * @returns ValidationMessage 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.IValidationMessage): google.cloud.dialogflow.cx.v3beta1.ValidationMessage; /** - * 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 ValidationMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * @param message ValidationMessage 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.IValidationMessage, 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 ValidationMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify|verify} messages. + * @param message ValidationMessage 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.IValidationMessage, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer. + * Decodes a ValidationMessage 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 ValidationMessage * @throws {Error} If the payload is not a reader or 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.ValidationMessage; /** - * Decodes a SynthesizeSpeechConfig message from the specified reader or buffer, length delimited. + * Decodes a ValidationMessage message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SynthesizeSpeechConfig + * @returns ValidationMessage * @throws {Error} If the payload is not a 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.ValidationMessage; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a ValidationMessage message. * @param message Plain object 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 ValidationMessage message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SynthesizeSpeechConfig + * @returns ValidationMessage */ - 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.ValidationMessage; /** - * 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 ValidationMessage message. Also converts values to other types if specified. + * @param message ValidationMessage * @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.ValidationMessage, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this ValidationMessage to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SynthesizeSpeechConfig + * Gets the default type url for ValidationMessage * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 - } + namespace ValidationMessage { - /** Properties of an OutputAudioConfig. */ - interface IOutputAudioConfig { + /** ResourceType enum. */ + enum ResourceType { + 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 + } - /** OutputAudioConfig audioEncoding */ - audioEncoding?: (google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|keyof typeof google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding|null); + /** Severity enum. */ + enum Severity { + SEVERITY_UNSPECIFIED = 0, + INFO = 1, + WARNING = 2, + ERROR = 3 + } + } - /** OutputAudioConfig sampleRateHertz */ - sampleRateHertz?: (number|null); + /** Properties of a ResourceName. */ + interface IResourceName { - /** OutputAudioConfig synthesizeSpeechConfig */ - synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + /** ResourceName name */ + name?: (string|null); + + /** ResourceName displayName */ + displayName?: (string|null); } - /** Represents an OutputAudioConfig. */ - class OutputAudioConfig implements IOutputAudioConfig { + /** Represents a ResourceName. */ + class ResourceName implements IResourceName { /** - * Constructs a new OutputAudioConfig. + * Constructs a new ResourceName. * @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); + constructor(properties?: google.cloud.dialogflow.cx.v3beta1.IResourceName); - /** OutputAudioConfig sampleRateHertz. */ - public sampleRateHertz: number; + /** ResourceName name. */ + public name: string; - /** OutputAudioConfig synthesizeSpeechConfig. */ - public synthesizeSpeechConfig?: (google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null); + /** ResourceName displayName. */ + public displayName: string; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new ResourceName instance using the specified properties. * @param [properties] Properties to set - * @returns OutputAudioConfig instance + * @returns ResourceName 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.IResourceName): google.cloud.dialogflow.cx.v3beta1.ResourceName; /** - * 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 ResourceName message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * @param message ResourceName 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.IResourceName, 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 ResourceName message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResourceName.verify|verify} messages. + * @param message ResourceName 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.IResourceName, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer. + * Decodes a ResourceName 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 ResourceName * @throws {Error} If the payload is not a reader or 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.ResourceName; /** - * Decodes an OutputAudioConfig message from the specified reader or buffer, length delimited. + * Decodes a ResourceName message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputAudioConfig + * @returns ResourceName * @throws {Error} If the payload is not a 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.ResourceName; /** - * Verifies an OutputAudioConfig message. + * Verifies a ResourceName message. * @param message Plain 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 ResourceName message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputAudioConfig + * @returns ResourceName */ - 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.ResourceName; /** - * 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 ResourceName message. Also converts values to other types if specified. + * @param message ResourceName * @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.ResourceName, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this ResourceName to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputAudioConfig + * Gets the default type url for ResourceName * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -63788,6 +64200,109 @@ 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 }; + + /** + * Gets the default type url for Duration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a Struct. */ interface IStruct { @@ -64408,109 +64923,6 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** 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 }; - - /** - * Gets the default type url for Duration - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - /** 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 06a73d260de..459154e1d8c 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.js +++ b/packages/google-cloud-dialogflow-cx/protos/protos.js @@ -81,6 +81,7 @@ * Properties of an AdvancedSettings. * @memberof google.cloud.dialogflow.cx.v3 * @interface IAdvancedSettings + * @property {google.cloud.dialogflow.cx.v3.IGcsDestination|null} [audioExportGcsDestination] AdvancedSettings audioExportGcsDestination * @property {google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null} [loggingSettings] AdvancedSettings loggingSettings */ @@ -99,6 +100,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * AdvancedSettings audioExportGcsDestination. + * @member {google.cloud.dialogflow.cx.v3.IGcsDestination|null|undefined} audioExportGcsDestination + * @memberof google.cloud.dialogflow.cx.v3.AdvancedSettings + * @instance + */ + AdvancedSettings.prototype.audioExportGcsDestination = null; + /** * AdvancedSettings loggingSettings. * @member {google.cloud.dialogflow.cx.v3.AdvancedSettings.ILoggingSettings|null|undefined} loggingSettings @@ -131,6 +140,8 @@ AdvancedSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.audioExportGcsDestination != null && Object.hasOwnProperty.call(message, "audioExportGcsDestination")) + $root.google.cloud.dialogflow.cx.v3.GcsDestination.encode(message.audioExportGcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.loggingSettings != null && Object.hasOwnProperty.call(message, "loggingSettings")) $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.encode(message.loggingSettings, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; @@ -167,6 +178,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 2: { + message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3.GcsDestination.decode(reader, reader.uint32()); + break; + } case 6: { message.loggingSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.decode(reader, reader.uint32()); break; @@ -206,6 +221,11 @@ AdvancedSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) { + var error = $root.google.cloud.dialogflow.cx.v3.GcsDestination.verify(message.audioExportGcsDestination); + if (error) + return "audioExportGcsDestination." + error; + } if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) { var error = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.verify(message.loggingSettings); if (error) @@ -226,6 +246,11 @@ if (object instanceof $root.google.cloud.dialogflow.cx.v3.AdvancedSettings) return object; var message = new $root.google.cloud.dialogflow.cx.v3.AdvancedSettings(); + if (object.audioExportGcsDestination != null) { + if (typeof object.audioExportGcsDestination !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.AdvancedSettings.audioExportGcsDestination: object expected"); + message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3.GcsDestination.fromObject(object.audioExportGcsDestination); + } if (object.loggingSettings != null) { if (typeof object.loggingSettings !== "object") throw TypeError(".google.cloud.dialogflow.cx.v3.AdvancedSettings.loggingSettings: object expected"); @@ -247,8 +272,12 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.audioExportGcsDestination = null; object.loggingSettings = null; + } + if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) + object.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3.GcsDestination.toObject(message.audioExportGcsDestination, options); if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) object.loggingSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.toObject(message.loggingSettings, options); return object; @@ -510,6 +539,209 @@ return AdvancedSettings; })(); + v3.GcsDestination = (function() { + + /** + * Properties of a GcsDestination. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGcsDestination + * @property {string|null} [uri] GcsDestination uri + */ + + /** + * Constructs a new GcsDestination. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GcsDestination. + * @implements IGcsDestination + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGcsDestination=} [properties] Properties to set + */ + function GcsDestination(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]]; + } + + /** + * GcsDestination uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @instance + */ + GcsDestination.prototype.uri = ""; + + /** + * Creates a new GcsDestination instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3.IGcsDestination=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GcsDestination} GcsDestination instance + */ + GcsDestination.create = function create(properties) { + return new GcsDestination(properties); + }; + + /** + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GcsDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3.IGcsDestination} message GcsDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsDestination.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); + return writer; + }; + + /** + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GcsDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3.IGcsDestination} message GcsDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @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.GcsDestination} GcsDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsDestination.decode = function decode(reader, length) { + 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.GcsDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GcsDestination} GcsDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsDestination message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsDestination.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"; + return null; + }; + + /** + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GcsDestination} GcsDestination + */ + GcsDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GcsDestination) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GcsDestination(); + if (object.uri != null) + message.uri = String(object.uri); + return message; + }; + + /** + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3.GcsDestination} message GcsDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + return object; + }; + + /** + * Converts this GcsDestination to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @instance + * @returns {Object.} JSON object + */ + GcsDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GcsDestination + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.GcsDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcsDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GcsDestination"; + }; + + return GcsDestination; + })(); + v3.Agents = (function() { /** @@ -1065,6 +1297,7 @@ * @property {boolean|null} [enableSpellCorrection] Agent enableSpellCorrection * @property {boolean|null} [locked] Agent locked * @property {google.cloud.dialogflow.cx.v3.IAdvancedSettings|null} [advancedSettings] Agent advancedSettings + * @property {google.cloud.dialogflow.cx.v3.ITextToSpeechSettings|null} [textToSpeechSettings] Agent textToSpeechSettings */ /** @@ -1195,6 +1428,14 @@ */ Agent.prototype.advancedSettings = null; + /** + * Agent textToSpeechSettings. + * @member {google.cloud.dialogflow.cx.v3.ITextToSpeechSettings|null|undefined} textToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3.Agent + * @instance + */ + Agent.prototype.textToSpeechSettings = null; + /** * Creates a new Agent instance using the specified properties. * @function create @@ -1248,6 +1489,8 @@ $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) writer.uint32(/* id 27, wireType 0 =*/216).bool(message.locked); + if (message.textToSpeechSettings != null && Object.hasOwnProperty.call(message, "textToSpeechSettings")) + $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.encode(message.textToSpeechSettings, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); return writer; }; @@ -1340,6 +1583,10 @@ message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.decode(reader, reader.uint32()); break; } + case 31: { + message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -1425,6 +1672,11 @@ if (error) return "advancedSettings." + error; } + if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.verify(message.textToSpeechSettings); + if (error) + return "textToSpeechSettings." + error; + } return null; }; @@ -1479,6 +1731,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3.Agent.advancedSettings: object expected"); message.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.fromObject(object.advancedSettings); } + if (object.textToSpeechSettings != null) { + if (typeof object.textToSpeechSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Agent.textToSpeechSettings: object expected"); + message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.fromObject(object.textToSpeechSettings); + } return message; }; @@ -1511,6 +1768,7 @@ object.enableSpellCorrection = false; object.advancedSettings = null; object.locked = false; + object.textToSpeechSettings = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -1543,6 +1801,8 @@ object.advancedSettings = $root.google.cloud.dialogflow.cx.v3.AdvancedSettings.toObject(message.advancedSettings, options); if (message.locked != null && message.hasOwnProperty("locked")) object.locked = message.locked; + if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) + object.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings.toObject(message.textToSpeechSettings, options); return object; }; @@ -4557,391 +4817,71 @@ return AgentValidationResult; })(); - v3.Flows = (function() { - - /** - * Constructs a new Flows service. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Flows - * @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 Flows(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Flows.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Flows; - - /** - * Creates new Flows service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @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 {Flows} RPC service. Useful where requests and/or responses are streamed. - */ - Flows.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|createFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef CreateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow - */ - - /** - * Calls CreateFlow. - * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { - return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); - }, "name", { value: "CreateFlow" }); - - /** - * Calls CreateFlow. - * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|deleteFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef DeleteFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteFlow. - * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { - return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteFlow" }); - - /** - * Calls DeleteFlow. - * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|listFlows}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef ListFlowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListFlowsResponse} [response] ListFlowsResponse - */ - - /** - * Calls ListFlows. - * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} request ListFlowsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { - return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse, request, callback); - }, "name", { value: "ListFlows" }); - - /** - * Calls ListFlows. - * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} request ListFlowsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef GetFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow - */ - - /** - * Calls GetFlow. - * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} request GetFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { - return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); - }, "name", { value: "GetFlow" }); - - /** - * Calls GetFlow. - * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} request GetFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|updateFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef UpdateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow - */ - - /** - * Calls UpdateFlow. - * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { - return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); - }, "name", { value: "UpdateFlow" }); - - /** - * Calls UpdateFlow. - * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|trainFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef TrainFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls TrainFlow. - * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { - return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "TrainFlow" }); - - /** - * Calls TrainFlow. - * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|validateFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef ValidateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.FlowValidationResult} [response] FlowValidationResult - */ - - /** - * Calls ValidateFlow. - * @function validateFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} request ValidateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.ValidateFlowCallback} callback Node-style callback called with the error, if any, and FlowValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.validateFlow = function validateFlow(request, callback) { - return this.rpcCall(validateFlow, $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest, $root.google.cloud.dialogflow.cx.v3.FlowValidationResult, request, callback); - }, "name", { value: "ValidateFlow" }); - - /** - * Calls ValidateFlow. - * @function validateFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} request ValidateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlowValidationResult}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef GetFlowValidationResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.FlowValidationResult} [response] FlowValidationResult - */ - - /** - * Calls GetFlowValidationResult. - * @function getFlowValidationResult - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResultCallback} callback Node-style callback called with the error, if any, and FlowValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.getFlowValidationResult = function getFlowValidationResult(request, callback) { - return this.rpcCall(getFlowValidationResult, $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest, $root.google.cloud.dialogflow.cx.v3.FlowValidationResult, request, callback); - }, "name", { value: "GetFlowValidationResult" }); - - /** - * Calls GetFlowValidationResult. - * @function getFlowValidationResult - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|importFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef ImportFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ImportFlow. - * @function importFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} request ImportFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.ImportFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.importFlow = function importFlow(request, callback) { - return this.rpcCall(importFlow, $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportFlow" }); - - /** - * Calls ImportFlow. - * @function importFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} request ImportFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|exportFlow}. - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @typedef ExportFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportFlow. - * @function exportFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} request ExportFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Flows.ExportFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.exportFlow = function exportFlow(request, callback) { - return this.rpcCall(exportFlow, $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportFlow" }); - - /** - * Calls ExportFlow. - * @function exportFlow - * @memberof google.cloud.dialogflow.cx.v3.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} request ExportFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * 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; + })(); - return Flows; + /** + * 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.NluSettings = (function() { + v3.SpeechWordInfo = (function() { /** - * Properties of a NluSettings. + * Properties of a SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @interface INluSettings - * @property {google.cloud.dialogflow.cx.v3.NluSettings.ModelType|null} [modelType] NluSettings modelType - * @property {number|null} [classificationThreshold] NluSettings classificationThreshold - * @property {google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode + * @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 NluSettings. + * Constructs a new SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a NluSettings. - * @implements INluSettings + * @classdesc Represents a SpeechWordInfo. + * @implements ISpeechWordInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3.INluSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set */ - function NluSettings(properties) { + function SpeechWordInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4949,103 +4889,117 @@ } /** - * NluSettings modelType. - * @member {google.cloud.dialogflow.cx.v3.NluSettings.ModelType} modelType - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance */ - NluSettings.prototype.modelType = 0; + SpeechWordInfo.prototype.word = ""; /** - * NluSettings classificationThreshold. - * @member {number} classificationThreshold - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance */ - NluSettings.prototype.classificationThreshold = 0; + SpeechWordInfo.prototype.startOffset = null; /** - * NluSettings modelTrainingMode. - * @member {google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode} modelTrainingMode - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance */ - NluSettings.prototype.modelTrainingMode = 0; + SpeechWordInfo.prototype.endOffset = null; /** - * Creates a new NluSettings instance using the specified properties. + * SpeechWordInfo confidence. + * @member {number} confidence + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @instance + */ + SpeechWordInfo.prototype.confidence = 0; + + /** + * Creates a new SpeechWordInfo instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.INluSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings instance + * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo instance */ - NluSettings.create = function create(properties) { - return new NluSettings(properties); + SpeechWordInfo.create = function create(properties) { + return new SpeechWordInfo(properties); }; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.INluSettings} message NluSettings 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 */ - NluSettings.encode = function encode(message, writer) { + SpeechWordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); - if (message.classificationThreshold != null && Object.hasOwnProperty.call(message, "classificationThreshold")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.classificationThreshold); - if (message.modelTrainingMode != null && Object.hasOwnProperty.call(message, "modelTrainingMode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.modelTrainingMode); + 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 NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.INluSettings} message NluSettings 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 */ - NluSettings.encodeDelimited = function encodeDelimited(message, writer) { + SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NluSettings 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.NluSettings + * @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.NluSettings} NluSettings + * @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 */ - NluSettings.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.NluSettings(); + 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.modelType = reader.int32(); + message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } - case 3: { - message.classificationThreshold = reader.float(); + case 2: { + message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 4: { - message.modelTrainingMode = reader.int32(); + message.confidence = reader.float(); break; } default: @@ -5057,228 +5011,164 @@ }; /** - * Decodes a NluSettings 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.NluSettings + * @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.NluSettings} NluSettings + * @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 */ - NluSettings.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 NluSettings message. + * Verifies a SpeechWordInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * @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 */ - NluSettings.verify = function verify(message) { + SpeechWordInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelType != null && message.hasOwnProperty("modelType")) - switch (message.modelType) { - default: - return "modelType: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) - if (typeof message.classificationThreshold !== "number") - return "classificationThreshold: number expected"; - if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - switch (message.modelTrainingMode) { - default: - return "modelTrainingMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } + 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 NluSettings 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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo */ - NluSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.NluSettings) + 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.NluSettings(); - switch (object.modelType) { - default: - if (typeof object.modelType === "number") { - message.modelType = object.modelType; - break; - } - break; - case "MODEL_TYPE_UNSPECIFIED": - case 0: - message.modelType = 0; - break; - case "MODEL_TYPE_STANDARD": - case 1: - message.modelType = 1; - break; - case "MODEL_TYPE_ADVANCED": - case 3: - message.modelType = 3; - break; + 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.classificationThreshold != null) - message.classificationThreshold = Number(object.classificationThreshold); - switch (object.modelTrainingMode) { - default: - if (typeof object.modelTrainingMode === "number") { - message.modelTrainingMode = object.modelTrainingMode; - break; - } - break; - case "MODEL_TRAINING_MODE_UNSPECIFIED": - case 0: - message.modelTrainingMode = 0; - break; - case "MODEL_TRAINING_MODE_AUTOMATIC": - case 1: - message.modelTrainingMode = 1; - break; - case "MODEL_TRAINING_MODE_MANUAL": - case 2: - message.modelTrainingMode = 2; - break; + 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 NluSettings 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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3.NluSettings} message NluSettings + * @param {google.cloud.dialogflow.cx.v3.SpeechWordInfo} message SpeechWordInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NluSettings.toObject = function toObject(message, options) { + SpeechWordInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; - object.classificationThreshold = 0; - object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; + object.startOffset = null; + object.endOffset = null; + object.word = ""; + object.confidence = 0; } - if (message.modelType != null && message.hasOwnProperty("modelType")) - object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelType[message.modelType] === undefined ? message.modelType : $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelType[message.modelType] : message.modelType; - if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) - object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; - if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode[message.modelTrainingMode] === undefined ? message.modelTrainingMode : $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; + 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 NluSettings to JSON. + * Converts this SpeechWordInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @instance * @returns {Object.} JSON object */ - NluSettings.prototype.toJSON = function toJSON() { + SpeechWordInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NluSettings + * Gets the default type url for SpeechWordInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NluSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SpeechWordInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.NluSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SpeechWordInfo"; }; - /** - * ModelType enum. - * @name google.cloud.dialogflow.cx.v3.NluSettings.ModelType - * @enum {number} - * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value - * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value - * @property {number} MODEL_TYPE_ADVANCED=3 MODEL_TYPE_ADVANCED value - */ - NluSettings.ModelType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MODEL_TYPE_STANDARD"] = 1; - values[valuesById[3] = "MODEL_TYPE_ADVANCED"] = 3; - return values; - })(); - - /** - * ModelTrainingMode enum. - * @name google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode - * @enum {number} - * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value - * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value - * @property {number} MODEL_TRAINING_MODE_MANUAL=2 MODEL_TRAINING_MODE_MANUAL value - */ - NluSettings.ModelTrainingMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_TRAINING_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MODEL_TRAINING_MODE_AUTOMATIC"] = 1; - values[valuesById[2] = "MODEL_TRAINING_MODE_MANUAL"] = 2; - return values; - })(); - - return NluSettings; + return SpeechWordInfo; })(); - v3.Flow = (function() { + v3.InputAudioConfig = (function() { /** - * Properties of a Flow. + * Properties of an InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFlow - * @property {string|null} [name] Flow name - * @property {string|null} [displayName] Flow displayName - * @property {string|null} [description] Flow description - * @property {Array.|null} [transitionRoutes] Flow transitionRoutes - * @property {Array.|null} [eventHandlers] Flow eventHandlers - * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups - * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Flow nluSettings + * @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 Flow. + * Constructs a new InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Flow. - * @implements IFlow + * @classdesc Represents an InputAudioConfig. + * @implements IInputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFlow=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set */ - function Flow(properties) { - this.transitionRoutes = []; - this.eventHandlers = []; - this.transitionRouteGroups = []; + function InputAudioConfig(properties) { + this.phraseHints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5286,168 +5176,162 @@ } /** - * Flow name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3.AudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.name = ""; + InputAudioConfig.prototype.audioEncoding = 0; /** - * Flow displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.displayName = ""; + InputAudioConfig.prototype.sampleRateHertz = 0; /** - * Flow description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig enableWordInfo. + * @member {boolean} enableWordInfo + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.description = ""; + InputAudioConfig.prototype.enableWordInfo = false; /** - * Flow transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig phraseHints. + * @member {Array.} phraseHints + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.transitionRoutes = $util.emptyArray; + InputAudioConfig.prototype.phraseHints = $util.emptyArray; /** - * Flow eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.eventHandlers = $util.emptyArray; + InputAudioConfig.prototype.model = ""; /** - * Flow transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig modelVariant. + * @member {google.cloud.dialogflow.cx.v3.SpeechModelVariant} modelVariant + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.transitionRouteGroups = $util.emptyArray; + InputAudioConfig.prototype.modelVariant = 0; /** - * Flow nluSettings. - * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3.Flow + * InputAudioConfig singleUtterance. + * @member {boolean} singleUtterance + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance */ - Flow.prototype.nluSettings = null; + InputAudioConfig.prototype.singleUtterance = false; /** - * Creates a new Flow instance using the specified properties. + * Creates a new InputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IFlow=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow instance + * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig instance */ - Flow.create = function create(properties) { - return new Flow(properties); + InputAudioConfig.create = function create(properties) { + return new InputAudioConfig(properties); }; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. + * 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.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IFlow} message Flow 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 */ - Flow.encode = function encode(message, writer) { + InputAudioConfig.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.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 4, wireType 2 =*/34).fork()).ldelim(); - if (message.eventHandlers != null && message.eventHandlers.length) - for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); + 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 Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.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.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IFlow} message Flow 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 */ - Flow.encodeDelimited = function encodeDelimited(message, writer) { + InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Flow 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.Flow + * @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.Flow} Flow + * @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 */ - Flow.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.Flow(); + 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.name = reader.string(); + message.audioEncoding = reader.int32(); break; } case 2: { - message.displayName = reader.string(); + message.sampleRateHertz = reader.int32(); break; } - case 3: { - message.description = reader.string(); + case 13: { + message.enableWordInfo = reader.bool(); break; } case 4: { - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); + if (!(message.phraseHints && message.phraseHints.length)) + message.phraseHints = []; + message.phraseHints.push(reader.string()); break; } - case 10: { - if (!(message.eventHandlers && message.eventHandlers.length)) - message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); + case 7: { + message.model = reader.string(); break; } - case 15: { - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push(reader.string()); + case 10: { + message.modelVariant = reader.int32(); break; } - case 11: { - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); + case 8: { + message.singleUtterance = reader.bool(); break; } default: @@ -5459,226 +5343,281 @@ }; /** - * Decodes a Flow 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.Flow + * @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.Flow} Flow + * @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 */ - Flow.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 Flow message. + * Verifies an InputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Flow + * @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 */ - Flow.verify = function verify(message) { + InputAudioConfig.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.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; + 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.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { - if (!Array.isArray(message.eventHandlers)) - return "eventHandlers: array expected"; - for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandlers[i]); - if (error) - return "eventHandlers." + 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.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { - if (!Array.isArray(message.transitionRouteGroups)) - return "transitionRouteGroups: array expected"; - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - if (!$util.isString(message.transitionRouteGroups[i])) - return "transitionRouteGroups: 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.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + if (typeof message.singleUtterance !== "boolean") + return "singleUtterance: boolean expected"; return null; }; /** - * Creates a Flow 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.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow + * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig */ - Flow.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Flow) + 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.Flow(); - 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.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.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.Flow.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } - if (object.eventHandlers) { - if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.eventHandlers: array expected"); - message.eventHandlers = []; - for (var i = 0; i < object.eventHandlers.length; ++i) { - if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.InputAudioConfig(); + switch (object.audioEncoding) { + default: + if (typeof object.audioEncoding === "number") { + message.audioEncoding = object.audioEncoding; + break; } + break; + 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.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) - message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + 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.nluSettings != null) { - if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); + if (object.model != null) + message.model = String(object.model); + switch (object.modelVariant) { + default: + if (typeof object.modelVariant === "number") { + message.modelVariant = object.modelVariant; + break; + } + break; + 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 Flow 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.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.Flow} message Flow + * @param {google.cloud.dialogflow.cx.v3.InputAudioConfig} message InputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Flow.toObject = function toObject(message, options) { + InputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.transitionRoutes = []; - object.eventHandlers = []; - object.transitionRouteGroups = []; - } + if (options.arrays || options.defaults) + object.phraseHints = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.nluSettings = 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.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); - } - if (message.eventHandlers && message.eventHandlers.length) { - object.eventHandlers = []; - for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandlers[j], options); + 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.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.AudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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] === undefined ? message.modelVariant : $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 Flow to JSON. + * Converts this InputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @instance * @returns {Object.} JSON object */ - Flow.prototype.toJSON = function toJSON() { + InputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Flow + * Gets the default type url for InputAudioConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Flow + * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Flow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Flow"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.InputAudioConfig"; }; - return Flow; + return InputAudioConfig; })(); - v3.CreateFlowRequest = (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 CreateFlowRequest. + * Properties of a VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreateFlowRequest - * @property {string|null} [parent] CreateFlowRequest parent - * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] CreateFlowRequest flow - * @property {string|null} [languageCode] CreateFlowRequest languageCode + * @interface IVoiceSelectionParams + * @property {string|null} [name] VoiceSelectionParams name + * @property {google.cloud.dialogflow.cx.v3.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender */ /** - * Constructs a new CreateFlowRequest. + * Constructs a new VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateFlowRequest. - * @implements ICreateFlowRequest + * @classdesc Represents a VoiceSelectionParams. + * @implements IVoiceSelectionParams * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set */ - function CreateFlowRequest(properties) { + function VoiceSelectionParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5686,103 +5625,89 @@ } /** - * CreateFlowRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest - * @instance - */ - CreateFlowRequest.prototype.parent = ""; - - /** - * CreateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * VoiceSelectionParams name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance */ - CreateFlowRequest.prototype.flow = null; + VoiceSelectionParams.prototype.name = ""; /** - * CreateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * VoiceSelectionParams ssmlGender. + * @member {google.cloud.dialogflow.cx.v3.SsmlVoiceGender} ssmlGender + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance */ - CreateFlowRequest.prototype.languageCode = ""; + VoiceSelectionParams.prototype.ssmlGender = 0; /** - * Creates a new CreateFlowRequest instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams instance */ - CreateFlowRequest.create = function create(properties) { - return new CreateFlowRequest(properties); + VoiceSelectionParams.create = function create(properties) { + return new VoiceSelectionParams(properties); }; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} message CreateFlowRequest 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 */ - CreateFlowRequest.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.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(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + 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 CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} message CreateFlowRequest 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 */ - CreateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFlowRequest 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.CreateFlowRequest + * @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.CreateFlowRequest} CreateFlowRequest + * @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 */ - CreateFlowRequest.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.CreateFlowRequest(); + 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.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); - break; - } - case 3: { - message.languageCode = reader.string(); + message.ssmlGender = reader.int32(); break; } default: @@ -5794,145 +5719,165 @@ }; /** - * Decodes a CreateFlowRequest 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.CreateFlowRequest + * @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.CreateFlowRequest} CreateFlowRequest + * @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 */ - CreateFlowRequest.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 CreateFlowRequest message. + * Verifies a VoiceSelectionParams message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * @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 */ - CreateFlowRequest.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.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); - if (error) - return "flow." + error; - } - 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.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 CreateFlowRequest 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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams */ - CreateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest) + 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.CreateFlowRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(); + if (object.name != null) + message.name = String(object.name); + switch (object.ssmlGender) { + default: + if (typeof object.ssmlGender === "number") { + message.ssmlGender = object.ssmlGender; + break; + } + break; + 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; } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateFlowRequest 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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3.CreateFlowRequest} message CreateFlowRequest + * @param {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} message VoiceSelectionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFlowRequest.toObject = function toObject(message, options) { + VoiceSelectionParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.flow = null; - object.languageCode = ""; + 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.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + 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] === undefined ? message.ssmlGender : $root.google.cloud.dialogflow.cx.v3.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @instance * @returns {Object.} JSON object */ - CreateFlowRequest.prototype.toJSON = function toJSON() { + VoiceSelectionParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFlowRequest + * Gets the default type url for VoiceSelectionParams * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VoiceSelectionParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VoiceSelectionParams"; }; - return CreateFlowRequest; + return VoiceSelectionParams; })(); - v3.DeleteFlowRequest = (function() { + v3.SynthesizeSpeechConfig = (function() { /** - * Properties of a DeleteFlowRequest. + * Properties of a SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteFlowRequest - * @property {string|null} [name] DeleteFlowRequest name - * @property {boolean|null} [force] DeleteFlowRequest force + * @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 DeleteFlowRequest. + * Constructs a new SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteFlowRequest. - * @implements IDeleteFlowRequest + * @classdesc Represents a SynthesizeSpeechConfig. + * @implements ISynthesizeSpeechConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set */ - function DeleteFlowRequest(properties) { + function SynthesizeSpeechConfig(properties) { + this.effectsProfileId = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -5940,89 +5885,134 @@ } /** - * DeleteFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest + * SynthesizeSpeechConfig speakingRate. + * @member {number} speakingRate + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ - DeleteFlowRequest.prototype.name = ""; + SynthesizeSpeechConfig.prototype.speakingRate = 0; /** - * DeleteFlowRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest + * SynthesizeSpeechConfig pitch. + * @member {number} pitch + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance */ - DeleteFlowRequest.prototype.force = false; + SynthesizeSpeechConfig.prototype.pitch = 0; /** - * Creates a new DeleteFlowRequest 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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance */ - DeleteFlowRequest.create = function create(properties) { - return new DeleteFlowRequest(properties); + SynthesizeSpeechConfig.create = function create(properties) { + return new SynthesizeSpeechConfig(properties); }; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} message DeleteFlowRequest 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 */ - DeleteFlowRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + 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 DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} message DeleteFlowRequest 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 */ - DeleteFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFlowRequest 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.DeleteFlowRequest + * @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.DeleteFlowRequest} DeleteFlowRequest + * @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 */ - DeleteFlowRequest.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.DeleteFlowRequest(); + 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: { - message.name = reader.string(); + message.speakingRate = reader.double(); break; } case 2: { - message.force = reader.bool(); + 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: @@ -6034,134 +6024,197 @@ }; /** - * Decodes a DeleteFlowRequest 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.DeleteFlowRequest + * @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.DeleteFlowRequest} DeleteFlowRequest + * @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 */ - DeleteFlowRequest.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 DeleteFlowRequest message. + * Verifies a SynthesizeSpeechConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest + * @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 */ - DeleteFlowRequest.verify = function verify(message) { + SynthesizeSpeechConfig.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.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; + } return null; }; /** - * Creates a DeleteFlowRequest 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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig */ - DeleteFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest) + 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.DeleteFlowRequest(); - 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.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); + } return message; }; /** - * Creates a plain object from a DeleteFlowRequest 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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} message DeleteFlowRequest + * @param {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} message SynthesizeSpeechConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFlowRequest.toObject = function toObject(message, options) { + SynthesizeSpeechConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.effectsProfileId = []; if (options.defaults) { - object.name = ""; - object.force = false; + 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteFlowRequest to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @instance * @returns {Object.} JSON object */ - DeleteFlowRequest.prototype.toJSON = function toJSON() { + SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFlowRequest + * Gets the default type url for SynthesizeSpeechConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SynthesizeSpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"; }; - return DeleteFlowRequest; + return SynthesizeSpeechConfig; })(); - v3.ListFlowsRequest = (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 ListFlowsRequest. + * Properties of an OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListFlowsRequest - * @property {string|null} [parent] ListFlowsRequest parent - * @property {number|null} [pageSize] ListFlowsRequest pageSize - * @property {string|null} [pageToken] ListFlowsRequest pageToken - * @property {string|null} [languageCode] ListFlowsRequest languageCode + * @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 ListFlowsRequest. + * Constructs a new OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListFlowsRequest. - * @implements IListFlowsRequest + * @classdesc Represents an OutputAudioConfig. + * @implements IOutputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set */ - function ListFlowsRequest(properties) { + function OutputAudioConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6169,117 +6222,103 @@ } /** - * ListFlowsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest - * @instance - */ - ListFlowsRequest.prototype.parent = ""; - - /** - * ListFlowsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * OutputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ - ListFlowsRequest.prototype.pageSize = 0; + OutputAudioConfig.prototype.audioEncoding = 0; /** - * ListFlowsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * OutputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ - ListFlowsRequest.prototype.pageToken = ""; + OutputAudioConfig.prototype.sampleRateHertz = 0; /** - * ListFlowsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * OutputAudioConfig synthesizeSpeechConfig. + * @member {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance */ - ListFlowsRequest.prototype.languageCode = ""; + OutputAudioConfig.prototype.synthesizeSpeechConfig = null; /** - * Creates a new ListFlowsRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest instance + * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig instance */ - ListFlowsRequest.create = function create(properties) { - return new ListFlowsRequest(properties); + OutputAudioConfig.create = function create(properties) { + return new OutputAudioConfig(properties); }; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} message ListFlowsRequest 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 */ - ListFlowsRequest.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.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.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 ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} message ListFlowsRequest 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 */ - ListFlowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFlowsRequest 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.ListFlowsRequest + * @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.ListFlowsRequest} ListFlowsRequest + * @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 */ - ListFlowsRequest.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.ListFlowsRequest(); + 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.pageSize = reader.int32(); + message.sampleRateHertz = reader.int32(); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.languageCode = reader.string(); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.decode(reader, reader.uint32()); break; } default: @@ -6291,149 +6330,184 @@ }; /** - * Decodes a ListFlowsRequest 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.ListFlowsRequest + * @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.ListFlowsRequest} ListFlowsRequest + * @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 */ - ListFlowsRequest.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 ListFlowsRequest message. + * Verifies an OutputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * @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 */ - ListFlowsRequest.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.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.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; + } return null; }; /** - * Creates a ListFlowsRequest 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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig */ - ListFlowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest) + 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.ListFlowsRequest(); - 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.v3.OutputAudioConfig(); + switch (object.audioEncoding) { + default: + if (typeof object.audioEncoding === "number") { + message.audioEncoding = object.audioEncoding; + break; + } + break; + 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 ListFlowsRequest 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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3.ListFlowsRequest} message ListFlowsRequest + * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} message OutputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFlowsRequest.toObject = function toObject(message, options) { + OutputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.languageCode = ""; + 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.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.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.OutputAudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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 ListFlowsRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @instance * @returns {Object.} JSON object */ - ListFlowsRequest.prototype.toJSON = function toJSON() { + OutputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFlowsRequest + * Gets the default type url for OutputAudioConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFlowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OutputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListFlowsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.OutputAudioConfig"; }; - return ListFlowsRequest; + return OutputAudioConfig; })(); - v3.ListFlowsResponse = (function() { + v3.TextToSpeechSettings = (function() { /** - * Properties of a ListFlowsResponse. + * Properties of a TextToSpeechSettings. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListFlowsResponse - * @property {Array.|null} [flows] ListFlowsResponse flows - * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken + * @interface ITextToSpeechSettings + * @property {Object.|null} [synthesizeSpeechConfigs] TextToSpeechSettings synthesizeSpeechConfigs */ /** - * Constructs a new ListFlowsResponse. + * Constructs a new TextToSpeechSettings. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListFlowsResponse. - * @implements IListFlowsResponse + * @classdesc Represents a TextToSpeechSettings. + * @implements ITextToSpeechSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITextToSpeechSettings=} [properties] Properties to set */ - function ListFlowsResponse(properties) { - this.flows = []; + function TextToSpeechSettings(properties) { + this.synthesizeSpeechConfigs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6441,92 +6515,97 @@ } /** - * ListFlowsResponse flows. - * @member {Array.} flows - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse - * @instance - */ - ListFlowsResponse.prototype.flows = $util.emptyArray; - - /** - * ListFlowsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * TextToSpeechSettings synthesizeSpeechConfigs. + * @member {Object.} synthesizeSpeechConfigs + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @instance */ - ListFlowsResponse.prototype.nextPageToken = ""; + TextToSpeechSettings.prototype.synthesizeSpeechConfigs = $util.emptyObject; /** - * Creates a new ListFlowsResponse instance using the specified properties. + * Creates a new TextToSpeechSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITextToSpeechSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TextToSpeechSettings} TextToSpeechSettings instance */ - ListFlowsResponse.create = function create(properties) { - return new ListFlowsResponse(properties); + TextToSpeechSettings.create = function create(properties) { + return new TextToSpeechSettings(properties); }; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. + * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextToSpeechSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsResponse.encode = function encode(message, writer) { + TextToSpeechSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flows != null && message.flows.length) - for (var i = 0; i < message.flows.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flows[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.synthesizeSpeechConfigs != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfigs")) + for (var keys = Object.keys(message.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. + * Encodes the specified TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TextToSpeechSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + TextToSpeechSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. + * Decodes a TextToSpeechSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static * @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.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3.TextToSpeechSettings} TextToSpeechSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsResponse.decode = function decode(reader, length) { + TextToSpeechSettings.decode = function decode(reader, length) { 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.ListFlowsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.flows && message.flows.length)) - message.flows = []; - message.flows.push($root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + if (message.synthesizeSpeechConfigs === $util.emptyObject) + message.synthesizeSpeechConfigs = {}; + 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.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.synthesizeSpeechConfigs[key] = value; break; } default: @@ -6538,149 +6617,508 @@ }; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. + * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3.TextToSpeechSettings} TextToSpeechSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsResponse.decodeDelimited = function decodeDelimited(reader) { + TextToSpeechSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFlowsResponse message. + * Verifies a TextToSpeechSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFlowsResponse.verify = function verify(message) { + TextToSpeechSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flows != null && message.hasOwnProperty("flows")) { - if (!Array.isArray(message.flows)) - return "flows: array expected"; - for (var i = 0; i < message.flows.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flows[i]); + if (message.synthesizeSpeechConfigs != null && message.hasOwnProperty("synthesizeSpeechConfigs")) { + if (!$util.isObject(message.synthesizeSpeechConfigs)) + return "synthesizeSpeechConfigs: object expected"; + var key = Object.keys(message.synthesizeSpeechConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfigs[key[i]]); if (error) - return "flows." + error; + return "synthesizeSpeechConfigs." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3.TextToSpeechSettings} TextToSpeechSettings */ - ListFlowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse) + TextToSpeechSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse(); - if (object.flows) { - if (!Array.isArray(object.flows)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListFlowsResponse.flows: array expected"); - message.flows = []; - for (var i = 0; i < object.flows.length; ++i) { - if (typeof object.flows[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListFlowsResponse.flows: object expected"); - message.flows[i] = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flows[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.TextToSpeechSettings(); + if (object.synthesizeSpeechConfigs) { + if (typeof object.synthesizeSpeechConfigs !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); + message.synthesizeSpeechConfigs = {}; + for (var keys = Object.keys(object.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.synthesizeSpeechConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); + message.synthesizeSpeechConfigs[keys[i]] = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfigs[keys[i]]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3.ListFlowsResponse} message ListFlowsResponse + * @param {google.cloud.dialogflow.cx.v3.TextToSpeechSettings} message TextToSpeechSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFlowsResponse.toObject = function toObject(message, options) { + TextToSpeechSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.flows = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.flows && message.flows.length) { - object.flows = []; - for (var j = 0; j < message.flows.length; ++j) - object.flows[j] = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flows[j], options); + if (options.objects || options.defaults) + object.synthesizeSpeechConfigs = {}; + var keys2; + if (message.synthesizeSpeechConfigs && (keys2 = Object.keys(message.synthesizeSpeechConfigs)).length) { + object.synthesizeSpeechConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.synthesizeSpeechConfigs[keys2[j]] = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfigs[keys2[j]], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListFlowsResponse to JSON. + * Converts this TextToSpeechSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @instance * @returns {Object.} JSON object */ - ListFlowsResponse.prototype.toJSON = function toJSON() { + TextToSpeechSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFlowsResponse + * Gets the default type url for TextToSpeechSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3.TextToSpeechSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFlowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TextToSpeechSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListFlowsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TextToSpeechSettings"; }; - return ListFlowsResponse; + return TextToSpeechSettings; })(); - v3.GetFlowRequest = (function() { + v3.Flows = (function() { /** - * Properties of a GetFlowRequest. + * Constructs a new Flows service. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetFlowRequest - * @property {string|null} [name] GetFlowRequest name - * @property {string|null} [languageCode] GetFlowRequest languageCode + * @classdesc Represents a Flows + * @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 Flows(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Flows.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Flows; + + /** + * Creates new Flows service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @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 {Flows} RPC service. Useful where requests and/or responses are streamed. */ + Flows.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new GetFlowRequest. + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|createFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef CreateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow + */ + + /** + * Calls CreateFlow. + * @function createFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { + return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); + }, "name", { value: "CreateFlow" }); + + /** + * Calls CreateFlow. + * @function createFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|deleteFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef DeleteFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteFlow. + * @function deleteFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { + return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteFlow" }); + + /** + * Calls DeleteFlow. + * @function deleteFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|listFlows}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef ListFlowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListFlowsResponse} [response] ListFlowsResponse + */ + + /** + * Calls ListFlows. + * @function listFlows + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} request ListFlowsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { + return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse, request, callback); + }, "name", { value: "ListFlows" }); + + /** + * Calls ListFlows. + * @function listFlows + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} request ListFlowsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef GetFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow + */ + + /** + * Calls GetFlow. + * @function getFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} request GetFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { + return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); + }, "name", { value: "GetFlow" }); + + /** + * Calls GetFlow. + * @function getFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} request GetFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|updateFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef UpdateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Flow} [response] Flow + */ + + /** + * Calls UpdateFlow. + * @function updateFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { + return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3.Flow, request, callback); + }, "name", { value: "UpdateFlow" }); + + /** + * Calls UpdateFlow. + * @function updateFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|trainFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef TrainFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls TrainFlow. + * @function trainFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { + return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "TrainFlow" }); + + /** + * Calls TrainFlow. + * @function trainFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|validateFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef ValidateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.FlowValidationResult} [response] FlowValidationResult + */ + + /** + * Calls ValidateFlow. + * @function validateFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} request ValidateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.ValidateFlowCallback} callback Node-style callback called with the error, if any, and FlowValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.validateFlow = function validateFlow(request, callback) { + return this.rpcCall(validateFlow, $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest, $root.google.cloud.dialogflow.cx.v3.FlowValidationResult, request, callback); + }, "name", { value: "ValidateFlow" }); + + /** + * Calls ValidateFlow. + * @function validateFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} request ValidateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|getFlowValidationResult}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef GetFlowValidationResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.FlowValidationResult} [response] FlowValidationResult + */ + + /** + * Calls GetFlowValidationResult. + * @function getFlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResultCallback} callback Node-style callback called with the error, if any, and FlowValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.getFlowValidationResult = function getFlowValidationResult(request, callback) { + return this.rpcCall(getFlowValidationResult, $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest, $root.google.cloud.dialogflow.cx.v3.FlowValidationResult, request, callback); + }, "name", { value: "GetFlowValidationResult" }); + + /** + * Calls GetFlowValidationResult. + * @function getFlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|importFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef ImportFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportFlow. + * @function importFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} request ImportFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.ImportFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.importFlow = function importFlow(request, callback) { + return this.rpcCall(importFlow, $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportFlow" }); + + /** + * Calls ImportFlow. + * @function importFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} request ImportFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Flows|exportFlow}. + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @typedef ExportFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportFlow. + * @function exportFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} request ExportFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Flows.ExportFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.exportFlow = function exportFlow(request, callback) { + return this.rpcCall(exportFlow, $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportFlow" }); + + /** + * Calls ExportFlow. + * @function exportFlow + * @memberof google.cloud.dialogflow.cx.v3.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} request ExportFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Flows; + })(); + + v3.NluSettings = (function() { + + /** + * Properties of a NluSettings. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetFlowRequest. - * @implements IGetFlowRequest + * @interface INluSettings + * @property {google.cloud.dialogflow.cx.v3.NluSettings.ModelType|null} [modelType] NluSettings modelType + * @property {number|null} [classificationThreshold] NluSettings classificationThreshold + * @property {google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode + */ + + /** + * Constructs a new NluSettings. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a NluSettings. + * @implements INluSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.INluSettings=} [properties] Properties to set */ - function GetFlowRequest(properties) { + function NluSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6688,89 +7126,103 @@ } /** - * GetFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * NluSettings modelType. + * @member {google.cloud.dialogflow.cx.v3.NluSettings.ModelType} modelType + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance */ - GetFlowRequest.prototype.name = ""; + NluSettings.prototype.modelType = 0; /** - * GetFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * NluSettings classificationThreshold. + * @member {number} classificationThreshold + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance */ - GetFlowRequest.prototype.languageCode = ""; + NluSettings.prototype.classificationThreshold = 0; /** - * Creates a new GetFlowRequest instance using the specified properties. + * NluSettings modelTrainingMode. + * @member {google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode} modelTrainingMode + * @memberof google.cloud.dialogflow.cx.v3.NluSettings + * @instance + */ + NluSettings.prototype.modelTrainingMode = 0; + + /** + * Creates a new NluSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.INluSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings instance */ - GetFlowRequest.create = function create(properties) { - return new GetFlowRequest(properties); + NluSettings.create = function create(properties) { + return new NluSettings(properties); }; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowRequest.encode = function encode(message, writer) { + NluSettings.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.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + if (message.classificationThreshold != null && Object.hasOwnProperty.call(message, "classificationThreshold")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.classificationThreshold); + if (message.modelTrainingMode != null && Object.hasOwnProperty.call(message, "modelTrainingMode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.modelTrainingMode); return writer; }; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.NluSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + NluSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFlowRequest message from the specified reader or buffer. + * Decodes a NluSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @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.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowRequest.decode = function decode(reader, length) { + NluSettings.decode = function decode(reader, length) { 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.GetFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.NluSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelType = reader.int32(); break; } - case 2: { - message.languageCode = reader.string(); + case 3: { + message.classificationThreshold = reader.float(); + break; + } + case 4: { + message.modelTrainingMode = reader.int32(); break; } default: @@ -6782,133 +7234,228 @@ }; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowRequest.decodeDelimited = function decodeDelimited(reader) { + NluSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFlowRequest message. + * Verifies a NluSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFlowRequest.verify = function verify(message) { + NluSettings.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.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) + if (typeof message.classificationThreshold !== "number") + return "classificationThreshold: number expected"; + if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) + switch (message.modelTrainingMode) { + default: + return "modelTrainingMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.NluSettings} NluSettings */ - GetFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetFlowRequest) + NluSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.NluSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetFlowRequest(); - 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.v3.NluSettings(); + switch (object.modelType) { + default: + if (typeof object.modelType === "number") { + message.modelType = object.modelType; + break; + } + break; + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "MODEL_TYPE_STANDARD": + case 1: + message.modelType = 1; + break; + case "MODEL_TYPE_ADVANCED": + case 3: + message.modelType = 3; + break; + } + if (object.classificationThreshold != null) + message.classificationThreshold = Number(object.classificationThreshold); + switch (object.modelTrainingMode) { + default: + if (typeof object.modelTrainingMode === "number") { + message.modelTrainingMode = object.modelTrainingMode; + break; + } + break; + case "MODEL_TRAINING_MODE_UNSPECIFIED": + case 0: + message.modelTrainingMode = 0; + break; + case "MODEL_TRAINING_MODE_AUTOMATIC": + case 1: + message.modelTrainingMode = 1; + break; + case "MODEL_TRAINING_MODE_MANUAL": + case 2: + message.modelTrainingMode = 2; + break; + } return message; }; /** - * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a NluSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3.GetFlowRequest} message GetFlowRequest + * @param {google.cloud.dialogflow.cx.v3.NluSettings} message NluSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFlowRequest.toObject = function toObject(message, options) { + NluSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.languageCode = ""; + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + object.classificationThreshold = 0; + object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelType[message.modelType] === undefined ? message.modelType : $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelType[message.modelType] : message.modelType; + if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) + object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; + if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) + object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode[message.modelTrainingMode] === undefined ? message.modelTrainingMode : $root.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; return object; }; /** - * Converts this GetFlowRequest to JSON. + * Converts this NluSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @instance * @returns {Object.} JSON object */ - GetFlowRequest.prototype.toJSON = function toJSON() { + NluSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFlowRequest + * Gets the default type url for NluSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.NluSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NluSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.NluSettings"; }; - return GetFlowRequest; + /** + * ModelType enum. + * @name google.cloud.dialogflow.cx.v3.NluSettings.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value + * @property {number} MODEL_TYPE_ADVANCED=3 MODEL_TYPE_ADVANCED value + */ + NluSettings.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MODEL_TYPE_STANDARD"] = 1; + values[valuesById[3] = "MODEL_TYPE_ADVANCED"] = 3; + return values; + })(); + + /** + * ModelTrainingMode enum. + * @name google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode + * @enum {number} + * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value + * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value + * @property {number} MODEL_TRAINING_MODE_MANUAL=2 MODEL_TRAINING_MODE_MANUAL value + */ + NluSettings.ModelTrainingMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TRAINING_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MODEL_TRAINING_MODE_AUTOMATIC"] = 1; + values[valuesById[2] = "MODEL_TRAINING_MODE_MANUAL"] = 2; + return values; + })(); + + return NluSettings; })(); - v3.UpdateFlowRequest = (function() { + v3.Flow = (function() { /** - * Properties of an UpdateFlowRequest. + * Properties of a Flow. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdateFlowRequest - * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] UpdateFlowRequest flow - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask - * @property {string|null} [languageCode] UpdateFlowRequest languageCode + * @interface IFlow + * @property {string|null} [name] Flow name + * @property {string|null} [displayName] Flow displayName + * @property {string|null} [description] Flow description + * @property {Array.|null} [transitionRoutes] Flow transitionRoutes + * @property {Array.|null} [eventHandlers] Flow eventHandlers + * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups + * @property {google.cloud.dialogflow.cx.v3.INluSettings|null} [nluSettings] Flow nluSettings */ /** - * Constructs a new UpdateFlowRequest. + * Constructs a new Flow. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateFlowRequest. - * @implements IUpdateFlowRequest + * @classdesc Represents a Flow. + * @implements IFlow * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IFlow=} [properties] Properties to set */ - function UpdateFlowRequest(properties) { + function Flow(properties) { + this.transitionRoutes = []; + this.eventHandlers = []; + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6916,257 +7463,399 @@ } /** - * UpdateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * Flow name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ - UpdateFlowRequest.prototype.flow = null; + Flow.prototype.name = ""; /** - * UpdateFlowRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * Flow displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ - UpdateFlowRequest.prototype.updateMask = null; + Flow.prototype.displayName = ""; /** - * UpdateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * Flow description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance */ - UpdateFlowRequest.prototype.languageCode = ""; + Flow.prototype.description = ""; /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Flow transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.Flow + * @instance + */ + Flow.prototype.transitionRoutes = $util.emptyArray; + + /** + * Flow eventHandlers. + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3.Flow + * @instance + */ + Flow.prototype.eventHandlers = $util.emptyArray; + + /** + * Flow transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.Flow + * @instance + */ + Flow.prototype.transitionRouteGroups = $util.emptyArray; + + /** + * Flow nluSettings. + * @member {google.cloud.dialogflow.cx.v3.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3.Flow + * @instance + */ + Flow.prototype.nluSettings = null; + + /** + * Creates a new Flow instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IFlow=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow instance */ - UpdateFlowRequest.create = function create(properties) { - return new UpdateFlowRequest(properties); + Flow.create = function create(properties) { + return new Flow(properties); }; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFlowRequest.encode = function encode(message, writer) { + Flow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, 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); + 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.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 4, wireType 2 =*/34).fork()).ldelim(); + if (message.eventHandlers != null && message.eventHandlers.length) + for (var i = 0; i < message.eventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) + $root.google.cloud.dialogflow.cx.v3.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); return writer; }; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Flow.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + Flow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * Decodes a Flow message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @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.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFlowRequest.decode = function decode(reader, length) { + Flow.decode = function decode(reader, length) { 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.UpdateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Flow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.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 3: { - message.languageCode = reader.string(); + message.description = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + case 4: { + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.eventHandlers && message.eventHandlers.length)) + message.eventHandlers = []; + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); + break; + } + case 15: { + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push(reader.string()); + break; + } + case 11: { + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Flow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + Flow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFlowRequest message. + * Verifies a Flow message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFlowRequest.verify = function verify(message) { + Flow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); - if (error) - return "flow." + error; + 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.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; + } } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { + if (!Array.isArray(message.eventHandlers)) + return "eventHandlers: array expected"; + for (var i = 0; i < message.eventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandlers[i]); + if (error) + return "eventHandlers." + 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) + if (!$util.isString(message.transitionRouteGroups[i])) + return "transitionRouteGroups: string[] expected"; + } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3.NluSettings.verify(message.nluSettings); if (error) - return "updateMask." + error; + return "nluSettings." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Flow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.Flow} Flow */ - UpdateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest) + Flow.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Flow) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(); - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3.Flow(); + 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.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.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.Flow.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); + } } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateFlowRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.eventHandlers) { + if (!Array.isArray(object.eventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.eventHandlers: array expected"); + message.eventHandlers = []; + for (var i = 0; i < object.eventHandlers.length; ++i) { + if (typeof object.eventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); + } + } + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) + message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + } + if (object.nluSettings != null) { + if (typeof object.nluSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Flow.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.fromObject(object.nluSettings); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a Flow message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} message UpdateFlowRequest + * @param {google.cloud.dialogflow.cx.v3.Flow} message Flow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFlowRequest.toObject = function toObject(message, options) { + Flow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.transitionRoutes = []; + object.eventHandlers = []; + object.transitionRouteGroups = []; + } if (options.defaults) { - object.flow = null; - object.updateMask = null; - object.languageCode = ""; + object.name = ""; + object.displayName = ""; + object.description = ""; + object.nluSettings = 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.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); + } + if (message.eventHandlers && message.eventHandlers.length) { + object.eventHandlers = []; + for (var j = 0; j < message.eventHandlers.length; ++j) + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandlers[j], options); + } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) + object.nluSettings = $root.google.cloud.dialogflow.cx.v3.NluSettings.toObject(message.nluSettings, options); + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, 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 UpdateFlowRequest to JSON. + * Converts this Flow to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @instance * @returns {Object.} JSON object */ - UpdateFlowRequest.prototype.toJSON = function toJSON() { + Flow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateFlowRequest + * Gets the default type url for Flow * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.Flow * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Flow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Flow"; }; - return UpdateFlowRequest; + return Flow; })(); - v3.TrainFlowRequest = (function() { + v3.CreateFlowRequest = (function() { /** - * Properties of a TrainFlowRequest. + * Properties of a CreateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITrainFlowRequest - * @property {string|null} [name] TrainFlowRequest name + * @interface ICreateFlowRequest + * @property {string|null} [parent] CreateFlowRequest parent + * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] CreateFlowRequest flow + * @property {string|null} [languageCode] CreateFlowRequest languageCode */ /** - * Constructs a new TrainFlowRequest. + * Constructs a new CreateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TrainFlowRequest. - * @implements ITrainFlowRequest + * @classdesc Represents a CreateFlowRequest. + * @implements ICreateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest=} [properties] Properties to set */ - function TrainFlowRequest(properties) { + function CreateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7174,75 +7863,103 @@ } /** - * TrainFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * CreateFlowRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @instance */ - TrainFlowRequest.prototype.name = ""; + CreateFlowRequest.prototype.parent = ""; /** - * Creates a new TrainFlowRequest instance using the specified properties. + * CreateFlowRequest flow. + * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * @instance + */ + CreateFlowRequest.prototype.flow = null; + + /** + * CreateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest + * @instance + */ + CreateFlowRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest instance */ - TrainFlowRequest.create = function create(properties) { - return new TrainFlowRequest(properties); + CreateFlowRequest.create = function create(properties) { + return new CreateFlowRequest(properties); }; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainFlowRequest.encode = function encode(message, writer) { + CreateFlowRequest.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.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(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer. + * Decodes a CreateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @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.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainFlowRequest.decode = function decode(reader, length) { + CreateFlowRequest.decode = function decode(reader, length) { 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.TrainFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest(); 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.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); break; } default: @@ -7254,123 +7971,145 @@ }; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainFlowRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainFlowRequest message. + * Verifies a CreateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainFlowRequest.verify = function verify(message) { + CreateFlowRequest.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.flow != null && message.hasOwnProperty("flow")) { + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); + if (error) + return "flow." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.CreateFlowRequest} CreateFlowRequest */ - TrainFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest) + CreateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.CreateFlowRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.TrainFlowRequest} message TrainFlowRequest + * @param {google.cloud.dialogflow.cx.v3.CreateFlowRequest} message CreateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainFlowRequest.toObject = function toObject(message, options) { + CreateFlowRequest.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.flow = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this TrainFlowRequest to JSON. + * Converts this CreateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @instance * @returns {Object.} JSON object */ - TrainFlowRequest.prototype.toJSON = function toJSON() { + CreateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainFlowRequest + * Gets the default type url for CreateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.CreateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TrainFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateFlowRequest"; }; - return TrainFlowRequest; + return CreateFlowRequest; })(); - v3.ValidateFlowRequest = (function() { + v3.DeleteFlowRequest = (function() { /** - * Properties of a ValidateFlowRequest. + * Properties of a DeleteFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IValidateFlowRequest - * @property {string|null} [name] ValidateFlowRequest name - * @property {string|null} [languageCode] ValidateFlowRequest languageCode + * @interface IDeleteFlowRequest + * @property {string|null} [name] DeleteFlowRequest name + * @property {boolean|null} [force] DeleteFlowRequest force */ /** - * Constructs a new ValidateFlowRequest. + * Constructs a new DeleteFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ValidateFlowRequest. - * @implements IValidateFlowRequest + * @classdesc Represents a DeleteFlowRequest. + * @implements IDeleteFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest=} [properties] Properties to set */ - function ValidateFlowRequest(properties) { + function DeleteFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7378,80 +8117,80 @@ } /** - * ValidateFlowRequest name. + * DeleteFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @instance */ - ValidateFlowRequest.prototype.name = ""; + DeleteFlowRequest.prototype.name = ""; /** - * ValidateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * DeleteFlowRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @instance */ - ValidateFlowRequest.prototype.languageCode = ""; + DeleteFlowRequest.prototype.force = false; /** - * Creates a new ValidateFlowRequest instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest instance */ - ValidateFlowRequest.create = function create(properties) { - return new ValidateFlowRequest(properties); + DeleteFlowRequest.create = function create(properties) { + return new DeleteFlowRequest(properties); }; /** - * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateFlowRequest.encode = function encode(message, writer) { + DeleteFlowRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeleteFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @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.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateFlowRequest.decode = function decode(reader, length) { + DeleteFlowRequest.decode = function decode(reader, length) { 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.ValidateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -7460,7 +8199,7 @@ break; } case 2: { - message.languageCode = reader.string(); + message.force = reader.bool(); break; } default: @@ -7472,132 +8211,134 @@ }; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateFlowRequest message. + * Verifies a DeleteFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateFlowRequest.verify = function verify(message) { + DeleteFlowRequest.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.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} DeleteFlowRequest */ - ValidateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest) + DeleteFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.DeleteFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} message ValidateFlowRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteFlowRequest} message DeleteFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateFlowRequest.toObject = function toObject(message, options) { + DeleteFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.languageCode = ""; + object.force = 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.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ValidateFlowRequest to JSON. + * Converts this DeleteFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @instance * @returns {Object.} JSON object */ - ValidateFlowRequest.prototype.toJSON = function toJSON() { + DeleteFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateFlowRequest + * Gets the default type url for DeleteFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ValidateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteFlowRequest"; }; - return ValidateFlowRequest; + return DeleteFlowRequest; })(); - v3.GetFlowValidationResultRequest = (function() { + v3.ListFlowsRequest = (function() { /** - * Properties of a GetFlowValidationResultRequest. + * Properties of a ListFlowsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetFlowValidationResultRequest - * @property {string|null} [name] GetFlowValidationResultRequest name - * @property {string|null} [languageCode] GetFlowValidationResultRequest languageCode + * @interface IListFlowsRequest + * @property {string|null} [parent] ListFlowsRequest parent + * @property {number|null} [pageSize] ListFlowsRequest pageSize + * @property {string|null} [pageToken] ListFlowsRequest pageToken + * @property {string|null} [languageCode] ListFlowsRequest languageCode */ /** - * Constructs a new GetFlowValidationResultRequest. + * Constructs a new ListFlowsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetFlowValidationResultRequest. - * @implements IGetFlowValidationResultRequest + * @classdesc Represents a ListFlowsRequest. + * @implements IListFlowsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest=} [properties] Properties to set */ - function GetFlowValidationResultRequest(properties) { + function ListFlowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7605,88 +8346,116 @@ } /** - * GetFlowValidationResultRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * ListFlowsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance */ - GetFlowValidationResultRequest.prototype.name = ""; + ListFlowsRequest.prototype.parent = ""; /** - * GetFlowValidationResultRequest languageCode. + * ListFlowsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * @instance + */ + ListFlowsRequest.prototype.pageSize = 0; + + /** + * ListFlowsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest + * @instance + */ + ListFlowsRequest.prototype.pageToken = ""; + + /** + * ListFlowsRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance */ - GetFlowValidationResultRequest.prototype.languageCode = ""; + ListFlowsRequest.prototype.languageCode = ""; /** - * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest instance */ - GetFlowValidationResultRequest.create = function create(properties) { - return new GetFlowValidationResultRequest(properties); + ListFlowsRequest.create = function create(properties) { + return new ListFlowsRequest(properties); }; /** - * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowValidationResultRequest.encode = function encode(message, writer) { + ListFlowsRequest.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); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; /** - * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFlowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * Decodes a ListFlowsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @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.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowValidationResultRequest.decode = function decode(reader, length) { + ListFlowsRequest.decode = function decode(reader, length) { 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.GetFlowValidationResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest(); 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; + } + case 4: { message.languageCode = reader.string(); break; } @@ -7699,35 +8468,41 @@ }; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { + ListFlowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFlowValidationResultRequest message. + * Verifies a ListFlowsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFlowValidationResultRequest.verify = function verify(message) { + ListFlowsRequest.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"; if (message.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; @@ -7735,98 +8510,107 @@ }; /** - * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsRequest} ListFlowsRequest */ - GetFlowValidationResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest) + ListFlowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsRequest(); + 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 GetFlowValidationResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} message GetFlowValidationResultRequest + * @param {google.cloud.dialogflow.cx.v3.ListFlowsRequest} message ListFlowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFlowValidationResultRequest.toObject = function toObject(message, options) { + ListFlowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; object.languageCode = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + 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 GetFlowValidationResultRequest to JSON. + * Converts this ListFlowsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @instance * @returns {Object.} JSON object */ - GetFlowValidationResultRequest.prototype.toJSON = function toJSON() { + ListFlowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFlowValidationResultRequest + * Gets the default type url for ListFlowsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFlowValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFlowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListFlowsRequest"; }; - return GetFlowValidationResultRequest; + return ListFlowsRequest; })(); - v3.FlowValidationResult = (function() { + v3.ListFlowsResponse = (function() { /** - * Properties of a FlowValidationResult. + * Properties of a ListFlowsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFlowValidationResult - * @property {string|null} [name] FlowValidationResult name - * @property {Array.|null} [validationMessages] FlowValidationResult validationMessages - * @property {google.protobuf.ITimestamp|null} [updateTime] FlowValidationResult updateTime + * @interface IListFlowsResponse + * @property {Array.|null} [flows] ListFlowsResponse flows + * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken */ /** - * Constructs a new FlowValidationResult. + * Constructs a new ListFlowsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a FlowValidationResult. - * @implements IFlowValidationResult + * @classdesc Represents a ListFlowsResponse. + * @implements IListFlowsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse=} [properties] Properties to set */ - function FlowValidationResult(properties) { - this.validationMessages = []; + function ListFlowsResponse(properties) { + this.flows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7834,106 +8618,92 @@ } /** - * FlowValidationResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult - * @instance - */ - FlowValidationResult.prototype.name = ""; - - /** - * FlowValidationResult validationMessages. - * @member {Array.} validationMessages - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * ListFlowsResponse flows. + * @member {Array.} flows + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @instance */ - FlowValidationResult.prototype.validationMessages = $util.emptyArray; + ListFlowsResponse.prototype.flows = $util.emptyArray; /** - * FlowValidationResult updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * ListFlowsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @instance */ - FlowValidationResult.prototype.updateTime = null; + ListFlowsResponse.prototype.nextPageToken = ""; /** - * Creates a new FlowValidationResult instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.FlowValidationResult} FlowValidationResult instance + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse instance */ - FlowValidationResult.create = function create(properties) { - return new FlowValidationResult(properties); + ListFlowsResponse.create = function create(properties) { + return new ListFlowsResponse(properties); }; /** - * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlowValidationResult.encode = function encode(message, writer) { + ListFlowsResponse.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.validationMessages != null && message.validationMessages.length) - for (var i = 0; i < message.validationMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.ValidationMessage.encode(message.validationMessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.flows != null && message.flows.length) + for (var i = 0; i < message.flows.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flows[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 FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListFlowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlowValidationResult.encodeDelimited = function encodeDelimited(message, writer) { + ListFlowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FlowValidationResult message from the specified reader or buffer. + * Decodes a ListFlowsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @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.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FlowValidationResult.decode = function decode(reader, length) { + ListFlowsResponse.decode = function decode(reader, length) { 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.FlowValidationResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.flows && message.flows.length)) + message.flows = []; + message.flows.push($root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.validationMessages && message.validationMessages.length)) - message.validationMessages = []; - message.validationMessages.push($root.google.cloud.dialogflow.cx.v3.ValidationMessage.decode(reader, reader.uint32())); - break; - } - case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -7945,165 +8715,149 @@ }; /** - * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FlowValidationResult.decodeDelimited = function decodeDelimited(reader) { + ListFlowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FlowValidationResult message. + * Verifies a ListFlowsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FlowValidationResult.verify = function verify(message) { + ListFlowsResponse.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.validationMessages != null && message.hasOwnProperty("validationMessages")) { - if (!Array.isArray(message.validationMessages)) - return "validationMessages: array expected"; - for (var i = 0; i < message.validationMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.ValidationMessage.verify(message.validationMessages[i]); + if (message.flows != null && message.hasOwnProperty("flows")) { + if (!Array.isArray(message.flows)) + return "flows: array expected"; + for (var i = 0; i < message.flows.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flows[i]); if (error) - return "validationMessages." + error; + return "flows." + error; } } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3.ListFlowsResponse} ListFlowsResponse */ - FlowValidationResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.FlowValidationResult) + ListFlowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.FlowValidationResult(); - if (object.name != null) - message.name = String(object.name); - if (object.validationMessages) { - if (!Array.isArray(object.validationMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.FlowValidationResult.validationMessages: array expected"); - message.validationMessages = []; - for (var i = 0; i < object.validationMessages.length; ++i) { - if (typeof object.validationMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FlowValidationResult.validationMessages: object expected"); - message.validationMessages[i] = $root.google.cloud.dialogflow.cx.v3.ValidationMessage.fromObject(object.validationMessages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ListFlowsResponse(); + if (object.flows) { + if (!Array.isArray(object.flows)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListFlowsResponse.flows: array expected"); + message.flows = []; + for (var i = 0; i < object.flows.length; ++i) { + if (typeof object.flows[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListFlowsResponse.flows: object expected"); + message.flows[i] = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flows[i]); } } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.FlowValidationResult.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 FlowValidationResult message. Also converts values to other types if specified. + * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.FlowValidationResult} message FlowValidationResult + * @param {google.cloud.dialogflow.cx.v3.ListFlowsResponse} message ListFlowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FlowValidationResult.toObject = function toObject(message, options) { + ListFlowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.validationMessages = []; - if (options.defaults) { - object.name = ""; - object.updateTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.validationMessages && message.validationMessages.length) { - object.validationMessages = []; - for (var j = 0; j < message.validationMessages.length; ++j) - object.validationMessages[j] = $root.google.cloud.dialogflow.cx.v3.ValidationMessage.toObject(message.validationMessages[j], options); + object.flows = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.flows && message.flows.length) { + object.flows = []; + for (var j = 0; j < message.flows.length; ++j) + object.flows[j] = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flows[j], options); } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FlowValidationResult to JSON. + * Converts this ListFlowsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @instance * @returns {Object.} JSON object */ - FlowValidationResult.prototype.toJSON = function toJSON() { + ListFlowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FlowValidationResult + * Gets the default type url for ListFlowsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3.ListFlowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FlowValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFlowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.FlowValidationResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListFlowsResponse"; }; - return FlowValidationResult; + return ListFlowsResponse; })(); - v3.ImportFlowRequest = (function() { + v3.GetFlowRequest = (function() { /** - * Properties of an ImportFlowRequest. + * Properties of a GetFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportFlowRequest - * @property {string|null} [parent] ImportFlowRequest parent - * @property {string|null} [flowUri] ImportFlowRequest flowUri - * @property {Uint8Array|null} [flowContent] ImportFlowRequest flowContent - * @property {google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|null} [importOption] ImportFlowRequest importOption + * @interface IGetFlowRequest + * @property {string|null} [name] GetFlowRequest name + * @property {string|null} [languageCode] GetFlowRequest languageCode */ /** - * Constructs a new ImportFlowRequest. + * Constructs a new GetFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportFlowRequest. - * @implements IImportFlowRequest + * @classdesc Represents a GetFlowRequest. + * @implements IGetFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest=} [properties] Properties to set */ - function ImportFlowRequest(properties) { + function GetFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8111,131 +8865,331 @@ } /** - * ImportFlowRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * GetFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @instance */ - ImportFlowRequest.prototype.parent = ""; + GetFlowRequest.prototype.name = ""; /** - * ImportFlowRequest flowUri. - * @member {string|null|undefined} flowUri - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * GetFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @instance */ - ImportFlowRequest.prototype.flowUri = null; + GetFlowRequest.prototype.languageCode = ""; /** - * ImportFlowRequest flowContent. - * @member {Uint8Array|null|undefined} flowContent - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest - * @instance + * Creates a new GetFlowRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest instance */ - ImportFlowRequest.prototype.flowContent = null; + GetFlowRequest.create = function create(properties) { + return new GetFlowRequest(properties); + }; /** - * ImportFlowRequest importOption. - * @member {google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption} importOption - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFlowRequest.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 GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFlowRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @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.GetFlowRequest} GetFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFlowRequest.decode = function decode(reader, length) { + 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.GetFlowRequest(); + 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 GetFlowRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFlowRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetFlowRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFlowRequest.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 GetFlowRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.GetFlowRequest} GetFlowRequest + */ + GetFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetFlowRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.GetFlowRequest(); + 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 GetFlowRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.GetFlowRequest} message GetFlowRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFlowRequest.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 GetFlowRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest * @instance + * @returns {Object.} JSON object */ - ImportFlowRequest.prototype.importOption = 0; + GetFlowRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for GetFlowRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.GetFlowRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetFlowRequest"; + }; + + return GetFlowRequest; + })(); + + v3.UpdateFlowRequest = (function() { /** - * ImportFlowRequest flow. - * @member {"flowUri"|"flowContent"|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * Properties of an UpdateFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdateFlowRequest + * @property {google.cloud.dialogflow.cx.v3.IFlow|null} [flow] UpdateFlowRequest flow + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask + * @property {string|null} [languageCode] UpdateFlowRequest languageCode + */ + + /** + * Constructs a new UpdateFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdateFlowRequest. + * @implements IUpdateFlowRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest=} [properties] Properties to set + */ + function UpdateFlowRequest(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]]; + } + + /** + * UpdateFlowRequest flow. + * @member {google.cloud.dialogflow.cx.v3.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @instance */ - Object.defineProperty(ImportFlowRequest.prototype, "flow", { - get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateFlowRequest.prototype.flow = null; /** - * Creates a new ImportFlowRequest instance using the specified properties. + * UpdateFlowRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @instance + */ + UpdateFlowRequest.prototype.updateMask = null; + + /** + * UpdateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest + * @instance + */ + UpdateFlowRequest.prototype.languageCode = ""; + + /** + * Creates a new UpdateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest instance */ - ImportFlowRequest.create = function create(properties) { - return new ImportFlowRequest(properties); + UpdateFlowRequest.create = function create(properties) { + return new UpdateFlowRequest(properties); }; /** - * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} message ImportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowRequest.encode = function encode(message, writer) { + UpdateFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); - if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.flowContent); - if (message.importOption != null && Object.hasOwnProperty.call(message, "importOption")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.importOption); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3.Flow.encode(message.flow, 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 ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} message ImportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer. + * Decodes an UpdateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @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.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowRequest.decode = function decode(reader, length) { + UpdateFlowRequest.decode = function decode(reader, length) { 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.ImportFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.decode(reader, reader.uint32()); break; } case 2: { - message.flowUri = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.flowContent = reader.bytes(); - break; - } - case 4: { - message.importOption = reader.int32(); + message.languageCode = reader.string(); break; } default: @@ -8247,201 +9201,149 @@ }; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFlowRequest message. + * Verifies an UpdateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFlowRequest.verify = function verify(message) { + UpdateFlowRequest.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.flowUri != null && message.hasOwnProperty("flowUri")) { - properties.flow = 1; - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; + if (message.flow != null && message.hasOwnProperty("flow")) { + var error = $root.google.cloud.dialogflow.cx.v3.Flow.verify(message.flow); + if (error) + return "flow." + error; } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - if (properties.flow === 1) - return "flow: multiple values"; - properties.flow = 1; - if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) - return "flowContent: buffer expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.importOption != null && message.hasOwnProperty("importOption")) - switch (message.importOption) { - default: - return "importOption: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} UpdateFlowRequest */ - ImportFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest) + UpdateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.flowContent != null) - if (typeof object.flowContent === "string") - $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); - else if (object.flowContent.length >= 0) - message.flowContent = object.flowContent; - switch (object.importOption) { - default: - if (typeof object.importOption === "number") { - message.importOption = object.importOption; - break; - } - break; - case "IMPORT_OPTION_UNSPECIFIED": - case 0: - message.importOption = 0; - break; - case "KEEP": - case 1: - message.importOption = 1; - break; - case "FALLBACK": - case 2: - message.importOption = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(); + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3.Flow.fromObject(object.flow); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdateFlowRequest.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 ImportFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ImportFlowRequest} message ImportFlowRequest + * @param {google.cloud.dialogflow.cx.v3.UpdateFlowRequest} message UpdateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFlowRequest.toObject = function toObject(message, options) { + UpdateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.importOption = options.enums === String ? "IMPORT_OPTION_UNSPECIFIED" : 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - object.flowUri = message.flowUri; - if (options.oneofs) - object.flow = "flowUri"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; - if (options.oneofs) - object.flow = "flowContent"; + object.flow = null; + object.updateMask = null; + object.languageCode = ""; } - if (message.importOption != null && message.hasOwnProperty("importOption")) - object.importOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption[message.importOption] === undefined ? message.importOption : $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption[message.importOption] : message.importOption; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = $root.google.cloud.dialogflow.cx.v3.Flow.toObject(message.flow, 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 ImportFlowRequest to JSON. + * Converts this UpdateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @instance * @returns {Object.} JSON object */ - ImportFlowRequest.prototype.toJSON = function toJSON() { + UpdateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFlowRequest + * Gets the default type url for UpdateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.UpdateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateFlowRequest"; }; - /** - * ImportOption enum. - * @name google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption - * @enum {number} - * @property {number} IMPORT_OPTION_UNSPECIFIED=0 IMPORT_OPTION_UNSPECIFIED value - * @property {number} KEEP=1 KEEP value - * @property {number} FALLBACK=2 FALLBACK value - */ - ImportFlowRequest.ImportOption = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IMPORT_OPTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "KEEP"] = 1; - values[valuesById[2] = "FALLBACK"] = 2; - return values; - })(); - - return ImportFlowRequest; + return UpdateFlowRequest; })(); - v3.ImportFlowResponse = (function() { + v3.TrainFlowRequest = (function() { /** - * Properties of an ImportFlowResponse. + * Properties of a TrainFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IImportFlowResponse - * @property {string|null} [flow] ImportFlowResponse flow + * @interface ITrainFlowRequest + * @property {string|null} [name] TrainFlowRequest name */ /** - * Constructs a new ImportFlowResponse. + * Constructs a new TrainFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ImportFlowResponse. - * @implements IImportFlowResponse + * @classdesc Represents a TrainFlowRequest. + * @implements ITrainFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest=} [properties] Properties to set */ - function ImportFlowResponse(properties) { + function TrainFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8449,75 +9351,75 @@ } /** - * ImportFlowResponse flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * TrainFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @instance */ - ImportFlowResponse.prototype.flow = ""; + TrainFlowRequest.prototype.name = ""; /** - * Creates a new ImportFlowResponse instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest instance */ - ImportFlowResponse.create = function create(properties) { - return new ImportFlowResponse(properties); + TrainFlowRequest.create = function create(properties) { + return new TrainFlowRequest(properties); }; /** - * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowResponse.encode = function encode(message, writer) { + TrainFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flow); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TrainFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + TrainFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer. + * Decodes a TrainFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @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.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowResponse.decode = function decode(reader, length) { + TrainFlowRequest.decode = function decode(reader, length) { 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.ImportFlowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flow = reader.string(); + message.name = reader.string(); break; } default: @@ -8529,124 +9431,123 @@ }; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + TrainFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFlowResponse message. + * Verifies a TrainFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFlowResponse.verify = function verify(message) { + TrainFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3.TrainFlowRequest} TrainFlowRequest */ - ImportFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportFlowResponse) + TrainFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ImportFlowResponse(); - if (object.flow != null) - message.flow = String(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3.TrainFlowRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ImportFlowResponse} message ImportFlowResponse + * @param {google.cloud.dialogflow.cx.v3.TrainFlowRequest} message TrainFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFlowResponse.toObject = function toObject(message, options) { + TrainFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.flow = ""; - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ImportFlowResponse to JSON. + * Converts this TrainFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @instance * @returns {Object.} JSON object */ - ImportFlowResponse.prototype.toJSON = function toJSON() { + TrainFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFlowResponse + * Gets the default type url for TrainFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.TrainFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportFlowResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TrainFlowRequest"; }; - return ImportFlowResponse; + return TrainFlowRequest; })(); - v3.ExportFlowRequest = (function() { + v3.ValidateFlowRequest = (function() { /** - * Properties of an ExportFlowRequest. + * Properties of a ValidateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportFlowRequest - * @property {string|null} [name] ExportFlowRequest name - * @property {string|null} [flowUri] ExportFlowRequest flowUri - * @property {boolean|null} [includeReferencedFlows] ExportFlowRequest includeReferencedFlows + * @interface IValidateFlowRequest + * @property {string|null} [name] ValidateFlowRequest name + * @property {string|null} [languageCode] ValidateFlowRequest languageCode */ /** - * Constructs a new ExportFlowRequest. + * Constructs a new ValidateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportFlowRequest. - * @implements IExportFlowRequest + * @classdesc Represents a ValidateFlowRequest. + * @implements IValidateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest=} [properties] Properties to set */ - function ExportFlowRequest(properties) { + function ValidateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8654,90 +9555,80 @@ } /** - * ExportFlowRequest name. + * ValidateFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest - * @instance - */ - ExportFlowRequest.prototype.name = ""; - - /** - * ExportFlowRequest flowUri. - * @member {string} flowUri - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @instance */ - ExportFlowRequest.prototype.flowUri = ""; + ValidateFlowRequest.prototype.name = ""; /** - * ExportFlowRequest includeReferencedFlows. - * @member {boolean} includeReferencedFlows - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * ValidateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @instance */ - ExportFlowRequest.prototype.includeReferencedFlows = false; + ValidateFlowRequest.prototype.languageCode = ""; /** - * Creates a new ExportFlowRequest instance using the specified properties. + * Creates a new ValidateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest instance */ - ExportFlowRequest.create = function create(properties) { - return new ExportFlowRequest(properties); + ValidateFlowRequest.create = function create(properties) { + return new ValidateFlowRequest(properties); }; /** - * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. + * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} message ExportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowRequest.encode = function encode(message, writer) { + ValidateFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); - if (message.includeReferencedFlows != null && Object.hasOwnProperty.call(message, "includeReferencedFlows")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeReferencedFlows); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. + * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ValidateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} message ExportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer. + * Decodes a ValidateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static * @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.ExportFlowRequest} ExportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowRequest.decode = function decode(reader, length) { + ValidateFlowRequest.decode = function decode(reader, length) { 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.ExportFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8746,11 +9637,7 @@ break; } case 2: { - message.flowUri = reader.string(); - break; - } - case 4: { - message.includeReferencedFlows = reader.bool(); + message.languageCode = reader.string(); break; } default: @@ -8762,140 +9649,132 @@ }; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFlowRequest message. + * Verifies a ValidateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFlowRequest.verify = function verify(message) { + ValidateFlowRequest.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.flowUri != null && message.hasOwnProperty("flowUri")) - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) - if (typeof message.includeReferencedFlows !== "boolean") - return "includeReferencedFlows: boolean expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} ValidateFlowRequest */ - ExportFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest) + ValidateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ValidateFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.includeReferencedFlows != null) - message.includeReferencedFlows = Boolean(object.includeReferencedFlows); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportFlowRequest} message ExportFlowRequest + * @param {google.cloud.dialogflow.cx.v3.ValidateFlowRequest} message ValidateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFlowRequest.toObject = function toObject(message, options) { + ValidateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.flowUri = ""; - object.includeReferencedFlows = false; + object.languageCode = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) - object.flowUri = message.flowUri; - if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) - object.includeReferencedFlows = message.includeReferencedFlows; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ExportFlowRequest to JSON. + * Converts this ValidateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @instance * @returns {Object.} JSON object */ - ExportFlowRequest.prototype.toJSON = function toJSON() { + ValidateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFlowRequest + * Gets the default type url for ValidateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3.ValidateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ValidateFlowRequest"; }; - return ExportFlowRequest; + return ValidateFlowRequest; })(); - v3.ExportFlowResponse = (function() { + v3.GetFlowValidationResultRequest = (function() { /** - * Properties of an ExportFlowResponse. + * Properties of a GetFlowValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IExportFlowResponse - * @property {string|null} [flowUri] ExportFlowResponse flowUri - * @property {Uint8Array|null} [flowContent] ExportFlowResponse flowContent + * @interface IGetFlowValidationResultRequest + * @property {string|null} [name] GetFlowValidationResultRequest name + * @property {string|null} [languageCode] GetFlowValidationResultRequest languageCode */ /** - * Constructs a new ExportFlowResponse. + * Constructs a new GetFlowValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an ExportFlowResponse. - * @implements IExportFlowResponse + * @classdesc Represents a GetFlowValidationResultRequest. + * @implements IGetFlowValidationResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest=} [properties] Properties to set */ - function ExportFlowResponse(properties) { + function GetFlowValidationResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8903,103 +9782,89 @@ } /** - * ExportFlowResponse flowUri. - * @member {string|null|undefined} flowUri - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse - * @instance - */ - ExportFlowResponse.prototype.flowUri = null; - - /** - * ExportFlowResponse flowContent. - * @member {Uint8Array|null|undefined} flowContent - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * GetFlowValidationResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @instance */ - ExportFlowResponse.prototype.flowContent = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + GetFlowValidationResultRequest.prototype.name = ""; /** - * ExportFlowResponse flow. - * @member {"flowUri"|"flowContent"|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * GetFlowValidationResultRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @instance */ - Object.defineProperty(ExportFlowResponse.prototype, "flow", { - get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetFlowValidationResultRequest.prototype.languageCode = ""; /** - * Creates a new ExportFlowResponse instance using the specified properties. + * Creates a new GetFlowValidationResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest instance */ - ExportFlowResponse.create = function create(properties) { - return new ExportFlowResponse(properties); + GetFlowValidationResultRequest.create = function create(properties) { + return new GetFlowValidationResultRequest(properties); }; /** - * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. + * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowResponse.encode = function encode(message, writer) { + GetFlowValidationResultRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flowUri); - if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.flowContent); + 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 ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. + * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetFlowValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static * @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.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowResponse.decode = function decode(reader, length) { + GetFlowValidationResultRequest.decode = function decode(reader, length) { 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.ExportFlowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flowUri = reader.string(); + message.name = reader.string(); break; } case 2: { - message.flowContent = reader.bytes(); + message.languageCode = reader.string(); break; } default: @@ -9011,352 +9876,411 @@ }; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + GetFlowValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFlowResponse message. + * Verifies a GetFlowValidationResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFlowResponse.verify = function verify(message) { + GetFlowValidationResultRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - properties.flow = 1; - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - if (properties.flow === 1) - return "flow: multiple values"; - properties.flow = 1; - if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) - return "flowContent: buffer 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 an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} GetFlowValidationResultRequest */ - ExportFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportFlowResponse) + GetFlowValidationResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ExportFlowResponse(); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.flowContent != null) - if (typeof object.flowContent === "string") - $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); - else if (object.flowContent.length >= 0) - message.flowContent = object.flowContent; + var message = new $root.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest(); + 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 ExportFlowResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ExportFlowResponse} message ExportFlowResponse + * @param {google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} message GetFlowValidationResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFlowResponse.toObject = function toObject(message, options) { + GetFlowValidationResultRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - object.flowUri = message.flowUri; - if (options.oneofs) - object.flow = "flowUri"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; - if (options.oneofs) - object.flow = "flowContent"; + 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 ExportFlowResponse to JSON. + * Converts this GetFlowValidationResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @instance * @returns {Object.} JSON object */ - ExportFlowResponse.prototype.toJSON = function toJSON() { + GetFlowValidationResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFlowResponse + * Gets the default type url for GetFlowValidationResultRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFlowValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportFlowResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest"; }; - return ExportFlowResponse; + return GetFlowValidationResultRequest; })(); - v3.Pages = (function() { + v3.FlowValidationResult = (function() { /** - * Constructs a new Pages service. + * Properties of a FlowValidationResult. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Pages - * @extends $protobuf.rpc.Service + * @interface IFlowValidationResult + * @property {string|null} [name] FlowValidationResult name + * @property {Array.|null} [validationMessages] FlowValidationResult validationMessages + * @property {google.protobuf.ITimestamp|null} [updateTime] FlowValidationResult updateTime + */ + + /** + * Constructs a new FlowValidationResult. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a FlowValidationResult. + * @implements IFlowValidationResult * @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.IFlowValidationResult=} [properties] Properties to set */ - function Pages(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function FlowValidationResult(properties) { + this.validationMessages = []; + 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]]; } - (Pages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Pages; - /** - * Creates new Pages service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @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 {Pages} RPC service. Useful where requests and/or responses are streamed. + * FlowValidationResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @instance */ - Pages.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + FlowValidationResult.prototype.name = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|listPages}. - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @typedef ListPagesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListPagesResponse} [response] ListPagesResponse + * FlowValidationResult validationMessages. + * @member {Array.} validationMessages + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @instance */ + FlowValidationResult.prototype.validationMessages = $util.emptyArray; /** - * Calls ListPages. - * @function listPages - * @memberof google.cloud.dialogflow.cx.v3.Pages + * FlowValidationResult updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult * @instance - * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} request ListPagesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { - return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3.ListPagesResponse, request, callback); - }, "name", { value: "ListPages" }); + FlowValidationResult.prototype.updateTime = null; /** - * Calls ListPages. - * @function listPages - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} request ListPagesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|getPage}. - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @typedef GetPageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page - */ - - /** - * Calls GetPage. - * @function getPage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} request GetPageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { - return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3.GetPageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); - }, "name", { value: "GetPage" }); - - /** - * Calls GetPage. - * @function getPage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} request GetPageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new FlowValidationResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.FlowValidationResult} FlowValidationResult instance */ + FlowValidationResult.create = function create(properties) { + return new FlowValidationResult(properties); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|createPage}. - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @typedef CreatePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page + * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + FlowValidationResult.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.validationMessages != null && message.validationMessages.length) + for (var i = 0; i < message.validationMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.ValidationMessage.encode(message.validationMessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; /** - * Calls CreatePage. - * @function createPage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} request CreatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 + * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.FlowValidationResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { - return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); - }, "name", { value: "CreatePage" }); + FlowValidationResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreatePage. - * @function createPage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} request CreatePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a FlowValidationResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @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.FlowValidationResult} FlowValidationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + FlowValidationResult.decode = function decode(reader, length) { + 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.FlowValidationResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.validationMessages && message.validationMessages.length)) + message.validationMessages = []; + message.validationMessages.push($root.google.cloud.dialogflow.cx.v3.ValidationMessage.decode(reader, reader.uint32())); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|updatePage}. - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @typedef UpdatePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page + * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.FlowValidationResult} FlowValidationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + FlowValidationResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdatePage. - * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 + * Verifies a FlowValidationResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { - return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); - }, "name", { value: "UpdatePage" }); + FlowValidationResult.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.validationMessages != null && message.hasOwnProperty("validationMessages")) { + if (!Array.isArray(message.validationMessages)) + return "validationMessages: array expected"; + for (var i = 0; i < message.validationMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.ValidationMessage.verify(message.validationMessages[i]); + if (error) + return "validationMessages." + error; + } + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; /** - * Calls UpdatePage. - * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.FlowValidationResult} FlowValidationResult */ + FlowValidationResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.FlowValidationResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.FlowValidationResult(); + if (object.name != null) + message.name = String(object.name); + if (object.validationMessages) { + if (!Array.isArray(object.validationMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.FlowValidationResult.validationMessages: array expected"); + message.validationMessages = []; + for (var i = 0; i < object.validationMessages.length; ++i) { + if (typeof object.validationMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FlowValidationResult.validationMessages: object expected"); + message.validationMessages[i] = $root.google.cloud.dialogflow.cx.v3.ValidationMessage.fromObject(object.validationMessages[i]); + } + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.FlowValidationResult.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|deletePage}. - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @typedef DeletePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3.FlowValidationResult} message FlowValidationResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + FlowValidationResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.validationMessages = []; + if (options.defaults) { + object.name = ""; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.validationMessages && message.validationMessages.length) { + object.validationMessages = []; + for (var j = 0; j < message.validationMessages.length; ++j) + object.validationMessages[j] = $root.google.cloud.dialogflow.cx.v3.ValidationMessage.toObject(message.validationMessages[j], options); + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + return object; + }; /** - * Calls DeletePage. - * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3.Pages + * Converts this FlowValidationResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} request DeletePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { - return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3.DeletePageRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeletePage" }); + FlowValidationResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeletePage. - * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} request DeletePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for FlowValidationResult + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.FlowValidationResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + FlowValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.FlowValidationResult"; + }; - return Pages; + return FlowValidationResult; })(); - v3.Page = (function() { + v3.ImportFlowRequest = (function() { /** - * Properties of a Page. + * Properties of an ImportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IPage - * @property {string|null} [name] Page name - * @property {string|null} [displayName] Page displayName - * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [entryFulfillment] Page entryFulfillment - * @property {google.cloud.dialogflow.cx.v3.IForm|null} [form] Page form - * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups - * @property {Array.|null} [transitionRoutes] Page transitionRoutes - * @property {Array.|null} [eventHandlers] Page eventHandlers + * @interface IImportFlowRequest + * @property {string|null} [parent] ImportFlowRequest parent + * @property {string|null} [flowUri] ImportFlowRequest flowUri + * @property {Uint8Array|null} [flowContent] ImportFlowRequest flowContent + * @property {google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption|null} [importOption] ImportFlowRequest importOption */ /** - * Constructs a new Page. + * Constructs a new ImportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Page. - * @implements IPage + * @classdesc Represents an ImportFlowRequest. + * @implements IImportFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IPage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest=} [properties] Properties to set */ - function Page(properties) { - this.transitionRouteGroups = []; - this.transitionRoutes = []; - this.eventHandlers = []; + function ImportFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9364,168 +10288,131 @@ } /** - * Page name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Page - * @instance - */ - Page.prototype.name = ""; - - /** - * Page displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Page + * ImportFlowRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @instance */ - Page.prototype.displayName = ""; + ImportFlowRequest.prototype.parent = ""; /** - * Page entryFulfillment. - * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} entryFulfillment - * @memberof google.cloud.dialogflow.cx.v3.Page + * ImportFlowRequest flowUri. + * @member {string|null|undefined} flowUri + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @instance */ - Page.prototype.entryFulfillment = null; + ImportFlowRequest.prototype.flowUri = null; /** - * Page form. - * @member {google.cloud.dialogflow.cx.v3.IForm|null|undefined} form - * @memberof google.cloud.dialogflow.cx.v3.Page + * ImportFlowRequest flowContent. + * @member {Uint8Array|null|undefined} flowContent + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @instance */ - Page.prototype.form = null; + ImportFlowRequest.prototype.flowContent = null; /** - * Page transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3.Page + * ImportFlowRequest importOption. + * @member {google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption} importOption + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @instance */ - Page.prototype.transitionRouteGroups = $util.emptyArray; + ImportFlowRequest.prototype.importOption = 0; - /** - * Page transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3.Page - * @instance - */ - Page.prototype.transitionRoutes = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Page eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3.Page + * ImportFlowRequest flow. + * @member {"flowUri"|"flowContent"|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @instance */ - Page.prototype.eventHandlers = $util.emptyArray; + Object.defineProperty(ImportFlowRequest.prototype, "flow", { + get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Page instance using the specified properties. + * Creates a new ImportFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Page} Page instance + * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest instance */ - Page.create = function create(properties) { - return new Page(properties); + ImportFlowRequest.create = function create(properties) { + return new ImportFlowRequest(properties); }; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. + * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} message ImportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Page.encode = function encode(message, writer) { + ImportFlowRequest.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.form != null && Object.hasOwnProperty.call(message, "form")) - $root.google.cloud.dialogflow.cx.v3.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - 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 9, wireType 2 =*/74).fork()).ldelim(); - if (message.eventHandlers != null && message.eventHandlers.length) - for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); + if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.flowContent); + if (message.importOption != null && Object.hasOwnProperty.call(message, "importOption")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.importOption); return writer; }; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. + * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportFlowRequest} message ImportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Page.encodeDelimited = function encodeDelimited(message, writer) { + ImportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes an ImportFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static * @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.Page} Page + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Page.decode = function decode(reader, length) { + ImportFlowRequest.decode = function decode(reader, length) { 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.Page(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest(); 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(); + message.flowUri = reader.string(); break; } - case 7: { - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); + case 3: { + message.flowContent = reader.bytes(); break; } case 4: { - message.form = $root.google.cloud.dialogflow.cx.v3.Form.decode(reader, reader.uint32()); - break; - } - case 11: { - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push(reader.string()); - break; - } - case 9: { - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.eventHandlers && message.eventHandlers.length)) - message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); + message.importOption = reader.int32(); break; } default: @@ -9537,230 +10424,201 @@ }; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Page} Page + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Page.decodeDelimited = function decodeDelimited(reader) { + ImportFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Page message. + * Verifies an ImportFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Page.verify = function verify(message) { + ImportFlowRequest.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.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.entryFulfillment); - if (error) - return "entryFulfillment." + error; - } - if (message.form != null && message.hasOwnProperty("form")) { - var error = $root.google.cloud.dialogflow.cx.v3.Form.verify(message.form); - if (error) - return "form." + 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) - if (!$util.isString(message.transitionRouteGroups[i])) - return "transitionRouteGroups: string[] expected"; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + properties.flow = 1; + if (!$util.isString(message.flowUri)) + return "flowUri: 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; - } + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + if (properties.flow === 1) + return "flow: multiple values"; + properties.flow = 1; + if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) + return "flowContent: buffer expected"; } - if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { - if (!Array.isArray(message.eventHandlers)) - return "eventHandlers: array expected"; - for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandlers[i]); - if (error) - return "eventHandlers." + error; + if (message.importOption != null && message.hasOwnProperty("importOption")) + switch (message.importOption) { + default: + return "importOption: enum value expected"; + case 0: + case 1: + case 2: + break; } - } return null; }; /** - * Creates a Page message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Page} Page + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowRequest} ImportFlowRequest */ - Page.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Page) + ImportFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Page(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.entryFulfillment != null) { - if (typeof object.entryFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Page.entryFulfillment: object expected"); - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.entryFulfillment); - } - if (object.form != null) { - if (typeof object.form !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Page.form: object expected"); - message.form = $root.google.cloud.dialogflow.cx.v3.Form.fromObject(object.form); - } - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Page.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) - message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); - } - if (object.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Page.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.Page.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } - if (object.eventHandlers) { - if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Page.eventHandlers: array expected"); - message.eventHandlers = []; - for (var i = 0; i < object.eventHandlers.length; ++i) { - if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Page.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.flowContent != null) + if (typeof object.flowContent === "string") + $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); + else if (object.flowContent.length >= 0) + message.flowContent = object.flowContent; + switch (object.importOption) { + default: + if (typeof object.importOption === "number") { + message.importOption = object.importOption; + break; } + break; + case "IMPORT_OPTION_UNSPECIFIED": + case 0: + message.importOption = 0; + break; + case "KEEP": + case 1: + message.importOption = 1; + break; + case "FALLBACK": + case 2: + message.importOption = 2; + break; } return message; }; /** - * Creates a plain object from a Page message. Also converts values to other types if specified. + * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Page} message Page + * @param {google.cloud.dialogflow.cx.v3.ImportFlowRequest} message ImportFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Page.toObject = function toObject(message, options) { + ImportFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.transitionRoutes = []; - object.eventHandlers = []; - object.transitionRouteGroups = []; - } if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.form = null; - object.entryFulfillment = 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.form != null && message.hasOwnProperty("form")) - object.form = $root.google.cloud.dialogflow.cx.v3.Form.toObject(message.form, options); - if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) - object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.entryFulfillment, options); - 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); + object.parent = ""; + object.importOption = options.enums === String ? "IMPORT_OPTION_UNSPECIFIED" : 0; } - if (message.eventHandlers && message.eventHandlers.length) { - object.eventHandlers = []; - for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandlers[j], options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + object.flowUri = message.flowUri; + if (options.oneofs) + object.flow = "flowUri"; } - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; + if (options.oneofs) + object.flow = "flowContent"; } + if (message.importOption != null && message.hasOwnProperty("importOption")) + object.importOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption[message.importOption] === undefined ? message.importOption : $root.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption[message.importOption] : message.importOption; return object; }; /** - * Converts this Page to JSON. + * Converts this ImportFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @instance * @returns {Object.} JSON object */ - Page.prototype.toJSON = function toJSON() { + ImportFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Page + * Gets the default type url for ImportFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Page + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Page"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportFlowRequest"; }; - return Page; + /** + * ImportOption enum. + * @name google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption + * @enum {number} + * @property {number} IMPORT_OPTION_UNSPECIFIED=0 IMPORT_OPTION_UNSPECIFIED value + * @property {number} KEEP=1 KEEP value + * @property {number} FALLBACK=2 FALLBACK value + */ + ImportFlowRequest.ImportOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IMPORT_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEEP"] = 1; + values[valuesById[2] = "FALLBACK"] = 2; + return values; + })(); + + return ImportFlowRequest; })(); - v3.Form = (function() { + v3.ImportFlowResponse = (function() { /** - * Properties of a Form. + * Properties of an ImportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IForm - * @property {Array.|null} [parameters] Form parameters + * @interface IImportFlowResponse + * @property {string|null} [flow] ImportFlowResponse flow */ /** - * Constructs a new Form. + * Constructs a new ImportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Form. - * @implements IForm + * @classdesc Represents an ImportFlowResponse. + * @implements IImportFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IForm=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse=} [properties] Properties to set */ - function Form(properties) { - this.parameters = []; + function ImportFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9768,78 +10626,75 @@ } /** - * Form parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3.Form + * ImportFlowResponse flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @instance */ - Form.prototype.parameters = $util.emptyArray; + ImportFlowResponse.prototype.flow = ""; /** - * Creates a new Form instance using the specified properties. + * Creates a new ImportFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IForm=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Form} Form instance + * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse instance */ - Form.create = function create(properties) { - return new Form(properties); + ImportFlowResponse.create = function create(properties) { + return new ImportFlowResponse(properties); }; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. + * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse} message ImportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Form.encode = function encode(message, writer) { + ImportFlowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flow); return writer; }; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. + * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ImportFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IImportFlowResponse} message ImportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Form.encodeDelimited = function encodeDelimited(message, writer) { + ImportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Form message from the specified reader or buffer. + * Decodes an ImportFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static * @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.Form} Form + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Form.decode = function decode(reader, length) { + ImportFlowResponse.decode = function decode(reader, length) { 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.Form(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ImportFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3.Form.Parameter.decode(reader, reader.uint32())); + message.flow = reader.string(); break; } default: @@ -9851,894 +10706,228 @@ }; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Form} Form + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Form.decodeDelimited = function decodeDelimited(reader) { + ImportFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Form message. + * Verifies an ImportFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Form.verify = function verify(message) { + ImportFlowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.v3.Form.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; return null; }; /** - * Creates a Form message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Form} Form + * @returns {google.cloud.dialogflow.cx.v3.ImportFlowResponse} ImportFlowResponse */ - Form.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form) + ImportFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ImportFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Form(); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Form.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.Form.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.fromObject(object.parameters[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.ImportFlowResponse(); + if (object.flow != null) + message.flow = String(object.flow); return message; }; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. + * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.Form} message Form + * @param {google.cloud.dialogflow.cx.v3.ImportFlowResponse} message ImportFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Form.toObject = function toObject(message, options) { + ImportFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - 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.Form.Parameter.toObject(message.parameters[j], options); - } + if (options.defaults) + object.flow = ""; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; return object; }; /** - * Converts this Form to JSON. + * Converts this ImportFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @instance * @returns {Object.} JSON object */ - Form.prototype.toJSON = function toJSON() { + ImportFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Form + * Gets the default type url for ImportFlowResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Form + * @memberof google.cloud.dialogflow.cx.v3.ImportFlowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Form"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ImportFlowResponse"; }; - Form.Parameter = (function() { + return ImportFlowResponse; + })(); - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3.Form - * @interface IParameter - * @property {string|null} [displayName] Parameter displayName - * @property {boolean|null} [required] Parameter required - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior - * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue - * @property {boolean|null} [redact] Parameter redact - */ + v3.ExportFlowRequest = (function() { - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3.Form - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Form.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]]; - } + /** + * Properties of an ExportFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IExportFlowRequest + * @property {string|null} [name] ExportFlowRequest name + * @property {string|null} [flowUri] ExportFlowRequest flowUri + * @property {boolean|null} [includeReferencedFlows] ExportFlowRequest includeReferencedFlows + */ - /** - * Parameter displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.displayName = ""; + /** + * Constructs a new ExportFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an ExportFlowRequest. + * @implements IExportFlowRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest=} [properties] Properties to set + */ + function ExportFlowRequest(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 required. - * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.required = false; + /** + * ExportFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @instance + */ + ExportFlowRequest.prototype.name = ""; - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; + /** + * ExportFlowRequest flowUri. + * @member {string} flowUri + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @instance + */ + ExportFlowRequest.prototype.flowUri = ""; - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.isList = false; + /** + * ExportFlowRequest includeReferencedFlows. + * @member {boolean} includeReferencedFlows + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @instance + */ + ExportFlowRequest.prototype.includeReferencedFlows = false; - /** - * Parameter fillBehavior. - * @member {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null|undefined} fillBehavior - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.fillBehavior = null; + /** + * Creates a new ExportFlowRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest instance + */ + ExportFlowRequest.create = function create(properties) { + return new ExportFlowRequest(properties); + }; - /** - * Parameter defaultValue. - * @member {google.protobuf.IValue|null|undefined} defaultValue - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.defaultValue = null; - - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @instance - */ - Parameter.prototype.redact = false; - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Form.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.Form.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.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.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.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); - if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) - $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); - return writer; - }; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.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.Form.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.Form.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.Form.Parameter(); - 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.entityType = reader.string(); - break; - } - case 4: { - message.isList = reader.bool(); - break; - } - case 7: { - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); - break; - } - case 9: { - message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 11: { - 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.Form.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Form.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.Form.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.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.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.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { - var error = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify(message.fillBehavior); - if (error) - return "fillBehavior." + error; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - var error = $root.google.protobuf.Value.verify(message.defaultValue); - if (error) - return "defaultValue." + error; - } - 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.Form.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.required != null) - message.required = Boolean(object.required); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.fillBehavior != null) { - if (typeof object.fillBehavior !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.fillBehavior: object expected"); - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); - } - if (object.defaultValue != null) { - if (typeof object.defaultValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.defaultValue: object expected"); - message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); - } - 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.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.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.displayName = ""; - object.required = false; - object.entityType = ""; - object.isList = false; - object.fillBehavior = null; - object.defaultValue = null; - object.redact = 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.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) - object.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); - 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.Form.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Parameter - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Form.Parameter"; - }; - - Parameter.FillBehavior = (function() { - - /** - * Properties of a FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @interface IFillBehavior - * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment - * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers - */ - - /** - * Constructs a new FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter - * @classdesc Represents a FillBehavior. - * @implements IFillBehavior - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior=} [properties] Properties to set - */ - function FillBehavior(properties) { - this.repromptEventHandlers = []; - 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]]; - } - - /** - * FillBehavior initialPromptFulfillment. - * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} initialPromptFulfillment - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @instance - */ - FillBehavior.prototype.initialPromptFulfillment = null; - - /** - * FillBehavior repromptEventHandlers. - * @member {Array.} repromptEventHandlers - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @instance - */ - FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; - - /** - * Creates a new FillBehavior instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior instance - */ - FillBehavior.create = function create(properties) { - return new FillBehavior(properties); - }; - - /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FillBehavior.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) - for (var i = 0; i < message.repromptEventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FillBehavior.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FillBehavior message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @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.Form.Parameter.FillBehavior} FillBehavior - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FillBehavior.decode = function decode(reader, length) { - 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.Form.Parameter.FillBehavior(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) - message.repromptEventHandlers = []; - message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FillBehavior message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FillBehavior.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FillBehavior message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FillBehavior.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.initialPromptFulfillment); - if (error) - return "initialPromptFulfillment." + error; - } - if (message.repromptEventHandlers != null && message.hasOwnProperty("repromptEventHandlers")) { - if (!Array.isArray(message.repromptEventHandlers)) - return "repromptEventHandlers: array expected"; - for (var i = 0; i < message.repromptEventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.repromptEventHandlers[i]); - if (error) - return "repromptEventHandlers." + error; - } - } - return null; - }; - - /** - * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior - */ - FillBehavior.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior(); - if (object.initialPromptFulfillment != null) { - if (typeof object.initialPromptFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.initialPromptFulfillment); - } - if (object.repromptEventHandlers) { - if (!Array.isArray(object.repromptEventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); - message.repromptEventHandlers = []; - for (var i = 0; i < object.repromptEventHandlers.length; ++i) { - if (typeof object.repromptEventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); - message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.repromptEventHandlers[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} message FillBehavior - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FillBehavior.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.repromptEventHandlers = []; - if (options.defaults) - object.initialPromptFulfillment = null; - if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) - object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.initialPromptFulfillment, options); - if (message.repromptEventHandlers && message.repromptEventHandlers.length) { - object.repromptEventHandlers = []; - for (var j = 0; j < message.repromptEventHandlers.length; ++j) - object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.repromptEventHandlers[j], options); - } - return object; - }; - - /** - * Converts this FillBehavior to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @instance - * @returns {Object.} JSON object - */ - FillBehavior.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FillBehavior - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FillBehavior.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior"; - }; - - return FillBehavior; - })(); - - return Parameter; - })(); - - return Form; - })(); - - v3.EventHandler = (function() { - - /** - * Properties of an EventHandler. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IEventHandler - * @property {string|null} [name] EventHandler name - * @property {string|null} [event] EventHandler event - * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment - * @property {string|null} [targetPage] EventHandler targetPage - * @property {string|null} [targetFlow] EventHandler targetFlow - */ - - /** - * Constructs a new EventHandler. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EventHandler. - * @implements IEventHandler - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEventHandler=} [properties] Properties to set - */ - function EventHandler(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]]; - } - - /** - * EventHandler name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @instance - */ - EventHandler.prototype.name = ""; - - /** - * EventHandler event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @instance - */ - EventHandler.prototype.event = ""; - - /** - * EventHandler triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @instance - */ - EventHandler.prototype.triggerFulfillment = null; - - /** - * EventHandler targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @instance - */ - EventHandler.prototype.targetPage = null; - - /** - * EventHandler targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @instance - */ - EventHandler.prototype.targetFlow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * EventHandler target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @instance - */ - Object.defineProperty(EventHandler.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new EventHandler instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @static - * @param {google.cloud.dialogflow.cx.v3.IEventHandler=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler instance - */ - EventHandler.create = function create(properties) { - return new EventHandler(properties); - }; - - /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.EventHandler - * @static - * @param {google.cloud.dialogflow.cx.v3.IEventHandler} message EventHandler message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventHandler.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetFlow); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - return writer; - }; + /** + * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} message ExportFlowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); + if (message.includeReferencedFlows != null && Object.hasOwnProperty.call(message, "includeReferencedFlows")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeReferencedFlows); + return writer; + }; /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. + * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IEventHandler} message EventHandler message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportFlowRequest} message ExportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventHandler.encodeDelimited = function encodeDelimited(message, writer) { + ExportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventHandler message from the specified reader or buffer. + * Decodes an ExportFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static * @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.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventHandler.decode = function decode(reader, length) { + ExportFlowRequest.decode = function decode(reader, length) { 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.EventHandler(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: { + case 1: { message.name = reader.string(); break; } - case 4: { - message.event = reader.string(); - break; - } - case 5: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); - break; - } case 2: { - message.targetPage = reader.string(); + message.flowUri = reader.string(); break; } - case 3: { - message.targetFlow = reader.string(); + case 4: { + message.includeReferencedFlows = reader.bool(); break; } default: @@ -10750,176 +10939,140 @@ }; /** - * Decodes an EventHandler message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventHandler.decodeDelimited = function decodeDelimited(reader) { + ExportFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventHandler message. + * Verifies an ExportFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventHandler.verify = function verify(message) { + ExportFlowRequest.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.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; - } + if (message.flowUri != null && message.hasOwnProperty("flowUri")) + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; + if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) + if (typeof message.includeReferencedFlows !== "boolean") + return "includeReferencedFlows: boolean expected"; return null; }; /** - * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowRequest} ExportFlowRequest */ - EventHandler.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventHandler) + ExportFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.EventHandler(); + var message = new $root.google.cloud.dialogflow.cx.v3.ExportFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.event != null) - message.event = String(object.event); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.EventHandler.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.triggerFulfillment); - } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.includeReferencedFlows != null) + message.includeReferencedFlows = Boolean(object.includeReferencedFlows); return message; }; /** - * Creates a plain object from an EventHandler message. Also converts values to other types if specified. + * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3.EventHandler} message EventHandler + * @param {google.cloud.dialogflow.cx.v3.ExportFlowRequest} message ExportFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventHandler.toObject = function toObject(message, options) { + ExportFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.event = ""; - object.triggerFulfillment = null; object.name = ""; + object.flowUri = ""; + object.includeReferencedFlows = false; } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.target = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.target = "targetFlow"; - } - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.triggerFulfillment, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) + object.flowUri = message.flowUri; + if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) + object.includeReferencedFlows = message.includeReferencedFlows; return object; }; /** - * Converts this EventHandler to JSON. + * Converts this ExportFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @instance * @returns {Object.} JSON object */ - EventHandler.prototype.toJSON = function toJSON() { + ExportFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EventHandler + * Gets the default type url for ExportFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EventHandler.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EventHandler"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportFlowRequest"; }; - return EventHandler; + return ExportFlowRequest; })(); - v3.TransitionRoute = (function() { + v3.ExportFlowResponse = (function() { /** - * Properties of a TransitionRoute. + * Properties of an ExportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface ITransitionRoute - * @property {string|null} [name] TransitionRoute name - * @property {string|null} [intent] TransitionRoute intent - * @property {string|null} [condition] TransitionRoute condition - * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment - * @property {string|null} [targetPage] TransitionRoute targetPage - * @property {string|null} [targetFlow] TransitionRoute targetFlow + * @interface IExportFlowResponse + * @property {string|null} [flowUri] ExportFlowResponse flowUri + * @property {Uint8Array|null} [flowContent] ExportFlowResponse flowContent */ /** - * Constructs a new TransitionRoute. + * Constructs a new ExportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a TransitionRoute. - * @implements ITransitionRoute + * @classdesc Represents an ExportFlowResponse. + * @implements IExportFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse=} [properties] Properties to set */ - function TransitionRoute(properties) { + function ExportFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10927,159 +11080,103 @@ } /** - * TransitionRoute name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute - * @instance - */ - TransitionRoute.prototype.name = ""; - - /** - * TransitionRoute intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute - * @instance - */ - TransitionRoute.prototype.intent = ""; - - /** - * TransitionRoute condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute - * @instance - */ - TransitionRoute.prototype.condition = ""; - - /** - * TransitionRoute triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute - * @instance - */ - TransitionRoute.prototype.triggerFulfillment = null; - - /** - * TransitionRoute targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * ExportFlowResponse flowUri. + * @member {string|null|undefined} flowUri + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @instance */ - TransitionRoute.prototype.targetPage = null; + ExportFlowResponse.prototype.flowUri = null; /** - * TransitionRoute targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * ExportFlowResponse flowContent. + * @member {Uint8Array|null|undefined} flowContent + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @instance */ - TransitionRoute.prototype.targetFlow = null; + ExportFlowResponse.prototype.flowContent = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * TransitionRoute target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * ExportFlowResponse flow. + * @member {"flowUri"|"flowContent"|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @instance */ - Object.defineProperty(TransitionRoute.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + Object.defineProperty(ExportFlowResponse.prototype, "flow", { + get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new TransitionRoute instance using the specified properties. + * Creates a new ExportFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute instance + * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse instance */ - TransitionRoute.create = function create(properties) { - return new TransitionRoute(properties); + ExportFlowResponse.create = function create(properties) { + return new ExportFlowResponse(properties); }; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. + * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse} message ExportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRoute.encode = function encode(message, writer) { + ExportFlowResponse.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.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flowUri); + if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.flowContent); return writer; }; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. + * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ExportFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IExportFlowResponse} message ExportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRoute.encodeDelimited = function encodeDelimited(message, writer) { + ExportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRoute message from the specified reader or buffer. + * Decodes an ExportFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static * @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.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRoute.decode = function decode(reader, length) { + ExportFlowResponse.decode = function decode(reader, length) { 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.TransitionRoute(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ExportFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: { - message.name = reader.string(); - break; - } case 1: { - message.intent = reader.string(); + message.flowUri = reader.string(); break; } case 2: { - message.condition = reader.string(); - break; - } - case 3: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 4: { - message.targetPage = reader.string(); - break; - } - case 5: { - message.targetFlow = reader.string(); + message.flowContent = reader.bytes(); break; } default: @@ -11091,454 +11188,352 @@ }; /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRoute.decodeDelimited = function decodeDelimited(reader) { + ExportFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRoute message. + * Verifies an ExportFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRoute.verify = function verify(message) { + ExportFlowResponse.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.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + properties.flow = 1; + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + if (properties.flow === 1) + return "flow: multiple values"; + properties.flow = 1; + if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) + return "flowContent: buffer expected"; } return null; }; /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3.ExportFlowResponse} ExportFlowResponse */ - TransitionRoute.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRoute) + ExportFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ExportFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRoute(); - if (object.name != null) - message.name = String(object.name); - if (object.intent != null) - message.intent = String(object.intent); - if (object.condition != null) - message.condition = String(object.condition); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRoute.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.triggerFulfillment); - } - 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.ExportFlowResponse(); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.flowContent != null) + if (typeof object.flowContent === "string") + $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); + else if (object.flowContent.length >= 0) + message.flowContent = object.flowContent; return message; }; /** - * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3.TransitionRoute} message TransitionRoute + * @param {google.cloud.dialogflow.cx.v3.ExportFlowResponse} message ExportFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRoute.toObject = function toObject(message, options) { + ExportFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = ""; - object.condition = ""; - object.triggerFulfillment = null; - object.name = ""; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.triggerFulfillment, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + object.flowUri = message.flowUri; if (options.oneofs) - object.target = "targetPage"; + object.flow = "flowUri"; } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; if (options.oneofs) - object.target = "targetFlow"; + object.flow = "flowContent"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this TransitionRoute to JSON. + * Converts this ExportFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @instance * @returns {Object.} JSON object */ - TransitionRoute.prototype.toJSON = function toJSON() { + ExportFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransitionRoute + * Gets the default type url for ExportFlowResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3.ExportFlowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransitionRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TransitionRoute"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ExportFlowResponse"; }; - return TransitionRoute; + return ExportFlowResponse; })(); - v3.ListPagesRequest = (function() { + v3.Pages = (function() { /** - * Properties of a ListPagesRequest. + * Constructs a new Pages service. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListPagesRequest - * @property {string|null} [parent] ListPagesRequest parent - * @property {string|null} [languageCode] ListPagesRequest languageCode - * @property {number|null} [pageSize] ListPagesRequest pageSize - * @property {string|null} [pageToken] ListPagesRequest pageToken + * @classdesc Represents a Pages + * @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 Pages(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Pages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Pages; /** - * Constructs a new ListPagesRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListPagesRequest. - * @implements IListPagesRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest=} [properties] Properties to set + * Creates new Pages service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @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 {Pages} RPC service. Useful where requests and/or responses are streamed. */ - function ListPagesRequest(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]]; - } + Pages.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ListPagesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|listPages}. + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @typedef ListPagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.ListPagesResponse} [response] ListPagesResponse */ - ListPagesRequest.prototype.parent = ""; /** - * ListPagesRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest + * Calls ListPages. + * @function listPages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} request ListPagesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.prototype.languageCode = ""; + Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { + return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3.ListPagesResponse, request, callback); + }, "name", { value: "ListPages" }); /** - * ListPagesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest + * Calls ListPages. + * @function listPages + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} request ListPagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.prototype.pageSize = 0; /** - * ListPagesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|getPage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @typedef GetPageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page + */ + + /** + * Calls GetPage. + * @function getPage + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} request GetPageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.prototype.pageToken = ""; + Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { + return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3.GetPageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); + }, "name", { value: "GetPage" }); /** - * Creates a new ListPagesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest instance + * Calls GetPage. + * @function getPage + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} request GetPageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.create = function create(properties) { - return new ListPagesRequest(properties); - }; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} message ListPagesRequest 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.Pages|createPage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @typedef CreatePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page */ - ListPagesRequest.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; - }; /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} message ListPagesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreatePage. + * @function createPage + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} request CreatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { + return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); + }, "name", { value: "CreatePage" }); /** - * Decodes a ListPagesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @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.ListPagesRequest} ListPagesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreatePage. + * @function createPage + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} request CreatePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.decode = function decode(reader, length) { - 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.ListPagesRequest(); - 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 ListPagesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest - * @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.Pages|updatePage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @typedef UpdatePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3.Page} [response] Page */ - ListPagesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListPagesRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdatePage. + * @function updatePage + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.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; - }; + Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { + return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3.Page, request, callback); + }, "name", { value: "UpdatePage" }); /** - * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest + * Calls UpdatePage. + * @function updatePage + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListPagesRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListPagesRequest(); - 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 ListPagesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ListPagesRequest} message ListPagesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3.Pages|deletePage}. + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @typedef DeletePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListPagesRequest.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; - }; /** - * Converts this ListPagesRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest + * Calls DeletePage. + * @function deletePage + * @memberof google.cloud.dialogflow.cx.v3.Pages * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} request DeletePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { + return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3.DeletePageRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeletePage" }); /** - * Gets the default type url for ListPagesRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls DeletePage. + * @function deletePage + * @memberof google.cloud.dialogflow.cx.v3.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} request DeletePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListPagesRequest"; - }; - return ListPagesRequest; + return Pages; })(); - v3.ListPagesResponse = (function() { + v3.Page = (function() { /** - * Properties of a ListPagesResponse. + * Properties of a Page. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListPagesResponse - * @property {Array.|null} [pages] ListPagesResponse pages - * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken + * @interface IPage + * @property {string|null} [name] Page name + * @property {string|null} [displayName] Page displayName + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [entryFulfillment] Page entryFulfillment + * @property {google.cloud.dialogflow.cx.v3.IForm|null} [form] Page form + * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups + * @property {Array.|null} [transitionRoutes] Page transitionRoutes + * @property {Array.|null} [eventHandlers] Page eventHandlers */ /** - * Constructs a new ListPagesResponse. + * Constructs a new Page. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListPagesResponse. - * @implements IListPagesResponse + * @classdesc Represents a Page. + * @implements IPage * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IPage=} [properties] Properties to set */ - function ListPagesResponse(properties) { - this.pages = []; + function Page(properties) { + this.transitionRouteGroups = []; + this.transitionRoutes = []; + this.eventHandlers = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11546,92 +11541,168 @@ } /** - * ListPagesResponse pages. - * @member {Array.} pages - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * Page name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ - ListPagesResponse.prototype.pages = $util.emptyArray; + Page.prototype.name = ""; /** - * ListPagesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * Page displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance */ - ListPagesResponse.prototype.nextPageToken = ""; + Page.prototype.displayName = ""; /** - * Creates a new ListPagesResponse instance using the specified properties. + * Page entryFulfillment. + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} entryFulfillment + * @memberof google.cloud.dialogflow.cx.v3.Page + * @instance + */ + Page.prototype.entryFulfillment = null; + + /** + * Page form. + * @member {google.cloud.dialogflow.cx.v3.IForm|null|undefined} form + * @memberof google.cloud.dialogflow.cx.v3.Page + * @instance + */ + Page.prototype.form = null; + + /** + * Page transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3.Page + * @instance + */ + Page.prototype.transitionRouteGroups = $util.emptyArray; + + /** + * Page transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3.Page + * @instance + */ + Page.prototype.transitionRoutes = $util.emptyArray; + + /** + * Page eventHandlers. + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3.Page + * @instance + */ + Page.prototype.eventHandlers = $util.emptyArray; + + /** + * Creates a new Page instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse instance + * @param {google.cloud.dialogflow.cx.v3.IPage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Page} Page instance */ - ListPagesResponse.create = function create(properties) { - return new ListPagesResponse(properties); + Page.create = function create(properties) { + return new Page(properties); }; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPage} message Page message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesResponse.encode = function encode(message, writer) { + Page.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pages != null && message.pages.length) - for (var i = 0; i < message.pages.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.pages[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.form != null && Object.hasOwnProperty.call(message, "form")) + $root.google.cloud.dialogflow.cx.v3.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 9, wireType 2 =*/74).fork()).ldelim(); + if (message.eventHandlers != null && message.eventHandlers.length) + for (var i = 0; i < message.eventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); return writer; }; /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Page.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IPage} message Page message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Page.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPagesResponse message from the specified reader or buffer. + * Decodes a Page message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @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.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3.Page} Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesResponse.decode = function decode(reader, length) { + Page.decode = function decode(reader, length) { 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.ListPagesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Page(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pages && message.pages.length)) - message.pages = []; - message.pages.push($root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.displayName = reader.string(); + break; + } + case 7: { + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.form = $root.google.cloud.dialogflow.cx.v3.Form.decode(reader, reader.uint32()); + break; + } + case 11: { + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push(reader.string()); + break; + } + case 9: { + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3.TransitionRoute.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.eventHandlers && message.eventHandlers.length)) + message.eventHandlers = []; + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); break; } default: @@ -11643,149 +11714,230 @@ }; /** - * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * Decodes a Page message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3.Page} Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesResponse.decodeDelimited = function decodeDelimited(reader) { + Page.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPagesResponse message. + * Verifies a Page message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPagesResponse.verify = function verify(message) { + Page.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pages != null && message.hasOwnProperty("pages")) { - if (!Array.isArray(message.pages)) - return "pages: array expected"; - for (var i = 0; i < message.pages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.pages[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.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.entryFulfillment); + if (error) + return "entryFulfillment." + error; + } + if (message.form != null && message.hasOwnProperty("form")) { + var error = $root.google.cloud.dialogflow.cx.v3.Form.verify(message.form); + if (error) + return "form." + 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) + if (!$util.isString(message.transitionRouteGroups[i])) + return "transitionRouteGroups: 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 "pages." + error; + return "transitionRoutes." + error; + } + } + if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { + if (!Array.isArray(message.eventHandlers)) + return "eventHandlers: array expected"; + for (var i = 0; i < message.eventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.eventHandlers[i]); + if (error) + return "eventHandlers." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Page message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3.Page} Page */ - ListPagesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListPagesResponse) + Page.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Page) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ListPagesResponse(); - if (object.pages) { - if (!Array.isArray(object.pages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ListPagesResponse.pages: array expected"); - message.pages = []; - for (var i = 0; i < object.pages.length; ++i) { - if (typeof object.pages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ListPagesResponse.pages: object expected"); - message.pages[i] = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.pages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.Page(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.entryFulfillment != null) { + if (typeof object.entryFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.entryFulfillment: object expected"); + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.entryFulfillment); + } + if (object.form != null) { + if (typeof object.form !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.form: object expected"); + message.form = $root.google.cloud.dialogflow.cx.v3.Form.fromObject(object.form); + } + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) + message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + } + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.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.Page.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3.TransitionRoute.fromObject(object.transitionRoutes[i]); + } + } + if (object.eventHandlers) { + if (!Array.isArray(object.eventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.eventHandlers: array expected"); + message.eventHandlers = []; + for (var i = 0; i < object.eventHandlers.length; ++i) { + if (typeof object.eventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Page.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.eventHandlers[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * Creates a plain object from a Page message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static - * @param {google.cloud.dialogflow.cx.v3.ListPagesResponse} message ListPagesResponse + * @param {google.cloud.dialogflow.cx.v3.Page} message Page * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPagesResponse.toObject = function toObject(message, options) { + Page.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pages = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.pages && message.pages.length) { - object.pages = []; - for (var j = 0; j < message.pages.length; ++j) - object.pages[j] = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.pages[j], options); + if (options.arrays || options.defaults) { + object.transitionRoutes = []; + object.eventHandlers = []; + object.transitionRouteGroups = []; + } + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.form = null; + object.entryFulfillment = 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.form != null && message.hasOwnProperty("form")) + object.form = $root.google.cloud.dialogflow.cx.v3.Form.toObject(message.form, options); + if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) + object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.entryFulfillment, options); + 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); + } + if (message.eventHandlers && message.eventHandlers.length) { + object.eventHandlers = []; + for (var j = 0; j < message.eventHandlers.length; ++j) + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.eventHandlers[j], options); + } + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListPagesResponse to JSON. + * Converts this Page to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @instance * @returns {Object.} JSON object */ - ListPagesResponse.prototype.toJSON = function toJSON() { + Page.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPagesResponse + * Gets the default type url for Page * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3.Page * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListPagesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Page"; }; - return ListPagesResponse; + return Page; })(); - v3.GetPageRequest = (function() { + v3.Form = (function() { /** - * Properties of a GetPageRequest. + * Properties of a Form. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetPageRequest - * @property {string|null} [name] GetPageRequest name - * @property {string|null} [languageCode] GetPageRequest languageCode + * @interface IForm + * @property {Array.|null} [parameters] Form parameters */ /** - * Constructs a new GetPageRequest. + * Constructs a new Form. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetPageRequest. - * @implements IGetPageRequest + * @classdesc Represents a Form. + * @implements IForm * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IForm=} [properties] Properties to set */ - function GetPageRequest(properties) { + function Form(properties) { + this.parameters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11793,89 +11945,78 @@ } /** - * GetPageRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest - * @instance - */ - GetPageRequest.prototype.name = ""; - - /** - * GetPageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * Form parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3.Form * @instance */ - GetPageRequest.prototype.languageCode = ""; + Form.prototype.parameters = $util.emptyArray; /** - * Creates a new GetPageRequest instance using the specified properties. + * Creates a new Form instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IForm=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Form} Form instance */ - GetPageRequest.create = function create(properties) { - return new GetPageRequest(properties); + Form.create = function create(properties) { + return new Form(properties); }; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IForm} message Form message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPageRequest.encode = function encode(message, writer) { + Form.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.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IForm} message Form message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPageRequest.encodeDelimited = function encodeDelimited(message, writer) { + Form.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPageRequest message from the specified reader or buffer. + * Decodes a Form message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @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.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3.Form} Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPageRequest.decode = function decode(reader, length) { + Form.decode = function decode(reader, length) { 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.GetPageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Form(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.languageCode = reader.string(); + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3.Form.Parameter.decode(reader, reader.uint32())); break; } default: @@ -11887,237 +12028,894 @@ }; /** - * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * Decodes a Form message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3.Form} Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPageRequest.decodeDelimited = function decodeDelimited(reader) { + Form.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPageRequest message. + * Verifies a Form message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPageRequest.verify = function verify(message) { + Form.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.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.Form.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } return null; }; /** - * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Form message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3.Form} Form */ - GetPageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetPageRequest) + Form.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.GetPageRequest(); - 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.v3.Form(); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.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.Form.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.fromObject(object.parameters[i]); + } + } return message; }; /** - * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. + * Creates a plain object from a Form message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static - * @param {google.cloud.dialogflow.cx.v3.GetPageRequest} message GetPageRequest + * @param {google.cloud.dialogflow.cx.v3.Form} message Form * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPageRequest.toObject = function toObject(message, options) { + Form.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; + if (options.arrays || options.defaults) + object.parameters = []; + 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.Form.Parameter.toObject(message.parameters[j], options); } - 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 GetPageRequest to JSON. + * Converts this Form to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @instance * @returns {Object.} JSON object */ - GetPageRequest.prototype.toJSON = function toJSON() { + Form.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPageRequest + * Gets the default type url for Form * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3.Form * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetPageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Form"; }; - return GetPageRequest; - })(); - - v3.CreatePageRequest = (function() { + Form.Parameter = (function() { - /** - * Properties of a CreatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface ICreatePageRequest - * @property {string|null} [parent] CreatePageRequest parent - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] CreatePageRequest page - * @property {string|null} [languageCode] CreatePageRequest languageCode - */ + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Form + * @interface IParameter + * @property {string|null} [displayName] Parameter displayName + * @property {boolean|null} [required] Parameter required + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior + * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue + * @property {boolean|null} [redact] Parameter redact + */ - /** - * Constructs a new CreatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreatePageRequest. - * @implements ICreatePageRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest=} [properties] Properties to set - */ - function CreatePageRequest(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 Parameter. + * @memberof google.cloud.dialogflow.cx.v3.Form + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Form.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]]; + } - /** - * CreatePageRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest - * @instance + /** + * Parameter displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.displayName = ""; + + /** + * Parameter required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.required = false; + + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; + + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.isList = false; + + /** + * Parameter fillBehavior. + * @member {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior|null|undefined} fillBehavior + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.fillBehavior = null; + + /** + * Parameter defaultValue. + * @member {google.protobuf.IValue|null|undefined} defaultValue + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.defaultValue = null; + + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @instance + */ + Parameter.prototype.redact = false; + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Form.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.Form.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.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.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.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); + if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) + $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); + return writer; + }; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.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.Form.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.Form.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.Form.Parameter(); + 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.entityType = reader.string(); + break; + } + case 4: { + message.isList = reader.bool(); + break; + } + case 7: { + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); + break; + } + case 9: { + message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 11: { + 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.Form.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Form.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.Form.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.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.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.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { + var error = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify(message.fillBehavior); + if (error) + return "fillBehavior." + error; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + var error = $root.google.protobuf.Value.verify(message.defaultValue); + if (error) + return "defaultValue." + error; + } + 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.Form.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.required != null) + message.required = Boolean(object.required); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.fillBehavior != null) { + if (typeof object.fillBehavior !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.fillBehavior: object expected"); + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); + } + if (object.defaultValue != null) { + if (typeof object.defaultValue !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.defaultValue: object expected"); + message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); + } + 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.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.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.displayName = ""; + object.required = false; + object.entityType = ""; + object.isList = false; + object.fillBehavior = null; + object.defaultValue = null; + object.redact = 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.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) + object.fillBehavior = $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); + 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.Form.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Parameter + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Form.Parameter"; + }; + + Parameter.FillBehavior = (function() { + + /** + * Properties of a FillBehavior. + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @interface IFillBehavior + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment + * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers + */ + + /** + * Constructs a new FillBehavior. + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter + * @classdesc Represents a FillBehavior. + * @implements IFillBehavior + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior=} [properties] Properties to set + */ + function FillBehavior(properties) { + this.repromptEventHandlers = []; + 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]]; + } + + /** + * FillBehavior initialPromptFulfillment. + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} initialPromptFulfillment + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @instance + */ + FillBehavior.prototype.initialPromptFulfillment = null; + + /** + * FillBehavior repromptEventHandlers. + * @member {Array.} repromptEventHandlers + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @instance + */ + FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; + + /** + * Creates a new FillBehavior instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior instance + */ + FillBehavior.create = function create(properties) { + return new FillBehavior(properties); + }; + + /** + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FillBehavior.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) + for (var i = 0; i < message.repromptEventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FillBehavior.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FillBehavior message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @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.Form.Parameter.FillBehavior} FillBehavior + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FillBehavior.decode = function decode(reader, length) { + 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.Form.Parameter.FillBehavior(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) + message.repromptEventHandlers = []; + message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3.EventHandler.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FillBehavior message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FillBehavior.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FillBehavior message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FillBehavior.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.initialPromptFulfillment); + if (error) + return "initialPromptFulfillment." + error; + } + if (message.repromptEventHandlers != null && message.hasOwnProperty("repromptEventHandlers")) { + if (!Array.isArray(message.repromptEventHandlers)) + return "repromptEventHandlers: array expected"; + for (var i = 0; i < message.repromptEventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.EventHandler.verify(message.repromptEventHandlers[i]); + if (error) + return "repromptEventHandlers." + error; + } + } + return null; + }; + + /** + * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} FillBehavior + */ + FillBehavior.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior(); + if (object.initialPromptFulfillment != null) { + if (typeof object.initialPromptFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.initialPromptFulfillment); + } + if (object.repromptEventHandlers) { + if (!Array.isArray(object.repromptEventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); + message.repromptEventHandlers = []; + for (var i = 0; i < object.repromptEventHandlers.length; ++i) { + if (typeof object.repromptEventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); + message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3.EventHandler.fromObject(object.repromptEventHandlers[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior} message FillBehavior + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FillBehavior.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.repromptEventHandlers = []; + if (options.defaults) + object.initialPromptFulfillment = null; + if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) + object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.initialPromptFulfillment, options); + if (message.repromptEventHandlers && message.repromptEventHandlers.length) { + object.repromptEventHandlers = []; + for (var j = 0; j < message.repromptEventHandlers.length; ++j) + object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3.EventHandler.toObject(message.repromptEventHandlers[j], options); + } + return object; + }; + + /** + * Converts this FillBehavior to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @instance + * @returns {Object.} JSON object + */ + FillBehavior.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FillBehavior + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FillBehavior.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior"; + }; + + return FillBehavior; + })(); + + return Parameter; + })(); + + return Form; + })(); + + v3.EventHandler = (function() { + + /** + * Properties of an EventHandler. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IEventHandler + * @property {string|null} [name] EventHandler name + * @property {string|null} [event] EventHandler event + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment + * @property {string|null} [targetPage] EventHandler targetPage + * @property {string|null} [targetFlow] EventHandler targetFlow */ - CreatePageRequest.prototype.parent = ""; /** - * CreatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * Constructs a new EventHandler. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an EventHandler. + * @implements IEventHandler + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IEventHandler=} [properties] Properties to set + */ + function EventHandler(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]]; + } + + /** + * EventHandler name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ - CreatePageRequest.prototype.page = null; + EventHandler.prototype.name = ""; /** - * CreatePageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * EventHandler event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance */ - CreatePageRequest.prototype.languageCode = ""; + EventHandler.prototype.event = ""; /** - * Creates a new CreatePageRequest instance using the specified properties. + * EventHandler triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @instance + */ + EventHandler.prototype.triggerFulfillment = null; + + /** + * EventHandler targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @instance + */ + EventHandler.prototype.targetPage = null; + + /** + * EventHandler targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @instance + */ + EventHandler.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EventHandler target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3.EventHandler + * @instance + */ + Object.defineProperty(EventHandler.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EventHandler instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IEventHandler=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler instance */ - CreatePageRequest.create = function create(properties) { - return new CreatePageRequest(properties); + EventHandler.create = function create(properties) { + return new EventHandler(properties); }; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventHandler} message EventHandler message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePageRequest.encode = function encode(message, writer) { + EventHandler.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.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, 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.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetFlow); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EventHandler.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IEventHandler} message EventHandler message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + EventHandler.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePageRequest message from the specified reader or buffer. + * Decodes an EventHandler message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @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.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePageRequest.decode = function decode(reader, length) { + EventHandler.decode = function decode(reader, length) { 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.CreatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.EventHandler(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 6: { + message.name = reader.string(); + break; + } + case 4: { + message.event = reader.string(); + break; + } + case 5: { + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); break; } case 2: { - message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + message.targetPage = reader.string(); break; } case 3: { - message.languageCode = reader.string(); + message.targetFlow = reader.string(); break; } default: @@ -12129,146 +12927,176 @@ }; /** - * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * Decodes an EventHandler message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePageRequest.decodeDelimited = function decodeDelimited(reader) { + EventHandler.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePageRequest message. + * Verifies an EventHandler message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePageRequest.verify = function verify(message) { + EventHandler.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.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.triggerFulfillment); if (error) - return "page." + error; + return "triggerFulfillment." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.EventHandler} EventHandler */ - CreatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreatePageRequest) + EventHandler.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.EventHandler) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.CreatePageRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.CreatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); + var message = new $root.google.cloud.dialogflow.cx.v3.EventHandler(); + if (object.name != null) + message.name = String(object.name); + if (object.event != null) + message.event = String(object.event); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.EventHandler.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.triggerFulfillment); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + 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 CreatePageRequest message. Also converts values to other types if specified. + * Creates a plain object from an EventHandler message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3.CreatePageRequest} message CreatePageRequest + * @param {google.cloud.dialogflow.cx.v3.EventHandler} message EventHandler * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePageRequest.toObject = function toObject(message, options) { + EventHandler.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.page = null; - object.languageCode = ""; + object.event = ""; + object.triggerFulfillment = null; + object.name = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreatePageRequest to JSON. + * Converts this EventHandler to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @instance * @returns {Object.} JSON object */ - CreatePageRequest.prototype.toJSON = function toJSON() { + EventHandler.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePageRequest + * Gets the default type url for EventHandler * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.EventHandler * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventHandler.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreatePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EventHandler"; }; - return CreatePageRequest; + return EventHandler; })(); - v3.UpdatePageRequest = (function() { + v3.TransitionRoute = (function() { /** - * Properties of an UpdatePageRequest. + * Properties of a TransitionRoute. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IUpdatePageRequest - * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] UpdatePageRequest page - * @property {string|null} [languageCode] UpdatePageRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask + * @interface ITransitionRoute + * @property {string|null} [name] TransitionRoute name + * @property {string|null} [intent] TransitionRoute intent + * @property {string|null} [condition] TransitionRoute condition + * @property {google.cloud.dialogflow.cx.v3.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment + * @property {string|null} [targetPage] TransitionRoute targetPage + * @property {string|null} [targetFlow] TransitionRoute targetFlow */ /** - * Constructs a new UpdatePageRequest. + * Constructs a new TransitionRoute. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdatePageRequest. - * @implements IUpdatePageRequest + * @classdesc Represents a TransitionRoute. + * @implements ITransitionRoute * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute=} [properties] Properties to set */ - function UpdatePageRequest(properties) { + function TransitionRoute(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12276,103 +13104,159 @@ } /** - * UpdatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * TransitionRoute name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ - UpdatePageRequest.prototype.page = null; + TransitionRoute.prototype.name = ""; /** - * UpdatePageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * TransitionRoute intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ - UpdatePageRequest.prototype.languageCode = ""; + TransitionRoute.prototype.intent = ""; /** - * UpdatePageRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * TransitionRoute condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance */ - UpdatePageRequest.prototype.updateMask = null; + TransitionRoute.prototype.condition = ""; /** - * Creates a new UpdatePageRequest instance using the specified properties. + * TransitionRoute triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @instance + */ + TransitionRoute.prototype.triggerFulfillment = null; + + /** + * TransitionRoute targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @instance + */ + TransitionRoute.prototype.targetPage = null; + + /** + * TransitionRoute targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @instance + */ + TransitionRoute.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TransitionRoute target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute + * @instance + */ + Object.defineProperty(TransitionRoute.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TransitionRoute instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute instance */ - UpdatePageRequest.create = function create(properties) { - return new UpdatePageRequest(properties); + TransitionRoute.create = function create(properties) { + return new TransitionRoute(properties); }; /** - * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute} message TransitionRoute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePageRequest.encode = function encode(message, writer) { + TransitionRoute.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.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.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.TransitionRoute.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ITransitionRoute} message TransitionRoute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRoute.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePageRequest message from the specified reader or buffer. + * Decodes a TransitionRoute message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @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.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePageRequest.decode = function decode(reader, length) { + TransitionRoute.decode = function decode(reader, length) { 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.UpdatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.TransitionRoute(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 6: { + message.name = reader.string(); + break; + } case 1: { - message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + message.intent = reader.string(); break; } case 2: { - message.languageCode = reader.string(); + message.condition = reader.string(); break; } case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.targetPage = reader.string(); + break; + } + case 5: { + message.targetFlow = reader.string(); break; } default: @@ -12384,150 +13268,182 @@ }; /** - * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePageRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRoute.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePageRequest message. + * Verifies a TransitionRoute message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePageRequest.verify = function verify(message) { + TransitionRoute.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.verify(message.triggerFulfillment); if (error) - return "page." + error; + return "triggerFulfillment." + 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.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; } return null; }; /** - * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3.TransitionRoute} TransitionRoute */ - UpdatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest) + TransitionRoute.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.TransitionRoute) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.UpdatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); - } - 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.UpdatePageRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3.TransitionRoute(); + if (object.name != null) + message.name = String(object.name); + if (object.intent != null) + message.intent = String(object.intent); + if (object.condition != null) + message.condition = String(object.condition); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.TransitionRoute.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.fromObject(object.triggerFulfillment); } + 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 an UpdatePageRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3.UpdatePageRequest} message UpdatePageRequest + * @param {google.cloud.dialogflow.cx.v3.TransitionRoute} message TransitionRoute * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePageRequest.toObject = function toObject(message, options) { + TransitionRoute.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.page = null; - object.languageCode = ""; - object.updateMask = null; + object.intent = ""; + object.condition = ""; + object.triggerFulfillment = null; + object.name = ""; } - if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, 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.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdatePageRequest to JSON. + * Converts this TransitionRoute to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @instance * @returns {Object.} JSON object */ - UpdatePageRequest.prototype.toJSON = function toJSON() { + TransitionRoute.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePageRequest + * Gets the default type url for TransitionRoute * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3.TransitionRoute * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransitionRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdatePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.TransitionRoute"; }; - return UpdatePageRequest; + return TransitionRoute; })(); - v3.DeletePageRequest = (function() { + v3.ListPagesRequest = (function() { /** - * Properties of a DeletePageRequest. + * Properties of a ListPagesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeletePageRequest - * @property {string|null} [name] DeletePageRequest name - * @property {boolean|null} [force] DeletePageRequest force + * @interface IListPagesRequest + * @property {string|null} [parent] ListPagesRequest parent + * @property {string|null} [languageCode] ListPagesRequest languageCode + * @property {number|null} [pageSize] ListPagesRequest pageSize + * @property {string|null} [pageToken] ListPagesRequest pageToken */ /** - * Constructs a new DeletePageRequest. + * Constructs a new ListPagesRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeletePageRequest. - * @implements IDeletePageRequest + * @classdesc Represents a ListPagesRequest. + * @implements IListPagesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest=} [properties] Properties to set */ - function DeletePageRequest(properties) { + function ListPagesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12535,89 +13451,117 @@ } /** - * DeletePageRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * ListPagesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance */ - DeletePageRequest.prototype.name = ""; + ListPagesRequest.prototype.parent = ""; /** - * DeletePageRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * ListPagesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance */ - DeletePageRequest.prototype.force = false; + ListPagesRequest.prototype.languageCode = ""; /** - * Creates a new DeletePageRequest instance using the specified properties. + * ListPagesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.pageSize = 0; + + /** + * ListPagesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPagesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest instance + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest instance */ - DeletePageRequest.create = function create(properties) { - return new DeletePageRequest(properties); + ListPagesRequest.create = function create(properties) { + return new ListPagesRequest(properties); }; /** - * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} message ListPagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePageRequest.encode = function encode(message, writer) { + ListPagesRequest.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.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 DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IListPagesRequest} message ListPagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPagesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePageRequest message from the specified reader or buffer. + * Decodes a ListPagesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @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.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePageRequest.decode = function decode(reader, length) { + ListPagesRequest.decode = function decode(reader, length) { 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.DeletePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ListPagesRequest(); 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.languageCode = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); break; } default: @@ -12629,139 +13573,149 @@ }; /** - * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePageRequest.decodeDelimited = function decodeDelimited(reader) { + ListPagesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePageRequest message. + * Verifies a ListPagesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePageRequest.verify = function verify(message) { + ListPagesRequest.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.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 DeletePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3.ListPagesRequest} ListPagesRequest */ - DeletePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeletePageRequest) + ListPagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListPagesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.DeletePageRequest(); - 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.ListPagesRequest(); + 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 DeletePageRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.DeletePageRequest} message DeletePageRequest + * @param {google.cloud.dialogflow.cx.v3.ListPagesRequest} message ListPagesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePageRequest.toObject = function toObject(message, options) { + ListPagesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.force = false; + object.parent = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; } - 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.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 DeletePageRequest to JSON. + * Converts this ListPagesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @instance * @returns {Object.} JSON object */ - DeletePageRequest.prototype.toJSON = function toJSON() { + ListPagesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePageRequest + * Gets the default type url for ListPagesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3.ListPagesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeletePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListPagesRequest"; }; - return DeletePageRequest; + return ListPagesRequest; })(); - v3.Fulfillment = (function() { + v3.ListPagesResponse = (function() { /** - * Properties of a Fulfillment. + * Properties of a ListPagesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IFulfillment - * @property {Array.|null} [messages] Fulfillment messages - * @property {string|null} [webhook] Fulfillment webhook - * @property {boolean|null} [returnPartialResponses] Fulfillment returnPartialResponses - * @property {string|null} [tag] Fulfillment tag - * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions - * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases + * @interface IListPagesResponse + * @property {Array.|null} [pages] ListPagesResponse pages + * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken */ /** - * Constructs a new Fulfillment. + * Constructs a new ListPagesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Fulfillment. - * @implements IFulfillment + * @classdesc Represents a ListPagesResponse. + * @implements IListPagesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IFulfillment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse=} [properties] Properties to set */ - function Fulfillment(properties) { - this.messages = []; - this.setParameterActions = []; - this.conditionalCases = []; + function ListPagesResponse(properties) { + this.pages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12769,154 +13723,336 @@ } /** - * Fulfillment messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * ListPagesResponse pages. + * @member {Array.} pages + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @instance */ - Fulfillment.prototype.messages = $util.emptyArray; + ListPagesResponse.prototype.pages = $util.emptyArray; /** - * Fulfillment webhook. - * @member {string} webhook - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * ListPagesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @instance */ - Fulfillment.prototype.webhook = ""; + ListPagesResponse.prototype.nextPageToken = ""; /** - * Fulfillment returnPartialResponses. - * @member {boolean} returnPartialResponses - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment - * @instance + * Creates a new ListPagesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse instance */ - Fulfillment.prototype.returnPartialResponses = false; + ListPagesResponse.create = function create(properties) { + return new ListPagesResponse(properties); + }; /** - * Fulfillment tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pages != null && message.pages.length) + for (var i = 0; i < message.pages.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.pages[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 ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListPagesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @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.ListPagesResponse} ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesResponse.decode = function decode(reader, length) { + 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.ListPagesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.pages && message.pages.length)) + message.pages = []; + message.pages.push($root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPagesResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPagesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pages != null && message.hasOwnProperty("pages")) { + if (!Array.isArray(message.pages)) + return "pages: array expected"; + for (var i = 0; i < message.pages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.pages[i]); + if (error) + return "pages." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ListPagesResponse} ListPagesResponse + */ + ListPagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListPagesResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ListPagesResponse(); + if (object.pages) { + if (!Array.isArray(object.pages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ListPagesResponse.pages: array expected"); + message.pages = []; + for (var i = 0; i < object.pages.length; ++i) { + if (typeof object.pages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ListPagesResponse.pages: object expected"); + message.pages[i] = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.pages[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3.ListPagesResponse} message ListPagesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPagesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pages = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.pages && message.pages.length) { + object.pages = []; + for (var j = 0; j < message.pages.length; ++j) + object.pages[j] = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.pages[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPagesResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse * @instance + * @returns {Object.} JSON object */ - Fulfillment.prototype.tag = ""; + ListPagesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Fulfillment setParameterActions. - * @member {Array.} setParameterActions - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * Gets the default type url for ListPagesResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ListPagesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListPagesResponse"; + }; + + return ListPagesResponse; + })(); + + v3.GetPageRequest = (function() { + + /** + * Properties of a GetPageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IGetPageRequest + * @property {string|null} [name] GetPageRequest name + * @property {string|null} [languageCode] GetPageRequest languageCode + */ + + /** + * Constructs a new GetPageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a GetPageRequest. + * @implements IGetPageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest=} [properties] Properties to set + */ + function GetPageRequest(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]]; + } + + /** + * GetPageRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @instance */ - Fulfillment.prototype.setParameterActions = $util.emptyArray; + GetPageRequest.prototype.name = ""; /** - * Fulfillment conditionalCases. - * @member {Array.} conditionalCases - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * GetPageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @instance */ - Fulfillment.prototype.conditionalCases = $util.emptyArray; + GetPageRequest.prototype.languageCode = ""; /** - * Creates a new Fulfillment instance using the specified properties. + * Creates a new GetPageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment instance + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest instance */ - Fulfillment.create = function create(properties) { - return new Fulfillment(properties); + GetPageRequest.create = function create(properties) { + return new GetPageRequest(properties); }; /** - * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} message GetPageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fulfillment.encode = function encode(message, writer) { + GetPageRequest.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.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); - if (message.setParameterActions != null && message.setParameterActions.length) - for (var i = 0; i < message.setParameterActions.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.conditionalCases != null && message.conditionalCases.length) - for (var i = 0; i < message.conditionalCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); + 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 Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetPageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IGetPageRequest} message GetPageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fulfillment.encodeDelimited = function encodeDelimited(message, writer) { + GetPageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Fulfillment message from the specified reader or buffer. + * Decodes a GetPageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @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.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fulfillment.decode = function decode(reader, length) { + GetPageRequest.decode = function decode(reader, length) { 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.Fulfillment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.GetPageRequest(); 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())); + message.name = reader.string(); break; } case 2: { - message.webhook = reader.string(); - break; - } - case 8: { - message.returnPartialResponses = reader.bool(); - break; - } - case 3: { - message.tag = reader.string(); - break; - } - case 4: { - if (!(message.setParameterActions && message.setParameterActions.length)) - message.setParameterActions = []; - message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.conditionalCases && message.conditionalCases.length)) - message.conditionalCases = []; - message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); + message.languageCode = reader.string(); break; } default: @@ -12928,1407 +14064,1036 @@ }; /** - * Decodes a Fulfillment message from the specified reader or buffer, length delimited. + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fulfillment.decodeDelimited = function decodeDelimited(reader) { + GetPageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Fulfillment message. + * Verifies a GetPageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Fulfillment.verify = function verify(message) { + GetPageRequest.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.webhook != null && message.hasOwnProperty("webhook")) - if (!$util.isString(message.webhook)) - return "webhook: string expected"; - if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) - if (typeof message.returnPartialResponses !== "boolean") - return "returnPartialResponses: boolean expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.setParameterActions != null && message.hasOwnProperty("setParameterActions")) { - if (!Array.isArray(message.setParameterActions)) - return "setParameterActions: array expected"; - for (var i = 0; i < message.setParameterActions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); - if (error) - return "setParameterActions." + error; - } - } - if (message.conditionalCases != null && message.hasOwnProperty("conditionalCases")) { - if (!Array.isArray(message.conditionalCases)) - return "conditionalCases: array expected"; - for (var i = 0; i < message.conditionalCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); - if (error) - return "conditionalCases." + error; - } - } + 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 Fulfillment message from a plain object. Also converts values to their respective internal types. + * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3.GetPageRequest} GetPageRequest */ - Fulfillment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment) + GetPageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetPageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.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.Fulfillment.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); - } - } - if (object.webhook != null) - message.webhook = String(object.webhook); - if (object.returnPartialResponses != null) - message.returnPartialResponses = Boolean(object.returnPartialResponses); - if (object.tag != null) - message.tag = String(object.tag); - if (object.setParameterActions) { - if (!Array.isArray(object.setParameterActions)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.setParameterActions: array expected"); - message.setParameterActions = []; - for (var i = 0; i < object.setParameterActions.length; ++i) { - if (typeof object.setParameterActions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.setParameterActions: object expected"); - message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); - } - } - if (object.conditionalCases) { - if (!Array.isArray(object.conditionalCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.conditionalCases: array expected"); - message.conditionalCases = []; - for (var i = 0; i < object.conditionalCases.length; ++i) { - if (typeof object.conditionalCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.conditionalCases: object expected"); - message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3.GetPageRequest(); + 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 Fulfillment message. Also converts values to other types if specified. + * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment} message Fulfillment + * @param {google.cloud.dialogflow.cx.v3.GetPageRequest} message GetPageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Fulfillment.toObject = function toObject(message, options) { + GetPageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.messages = []; - object.setParameterActions = []; - object.conditionalCases = []; - } if (options.defaults) { - object.webhook = ""; - object.tag = ""; - object.returnPartialResponses = false; - } - 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.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = message.webhook; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - if (message.setParameterActions && message.setParameterActions.length) { - object.setParameterActions = []; - for (var j = 0; j < message.setParameterActions.length; ++j) - object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); - } - if (message.conditionalCases && message.conditionalCases.length) { - object.conditionalCases = []; - for (var j = 0; j < message.conditionalCases.length; ++j) - object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); + object.name = ""; + object.languageCode = ""; } - if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) - object.returnPartialResponses = message.returnPartialResponses; + 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 Fulfillment to JSON. + * Converts this GetPageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @instance * @returns {Object.} JSON object */ - Fulfillment.prototype.toJSON = function toJSON() { + GetPageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Fulfillment + * Gets the default type url for GetPageRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3.GetPageRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Fulfillment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetPageRequest"; }; - Fulfillment.SetParameterAction = (function() { + return GetPageRequest; + })(); - /** - * Properties of a SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment - * @interface ISetParameterAction - * @property {string|null} [parameter] SetParameterAction parameter - * @property {google.protobuf.IValue|null} [value] SetParameterAction value - */ + v3.CreatePageRequest = (function() { - /** - * Constructs a new SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment - * @classdesc Represents a SetParameterAction. - * @implements ISetParameterAction - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction=} [properties] Properties to set - */ - function SetParameterAction(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 CreatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface ICreatePageRequest + * @property {string|null} [parent] CreatePageRequest parent + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] CreatePageRequest page + * @property {string|null} [languageCode] CreatePageRequest languageCode + */ - /** - * SetParameterAction parameter. - * @member {string} parameter - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @instance - */ - SetParameterAction.prototype.parameter = ""; + /** + * Constructs a new CreatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreatePageRequest. + * @implements ICreatePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest=} [properties] Properties to set + */ + function CreatePageRequest(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]]; + } - /** - * SetParameterAction value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @instance - */ - SetParameterAction.prototype.value = null; + /** + * CreatePageRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.parent = ""; - /** - * Creates a new SetParameterAction instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction instance - */ - SetParameterAction.create = function create(properties) { - return new SetParameterAction(properties); - }; + /** + * CreatePageRequest page. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.page = null; - /** - * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetParameterAction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * CreatePageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.languageCode = ""; - /** - * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetParameterAction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new CreatePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest instance + */ + CreatePageRequest.create = function create(properties) { + return new CreatePageRequest(properties); + }; - /** - * Decodes a SetParameterAction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @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.Fulfillment.SetParameterAction} SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetParameterAction.decode = function decode(reader, length) { - 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.Fulfillment.SetParameterAction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parameter = reader.string(); - break; - } - case 2: { - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePageRequest.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.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3.Page.encode(message.page, 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 CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.CreatePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @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.CreatePageRequest} CreatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePageRequest.decode = function decode(reader, length) { + 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.CreatePageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.page = $root.google.cloud.dialogflow.cx.v3.Page.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetParameterAction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a SetParameterAction message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SetParameterAction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameter != null && message.hasOwnProperty("parameter")) - if (!$util.isString(message.parameter)) - return "parameter: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; + /** + * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction - */ - SetParameterAction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction(); - if (object.parameter != null) - message.parameter = String(object.parameter); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - return message; - }; + /** + * Verifies a CreatePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePageRequest.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.page != null && message.hasOwnProperty("page")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); + if (error) + return "page." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; - /** - * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} message SetParameterAction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SetParameterAction.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parameter = ""; - object.value = null; - } - if (message.parameter != null && message.hasOwnProperty("parameter")) - object.parameter = message.parameter; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); + /** + * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreatePageRequest} CreatePageRequest + */ + CreatePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.CreatePageRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.CreatePageRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.CreatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; - /** - * Converts this SetParameterAction to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @instance - * @returns {Object.} JSON object - */ - SetParameterAction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CreatePageRequest} message CreatePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.page = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.page != null && message.hasOwnProperty("page")) + object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; - /** - * Gets the default type url for SetParameterAction - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SetParameterAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction"; - }; + /** + * Converts this CreatePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SetParameterAction; - })(); + /** + * Gets the default type url for CreatePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.CreatePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreatePageRequest"; + }; - Fulfillment.ConditionalCases = (function() { + return CreatePageRequest; + })(); - /** - * Properties of a ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment - * @interface IConditionalCases - * @property {Array.|null} [cases] ConditionalCases cases - */ + v3.UpdatePageRequest = (function() { - /** - * Constructs a new ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment - * @classdesc Represents a ConditionalCases. - * @implements IConditionalCases - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases=} [properties] Properties to set - */ - function ConditionalCases(properties) { - this.cases = []; - 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 UpdatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IUpdatePageRequest + * @property {google.cloud.dialogflow.cx.v3.IPage|null} [page] UpdatePageRequest page + * @property {string|null} [languageCode] UpdatePageRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask + */ - /** - * ConditionalCases cases. - * @member {Array.} cases - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @instance - */ - ConditionalCases.prototype.cases = $util.emptyArray; + /** + * Constructs a new UpdatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an UpdatePageRequest. + * @implements IUpdatePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest=} [properties] Properties to set + */ + function UpdatePageRequest(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 ConditionalCases instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases instance - */ - ConditionalCases.create = function create(properties) { - return new ConditionalCases(properties); - }; + /** + * UpdatePageRequest page. + * @member {google.cloud.dialogflow.cx.v3.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.page = null; - /** - * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalCases.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cases != null && message.cases.length) - for (var i = 0; i < message.cases.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * UpdatePageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.languageCode = ""; - /** - * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalCases.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * UpdatePageRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.updateMask = null; - /** - * Decodes a ConditionalCases message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @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.Fulfillment.ConditionalCases} ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalCases.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.cases && message.cases.length)) - message.cases = []; - message.cases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new UpdatePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest instance + */ + UpdatePageRequest.create = function create(properties) { + return new UpdatePageRequest(properties); + }; - /** - * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalCases.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePageRequest.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.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; + }; - /** - * Verifies a ConditionalCases message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConditionalCases.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cases != null && message.hasOwnProperty("cases")) { - if (!Array.isArray(message.cases)) - return "cases: array expected"; - for (var i = 0; i < message.cases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); - if (error) - return "cases." + error; - } - } - return null; - }; + /** + * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdatePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases - */ - ConditionalCases.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases(); - if (object.cases) { - if (!Array.isArray(object.cases)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.cases: array expected"); - message.cases = []; - for (var i = 0; i < object.cases.length; ++i) { - if (typeof object.cases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.cases: object expected"); - message.cases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); + /** + * Decodes an UpdatePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @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.UpdatePageRequest} UpdatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePageRequest.decode = function decode(reader, length) { + 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.UpdatePageRequest(); + 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.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; - }; + } + return message; + }; - /** - * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} message ConditionalCases - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConditionalCases.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.cases = []; - if (message.cases && message.cases.length) { - object.cases = []; - for (var j = 0; j < message.cases.length; ++j) - object.cases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); - } - return object; - }; + /** + * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ConditionalCases to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @instance - * @returns {Object.} JSON object - */ - ConditionalCases.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies an UpdatePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.page != null && message.hasOwnProperty("page")) { + var error = $root.google.cloud.dialogflow.cx.v3.Page.verify(message.page); + if (error) + return "page." + 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; + }; - /** - * Gets the default type url for ConditionalCases - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConditionalCases.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases"; - }; + /** + * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.UpdatePageRequest} UpdatePageRequest + */ + UpdatePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.UpdatePageRequest(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.UpdatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3.Page.fromObject(object.page); + } + 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.UpdatePageRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - ConditionalCases.Case = (function() { + /** + * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.UpdatePageRequest} message UpdatePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.page = null; + object.languageCode = ""; + object.updateMask = null; + } + if (message.page != null && message.hasOwnProperty("page")) + object.page = $root.google.cloud.dialogflow.cx.v3.Page.toObject(message.page, 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; + }; - /** - * Properties of a Case. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @interface ICase - * @property {string|null} [condition] Case condition - * @property {Array.|null} [caseContent] Case caseContent - */ + /** + * Converts this UpdatePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Case. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases - * @classdesc Represents a Case. - * @implements ICase - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - */ - function Case(properties) { - this.caseContent = []; - 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]]; - } + /** + * Gets the default type url for UpdatePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.UpdatePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdatePageRequest"; + }; - /** - * Case condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @instance - */ - Case.prototype.condition = ""; + return UpdatePageRequest; + })(); - /** - * Case caseContent. - * @member {Array.} caseContent - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @instance - */ - Case.prototype.caseContent = $util.emptyArray; + v3.DeletePageRequest = (function() { - /** - * Creates a new Case instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case instance - */ - Case.create = function create(properties) { - return new Case(properties); - }; + /** + * Properties of a DeletePageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IDeletePageRequest + * @property {string|null} [name] DeletePageRequest name + * @property {boolean|null} [force] DeletePageRequest force + */ - /** - * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Case.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.caseContent != null && message.caseContent.length) - for (var i = 0; i < message.caseContent.length; ++i) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new DeletePageRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a DeletePageRequest. + * @implements IDeletePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest=} [properties] Properties to set + */ + function DeletePageRequest(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 Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Case.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DeletePageRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @instance + */ + DeletePageRequest.prototype.name = ""; - /** - * Decodes a Case message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @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.Fulfillment.ConditionalCases.Case} Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Case.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases.Case(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.condition = reader.string(); - break; - } - case 2: { - if (!(message.caseContent && message.caseContent.length)) - message.caseContent = []; - message.caseContent.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * DeletePageRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @instance + */ + DeletePageRequest.prototype.force = false; - /** - * Decodes a Case message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Case.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new DeletePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest instance + */ + DeletePageRequest.create = function create(properties) { + return new DeletePageRequest(properties); + }; - /** - * Verifies a Case message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Case.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.caseContent != null && message.hasOwnProperty("caseContent")) { - if (!Array.isArray(message.caseContent)) - return "caseContent: array expected"; - for (var i = 0; i < message.caseContent.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); - if (error) - return "caseContent." + error; - } - } - return null; - }; + /** + * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePageRequest.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 Case message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case - */ - Case.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.caseContent) { - if (!Array.isArray(object.caseContent)) - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.caseContent: array expected"); - message.caseContent = []; - for (var i = 0; i < object.caseContent.length; ++i) { - if (typeof object.caseContent[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.caseContent: object expected"); - message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); - } - } - return message; - }; + /** + * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.DeletePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a Case message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} message Case - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Case.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.caseContent = []; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.caseContent && message.caseContent.length) { - object.caseContent = []; - for (var j = 0; j < message.caseContent.length; ++j) - object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); - } - return object; - }; - - /** - * Converts this Case to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @instance - * @returns {Object.} JSON object - */ - Case.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Case - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Case.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a DeletePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @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.DeletePageRequest} DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePageRequest.decode = function decode(reader, length) { + 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.DeletePageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case"; - }; - - Case.CaseContent = (function() { - - /** - * Properties of a CaseContent. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @interface ICaseContent - * @property {google.cloud.dialogflow.cx.v3.IResponseMessage|null} [message] CaseContent message - * @property {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases - */ - - /** - * Constructs a new CaseContent. - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case - * @classdesc Represents a CaseContent. - * @implements ICaseContent - * @constructor - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - */ - function CaseContent(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]]; + case 2: { + message.force = reader.bool(); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CaseContent message. - * @member {google.cloud.dialogflow.cx.v3.IResponseMessage|null|undefined} message - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - CaseContent.prototype.message = null; - - /** - * CaseContent additionalCases. - * @member {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null|undefined} additionalCases - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - CaseContent.prototype.additionalCases = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CaseContent casesOrMessage. - * @member {"message"|"additionalCases"|undefined} casesOrMessage - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - Object.defineProperty(CaseContent.prototype, "casesOrMessage", { - get: $util.oneOfGetter($oneOfFields = ["message", "additionalCases"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CaseContent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance - */ - CaseContent.create = function create(properties) { - return new CaseContent(properties); - }; - - /** - * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CaseContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) - $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CaseContent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CaseContent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @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.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CaseContent.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases.Case.CaseContent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32()); - break; - } - case 2: { - message.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CaseContent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CaseContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CaseContent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CaseContent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.message != null && message.hasOwnProperty("message")) { - properties.casesOrMessage = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.message); - if (error) - return "message." + error; - } - } - if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - if (properties.casesOrMessage === 1) - return "casesOrMessage: multiple values"; - properties.casesOrMessage = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify(message.additionalCases); - if (error) - return "additionalCases." + error; - } - } - return null; - }; - - /** - * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - */ - CaseContent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent(); - if (object.message != null) { - if (typeof object.message !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); - message.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.message); - } - if (object.additionalCases != null) { - if (typeof object.additionalCases !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); - message.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.additionalCases); - } - return message; - }; - - /** - * Creates a plain object from a CaseContent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CaseContent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.message != null && message.hasOwnProperty("message")) { - object.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.message, options); - if (options.oneofs) - object.casesOrMessage = "message"; - } - if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - object.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); - if (options.oneofs) - object.casesOrMessage = "additionalCases"; - } - return object; - }; - - /** - * Converts this CaseContent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - * @returns {Object.} JSON object - */ - CaseContent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CaseContent - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CaseContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent"; - }; - - return CaseContent; - })(); - - return Case; - })(); - - return ConditionalCases; - })(); - - return Fulfillment; - })(); - - v3.ResponseMessage = (function() { + /** + * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Properties of a ResponseMessage. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IResponseMessage - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null} [text] ResponseMessage text - * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio - * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall - * @property {string|null} [channel] ResponseMessage channel + * Verifies a DeletePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeletePageRequest.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; + }; /** - * Constructs a new ResponseMessage. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ResponseMessage. - * @implements IResponseMessage - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IResponseMessage=} [properties] Properties to set + * Creates a DeletePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.DeletePageRequest} DeletePageRequest */ - function ResponseMessage(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]]; - } + DeletePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.DeletePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.DeletePageRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; /** - * ResponseMessage text. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @instance + * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.DeletePageRequest} message DeletePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ResponseMessage.prototype.text = null; + DeletePageRequest.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; + }; /** - * ResponseMessage payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Converts this DeletePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest * @instance + * @returns {Object.} JSON object */ - ResponseMessage.prototype.payload = null; + DeletePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ResponseMessage conversationSuccess. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @instance + * Gets the default type url for DeletePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.DeletePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - ResponseMessage.prototype.conversationSuccess = null; + DeletePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeletePageRequest"; + }; + + return DeletePageRequest; + })(); + + v3.Fulfillment = (function() { /** - * ResponseMessage outputAudioText. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @instance + * Properties of a Fulfillment. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IFulfillment + * @property {Array.|null} [messages] Fulfillment messages + * @property {string|null} [webhook] Fulfillment webhook + * @property {boolean|null} [returnPartialResponses] Fulfillment returnPartialResponses + * @property {string|null} [tag] Fulfillment tag + * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions + * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases */ - ResponseMessage.prototype.outputAudioText = null; /** - * ResponseMessage liveAgentHandoff. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @instance + * Constructs a new Fulfillment. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a Fulfillment. + * @implements IFulfillment + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IFulfillment=} [properties] Properties to set */ - ResponseMessage.prototype.liveAgentHandoff = null; + function Fulfillment(properties) { + this.messages = []; + this.setParameterActions = []; + this.conditionalCases = []; + 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]]; + } /** - * ResponseMessage endInteraction. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null|undefined} endInteraction - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Fulfillment messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ - ResponseMessage.prototype.endInteraction = null; + Fulfillment.prototype.messages = $util.emptyArray; /** - * ResponseMessage playAudio. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null|undefined} playAudio - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Fulfillment webhook. + * @member {string} webhook + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ - ResponseMessage.prototype.playAudio = null; + Fulfillment.prototype.webhook = ""; /** - * ResponseMessage mixedAudio. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null|undefined} mixedAudio - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Fulfillment returnPartialResponses. + * @member {boolean} returnPartialResponses + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ - ResponseMessage.prototype.mixedAudio = null; + Fulfillment.prototype.returnPartialResponses = false; /** - * ResponseMessage telephonyTransferCall. - * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Fulfillment tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ - ResponseMessage.prototype.telephonyTransferCall = null; + Fulfillment.prototype.tag = ""; /** - * ResponseMessage channel. - * @member {string} channel - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Fulfillment setParameterActions. + * @member {Array.} setParameterActions + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ - ResponseMessage.prototype.channel = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Fulfillment.prototype.setParameterActions = $util.emptyArray; /** - * ResponseMessage message. - * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|undefined} message - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * Fulfillment conditionalCases. + * @member {Array.} conditionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance */ - Object.defineProperty(ResponseMessage.prototype, "message", { - get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall"]), - set: $util.oneOfSetter($oneOfFields) - }); + Fulfillment.prototype.conditionalCases = $util.emptyArray; /** - * Creates a new ResponseMessage instance using the specified properties. + * Creates a new Fulfillment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3.IResponseMessage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage instance + * @param {google.cloud.dialogflow.cx.v3.IFulfillment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment instance */ - ResponseMessage.create = function create(properties) { - return new ResponseMessage(properties); + Fulfillment.create = function create(properties) { + return new Fulfillment(properties); }; /** - * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. + * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillment} message Fulfillment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseMessage.encode = function encode(message, writer) { + Fulfillment.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.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.mixedAudio != null && Object.hasOwnProperty.call(message, "mixedAudio")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.telephonyTransferCall != null && Object.hasOwnProperty.call(message, "telephonyTransferCall")) - $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.channel); + 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.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); + if (message.setParameterActions != null && message.setParameterActions.length) + for (var i = 0; i < message.setParameterActions.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.conditionalCases != null && message.conditionalCases.length) + for (var i = 0; i < message.conditionalCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); return writer; }; /** - * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. + * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.IFulfillment} message Fulfillment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseMessage.encodeDelimited = function encodeDelimited(message, writer) { + Fulfillment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseMessage message from the specified reader or buffer. + * Decodes a Fulfillment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @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.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseMessage.decode = function decode(reader, length) { + Fulfillment.decode = function decode(reader, length) { 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.ResponseMessage(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32()); + 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.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 9: { - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); + message.webhook = reader.string(); break; } case 8: { - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); - break; - } - case 10: { - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); - break; - } - case 11: { - message.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); - break; - } - case 12: { - message.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); + message.returnPartialResponses = reader.bool(); break; } - case 13: { - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); + case 3: { + message.tag = reader.string(); break; } - case 18: { - message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); + case 4: { + if (!(message.setParameterActions && message.setParameterActions.length)) + message.setParameterActions = []; + message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); break; } - case 19: { - message.channel = reader.string(); + case 5: { + if (!(message.conditionalCases && message.conditionalCases.length)) + message.conditionalCases = []; + message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); break; } default: @@ -14340,300 +15105,214 @@ }; /** - * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * Decodes a Fulfillment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseMessage.decodeDelimited = function decodeDelimited(reader) { + Fulfillment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseMessage message. + * Verifies a Fulfillment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseMessage.verify = function verify(message) { + Fulfillment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.text); - if (error) - return "text." + error; - } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - } - if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); - if (error) - return "conversationSuccess." + error; - } - } - if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify(message.outputAudioText); - if (error) - return "outputAudioText." + error; - } - } - if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); - if (error) - return "liveAgentHandoff." + error; - } - } - if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify(message.endInteraction); - if (error) - return "endInteraction." + error; - } - } - if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify(message.playAudio); + 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 "playAudio." + error; + return "messages." + error; } } - if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify(message.mixedAudio); + if (message.webhook != null && message.hasOwnProperty("webhook")) + if (!$util.isString(message.webhook)) + return "webhook: string expected"; + if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) + if (typeof message.returnPartialResponses !== "boolean") + return "returnPartialResponses: boolean expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + if (message.setParameterActions != null && message.hasOwnProperty("setParameterActions")) { + if (!Array.isArray(message.setParameterActions)) + return "setParameterActions: array expected"; + for (var i = 0; i < message.setParameterActions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); if (error) - return "mixedAudio." + error; + return "setParameterActions." + error; } } - if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); + if (message.conditionalCases != null && message.hasOwnProperty("conditionalCases")) { + if (!Array.isArray(message.conditionalCases)) + return "conditionalCases: array expected"; + for (var i = 0; i < message.conditionalCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); if (error) - return "telephonyTransferCall." + error; + return "conditionalCases." + error; } } - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; return null; }; /** - * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. + * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment} Fulfillment */ - ResponseMessage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage) + Fulfillment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.text); - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.conversationSuccess != null) { - if (typeof object.conversationSuccess !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.conversationSuccess: object expected"); - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); - } - if (object.outputAudioText != null) { - if (typeof object.outputAudioText !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.outputAudioText: object expected"); - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); - } - if (object.liveAgentHandoff != null) { - if (typeof object.liveAgentHandoff !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.liveAgentHandoff: object expected"); - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); - } - if (object.endInteraction != null) { - if (typeof object.endInteraction !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.endInteraction: object expected"); - message.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.fromObject(object.endInteraction); - } - if (object.playAudio != null) { - if (typeof object.playAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.playAudio: object expected"); - message.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.fromObject(object.playAudio); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.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.Fulfillment.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.messages[i]); + } } - if (object.mixedAudio != null) { - if (typeof object.mixedAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.mixedAudio: object expected"); - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + if (object.webhook != null) + message.webhook = String(object.webhook); + if (object.returnPartialResponses != null) + message.returnPartialResponses = Boolean(object.returnPartialResponses); + if (object.tag != null) + message.tag = String(object.tag); + if (object.setParameterActions) { + if (!Array.isArray(object.setParameterActions)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.setParameterActions: array expected"); + message.setParameterActions = []; + for (var i = 0; i < object.setParameterActions.length; ++i) { + if (typeof object.setParameterActions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.setParameterActions: object expected"); + message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); + } } - if (object.telephonyTransferCall != null) { - if (typeof object.telephonyTransferCall !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.telephonyTransferCall: object expected"); - message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + if (object.conditionalCases) { + if (!Array.isArray(object.conditionalCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.conditionalCases: array expected"); + message.conditionalCases = []; + for (var i = 0; i < object.conditionalCases.length; ++i) { + if (typeof object.conditionalCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.conditionalCases: object expected"); + message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); + } } - if (object.channel != null) - message.channel = String(object.channel); return message; }; /** - * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage} message ResponseMessage + * @param {google.cloud.dialogflow.cx.v3.Fulfillment} message Fulfillment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseMessage.toObject = function toObject(message, options) { + Fulfillment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.channel = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.text, options); - if (options.oneofs) - object.message = "text"; - } - if (message.payload != null && message.hasOwnProperty("payload")) { - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (options.oneofs) - object.message = "payload"; - } - if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - object.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); - if (options.oneofs) - object.message = "outputAudioText"; - } - if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); - if (options.oneofs) - object.message = "conversationSuccess"; - } - if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); - if (options.oneofs) - object.message = "liveAgentHandoff"; + if (options.arrays || options.defaults) { + object.messages = []; + object.setParameterActions = []; + object.conditionalCases = []; } - if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - object.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); - if (options.oneofs) - object.message = "endInteraction"; + if (options.defaults) { + object.webhook = ""; + object.tag = ""; + object.returnPartialResponses = false; } - if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - object.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.toObject(message.playAudio, options); - if (options.oneofs) - object.message = "playAudio"; + 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.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - object.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); - if (options.oneofs) - object.message = "mixedAudio"; + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = message.webhook; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = message.tag; + if (message.setParameterActions && message.setParameterActions.length) { + object.setParameterActions = []; + for (var j = 0; j < message.setParameterActions.length; ++j) + object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); } - if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { - object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); - if (options.oneofs) - object.message = "telephonyTransferCall"; + if (message.conditionalCases && message.conditionalCases.length) { + object.conditionalCases = []; + for (var j = 0; j < message.conditionalCases.length; ++j) + object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; + if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) + object.returnPartialResponses = message.returnPartialResponses; return object; }; /** - * Converts this ResponseMessage to JSON. + * Converts this Fulfillment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @instance * @returns {Object.} JSON object */ - ResponseMessage.prototype.toJSON = function toJSON() { + Fulfillment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResponseMessage + * Gets the default type url for Fulfillment * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Fulfillment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment"; }; - ResponseMessage.Text = (function() { + Fulfillment.SetParameterAction = (function() { /** - * Properties of a Text. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @interface IText - * @property {Array.|null} [text] Text text - * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption + * Properties of a SetParameterAction. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @interface ISetParameterAction + * @property {string|null} [parameter] SetParameterAction parameter + * @property {google.protobuf.IValue|null} [value] SetParameterAction value */ /** - * Constructs a new Text. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @classdesc Represents a Text. - * @implements IText + * Constructs a new SetParameterAction. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @classdesc Represents a SetParameterAction. + * @implements ISetParameterAction * @constructor - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction=} [properties] Properties to set */ - function Text(properties) { - this.text = []; + function SetParameterAction(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14641,92 +15320,89 @@ } /** - * Text text. - * @member {Array.} text - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * SetParameterAction parameter. + * @member {string} parameter + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @instance */ - Text.prototype.text = $util.emptyArray; + SetParameterAction.prototype.parameter = ""; /** - * Text allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text - * @instance + * SetParameterAction value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction + * @instance */ - Text.prototype.allowPlaybackInterruption = false; + SetParameterAction.prototype.value = null; /** - * Creates a new Text instance using the specified properties. + * Creates a new SetParameterAction instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text instance + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction instance */ - Text.create = function create(properties) { - return new Text(properties); + SetParameterAction.create = function create(properties) { + return new SetParameterAction(properties); }; /** - * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText} message Text message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Text.encode = function encode(message, writer) { + SetParameterAction.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.text.length) - for (var i = 0; i < message.text.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text[i]); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); + if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText} message Text message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Text.encodeDelimited = function encodeDelimited(message, writer) { + SetParameterAction.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Text message from the specified reader or buffer. + * Decodes a SetParameterAction message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @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.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Text.decode = function decode(reader, length) { + SetParameterAction.decode = function decode(reader, length) { 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.ResponseMessage.Text(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.text && message.text.length)) - message.text = []; - message.text.push(reader.string()); + message.parameter = reader.string(); break; } case 2: { - message.allowPlaybackInterruption = reader.bool(); + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -14738,143 +15414,137 @@ }; /** - * Decodes a Text message from the specified reader or buffer, length delimited. + * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Text.decodeDelimited = function decodeDelimited(reader) { + SetParameterAction.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Text message. + * Verifies a SetParameterAction message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Text.verify = function verify(message) { + SetParameterAction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) { - if (!Array.isArray(message.text)) - return "text: array expected"; - for (var i = 0; i < message.text.length; ++i) - if (!$util.isString(message.text[i])) - return "text: string[] expected"; + if (message.parameter != null && message.hasOwnProperty("parameter")) + if (!$util.isString(message.parameter)) + return "parameter: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates a Text message from a plain object. Also converts values to their respective internal types. + * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} SetParameterAction */ - Text.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) + SetParameterAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(); - if (object.text) { - if (!Array.isArray(object.text)) - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.Text.text: array expected"); - message.text = []; - for (var i = 0; i < object.text.length; ++i) - message.text[i] = String(object.text[i]); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction(); + if (object.parameter != null) + message.parameter = String(object.parameter); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); } - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); return message; }; /** - * Creates a plain object from a Text message. Also converts values to other types if specified. + * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} message Text + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction} message SetParameterAction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Text.toObject = function toObject(message, options) { + SetParameterAction.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.text = []; - if (options.defaults) - object.allowPlaybackInterruption = false; - if (message.text && message.text.length) { - object.text = []; - for (var j = 0; j < message.text.length; ++j) - object.text[j] = message.text[j]; + if (options.defaults) { + object.parameter = ""; + object.value = null; } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; + if (message.parameter != null && message.hasOwnProperty("parameter")) + object.parameter = message.parameter; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); return object; }; /** - * Converts this Text to JSON. + * Converts this SetParameterAction to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @instance * @returns {Object.} JSON object */ - Text.prototype.toJSON = function toJSON() { + SetParameterAction.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Text + * Gets the default type url for SetParameterAction * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Text.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetParameterAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.Text"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction"; }; - return Text; + return SetParameterAction; })(); - ResponseMessage.LiveAgentHandoff = (function() { + Fulfillment.ConditionalCases = (function() { /** - * Properties of a LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @interface ILiveAgentHandoff - * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata + * Properties of a ConditionalCases. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @interface IConditionalCases + * @property {Array.|null} [cases] ConditionalCases cases */ /** - * Constructs a new LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @classdesc Represents a LiveAgentHandoff. - * @implements ILiveAgentHandoff + * Constructs a new ConditionalCases. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment + * @classdesc Represents a ConditionalCases. + * @implements IConditionalCases * @constructor - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases=} [properties] Properties to set */ - function LiveAgentHandoff(properties) { + function ConditionalCases(properties) { + this.cases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14882,75 +15552,78 @@ } /** - * LiveAgentHandoff metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * ConditionalCases cases. + * @member {Array.} cases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @instance */ - LiveAgentHandoff.prototype.metadata = null; + ConditionalCases.prototype.cases = $util.emptyArray; /** - * Creates a new LiveAgentHandoff instance using the specified properties. + * Creates a new ConditionalCases instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases instance */ - LiveAgentHandoff.create = function create(properties) { - return new LiveAgentHandoff(properties); + ConditionalCases.create = function create(properties) { + return new ConditionalCases(properties); }; /** - * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveAgentHandoff.encode = function encode(message, writer) { + ConditionalCases.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cases != null && message.cases.length) + for (var i = 0; i < message.cases.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveAgentHandoff.encodeDelimited = function encodeDelimited(message, writer) { + ConditionalCases.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer. + * Decodes a ConditionalCases message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @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.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveAgentHandoff.decode = function decode(reader, length) { + ConditionalCases.decode = function decode(reader, length) { 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.ResponseMessage.LiveAgentHandoff(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + if (!(message.cases && message.cases.length)) + message.cases = []; + message.cases.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); break; } default: @@ -14962,608 +15635,1182 @@ }; /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. + * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveAgentHandoff.decodeDelimited = function decodeDelimited(reader) { + ConditionalCases.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LiveAgentHandoff message. + * Verifies a ConditionalCases message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LiveAgentHandoff.verify = function verify(message) { + ConditionalCases.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.cases != null && message.hasOwnProperty("cases")) { + if (!Array.isArray(message.cases)) + return "cases: array expected"; + for (var i = 0; i < message.cases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); + if (error) + return "cases." + error; + } } return null; }; /** - * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. + * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} ConditionalCases */ - LiveAgentHandoff.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff) + ConditionalCases.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases) return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases(); + if (object.cases) { + if (!Array.isArray(object.cases)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.cases: array expected"); + message.cases = []; + for (var i = 0; i < object.cases.length; ++i) { + if (typeof object.cases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.cases: object expected"); + message.cases[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); + } } return message; }; /** - * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. + * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases} message ConditionalCases * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LiveAgentHandoff.toObject = function toObject(message, options) { + ConditionalCases.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (options.arrays || options.defaults) + object.cases = []; + if (message.cases && message.cases.length) { + object.cases = []; + for (var j = 0; j < message.cases.length; ++j) + object.cases[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); + } return object; }; /** - * Converts this LiveAgentHandoff to JSON. + * Converts this ConditionalCases to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @instance * @returns {Object.} JSON object */ - LiveAgentHandoff.prototype.toJSON = function toJSON() { + ConditionalCases.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LiveAgentHandoff + * Gets the default type url for ConditionalCases * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LiveAgentHandoff.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConditionalCases.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases"; }; - return LiveAgentHandoff; - })(); + ConditionalCases.Case = (function() { - ResponseMessage.ConversationSuccess = (function() { + /** + * Properties of a Case. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases + * @interface ICase + * @property {string|null} [condition] Case condition + * @property {Array.|null} [caseContent] Case caseContent + */ - /** - * Properties of a ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @interface IConversationSuccess - * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata - */ + /** + * Constructs a new Case. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases + * @classdesc Represents a Case. + * @implements ICase + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + */ + function Case(properties) { + this.caseContent = []; + 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 ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @classdesc Represents a ConversationSuccess. - * @implements IConversationSuccess - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess=} [properties] Properties to set - */ - function ConversationSuccess(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]]; - } + /** + * Case condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @instance + */ + Case.prototype.condition = ""; - /** - * ConversationSuccess metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @instance - */ - ConversationSuccess.prototype.metadata = null; + /** + * Case caseContent. + * @member {Array.} caseContent + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @instance + */ + Case.prototype.caseContent = $util.emptyArray; - /** - * Creates a new ConversationSuccess instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess instance - */ - ConversationSuccess.create = function create(properties) { - return new ConversationSuccess(properties); - }; + /** + * Creates a new Case instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case instance + */ + Case.create = function create(properties) { + return new Case(properties); + }; - /** - * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConversationSuccess.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Case.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.caseContent != null && message.caseContent.length) + for (var i = 0; i < message.caseContent.length; ++i) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConversationSuccess.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Case.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConversationSuccess message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @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.ResponseMessage.ConversationSuccess} ConversationSuccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConversationSuccess.decode = function decode(reader, length) { - 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.ResponseMessage.ConversationSuccess(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + /** + * Decodes a Case message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @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.Fulfillment.ConditionalCases.Case} Case + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Case.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases.Case(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.condition = reader.string(); + break; + } + case 2: { + if (!(message.caseContent && message.caseContent.length)) + message.caseContent = []; + message.caseContent.push($root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConversationSuccess.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Case message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Case.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ConversationSuccess message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConversationSuccess.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; + /** + * Verifies a Case message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Case.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.caseContent != null && message.hasOwnProperty("caseContent")) { + if (!Array.isArray(message.caseContent)) + return "caseContent: array expected"; + for (var i = 0; i < message.caseContent.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); + if (error) + return "caseContent." + error; + } + } + return null; + }; - /** - * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess - */ - ConversationSuccess.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); - } - return message; - }; + /** + * Creates a Case message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} Case + */ + Case.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.caseContent) { + if (!Array.isArray(object.caseContent)) + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.caseContent: array expected"); + message.caseContent = []; + for (var i = 0; i < object.caseContent.length; ++i) { + if (typeof object.caseContent[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.caseContent: object expected"); + message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); + } + } + return message; + }; - /** - * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} message ConversationSuccess - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConversationSuccess.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); - return object; - }; + /** + * Creates a plain object from a Case message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case} message Case + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Case.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.caseContent = []; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.caseContent && message.caseContent.length) { + object.caseContent = []; + for (var j = 0; j < message.caseContent.length; ++j) + object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); + } + return object; + }; - /** - * Converts this ConversationSuccess to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @instance - * @returns {Object.} JSON object - */ - ConversationSuccess.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Case to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @instance + * @returns {Object.} JSON object + */ + Case.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for ConversationSuccess - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConversationSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess"; - }; + /** + * Gets the default type url for Case + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Case.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case"; + }; - return ConversationSuccess; - })(); + Case.CaseContent = (function() { - ResponseMessage.OutputAudioText = (function() { + /** + * Properties of a CaseContent. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @interface ICaseContent + * @property {google.cloud.dialogflow.cx.v3.IResponseMessage|null} [message] CaseContent message + * @property {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases + */ - /** - * Properties of an OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @interface IOutputAudioText - * @property {string|null} [text] OutputAudioText text - * @property {string|null} [ssml] OutputAudioText ssml - * @property {boolean|null} [allowPlaybackInterruption] OutputAudioText allowPlaybackInterruption - */ + /** + * Constructs a new CaseContent. + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case + * @classdesc Represents a CaseContent. + * @implements ICaseContent + * @constructor + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + */ + function CaseContent(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 OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @classdesc Represents an OutputAudioText. - * @implements IOutputAudioText - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText=} [properties] Properties to set - */ - function OutputAudioText(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]]; - } + /** + * CaseContent message. + * @member {google.cloud.dialogflow.cx.v3.IResponseMessage|null|undefined} message + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + CaseContent.prototype.message = null; - /** - * OutputAudioText text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.text = null; + /** + * CaseContent additionalCases. + * @member {google.cloud.dialogflow.cx.v3.Fulfillment.IConditionalCases|null|undefined} additionalCases + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + CaseContent.prototype.additionalCases = null; - /** - * OutputAudioText ssml. - * @member {string|null|undefined} ssml - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.ssml = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * OutputAudioText allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.allowPlaybackInterruption = false; + /** + * CaseContent casesOrMessage. + * @member {"message"|"additionalCases"|undefined} casesOrMessage + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + Object.defineProperty(CaseContent.prototype, "casesOrMessage", { + get: $util.oneOfGetter($oneOfFields = ["message", "additionalCases"]), + set: $util.oneOfSetter($oneOfFields) + }); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a new CaseContent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance + */ + CaseContent.create = function create(properties) { + return new CaseContent(properties); + }; - /** - * OutputAudioText source. - * @member {"text"|"ssml"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @instance - */ - Object.defineProperty(OutputAudioText.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["text", "ssml"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CaseContent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) + $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new OutputAudioText instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText instance - */ - OutputAudioText.create = function create(properties) { - return new OutputAudioText(properties); - }; + /** + * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CaseContent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputAudioText.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.ssml != null && Object.hasOwnProperty.call(message, "ssml")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.ssml); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); - return writer; - }; + /** + * Decodes a CaseContent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @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.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CaseContent.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases.Case.CaseContent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.decode(reader, reader.uint32()); + break; + } + case 2: { + message.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputAudioText.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a CaseContent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CaseContent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes an OutputAudioText message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @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.ResponseMessage.OutputAudioText} OutputAudioText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputAudioText.decode = function decode(reader, length) { - 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.ResponseMessage.OutputAudioText(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.text = reader.string(); - break; - } - case 2: { - message.ssml = reader.string(); - break; - } - case 3: { - message.allowPlaybackInterruption = reader.bool(); - break; + /** + * Verifies a CaseContent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CaseContent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.message != null && message.hasOwnProperty("message")) { + properties.casesOrMessage = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.verify(message.message); + if (error) + return "message." + error; + } } - default: - reader.skipType(tag & 7); - break; + if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { + if (properties.casesOrMessage === 1) + return "casesOrMessage: multiple values"; + properties.casesOrMessage = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.verify(message.additionalCases); + if (error) + return "additionalCases." + error; + } + } + return null; + }; + + /** + * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + */ + CaseContent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent(); + if (object.message != null) { + if (typeof object.message !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); + message.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.fromObject(object.message); + } + if (object.additionalCases != null) { + if (typeof object.additionalCases !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); + message.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.fromObject(object.additionalCases); + } + return message; + }; + + /** + * Creates a plain object from a CaseContent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CaseContent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.message != null && message.hasOwnProperty("message")) { + object.message = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.toObject(message.message, options); + if (options.oneofs) + object.casesOrMessage = "message"; + } + if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { + object.additionalCases = $root.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); + if (options.oneofs) + object.casesOrMessage = "additionalCases"; + } + return object; + }; + + /** + * Converts this CaseContent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + * @returns {Object.} JSON object + */ + CaseContent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CaseContent + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CaseContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent"; + }; + + return CaseContent; + })(); + + return Case; + })(); + + return ConditionalCases; + })(); + + return Fulfillment; + })(); + + v3.ResponseMessage = (function() { + + /** + * Properties of a ResponseMessage. + * @memberof google.cloud.dialogflow.cx.v3 + * @interface IResponseMessage + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null} [text] ResponseMessage text + * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio + * @property {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall + * @property {string|null} [channel] ResponseMessage channel + */ + + /** + * Constructs a new ResponseMessage. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a ResponseMessage. + * @implements IResponseMessage + * @constructor + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage=} [properties] Properties to set + */ + function ResponseMessage(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]]; + } + + /** + * ResponseMessage text. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IText|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.text = null; + + /** + * ResponseMessage payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.payload = null; + + /** + * ResponseMessage conversationSuccess. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.conversationSuccess = null; + + /** + * ResponseMessage outputAudioText. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.outputAudioText = null; + + /** + * ResponseMessage liveAgentHandoff. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.liveAgentHandoff = null; + + /** + * ResponseMessage endInteraction. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction|null|undefined} endInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.endInteraction = null; + + /** + * ResponseMessage playAudio. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio|null|undefined} playAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.playAudio = null; + + /** + * ResponseMessage mixedAudio. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.IMixedAudio|null|undefined} mixedAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.mixedAudio = null; + + /** + * ResponseMessage telephonyTransferCall. + * @member {google.cloud.dialogflow.cx.v3.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.telephonyTransferCall = null; + + /** + * ResponseMessage channel. + * @member {string} channel + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + ResponseMessage.prototype.channel = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResponseMessage message. + * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|undefined} message + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + */ + Object.defineProperty(ResponseMessage.prototype, "message", { + get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResponseMessage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage instance + */ + ResponseMessage.create = function create(properties) { + return new ResponseMessage(properties); + }; + + /** + * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResponseMessage.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.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.mixedAudio != null && Object.hasOwnProperty.call(message, "mixedAudio")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.telephonyTransferCall != null && Object.hasOwnProperty.call(message, "telephonyTransferCall")) + $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.channel); + return writer; + }; + + /** + * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResponseMessage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResponseMessage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @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.ResponseMessage} ResponseMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResponseMessage.decode = function decode(reader, length) { + 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.ResponseMessage(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.decode(reader, reader.uint32()); + break; + } + case 2: { + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 9: { + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); + break; + } + case 8: { + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); + break; + } + case 10: { + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); + break; + } + case 11: { + message.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); + break; + } + case 12: { + message.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); + break; + } + case 13: { + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); + break; + } + case 18: { + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); + break; + } + case 19: { + message.channel = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputAudioText.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResponseMessage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an OutputAudioText message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputAudioText.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.source = 1; - if (!$util.isString(message.text)) - return "text: string expected"; + /** + * Verifies a ResponseMessage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResponseMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify(message.text); + if (error) + return "text." + error; } - 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.payload != null && message.hasOwnProperty("payload")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; } - 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.v3.ResponseMessage.OutputAudioText - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText - */ - OutputAudioText.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3.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.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); + if (error) + return "conversationSuccess." + error; } - if (message.ssml != null && message.hasOwnProperty("ssml")) { - object.ssml = message.ssml; - if (options.oneofs) - object.source = "ssml"; + } + if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify(message.outputAudioText); + if (error) + return "outputAudioText." + error; } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; + } + if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); + if (error) + return "liveAgentHandoff." + error; + } + } + if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify(message.endInteraction); + if (error) + return "endInteraction." + error; + } + } + if (message.playAudio != null && message.hasOwnProperty("playAudio")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify(message.playAudio); + if (error) + return "playAudio." + error; + } + } + if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.verify(message.mixedAudio); + if (error) + return "mixedAudio." + error; + } + } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); + if (error) + return "telephonyTransferCall." + error; + } + } + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + return null; + }; + + /** + * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage} ResponseMessage + */ + ResponseMessage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.fromObject(object.text); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.conversationSuccess != null) { + if (typeof object.conversationSuccess !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.conversationSuccess: object expected"); + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); + } + if (object.outputAudioText != null) { + if (typeof object.outputAudioText !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.outputAudioText: object expected"); + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); + } + if (object.liveAgentHandoff != null) { + if (typeof object.liveAgentHandoff !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.liveAgentHandoff: object expected"); + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); + } + if (object.endInteraction != null) { + if (typeof object.endInteraction !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.endInteraction: object expected"); + message.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.fromObject(object.endInteraction); + } + if (object.playAudio != null) { + if (typeof object.playAudio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.playAudio: object expected"); + message.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.fromObject(object.playAudio); + } + if (object.mixedAudio != null) { + if (typeof object.mixedAudio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.mixedAudio: object expected"); + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + } + if (object.telephonyTransferCall != null) { + if (typeof object.telephonyTransferCall !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.telephonyTransferCall: object expected"); + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + } + if (object.channel != null) + message.channel = String(object.channel); + return message; + }; - /** - * Converts this OutputAudioText to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @instance - * @returns {Object.} JSON object - */ - OutputAudioText.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage} message ResponseMessage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResponseMessage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.channel = ""; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.toObject(message.text, options); + if (options.oneofs) + object.message = "text"; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (options.oneofs) + object.message = "payload"; + } + if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { + object.outputAudioText = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); + if (options.oneofs) + object.message = "outputAudioText"; + } + if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { + object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); + if (options.oneofs) + object.message = "conversationSuccess"; + } + if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { + object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); + if (options.oneofs) + object.message = "liveAgentHandoff"; + } + if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { + object.endInteraction = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); + if (options.oneofs) + object.message = "endInteraction"; + } + if (message.playAudio != null && message.hasOwnProperty("playAudio")) { + object.playAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.toObject(message.playAudio, options); + if (options.oneofs) + object.message = "playAudio"; + } + if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { + object.mixedAudio = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); + if (options.oneofs) + object.message = "mixedAudio"; + } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); + if (options.oneofs) + object.message = "telephonyTransferCall"; + } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + return object; + }; - /** - * Gets the default type url for OutputAudioText - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputAudioText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText"; - }; + /** + * Converts this ResponseMessage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @instance + * @returns {Object.} JSON object + */ + ResponseMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return OutputAudioText; - })(); + /** + * Gets the default type url for ResponseMessage + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage"; + }; - ResponseMessage.EndInteraction = (function() { + ResponseMessage.Text = (function() { /** - * Properties of an EndInteraction. + * Properties of a Text. * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @interface IEndInteraction + * @interface IText + * @property {Array.|null} [text] Text text + * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption */ /** - * Constructs a new EndInteraction. + * Constructs a new Text. * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @classdesc Represents an EndInteraction. - * @implements IEndInteraction + * @classdesc Represents a Text. + * @implements IText * @constructor - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText=} [properties] Properties to set */ - function EndInteraction(properties) { + function Text(properties) { + this.text = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15571,63 +16818,94 @@ } /** - * Creates a new EndInteraction instance using the specified properties. + * Text text. + * @member {Array.} text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @instance + */ + Text.prototype.text = $util.emptyArray; + + /** + * Text allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text + * @instance + */ + Text.prototype.allowPlaybackInterruption = false; + + /** + * Creates a new Text instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text instance */ - EndInteraction.create = function create(properties) { - return new EndInteraction(properties); + Text.create = function create(properties) { + return new Text(properties); }; /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText} message Text message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EndInteraction.encode = function encode(message, writer) { + Text.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.text != null && message.text.length) + for (var i = 0; i < message.text.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text[i]); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); return writer; }; /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.Text.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IText} message Text message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { + Text.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EndInteraction message from the specified reader or buffer. + * Decodes a Text message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @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.ResponseMessage.EndInteraction} EndInteraction + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text * @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) { + Text.decode = function decode(reader, length) { 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.ResponseMessage.EndInteraction(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.text && message.text.length)) + message.text = []; + message.text.push(reader.string()); + break; + } + case 2: { + message.allowPlaybackInterruption = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -15637,110 +16915,143 @@ }; /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. + * Decodes a Text message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text * @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) { + Text.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EndInteraction message. + * Verifies a Text message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @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) { + Text.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) { + if (!Array.isArray(message.text)) + return "text: array expected"; + for (var i = 0; i < message.text.length; ++i) + if (!$util.isString(message.text[i])) + return "text: string[] expected"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. + * Creates a Text message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} Text */ - EndInteraction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction) + Text.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text) return object; - return new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction(); + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(); + if (object.text) { + if (!Array.isArray(object.text)) + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.Text.text: array expected"); + message.text = []; + for (var i = 0; i < object.text.length; ++i) + message.text[i] = String(object.text[i]); + } + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; }; /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. + * Creates a plain object from a Text message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} message EndInteraction + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.Text} message Text * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EndInteraction.toObject = function toObject() { - return {}; + Text.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.text = []; + if (options.defaults) + object.allowPlaybackInterruption = false; + if (message.text && message.text.length) { + object.text = []; + for (var j = 0; j < message.text.length; ++j) + object.text[j] = message.text[j]; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; }; /** - * Converts this EndInteraction to JSON. + * Converts this Text to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @instance * @returns {Object.} JSON object */ - EndInteraction.prototype.toJSON = function toJSON() { + Text.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EndInteraction + * Gets the default type url for Text * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.Text * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EndInteraction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Text.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.Text"; }; - return EndInteraction; + return Text; })(); - ResponseMessage.PlayAudio = (function() { + ResponseMessage.LiveAgentHandoff = (function() { /** - * Properties of a PlayAudio. + * Properties of a LiveAgentHandoff. * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @interface IPlayAudio - * @property {string|null} [audioUri] PlayAudio audioUri - * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption + * @interface ILiveAgentHandoff + * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata */ /** - * Constructs a new PlayAudio. + * Constructs a new LiveAgentHandoff. * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage - * @classdesc Represents a PlayAudio. - * @implements IPlayAudio + * @classdesc Represents a LiveAgentHandoff. + * @implements ILiveAgentHandoff * @constructor - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set */ - function PlayAudio(properties) { + function LiveAgentHandoff(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15748,89 +17059,75 @@ } /** - * PlayAudio audioUri. - * @member {string} audioUri - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio - * @instance - */ - PlayAudio.prototype.audioUri = ""; - - /** - * PlayAudio allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * LiveAgentHandoff metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @instance */ - PlayAudio.prototype.allowPlaybackInterruption = false; + LiveAgentHandoff.prototype.metadata = null; /** - * Creates a new PlayAudio instance using the specified properties. + * Creates a new LiveAgentHandoff instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio instance + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance */ - PlayAudio.create = function create(properties) { - return new PlayAudio(properties); + LiveAgentHandoff.create = function create(properties) { + return new LiveAgentHandoff(properties); }; /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlayAudio.encode = function encode(message, writer) { + LiveAgentHandoff.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); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { + LiveAgentHandoff.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlayAudio message from the specified reader or buffer. + * Decodes a LiveAgentHandoff message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @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.ResponseMessage.PlayAudio} PlayAudio + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff * @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) { + LiveAgentHandoff.decode = function decode(reader, length) { 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.ResponseMessage.PlayAudio(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.audioUri = reader.string(); - break; - } - case 2: { - message.allowPlaybackInterruption = reader.bool(); + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } default: @@ -15842,48 +17139,928 @@ }; /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. + * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff * @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) { + LiveAgentHandoff.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PlayAudio message. + * Verifies a LiveAgentHandoff message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @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) { + LiveAgentHandoff.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"; - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } return null; }; /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + */ + LiveAgentHandoff.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LiveAgentHandoff.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this LiveAgentHandoff to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @instance + * @returns {Object.} JSON object + */ + LiveAgentHandoff.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LiveAgentHandoff + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LiveAgentHandoff.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff"; + }; + + return LiveAgentHandoff; + })(); + + ResponseMessage.ConversationSuccess = (function() { + + /** + * Properties of a ConversationSuccess. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IConversationSuccess + * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata + */ + + /** + * Constructs a new ConversationSuccess. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents a ConversationSuccess. + * @implements IConversationSuccess + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess=} [properties] Properties to set + */ + function ConversationSuccess(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]]; + } + + /** + * ConversationSuccess metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @instance + */ + ConversationSuccess.prototype.metadata = null; + + /** + * Creates a new ConversationSuccess instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess instance + */ + ConversationSuccess.create = function create(properties) { + return new ConversationSuccess(properties); + }; + + /** + * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationSuccess.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationSuccess.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversationSuccess message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @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.ResponseMessage.ConversationSuccess} ConversationSuccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationSuccess.decode = function decode(reader, length) { + 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.ResponseMessage.ConversationSuccess(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationSuccess.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversationSuccess message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversationSuccess.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} ConversationSuccess + */ + ConversationSuccess.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess} message ConversationSuccess + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversationSuccess.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this ConversationSuccess to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @instance + * @returns {Object.} JSON object + */ + ConversationSuccess.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConversationSuccess + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConversationSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess"; + }; + + return ConversationSuccess; + })(); + + ResponseMessage.OutputAudioText = (function() { + + /** + * Properties of an OutputAudioText. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IOutputAudioText + * @property {string|null} [text] OutputAudioText text + * @property {string|null} [ssml] OutputAudioText ssml + * @property {boolean|null} [allowPlaybackInterruption] OutputAudioText allowPlaybackInterruption + */ + + /** + * Constructs a new OutputAudioText. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents an OutputAudioText. + * @implements IOutputAudioText + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText=} [properties] Properties to set + */ + function OutputAudioText(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]]; + } + + /** + * OutputAudioText text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.text = null; + + /** + * OutputAudioText ssml. + * @member {string|null|undefined} ssml + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.ssml = null; + + /** + * OutputAudioText allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.allowPlaybackInterruption = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * OutputAudioText source. + * @member {"text"|"ssml"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @instance + */ + Object.defineProperty(OutputAudioText.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["text", "ssml"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new OutputAudioText instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText instance + */ + OutputAudioText.create = function create(properties) { + return new OutputAudioText(properties); + }; + + /** + * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioText.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.ssml != null && Object.hasOwnProperty.call(message, "ssml")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.ssml); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioText.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputAudioText message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @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.ResponseMessage.OutputAudioText} OutputAudioText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioText.decode = function decode(reader, length) { + 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.ResponseMessage.OutputAudioText(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = reader.string(); + break; + } + case 2: { + message.ssml = reader.string(); + break; + } + case 3: { + message.allowPlaybackInterruption = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioText.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputAudioText message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputAudioText.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.source = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + 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.v3.ResponseMessage.OutputAudioText + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText} OutputAudioText + */ + OutputAudioText.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.OutputAudioText + * @instance + * @returns {Object.} JSON object + */ + OutputAudioText.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputAudioText + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputAudioText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText"; + }; + + return OutputAudioText; + })(); + + ResponseMessage.EndInteraction = (function() { + + /** + * Properties of an EndInteraction. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IEndInteraction + */ + + /** + * Constructs a new EndInteraction. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents an EndInteraction. + * @implements IEndInteraction + * @constructor + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IEndInteraction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.EndInteraction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.ResponseMessage.EndInteraction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.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.v3.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.v3.ResponseMessage.EndInteraction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction} EndInteraction + */ + EndInteraction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction) + return object; + return new $root.google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.EndInteraction + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.EndInteraction + * @instance + * @returns {Object.} JSON object + */ + EndInteraction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EndInteraction + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EndInteraction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"; + }; + + return EndInteraction; + })(); + + ResponseMessage.PlayAudio = (function() { + + /** + * Properties of a PlayAudio. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @interface IPlayAudio + * @property {string|null} [audioUri] PlayAudio audioUri + * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption + */ + + /** + * Constructs a new PlayAudio. + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage + * @classdesc Represents a PlayAudio. + * @implements IPlayAudio + * @constructor + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.PlayAudio + * @instance + */ + PlayAudio.prototype.audioUri = ""; + + /** + * PlayAudio allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @instance + */ + PlayAudio.prototype.allowPlaybackInterruption = false; + + /** + * Creates a new PlayAudio instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.ResponseMessage.IPlayAudio=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.PlayAudio.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.ResponseMessage.PlayAudio.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @static + * @param {google.cloud.dialogflow.cx.v3.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.v3.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.v3.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.v3.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.v3.ResponseMessage.PlayAudio + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3.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.v3.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"; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; + + /** + * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio} PlayAudio */ PlayAudio.fromObject = function fromObject(object) { if (object instanceof $root.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio) @@ -17400,189 +19577,246 @@ return ResourceName; })(); - /** - * 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 - */ + v3.Changelogs = (function() { /** - * Constructs a new SpeechWordInfo. + * Constructs a new Changelogs service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo + * @classdesc Represents a Changelogs + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [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 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]]; + function Changelogs(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } + (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; + /** - * SpeechWordInfo word. - * @member {string} word - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance + * 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. */ - SpeechWordInfo.prototype.word = ""; + Changelogs.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @instance + * 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 */ - SpeechWordInfo.prototype.startOffset = null; /** - * SpeechWordInfo endOffset. - * @member {google.protobuf.IDuration|null|undefined} endOffset - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * 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 */ - SpeechWordInfo.prototype.endOffset = null; + 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" }); /** - * SpeechWordInfo confidence. - * @member {number} confidence - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * 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 */ - SpeechWordInfo.prototype.confidence = 0; /** - * Creates a new SpeechWordInfo instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo instance + * 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 */ - SpeechWordInfo.create = function create(properties) { - return new SpeechWordInfo(properties); - }; /** - * Encodes the specified SpeechWordInfo message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.verify|verify} messages. + * 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 + * @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.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.v3.ListChangelogsRequest + * @instance + */ + ListChangelogsRequest.prototype.parent = ""; + + /** + * 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.ListChangelogsRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest instance + */ + ListChangelogsRequest.create = function create(properties) { + return new ListChangelogsRequest(properties); + }; + + /** + * 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.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo 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 */ - SpeechWordInfo.encode = function encode(message, writer) { + ListChangelogsRequest.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.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 SpeechWordInfo message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SpeechWordInfo.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.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ISpeechWordInfo} message SpeechWordInfo 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 */ - SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { + ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SpeechWordInfo 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.SpeechWordInfo + * @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.SpeechWordInfo} SpeechWordInfo + * @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 */ - SpeechWordInfo.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.SpeechWordInfo(); + 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 3: { - message.word = reader.string(); - break; - } case 1: { - message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); break; } case 4: { - message.confidence = reader.float(); + message.pageToken = reader.string(); break; } default: @@ -17594,164 +19828,149 @@ }; /** - * Decodes a SpeechWordInfo 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.SpeechWordInfo + * @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.SpeechWordInfo} SpeechWordInfo + * @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 */ - SpeechWordInfo.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 SpeechWordInfo message. + * Verifies a ListChangelogsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @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 */ - SpeechWordInfo.verify = function verify(message) { + ListChangelogsRequest.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 (error) - return "endOffset." + error; - } - 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.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 SpeechWordInfo 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.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SpeechWordInfo} SpeechWordInfo + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest */ - SpeechWordInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SpeechWordInfo) + 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.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); + 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 SpeechWordInfo 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.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.SpeechWordInfo} message SpeechWordInfo + * @param {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} message ListChangelogsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SpeechWordInfo.toObject = function toObject(message, options) { + ListChangelogsRequest.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.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; } - 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.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 SpeechWordInfo to JSON. + * Converts this ListChangelogsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @instance * @returns {Object.} JSON object */ - SpeechWordInfo.prototype.toJSON = function toJSON() { + ListChangelogsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SpeechWordInfo + * Gets the default type url for ListChangelogsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SpeechWordInfo + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SpeechWordInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListChangelogsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SpeechWordInfo"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListChangelogsRequest"; }; - return SpeechWordInfo; + return ListChangelogsRequest; })(); - v3.InputAudioConfig = (function() { + v3.ListChangelogsResponse = (function() { /** - * Properties of an InputAudioConfig. + * Properties of a ListChangelogsResponse. * @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 + * @interface IListChangelogsResponse + * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs + * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken */ /** - * Constructs a new InputAudioConfig. + * Constructs a new ListChangelogsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an InputAudioConfig. - * @implements IInputAudioConfig + * @classdesc Represents a ListChangelogsResponse. + * @implements IListChangelogsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set */ - function InputAudioConfig(properties) { - this.phraseHints = []; + function ListChangelogsResponse(properties) { + this.changelogs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17759,162 +19978,92 @@ } /** - * InputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3.AudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.audioEncoding = 0; - - /** - * InputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.sampleRateHertz = 0; - - /** - * InputAudioConfig enableWordInfo. - * @member {boolean} enableWordInfo - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.enableWordInfo = false; - - /** - * InputAudioConfig phraseHints. - * @member {Array.} phraseHints - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig - * @instance - */ - 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 + * ListChangelogsResponse changelogs. + * @member {Array.} changelogs + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @instance */ - InputAudioConfig.prototype.modelVariant = 0; + ListChangelogsResponse.prototype.changelogs = $util.emptyArray; /** - * InputAudioConfig singleUtterance. - * @member {boolean} singleUtterance - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * ListChangelogsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @instance */ - InputAudioConfig.prototype.singleUtterance = false; + ListChangelogsResponse.prototype.nextPageToken = ""; /** - * Creates a new InputAudioConfig instance using the specified properties. + * Creates a new ListChangelogsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @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.IListChangelogsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse instance */ - InputAudioConfig.create = function create(properties) { - return new InputAudioConfig(properties); + ListChangelogsResponse.create = function create(properties) { + return new ListChangelogsResponse(properties); }; /** - * Encodes the specified InputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.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.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig 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 */ - InputAudioConfig.encode = function encode(message, writer) { + ListChangelogsResponse.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.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 InputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.InputAudioConfig.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.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IInputAudioConfig} message InputAudioConfig 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 */ - InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputAudioConfig 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.InputAudioConfig + * @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.InputAudioConfig} InputAudioConfig + * @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 */ - InputAudioConfig.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.InputAudioConfig(); + 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.audioEncoding = reader.int32(); + 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.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(); + message.nextPageToken = reader.string(); break; } default: @@ -17926,281 +20075,148 @@ }; /** - * Decodes an InputAudioConfig 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.v3.InputAudioConfig + * @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.InputAudioConfig} InputAudioConfig + * @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 */ - InputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + ListChangelogsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputAudioConfig message. + * Verifies a ListChangelogsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @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 */ - InputAudioConfig.verify = function verify(message) { + ListChangelogsResponse.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.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.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.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an InputAudioConfig 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.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.InputAudioConfig} InputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse */ - InputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.InputAudioConfig) + 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.InputAudioConfig(); - switch (object.audioEncoding) { - default: - if (typeof object.audioEncoding === "number") { - message.audioEncoding = object.audioEncoding; - break; - } - break; - 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.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) { - default: - if (typeof object.modelVariant === "number") { - message.modelVariant = object.modelVariant; - break; + 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]); } - break; - 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); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an InputAudioConfig 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.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.InputAudioConfig} message InputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} message ListChangelogsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputAudioConfig.toObject = function toObject(message, options) { + ListChangelogsResponse.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] === undefined ? message.audioEncoding : $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.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.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] === undefined ? message.modelVariant : $root.google.cloud.dialogflow.cx.v3.SpeechModelVariant[message.modelVariant] : message.modelVariant; - if (message.enableWordInfo != null && message.hasOwnProperty("enableWordInfo")) - object.enableWordInfo = message.enableWordInfo; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this InputAudioConfig to JSON. + * Converts this ListChangelogsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @instance * @returns {Object.} JSON object */ - InputAudioConfig.prototype.toJSON = function toJSON() { + ListChangelogsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InputAudioConfig + * Gets the default type url for ListChangelogsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.InputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListChangelogsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.InputAudioConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListChangelogsResponse"; }; - 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; + return ListChangelogsResponse; })(); - v3.VoiceSelectionParams = (function() { + v3.GetChangelogRequest = (function() { /** - * Properties of a VoiceSelectionParams. + * Properties of a GetChangelogRequest. * @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 + * @interface IGetChangelogRequest + * @property {string|null} [name] GetChangelogRequest name */ /** - * Constructs a new VoiceSelectionParams. + * Constructs a new GetChangelogRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a VoiceSelectionParams. - * @implements IVoiceSelectionParams + * @classdesc Represents a GetChangelogRequest. + * @implements IGetChangelogRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest=} [properties] Properties to set */ - function VoiceSelectionParams(properties) { + function GetChangelogRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18208,80 +20224,70 @@ } /** - * VoiceSelectionParams name. + * GetChangelogRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams - * @instance - */ - VoiceSelectionParams.prototype.name = ""; - - /** - * VoiceSelectionParams ssmlGender. - * @member {google.cloud.dialogflow.cx.v3.SsmlVoiceGender} ssmlGender - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @instance */ - VoiceSelectionParams.prototype.ssmlGender = 0; + GetChangelogRequest.prototype.name = ""; /** - * Creates a new VoiceSelectionParams instance using the specified properties. + * Creates a new GetChangelogRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @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.IGetChangelogRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest instance */ - VoiceSelectionParams.create = function create(properties) { - return new VoiceSelectionParams(properties); + GetChangelogRequest.create = function create(properties) { + return new GetChangelogRequest(properties); }; /** - * Encodes the specified VoiceSelectionParams message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.VoiceSelectionParams.verify|verify} messages. + * 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.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @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 */ - VoiceSelectionParams.encode = function encode(message, 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); - if (message.ssmlGender != null && Object.hasOwnProperty.call(message, "ssmlGender")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssmlGender); 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 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.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams} message VoiceSelectionParams message or plain object to encode + * @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 */ - VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { + GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. + * Decodes a GetChangelogRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @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.VoiceSelectionParams} VoiceSelectionParams + * @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 */ - VoiceSelectionParams.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.v3.VoiceSelectionParams(); + 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) { @@ -18289,10 +20295,6 @@ message.name = reader.string(); break; } - case 2: { - message.ssmlGender = reader.int32(); - break; - } default: reader.skipType(tag & 7); break; @@ -18302,165 +20304,128 @@ }; /** - * Decodes a VoiceSelectionParams 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.VoiceSelectionParams + * @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.VoiceSelectionParams} VoiceSelectionParams + * @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 */ - VoiceSelectionParams.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 VoiceSelectionParams message. + * Verifies a GetChangelogRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @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 */ - VoiceSelectionParams.verify = function verify(message) { + GetChangelogRequest.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 VoiceSelectionParams 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.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} VoiceSelectionParams + * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest */ - VoiceSelectionParams.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams) + 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.VoiceSelectionParams(); + var message = new $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest(); if (object.name != null) message.name = String(object.name); - switch (object.ssmlGender) { - default: - if (typeof object.ssmlGender === "number") { - message.ssmlGender = object.ssmlGender; - break; - } - break; - 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 VoiceSelectionParams 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.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static - * @param {google.cloud.dialogflow.cx.v3.VoiceSelectionParams} message VoiceSelectionParams + * @param {google.cloud.dialogflow.cx.v3.GetChangelogRequest} message GetChangelogRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VoiceSelectionParams.toObject = function toObject(message, options) { + GetChangelogRequest.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.v3.SsmlVoiceGender[message.ssmlGender] === undefined ? message.ssmlGender : $root.google.cloud.dialogflow.cx.v3.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this VoiceSelectionParams to JSON. + * Converts this GetChangelogRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @instance * @returns {Object.} JSON object */ - VoiceSelectionParams.prototype.toJSON = function toJSON() { + GetChangelogRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for VoiceSelectionParams + * Gets the default type url for GetChangelogRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.VoiceSelectionParams + * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - VoiceSelectionParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetChangelogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.VoiceSelectionParams"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetChangelogRequest"; }; - return VoiceSelectionParams; + return GetChangelogRequest; })(); - v3.SynthesizeSpeechConfig = (function() { + v3.Changelog = (function() { /** - * Properties of a SynthesizeSpeechConfig. + * Properties of a Changelog. * @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 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 SynthesizeSpeechConfig. + * Constructs a new Changelog. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a SynthesizeSpeechConfig. - * @implements ISynthesizeSpeechConfig + * @classdesc Represents a Changelog. + * @implements IChangelog * @constructor - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set */ - function SynthesizeSpeechConfig(properties) { - this.effectsProfileId = []; + function Changelog(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18468,336 +20433,446 @@ } /** - * SynthesizeSpeechConfig speakingRate. - * @member {number} speakingRate - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * Changelog name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SynthesizeSpeechConfig.prototype.speakingRate = 0; + Changelog.prototype.name = ""; /** - * SynthesizeSpeechConfig pitch. - * @member {number} pitch - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * Changelog userEmail. + * @member {string} userEmail + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SynthesizeSpeechConfig.prototype.pitch = 0; + Changelog.prototype.userEmail = ""; /** - * SynthesizeSpeechConfig volumeGainDb. - * @member {number} volumeGainDb - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * Changelog displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SynthesizeSpeechConfig.prototype.volumeGainDb = 0; + Changelog.prototype.displayName = ""; /** - * SynthesizeSpeechConfig effectsProfileId. - * @member {Array.} effectsProfileId - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * Changelog action. + * @member {string} action + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; + Changelog.prototype.action = ""; /** - * SynthesizeSpeechConfig voice. - * @member {google.cloud.dialogflow.cx.v3.IVoiceSelectionParams|null|undefined} voice - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * Changelog type. + * @member {string} type + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance */ - SynthesizeSpeechConfig.prototype.voice = null; + Changelog.prototype.type = ""; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Changelog resource. + * @member {string} resource + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance + */ + Changelog.prototype.resource = ""; + + /** + * Changelog createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @instance + */ + Changelog.prototype.createTime = null; + + /** + * Creates a new Changelog instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance + * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog instance */ - SynthesizeSpeechConfig.create = function create(properties) { - return new SynthesizeSpeechConfig(properties); + Changelog.create = function create(properties) { + return new Changelog(properties); }; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig 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 */ - SynthesizeSpeechConfig.encode = function encode(message, writer) { + Changelog.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.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 SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig 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 */ - SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { + Changelog.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @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 */ - SynthesizeSpeechConfig.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.SynthesizeSpeechConfig(); + 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 1: { - message.speakingRate = reader.double(); + message.name = reader.string(); break; } case 2: { - message.pitch = reader.double(); + message.userEmail = reader.string(); break; } - case 3: { - message.volumeGainDb = reader.double(); + case 7: { + message.displayName = reader.string(); break; } - case 5: { - if (!(message.effectsProfileId && message.effectsProfileId.length)) - message.effectsProfileId = []; - message.effectsProfileId.push(reader.string()); + case 11: { + message.action = reader.string(); break; } - case 4: { - message.voice = $root.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.decode(reader, reader.uint32()); + case 8: { + message.type = reader.string(); break; } - default: - reader.skipType(tag & 7); - 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; + } + } return message; }; /** - * Decodes a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @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 */ - SynthesizeSpeechConfig.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 SynthesizeSpeechConfig message. + * Verifies a Changelog message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @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 */ - SynthesizeSpeechConfig.verify = function verify(message) { + Changelog.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 (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 "voice." + error; + return "createTime." + error; } return null; }; /** - * Creates a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog */ - SynthesizeSpeechConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig) + 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.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.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); } return message; }; /** - * Creates a plain object from a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static - * @param {google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig} message SynthesizeSpeechConfig + * @param {google.cloud.dialogflow.cx.v3.Changelog} message Changelog * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SynthesizeSpeechConfig.toObject = function toObject(message, options) { + Changelog.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.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 SynthesizeSpeechConfig to JSON. + * Converts this Changelog to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @instance * @returns {Object.} JSON object */ - SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { + Changelog.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SynthesizeSpeechConfig + * Gets the default type url for Changelog * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3.Changelog * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SynthesizeSpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Changelog.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Changelog"; }; - return SynthesizeSpeechConfig; + return Changelog; })(); - /** - * 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.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; })(); - v3.OutputAudioConfig = (function() { + v3.Deployment = (function() { /** - * Properties of an OutputAudioConfig. + * Properties of a Deployment. * @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 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 OutputAudioConfig. + * Constructs a new Deployment. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an OutputAudioConfig. - * @implements IOutputAudioConfig + * @classdesc Represents a Deployment. + * @implements IDeployment * @constructor - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeployment=} [properties] Properties to set */ - function OutputAudioConfig(properties) { + function Deployment(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18805,103 +20880,145 @@ } /** - * OutputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3.OutputAudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * Deployment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance */ - OutputAudioConfig.prototype.audioEncoding = 0; + Deployment.prototype.name = ""; /** - * OutputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * Deployment flowVersion. + * @member {string} flowVersion + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance */ - OutputAudioConfig.prototype.sampleRateHertz = 0; + Deployment.prototype.flowVersion = ""; /** - * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * Deployment state. + * @member {google.cloud.dialogflow.cx.v3.Deployment.State} state + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance */ - OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + Deployment.prototype.state = 0; /** - * Creates a new OutputAudioConfig 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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @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.IDeployment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment instance */ - OutputAudioConfig.create = function create(properties) { - return new OutputAudioConfig(properties); + Deployment.create = function create(properties) { + return new Deployment(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig 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 */ - OutputAudioConfig.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.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); + 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 OutputAudioConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.OutputAudioConfig.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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.IOutputAudioConfig} message OutputAudioConfig 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 */ - OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + Deployment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputAudioConfig 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.OutputAudioConfig + * @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.OutputAudioConfig} OutputAudioConfig + * @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 */ - OutputAudioConfig.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.OutputAudioConfig(); + 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 3: { - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + 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()); break; } default: @@ -18913,287 +21030,470 @@ }; /** - * Decodes an OutputAudioConfig 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.OutputAudioConfig + * @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.OutputAudioConfig} OutputAudioConfig + * @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 */ - OutputAudioConfig.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 OutputAudioConfig message. + * Verifies a Deployment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @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 */ - OutputAudioConfig.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 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 (message.result != null && message.hasOwnProperty("result")) { + var error = $root.google.cloud.dialogflow.cx.v3.Deployment.Result.verify(message.result); if (error) - return "synthesizeSpeechConfig." + 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 an OutputAudioConfig 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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment */ - OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.OutputAudioConfig) + 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.OutputAudioConfig(); - switch (object.audioEncoding) { + 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) { default: - if (typeof object.audioEncoding === "number") { - message.audioEncoding = object.audioEncoding; + if (typeof object.state === "number") { + message.state = object.state; break; } break; - case "OUTPUT_AUDIO_ENCODING_UNSPECIFIED": + case "STATE_UNSPECIFIED": case 0: - message.audioEncoding = 0; + message.state = 0; break; - case "OUTPUT_AUDIO_ENCODING_LINEAR_16": + case "RUNNING": case 1: - message.audioEncoding = 1; + message.state = 1; break; - case "OUTPUT_AUDIO_ENCODING_MP3": + case "SUCCEEDED": case 2: - message.audioEncoding = 2; - break; - case "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS": - case 4: - message.audioEncoding = 4; + message.state = 2; break; - case "OUTPUT_AUDIO_ENCODING_OGG_OPUS": + case "FAILED": case 3: - message.audioEncoding = 3; - break; - case "OUTPUT_AUDIO_ENCODING_MULAW": - case 5: - message.audioEncoding = 5; + message.state = 3; 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); + 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); } return message; }; /** - * Creates a plain object from an OutputAudioConfig 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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static - * @param {google.cloud.dialogflow.cx.v3.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3.Deployment} message Deployment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputAudioConfig.toObject = function toObject(message, options) { + Deployment.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.flowVersion = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.result = null; + object.startTime = null; + object.endTime = null; } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.OutputAudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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 (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] === undefined ? message.state : $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 OutputAudioConfig to JSON. + * Converts this Deployment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @instance * @returns {Object.} JSON object */ - OutputAudioConfig.prototype.toJSON = function toJSON() { + Deployment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OutputAudioConfig + * Gets the default type url for Deployment * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3.Deployment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OutputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Deployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.OutputAudioConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Deployment"; }; - return OutputAudioConfig; - })(); - - v3.Changelogs = (function() { - /** - * Constructs a new Changelogs service. - * @memberof google.cloud.dialogflow.cx.v3 - * @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 + * 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 */ - function Changelogs(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + 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; + })(); - (Changelogs.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Changelogs; + Deployment.Result = (function() { - /** - * 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); - }; + /** + * 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 + */ - /** - * 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 - */ + /** + * 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]]; + } - /** - * 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" }); + /** + * Result deploymentTestResults. + * @member {Array.} deploymentTestResults + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @instance + */ + Result.prototype.deploymentTestResults = $util.emptyArray; - /** - * 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 - */ + /** + * Result experiment. + * @member {string} experiment + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @instance + */ + Result.prototype.experiment = ""; - /** - * 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 - */ + /** + * 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); + }; - /** - * 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" }); + /** + * 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; + }; - /** - * 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 - */ + /** + * 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(); + }; - return Changelogs; + /** + * 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); + }; + + /** + * Gets the default type url for Result + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Deployment.Result"; + }; + + return Result; + })(); + + return Deployment; })(); - v3.ListChangelogsRequest = (function() { + v3.ListDeploymentsRequest = (function() { /** - * Properties of a ListChangelogsRequest. + * Properties of a ListDeploymentsRequest. * @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 IListDeploymentsRequest + * @property {string|null} [parent] ListDeploymentsRequest parent + * @property {number|null} [pageSize] ListDeploymentsRequest pageSize + * @property {string|null} [pageToken] ListDeploymentsRequest pageToken */ /** - * Constructs a new ListChangelogsRequest. + * Constructs a new ListDeploymentsRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListChangelogsRequest. - * @implements IListChangelogsRequest + * @classdesc Represents a ListDeploymentsRequest. + * @implements IListDeploymentsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest=} [properties] Properties to set */ - function ListChangelogsRequest(properties) { + function ListDeploymentsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19201,100 +21501,90 @@ } /** - * ListChangelogsRequest parent. + * ListDeploymentsRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest - * @instance - */ - ListChangelogsRequest.prototype.parent = ""; - - /** - * ListChangelogsRequest filter. - * @member {string} filter - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance */ - ListChangelogsRequest.prototype.filter = ""; + ListDeploymentsRequest.prototype.parent = ""; /** - * ListChangelogsRequest pageSize. + * ListDeploymentsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance */ - ListChangelogsRequest.prototype.pageSize = 0; + ListDeploymentsRequest.prototype.pageSize = 0; /** - * ListChangelogsRequest pageToken. + * ListDeploymentsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance */ - ListChangelogsRequest.prototype.pageToken = ""; + ListDeploymentsRequest.prototype.pageToken = ""; /** - * Creates a new ListChangelogsRequest instance using the specified properties. + * Creates a new ListDeploymentsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @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.IListDeploymentsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest instance */ - ListChangelogsRequest.create = function create(properties) { - return new ListChangelogsRequest(properties); + ListDeploymentsRequest.create = function create(properties) { + return new ListDeploymentsRequest(properties); }; /** - * Encodes the specified ListChangelogsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.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.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} message ListChangelogsRequest 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 */ - ListChangelogsRequest.encode = function encode(message, writer) { + ListDeploymentsRequest.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); + 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 ListChangelogsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsRequest.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.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsRequest} message ListChangelogsRequest 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 */ - ListChangelogsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsRequest 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.ListChangelogsRequest + * @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.ListChangelogsRequest} ListChangelogsRequest + * @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 */ - ListChangelogsRequest.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.ListChangelogsRequest(); + 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) { @@ -19303,14 +21593,10 @@ break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { message.pageSize = reader.int32(); break; } - case 4: { + case 3: { message.pageToken = reader.string(); break; } @@ -19323,38 +21609,35 @@ }; /** - * Decodes a ListChangelogsRequest 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.ListChangelogsRequest + * @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.ListChangelogsRequest} ListChangelogsRequest + * @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 */ - ListChangelogsRequest.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 ListChangelogsRequest message. + * Verifies a ListDeploymentsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @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 */ - ListChangelogsRequest.verify = function verify(message) { + ListDeploymentsRequest.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"; @@ -19365,21 +21648,19 @@ }; /** - * Creates a ListChangelogsRequest 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.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} ListChangelogsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest */ - ListChangelogsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListChangelogsRequest) + 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.ListChangelogsRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(); 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) @@ -19388,28 +21669,25 @@ }; /** - * Creates a plain object from a ListChangelogsRequest 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.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListChangelogsRequest} message ListChangelogsRequest + * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} message ListDeploymentsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsRequest.toObject = function toObject(message, options) { + ListDeploymentsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; 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")) @@ -19418,54 +21696,54 @@ }; /** - * Converts this ListChangelogsRequest to JSON. + * Converts this ListDeploymentsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @instance * @returns {Object.} JSON object */ - ListChangelogsRequest.prototype.toJSON = function toJSON() { + ListDeploymentsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListChangelogsRequest + * Gets the default type url for ListDeploymentsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListChangelogsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDeploymentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListChangelogsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListDeploymentsRequest"; }; - return ListChangelogsRequest; + return ListDeploymentsRequest; })(); - v3.ListChangelogsResponse = (function() { + v3.ListDeploymentsResponse = (function() { /** - * Properties of a ListChangelogsResponse. + * Properties of a ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListChangelogsResponse - * @property {Array.|null} [changelogs] ListChangelogsResponse changelogs - * @property {string|null} [nextPageToken] ListChangelogsResponse nextPageToken + * @interface IListDeploymentsResponse + * @property {Array.|null} [deployments] ListDeploymentsResponse deployments + * @property {string|null} [nextPageToken] ListDeploymentsResponse nextPageToken */ /** - * Constructs a new ListChangelogsResponse. + * Constructs a new ListDeploymentsResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListChangelogsResponse. - * @implements IListChangelogsResponse + * @classdesc Represents a ListDeploymentsResponse. + * @implements IListDeploymentsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set */ - function ListChangelogsResponse(properties) { - this.changelogs = []; + function ListDeploymentsResponse(properties) { + this.deployments = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19473,88 +21751,88 @@ } /** - * ListChangelogsResponse changelogs. - * @member {Array.} changelogs - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * ListDeploymentsResponse deployments. + * @member {Array.} deployments + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @instance */ - ListChangelogsResponse.prototype.changelogs = $util.emptyArray; + ListDeploymentsResponse.prototype.deployments = $util.emptyArray; /** - * ListChangelogsResponse nextPageToken. + * ListDeploymentsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @instance */ - ListChangelogsResponse.prototype.nextPageToken = ""; + ListDeploymentsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListChangelogsResponse instance using the specified properties. + * Creates a new ListDeploymentsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse instance + * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse instance */ - ListChangelogsResponse.create = function create(properties) { - return new ListChangelogsResponse(properties); + ListDeploymentsResponse.create = function create(properties) { + return new ListDeploymentsResponse(properties); }; /** - * Encodes the specified ListChangelogsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.verify|verify} messages. + * 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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse} message ListChangelogsResponse 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 */ - ListChangelogsResponse.encode = function encode(message, writer) { + ListDeploymentsResponse.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.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 ListChangelogsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListChangelogsResponse.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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListChangelogsResponse} message ListChangelogsResponse 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 */ - ListChangelogsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDeploymentsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListChangelogsResponse 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.ListChangelogsResponse + * @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.ListChangelogsResponse} ListChangelogsResponse + * @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 */ - ListChangelogsResponse.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.ListChangelogsResponse(); + 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: { - if (!(message.changelogs && message.changelogs.length)) - message.changelogs = []; - message.changelogs.push($root.google.cloud.dialogflow.cx.v3.Changelog.decode(reader, reader.uint32())); + 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: { @@ -19570,39 +21848,39 @@ }; /** - * Decodes a ListChangelogsResponse 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.ListChangelogsResponse + * @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.ListChangelogsResponse} ListChangelogsResponse + * @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 */ - ListChangelogsResponse.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 ListChangelogsResponse message. + * Verifies a ListDeploymentsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @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 */ - ListChangelogsResponse.verify = function verify(message) { + ListDeploymentsResponse.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 (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 "changelogs." + error; + return "deployments." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -19612,25 +21890,25 @@ }; /** - * Creates a ListChangelogsResponse 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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} ListChangelogsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse */ - ListChangelogsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListChangelogsResponse) + 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.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]); + 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) @@ -19639,26 +21917,26 @@ }; /** - * Creates a plain object from a ListChangelogsResponse 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.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListChangelogsResponse} message ListChangelogsResponse + * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} message ListDeploymentsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListChangelogsResponse.toObject = function toObject(message, options) { + ListDeploymentsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.changelogs = []; + object.deployments = []; 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.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; @@ -19666,52 +21944,52 @@ }; /** - * Converts this ListChangelogsResponse to JSON. + * Converts this ListDeploymentsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @instance * @returns {Object.} JSON object */ - ListChangelogsResponse.prototype.toJSON = function toJSON() { + ListDeploymentsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListChangelogsResponse + * Gets the default type url for ListDeploymentsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListChangelogsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListChangelogsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDeploymentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListChangelogsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListDeploymentsResponse"; }; - return ListChangelogsResponse; + return ListDeploymentsResponse; })(); - v3.GetChangelogRequest = (function() { + v3.GetDeploymentRequest = (function() { /** - * Properties of a GetChangelogRequest. + * Properties of a GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetChangelogRequest - * @property {string|null} [name] GetChangelogRequest name + * @interface IGetDeploymentRequest + * @property {string|null} [name] GetDeploymentRequest name */ /** - * Constructs a new GetChangelogRequest. + * Constructs a new GetDeploymentRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetChangelogRequest. - * @implements IGetChangelogRequest + * @classdesc Represents a GetDeploymentRequest. + * @implements IGetDeploymentRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set */ - function GetChangelogRequest(properties) { + function GetDeploymentRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19719,35 +21997,35 @@ } /** - * GetChangelogRequest name. + * GetDeploymentRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @instance */ - GetChangelogRequest.prototype.name = ""; + GetDeploymentRequest.prototype.name = ""; /** - * Creates a new GetChangelogRequest instance using the specified properties. + * Creates a new GetDeploymentRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @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.IGetDeploymentRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest instance */ - GetChangelogRequest.create = function create(properties) { - return new GetChangelogRequest(properties); + GetDeploymentRequest.create = function create(properties) { + return new GetDeploymentRequest(properties); }; /** - * Encodes the specified GetChangelogRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.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.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} message GetChangelogRequest 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 */ - GetChangelogRequest.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")) @@ -19756,33 +22034,33 @@ }; /** - * Encodes the specified GetChangelogRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetChangelogRequest.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.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetChangelogRequest} message GetChangelogRequest 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 */ - GetChangelogRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetChangelogRequest 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.GetChangelogRequest + * @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.GetChangelogRequest} GetChangelogRequest + * @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 */ - GetChangelogRequest.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.GetChangelogRequest(); + 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) { @@ -19799,30 +22077,30 @@ }; /** - * Decodes a GetChangelogRequest 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.GetChangelogRequest + * @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.GetChangelogRequest} GetChangelogRequest + * @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 */ - GetChangelogRequest.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 GetChangelogRequest message. + * Verifies a GetDeploymentRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @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 */ - GetChangelogRequest.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")) @@ -19832,32 +22110,32 @@ }; /** - * Creates a GetChangelogRequest 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.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetChangelogRequest} GetChangelogRequest + * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest */ - GetChangelogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetChangelogRequest) + 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.GetChangelogRequest(); + 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 a GetChangelogRequest 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.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetChangelogRequest} message GetChangelogRequest + * @param {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} message GetDeploymentRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetChangelogRequest.toObject = function toObject(message, options) { + GetDeploymentRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -19869,58 +22147,261 @@ }; /** - * Converts this GetChangelogRequest to JSON. + * Converts this GetDeploymentRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @instance * @returns {Object.} JSON object */ - GetChangelogRequest.prototype.toJSON = function toJSON() { + GetDeploymentRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetChangelogRequest + * Gets the default type url for GetDeploymentRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetChangelogRequest + * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetChangelogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetChangelogRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetDeploymentRequest"; }; - return GetChangelogRequest; + return GetDeploymentRequest; })(); - v3.Changelog = (function() { + v3.EntityTypes = (function() { /** - * Properties of a Changelog. + * Constructs a new EntityTypes service. * @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 + * @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.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 {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.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.ListEntityTypesResponse} [response] ListEntityTypesResponse */ /** - * Constructs a new Changelog. + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @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 + * @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" }); + + /** + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @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.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.EntityType} [response] EntityType + */ + + /** + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @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 + * @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" }); + + /** + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * @instance + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest 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 + * @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.EntityType = (function() { + + /** + * Properties of an EntityType. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a Changelog. - * @implements IChangelog + * @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 EntityType. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents an EntityType. + * @implements IEntityType * @constructor - * @param {google.cloud.dialogflow.cx.v3.IChangelog=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set */ - function Changelog(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) @@ -19928,130 +22409,142 @@ } /** - * Changelog name. + * EntityType name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.name = ""; + EntityType.prototype.name = ""; /** - * Changelog userEmail. - * @member {string} userEmail - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * EntityType displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.userEmail = ""; + EntityType.prototype.displayName = ""; /** - * Changelog displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * EntityType kind. + * @member {google.cloud.dialogflow.cx.v3.EntityType.Kind} kind + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.displayName = ""; + EntityType.prototype.kind = 0; /** - * Changelog action. - * @member {string} action - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * EntityType autoExpansionMode. + * @member {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode} autoExpansionMode + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.action = ""; + EntityType.prototype.autoExpansionMode = 0; /** - * Changelog type. - * @member {string} type - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * EntityType entities. + * @member {Array.} entities + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.type = ""; + EntityType.prototype.entities = $util.emptyArray; /** - * Changelog resource. - * @member {string} resource - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * EntityType excludedPhrases. + * @member {Array.} excludedPhrases + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.resource = ""; + EntityType.prototype.excludedPhrases = $util.emptyArray; /** - * Changelog createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * EntityType enableFuzzyExtraction. + * @member {boolean} enableFuzzyExtraction + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance */ - Changelog.prototype.createTime = null; + EntityType.prototype.enableFuzzyExtraction = false; /** - * Creates a new Changelog instance using the specified properties. + * 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.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @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.IEntityType=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType instance */ - Changelog.create = function create(properties) { - return new Changelog(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified Changelog message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.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.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IChangelog} message Changelog 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 */ - Changelog.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.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); + 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 Changelog message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Changelog.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.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.IChangelog} message Changelog 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 */ - Changelog.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Changelog 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.Changelog + * @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.Changelog} Changelog + * @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 */ - Changelog.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.Changelog(); + 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) { @@ -20060,27 +22553,35 @@ break; } case 2: { - message.userEmail = reader.string(); + message.displayName = reader.string(); break; } - case 7: { - message.displayName = reader.string(); + case 3: { + message.kind = reader.int32(); break; } - case 11: { - message.action = reader.string(); + case 4: { + message.autoExpansionMode = reader.int32(); break; } - case 8: { - message.type = reader.string(); + 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 3: { - message.resource = reader.string(); + 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 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 7: { + message.enableFuzzyExtraction = reader.bool(); + break; + } + case 9: { + message.redact = reader.bool(); break; } default: @@ -20092,657 +22593,535 @@ }; /** - * Decodes a Changelog 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.Changelog + * @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.Changelog} Changelog + * @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 */ - Changelog.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 Changelog message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @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 */ - Changelog.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.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.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 Changelog 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.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Changelog} Changelog + * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType */ - Changelog.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Changelog) + 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.Changelog(); + var message = new $root.google.cloud.dialogflow.cx.v3.EntityType(); 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); + switch (object.kind) { + default: + if (typeof object.kind === "number") { + message.kind = object.kind; + break; + } + break; + 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) { + default: + if (typeof object.autoExpansionMode === "number") { + message.autoExpansionMode = object.autoExpansionMode; + break; + } + break; + 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 Changelog 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.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static - * @param {google.cloud.dialogflow.cx.v3.Changelog} message Changelog + * @param {google.cloud.dialogflow.cx.v3.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Changelog.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.userEmail = ""; - object.resource = ""; - object.createTime = null; object.displayName = ""; - object.type = ""; - object.action = ""; + 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.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.kind != null && message.hasOwnProperty("kind")) + object.kind = options.enums === String ? $root.google.cloud.dialogflow.cx.v3.EntityType.Kind[message.kind] === undefined ? message.kind : $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] === undefined ? message.autoExpansionMode : $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 Changelog to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @instance * @returns {Object.} JSON object */ - Changelog.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Changelog + * Gets the default type url for EntityType * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Changelog + * @memberof google.cloud.dialogflow.cx.v3.EntityType * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Changelog.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EntityType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Changelog"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EntityType"; }; - 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 + * 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 */ - function Deployments(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Deployments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Deployments; + 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; + })(); /** - * 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. + * 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 */ - 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; - })(); - - v3.Deployment = (function() { - - /** - * 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 - */ - Deployment.prototype.name = ""; + 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; + })(); - /** - * Deployment flowVersion. - * @member {string} flowVersion - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.flowVersion = ""; + EntityType.Entity = (function() { - /** - * Deployment state. - * @member {google.cloud.dialogflow.cx.v3.Deployment.State} state - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.state = 0; + /** + * 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 + */ - /** - * 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; + /** + * 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]]; + } - /** - * Deployment startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.startTime = null; + /** + * Entity value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @instance + */ + Entity.prototype.value = ""; - /** - * Deployment endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - */ - Deployment.prototype.endTime = null; + /** + * Entity synonyms. + * @member {Array.} synonyms + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @instance + */ + Entity.prototype.synonyms = $util.emptyArray; - /** - * Creates a new Deployment instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeployment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment instance - */ - Deployment.create = function create(properties) { - return new Deployment(properties); - }; + /** + * 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 Deployment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @static - * @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 - */ - Deployment.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(); - return writer; - }; + /** + * 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 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.Deployment - * @static - * @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 - */ - Deployment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * 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 a Deployment message from the specified reader or buffer. - * @function decode - * @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.Deployment} Deployment - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.flowVersion = reader.string(); - 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()); + /** + * 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; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a Deployment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.Deployment} Deployment - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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 a Deployment message. - * @function verify - * @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 - */ - Deployment.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; + /** + * 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"; } - 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; - } - return null; - }; + return null; + }; - /** - * Creates a Deployment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Deployment} Deployment - */ - 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.Deployment(); - if (object.name != null) - message.name = String(object.name); - if (object.flowVersion != null) - message.flowVersion = String(object.flowVersion); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; + /** + * 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]); } - break; - 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); - } - return message; - }; + return message; + }; - /** - * Creates a plain object from a Deployment message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment} message Deployment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Deployment.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; - } - 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] === undefined ? message.state : $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; - }; + /** + * 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 Deployment to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @instance - * @returns {Object.} JSON object - */ - Deployment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * 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); + }; - /** - * Gets the default type url for Deployment - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Deployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Deployment"; - }; + /** + * Gets the default type url for Entity + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Entity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EntityType.Entity"; + }; - /** - * 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; + return Entity; })(); - Deployment.Result = (function() { + EntityType.ExcludedPhrase = (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 + * Properties of an ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @interface IExcludedPhrase + * @property {string|null} [value] ExcludedPhrase value */ /** - * Constructs a new Result. - * @memberof google.cloud.dialogflow.cx.v3.Deployment - * @classdesc Represents a Result. - * @implements IResult + * Constructs a new ExcludedPhrase. + * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @classdesc Represents an ExcludedPhrase. + * @implements IExcludedPhrase * @constructor - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set */ - function Result(properties) { - this.deploymentTestResults = []; + function ExcludedPhrase(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20750,92 +23129,75 @@ } /** - * 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 + * ExcludedPhrase value. + * @member {string} value + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @instance */ - Result.prototype.experiment = ""; + ExcludedPhrase.prototype.value = ""; /** - * Creates a new Result instance using the specified properties. + * Creates a new ExcludedPhrase instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result instance + * @param {google.cloud.dialogflow.cx.v3.EntityType.IExcludedPhrase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase instance */ - Result.create = function create(properties) { - return new Result(properties); + ExcludedPhrase.create = function create(properties) { + return new ExcludedPhrase(properties); }; /** - * Encodes the specified Result message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. + * 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.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult} message Result message or plain object to encode + * @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 */ - Result.encode = function encode(message, writer) { + ExcludedPhrase.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); return writer; }; /** - * Encodes the specified Result message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.Deployment.Result.verify|verify} messages. + * 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.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.IResult} message Result message or plain object to encode + * @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 */ - Result.encodeDelimited = function encodeDelimited(message, writer) { + ExcludedPhrase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Result message from the specified reader or buffer. + * Decodes an ExcludedPhrase message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @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.Deployment.Result} Result + * @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 */ - Result.decode = function decode(reader, length) { + 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.Deployment.Result(); + 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: { - if (!(message.deploymentTestResults && message.deploymentTestResults.length)) - message.deploymentTestResults = []; - message.deploymentTestResults.push(reader.string()); - break; - } - case 2: { - message.experiment = reader.string(); + message.value = reader.string(); break; } default: @@ -20847,148 +23209,128 @@ }; /** - * Decodes a Result message from the specified reader or buffer, length delimited. + * Decodes an ExcludedPhrase message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @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.Deployment.Result} Result + * @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 */ - Result.decodeDelimited = function decodeDelimited(reader) { + ExcludedPhrase.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Result message. + * Verifies an ExcludedPhrase message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @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 */ - Result.verify = function verify(message) { + ExcludedPhrase.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"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a Result message from a plain object. Also converts values to their respective internal types. + * Creates an ExcludedPhrase message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Deployment.Result} Result + * @returns {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} ExcludedPhrase */ - Result.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.Deployment.Result) + 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.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); + 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 a Result message. Also converts values to other types if specified. + * Creates a plain object from an ExcludedPhrase message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static - * @param {google.cloud.dialogflow.cx.v3.Deployment.Result} message Result + * @param {google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase} message ExcludedPhrase * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Result.toObject = function toObject(message, options) { + ExcludedPhrase.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; + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this Result to JSON. + * Converts this ExcludedPhrase to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @instance * @returns {Object.} JSON object */ - Result.prototype.toJSON = function toJSON() { + ExcludedPhrase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Result + * Gets the default type url for ExcludedPhrase * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Deployment.Result + * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExcludedPhrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Deployment.Result"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase"; }; - return Result; + return ExcludedPhrase; })(); - return Deployment; + return EntityType; })(); - v3.ListDeploymentsRequest = (function() { + v3.ListEntityTypesRequest = (function() { /** - * Properties of a ListDeploymentsRequest. + * Properties of a ListEntityTypesRequest. * @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 + * @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.v3 - * @classdesc Represents a ListDeploymentsRequest. - * @implements IListDeploymentsRequest + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.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) @@ -20996,90 +23338,100 @@ } /** - * ListDeploymentsRequest parent. + * ListEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ - ListDeploymentsRequest.prototype.parent = ""; + ListEntityTypesRequest.prototype.parent = ""; /** - * ListDeploymentsRequest pageSize. + * ListEntityTypesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @instance + */ + ListEntityTypesRequest.prototype.languageCode = ""; + + /** + * ListEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance */ - ListDeploymentsRequest.prototype.pageSize = 0; + ListEntityTypesRequest.prototype.pageSize = 0; /** - * ListDeploymentsRequest pageToken. + * ListEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.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.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @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.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.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.v3.ListDeploymentsRequest.verify|verify} messages. + * 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.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} message ListDeploymentsRequest 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 */ - 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.v3.ListDeploymentsRequest.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.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsRequest} message ListDeploymentsRequest 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 */ - 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.v3.ListDeploymentsRequest + * @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.ListDeploymentsRequest} ListDeploymentsRequest + * @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 */ - 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.v3.ListDeploymentsRequest(); + 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) { @@ -21088,10 +23440,14 @@ 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; } @@ -21104,35 +23460,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.v3.ListDeploymentsRequest + * @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.ListDeploymentsRequest} ListDeploymentsRequest + * @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 */ - 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.v3.ListDeploymentsRequest + * @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 */ - 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"; @@ -21143,19 +23502,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.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} ListDeploymentsRequest + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest */ - ListDeploymentsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest) + 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.ListDeploymentsRequest(); + 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) @@ -21164,25 +23525,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.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} message ListDeploymentsRequest + * @param {google.cloud.dialogflow.cx.v3.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")) @@ -21191,54 +23555,54 @@ }; /** - * Converts this ListDeploymentsRequest to JSON. + * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ - ListDeploymentsRequest.prototype.toJSON = function toJSON() { + ListEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDeploymentsRequest + * Gets the default type url for ListEntityTypesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsRequest + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDeploymentsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListDeploymentsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListEntityTypesRequest"; }; - return ListDeploymentsRequest; + return ListEntityTypesRequest; })(); - v3.ListDeploymentsResponse = (function() { + v3.ListEntityTypesResponse = (function() { /** - * Properties of a ListDeploymentsResponse. + * Properties of a ListEntityTypesResponse. * @memberof google.cloud.dialogflow.cx.v3 - * @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.v3 - * @classdesc Represents a ListDeploymentsResponse. - * @implements IListDeploymentsResponse + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.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) @@ -21246,88 +23610,88 @@ } /** - * ListDeploymentsResponse deployments. - * @member {Array.} deployments - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance */ - ListDeploymentsResponse.prototype.deployments = $util.emptyArray; + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; /** - * ListDeploymentsResponse nextPageToken. + * ListEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.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.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @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.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.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.v3.ListDeploymentsResponse.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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse} message ListDeploymentsResponse 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 */ - 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.v3.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.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 ListDeploymentsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListDeploymentsResponse.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.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.IListDeploymentsResponse} message ListDeploymentsResponse 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 */ - 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.v3.ListDeploymentsResponse + * @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.ListDeploymentsResponse} ListDeploymentsResponse + * @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 */ - 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.v3.ListDeploymentsResponse(); + 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: { - if (!(message.deployments && message.deployments.length)) - message.deployments = []; - message.deployments.push($root.google.cloud.dialogflow.cx.v3.Deployment.decode(reader, reader.uint32())); + 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: { @@ -21343,39 +23707,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.v3.ListDeploymentsResponse + * @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.ListDeploymentsResponse} ListDeploymentsResponse + * @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 */ - 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.v3.ListDeploymentsResponse + * @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 */ - 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.v3.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.v3.EntityType.verify(message.entityTypes[i]); if (error) - return "deployments." + error; + return "entityTypes." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -21385,25 +23749,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.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} ListDeploymentsResponse + * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse */ - ListDeploymentsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse) + 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.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]); + 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) @@ -21412,26 +23776,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.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static - * @param {google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} message ListDeploymentsResponse + * @param {google.cloud.dialogflow.cx.v3.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.v3.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.v3.EntityType.toObject(message.entityTypes[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -21439,52 +23803,53 @@ }; /** - * Converts this ListDeploymentsResponse to JSON. + * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ - ListDeploymentsResponse.prototype.toJSON = function toJSON() { + ListEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDeploymentsResponse + * Gets the default type url for ListEntityTypesResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListDeploymentsResponse + * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDeploymentsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListDeploymentsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListEntityTypesResponse"; }; - return ListDeploymentsResponse; + return ListEntityTypesResponse; })(); - v3.GetDeploymentRequest = (function() { + v3.GetEntityTypeRequest = (function() { /** - * Properties of a GetDeploymentRequest. + * Properties of a GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @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 GetDeploymentRequest. + * Constructs a new GetEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetDeploymentRequest. - * @implements IGetDeploymentRequest + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set */ - function GetDeploymentRequest(properties) { + function GetEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21492,70 +23857,80 @@ } /** - * GetDeploymentRequest name. + * GetEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance */ - GetDeploymentRequest.prototype.name = ""; + GetEntityTypeRequest.prototype.name = ""; /** - * Creates a new GetDeploymentRequest instance using the specified properties. + * GetEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * @instance + */ + GetEntityTypeRequest.prototype.languageCode = ""; + + /** + * Creates a new GetEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest instance + * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest instance */ - GetDeploymentRequest.create = function create(properties) { - return new GetDeploymentRequest(properties); + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); }; /** - * Encodes the specified GetDeploymentRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} message GetDeploymentRequest 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 */ - GetDeploymentRequest.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.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified GetDeploymentRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.GetDeploymentRequest.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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IGetDeploymentRequest} message GetDeploymentRequest 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 */ - GetDeploymentRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDeploymentRequest 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.GetDeploymentRequest + * @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.GetDeploymentRequest} GetDeploymentRequest + * @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 */ - GetDeploymentRequest.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.GetDeploymentRequest(); + 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) { @@ -21563,6 +23938,10 @@ message.name = reader.string(); break; } + case 2: { + message.languageCode = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21572,331 +23951,388 @@ }; /** - * Decodes a GetDeploymentRequest 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.GetDeploymentRequest + * @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.GetDeploymentRequest} GetDeploymentRequest + * @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 */ - GetDeploymentRequest.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 GetDeploymentRequest message. + * Verifies a GetEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @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 */ - GetDeploymentRequest.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.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 GetEntityTypeRequest 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.GetEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} GetDeploymentRequest + * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest */ - GetDeploymentRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.GetDeploymentRequest) + 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.GetDeploymentRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3.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 GetDeploymentRequest 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.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.GetDeploymentRequest} message GetDeploymentRequest + * @param {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} message GetEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDeploymentRequest.toObject = function toObject(message, options) { + GetEntityTypeRequest.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 GetDeploymentRequest to JSON. + * Converts this GetEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetDeploymentRequest.prototype.toJSON = function toJSON() { + GetEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDeploymentRequest + * Gets the default type url for GetEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetDeploymentRequest + * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDeploymentRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetDeploymentRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetEntityTypeRequest"; }; - return GetDeploymentRequest; + return GetEntityTypeRequest; })(); - v3.EntityTypes = (function() { + v3.CreateEntityTypeRequest = (function() { /** - * Constructs a new EntityTypes service. + * Properties of a CreateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @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.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 {EntityTypes} RPC service. Useful where requests and/or responses are streamed. + * @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 */ - EntityTypes.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 - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} [response] ListEntityTypesResponse + * Constructs a new CreateEntityTypeRequest. + * @memberof google.cloud.dialogflow.cx.v3 + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set */ + function CreateEntityTypeRequest(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 ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * CreateEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @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 - * @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" }); + CreateEntityTypeRequest.prototype.parent = ""; /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * CreateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @instance - * @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.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.EntityType} [response] EntityType */ + CreateEntityTypeRequest.prototype.entityType = null; /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * CreateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @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 - * @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" }); + CreateEntityTypeRequest.prototype.languageCode = ""; /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes - * @instance - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CreateEntityTypeRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); + }; /** - * 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 + * 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.CreateEntityTypeRequest + * @static + * @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 */ + CreateEntityTypeRequest.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); + return writer; + }; /** - * 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 + * 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.CreateEntityTypeRequest + * @static + * @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 */ - 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" }); + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * 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 + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * @function decode + * @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.CreateEntityTypeRequest} CreateEntityTypeRequest + * @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) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + 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(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * 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 + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @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.CreateEntityTypeRequest} CreateEntityTypeRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * 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 + * Verifies a CreateEntityTypeRequest message. + * @function verify + * @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 */ - 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" }); + CreateEntityTypeRequest.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 (error) + return "entityType." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; /** - * 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 + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest */ + 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.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; + }; /** - * 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 + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @static + * @param {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CreateEntityTypeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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.v3.EntityType.toObject(message.entityType, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.dialogflow.cx.v3.EntityTypes + * Converts this CreateEntityTypeRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest * @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 + * @returns {Object.} JSON object */ - 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" }); + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * 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 + * Gets the default type url for CreateEntityTypeRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest"; + }; - return EntityTypes; + return CreateEntityTypeRequest; })(); - v3.EntityType = (function() { + v3.UpdateEntityTypeRequest = (function() { /** - * Properties of an EntityType. + * Properties of an UpdateEntityTypeRequest. * @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 + * @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 EntityType. + * Constructs a new UpdateEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an EntityType. - * @implements IEntityType + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IEntityType=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.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) @@ -21904,179 +24340,103 @@ } /** - * EntityType name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @instance - */ - EntityType.prototype.name = ""; - - /** - * EntityType displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @instance - */ - EntityType.prototype.displayName = ""; - - /** - * EntityType kind. - * @member {google.cloud.dialogflow.cx.v3.EntityType.Kind} kind - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @instance - */ - EntityType.prototype.kind = 0; - - /** - * EntityType autoExpansionMode. - * @member {google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode} autoExpansionMode - * @memberof google.cloud.dialogflow.cx.v3.EntityType - * @instance - */ - EntityType.prototype.autoExpansionMode = 0; - - /** - * 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 + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ - EntityType.prototype.excludedPhrases = $util.emptyArray; + UpdateEntityTypeRequest.prototype.entityType = null; /** - * EntityType enableFuzzyExtraction. - * @member {boolean} enableFuzzyExtraction - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * UpdateEntityTypeRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance */ - EntityType.prototype.enableFuzzyExtraction = false; + UpdateEntityTypeRequest.prototype.languageCode = ""; /** - * EntityType redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3.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.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @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.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.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.v3.EntityType.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.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType 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 */ - 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.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.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 EntityType message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.EntityType.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.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IEntityType} message EntityType 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 */ - 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.v3.EntityType + * @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.EntityType} EntityType + * @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 */ - 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.v3.EntityType(); + 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.name = reader.string(); + message.entityType = $root.google.cloud.dialogflow.cx.v3.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.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(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -22088,744 +24448,150 @@ }; /** - * 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.v3.EntityType + * @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.EntityType} EntityType + * @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 */ - 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.v3.EntityType + * @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 */ - 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.v3.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.v3.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.v3.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.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.EntityType} EntityType + * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.EntityType) + 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.EntityType(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.kind) { - default: - if (typeof object.kind === "number") { - message.kind = object.kind; - break; - } - break; - 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) { - default: - if (typeof object.autoExpansionMode === "number") { - message.autoExpansionMode = object.autoExpansionMode; - break; - } - break; - 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]); - } + 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.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.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); } - 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.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.EntityType} message EntityType + * @param {google.cloud.dialogflow.cx.v3.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.v3.EntityType.Kind[message.kind] === undefined ? message.kind : $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] === undefined ? message.autoExpansionMode : $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); + 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.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 EntityType to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - EntityType.prototype.toJSON = function toJSON() { + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EntityType + * Gets the default type url for UpdateEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.EntityType + * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EntityType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EntityType"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest"; }; - /** - * 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() { - - /** - * 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); - }; - - /** - * Gets the default type url for Entity - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.EntityType.Entity - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Entity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EntityType.Entity"; - }; - - 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); - }; - - /** - * Gets the default type url for ExcludedPhrase - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExcludedPhrase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase"; - }; - - return ExcludedPhrase; - })(); - - return EntityType; + return UpdateEntityTypeRequest; })(); - v3.ListEntityTypesRequest = (function() { + v3.DeleteEntityTypeRequest = (function() { /** - * Properties of a ListEntityTypesRequest. + * Properties of a DeleteEntityTypeRequest. * @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 IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new DeleteEntityTypeRequest. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set */ - function ListEntityTypesRequest(properties) { + function DeleteEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22833,117 +24599,89 @@ } /** - * ListEntityTypesRequest 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 - * @instance - */ - ListEntityTypesRequest.prototype.languageCode = ""; - - /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * DeleteEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance */ - ListEntityTypesRequest.prototype.pageSize = 0; + DeleteEntityTypeRequest.prototype.name = ""; /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance */ - ListEntityTypesRequest.prototype.pageToken = ""; + DeleteEntityTypeRequest.prototype.force = false; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @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.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.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.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest 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 */ - ListEntityTypesRequest.encode = function encode(message, writer) { + DeleteEntityTypeRequest.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.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 ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3.ListEntityTypesRequest.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.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesRequest} message ListEntityTypesRequest 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 */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesRequest 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.ListEntityTypesRequest + * @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.ListEntityTypesRequest} ListEntityTypesRequest + * @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 */ - ListEntityTypesRequest.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.ListEntityTypesRequest(); + 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: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.languageCode = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); + message.force = reader.bool(); break; } default: @@ -22955,983 +24693,633 @@ }; /** - * Decodes a ListEntityTypesRequest 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.ListEntityTypesRequest + * @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.ListEntityTypesRequest} ListEntityTypesRequest + * @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 */ - ListEntityTypesRequest.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 ListEntityTypesRequest message. + * Verifies a DeleteEntityTypeRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @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 */ - ListEntityTypesRequest.verify = function verify(message) { + DeleteEntityTypeRequest.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"; + 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 ListEntityTypesRequest 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.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest) + 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.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); + 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 ListEntityTypesRequest 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.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static - * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} message DeleteEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesRequest.toObject = function toObject(message, options) { + DeleteEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.languageCode = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.force = 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @instance * @returns {Object.} JSON object */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListEntityTypesRequest + * Gets the default type url for DeleteEntityTypeRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesRequest + * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListEntityTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListEntityTypesRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest"; }; - return ListEntityTypesRequest; + return DeleteEntityTypeRequest; })(); - v3.ListEntityTypesResponse = (function() { - - /** - * Properties of a ListEntityTypesResponse. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken - */ + v3.Environments = (function() { /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new Environments service. * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents an Environments + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [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 ListEntityTypesResponse(properties) { - this.entityTypes = []; - 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 Environments(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse - * @instance - */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; - - /** - * ListEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse - * @instance - */ - ListEntityTypesResponse.prototype.nextPageToken = ""; + (Environments.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Environments; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates new Environments service using the specified rpc implementation. * @function create - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * @memberof google.cloud.dialogflow.cx.v3.Environments * @static - * @param {google.cloud.dialogflow.cx.v3.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse 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 {Environments} RPC service. Useful where requests and/or responses are streamed. */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); + Environments.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * 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.ListEntityTypesResponse - * @static - * @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 + * 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 */ - ListEntityTypesResponse.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.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. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse - * @static - * @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 + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @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 */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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" }); /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. - * @function decode - * @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.ListEntityTypesResponse} ListEntityTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListEnvironments. + * @function listEnvironments + * @memberof google.cloud.dialogflow.cx.v3.Environments + * @instance + * @param {google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest} request ListEnvironmentsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - 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.ListEntityTypesResponse(); - 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())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.ListEntityTypesResponse} ListEntityTypesResponse - * @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.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 */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListEntityTypesResponse message. - * @function verify - * @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 + * 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 + * @param {google.cloud.dialogflow.cx.v3.Environments.GetEnvironmentCallback} callback Node-style callback called with the error, if any, and Environment + * @returns {undefined} + * @variation 1 */ - ListEntityTypesResponse.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 (error) - return "entityTypes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + 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" }); /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} ListEntityTypesResponse + * 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 */ - 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.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 ListEntityTypesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse - * @static - * @param {google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} message ListEntityTypesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - ListEntityTypesResponse.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.v3.EntityType.toObject(message.entityTypes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this ListEntityTypesResponse to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse + * Calls CreateEnvironment. + * @function createEnvironment + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @returns {Object.} JSON object + * @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 */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + 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" }); /** - * Gets the default type url for ListEntityTypesResponse - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.ListEntityTypesResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * 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 */ - ListEntityTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.ListEntityTypesResponse"; - }; - - return ListEntityTypesResponse; - })(); - - v3.GetEntityTypeRequest = (function() { /** - * Properties of a GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name - * @property {string|null} [languageCode] GetEntityTypeRequest languageCode + * 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 */ /** - * Constructs a new GetEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.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.v3.GetEntityTypeRequest + * 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 */ - GetEntityTypeRequest.prototype.name = ""; + 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" }); /** - * GetEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest + * 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 */ - GetEntityTypeRequest.prototype.languageCode = ""; - - /** - * Creates a new GetEntityTypeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.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.v3.GetEntityTypeRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest - * @static - * @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 - */ - 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.v3.GetEntityTypeRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest - * @static - * @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 - */ - 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.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.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.v3.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.v3.GetEntityTypeRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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 + * 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 */ - 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.v3.GetEntityTypeRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * 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 + * @param {google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironmentCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - 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; - }; + 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" }); /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} GetEntityTypeRequest + * 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 */ - 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.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.v3.GetEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} message GetEntityTypeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - 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.v3.GetEntityTypeRequest + * Calls LookupEnvironmentHistory. + * @function lookupEnvironmentHistory + * @memberof google.cloud.dialogflow.cx.v3.Environments * @instance - * @returns {Object.} JSON object + * @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 */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + 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" }); /** - * Gets the default type url for GetEntityTypeRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.GetEntityTypeRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * 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 */ - GetEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.GetEntityTypeRequest"; - }; - - return GetEntityTypeRequest; - })(); - - v3.CreateEntityTypeRequest = (function() { /** - * Properties of a CreateEntityTypeRequest. - * @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 + * 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 */ /** - * Constructs a new CreateEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set + * 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 */ - function CreateEntityTypeRequest(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(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" }); /** - * CreateEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * 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 */ - CreateEntityTypeRequest.prototype.parent = ""; /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest - * @instance + * 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 */ - CreateEntityTypeRequest.prototype.entityType = null; /** - * CreateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * 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 */ - CreateEntityTypeRequest.prototype.languageCode = ""; + 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" }); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * 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 */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); - }; /** - * 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.CreateEntityTypeRequest - * @static - * @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 + * 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 */ - CreateEntityTypeRequest.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); - return writer; - }; /** - * 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.CreateEntityTypeRequest - * @static - * @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 + * 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 */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + 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" }); /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. - * @function decode - * @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.CreateEntityTypeRequest} CreateEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * 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 */ - 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.CreateEntityTypeRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - 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(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.CreateEntityTypeRequest} CreateEntityTypeRequest - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return Environments; + })(); - /** - * Verifies a CreateEntityTypeRequest message. - * @function verify - * @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 - */ - CreateEntityTypeRequest.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 (error) - return "entityType." + error; - } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; - return null; - }; + v3.Environment = (function() { /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} CreateEntityTypeRequest + * 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 + * @property {google.cloud.dialogflow.cx.v3.Environment.IWebhookConfig|null} [webhookConfig] Environment webhookConfig */ - 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.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 CreateEntityTypeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} message CreateEntityTypeRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * 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 */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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.v3.EntityType.toObject(message.entityType, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; - return object; - }; + 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]]; + } /** - * Converts this CreateEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest + * Environment name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance - * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Environment.prototype.name = ""; /** - * Gets the default type url for CreateEntityTypeRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Environment displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance */ - CreateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest"; - }; - - return CreateEntityTypeRequest; - })(); - - v3.UpdateEntityTypeRequest = (function() { + Environment.prototype.displayName = ""; /** - * 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 + * Environment description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance */ + Environment.prototype.description = ""; /** - * Constructs a new UpdateEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest=} [properties] Properties to set + * Environment versionConfigs. + * @member {Array.} versionConfigs + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @instance */ - function UpdateEntityTypeRequest(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]]; - } + Environment.prototype.versionConfigs = $util.emptyArray; /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.dialogflow.cx.v3.IEntityType|null|undefined} entityType - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * Environment updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ - UpdateEntityTypeRequest.prototype.entityType = null; + Environment.prototype.updateTime = null; /** - * UpdateEntityTypeRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * Environment testCasesConfig. + * @member {google.cloud.dialogflow.cx.v3.Environment.ITestCasesConfig|null|undefined} testCasesConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ - UpdateEntityTypeRequest.prototype.languageCode = ""; + Environment.prototype.testCasesConfig = null; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * Environment webhookConfig. + * @member {google.cloud.dialogflow.cx.v3.Environment.IWebhookConfig|null|undefined} webhookConfig + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + Environment.prototype.webhookConfig = null; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new Environment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @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.IEnvironment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + Environment.create = function create(properties) { + return new Environment(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest.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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest 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 */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + Environment.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.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.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.webhookConfig != null && Object.hasOwnProperty.call(message, "webhookConfig")) + $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.encode(message.webhookConfig, writer.uint32(/* id 10, wireType 2 =*/82).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 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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest 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 */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + Environment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.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.UpdateEntityTypeRequest(); + 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) { case 1: { - message.entityType = $root.google.cloud.dialogflow.cx.v3.EntityType.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 2: { - message.languageCode = reader.string(); + message.displayName = reader.string(); break; } case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + 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()); + break; + } + case 7: { + message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + message.webhookConfig = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.decode(reader, reader.uint32()); break; } default: @@ -23943,1169 +25331,286 @@ }; /** - * Decodes an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @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.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.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 UpdateEntityTypeRequest message. + * Verifies an Environment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @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 */ - UpdateEntityTypeRequest.verify = function verify(message) { + Environment.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.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 "entityType." + error; + return "updateTime." + 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 (message.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.verify(message.testCasesConfig); if (error) - return "updateMask." + error; + return "testCasesConfig." + error; + } + if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) { + var error = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.verify(message.webhookConfig); + if (error) + return "webhookConfig." + error; } return null; }; /** - * Creates an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest) + 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.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.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.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.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); + 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.webhookConfig != null) { + if (typeof object.webhookConfig !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.webhookConfig: object expected"); + message.webhookConfig = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.fromObject(object.webhookConfig); } return message; }; /** - * Creates a plain object from an UpdateEntityTypeRequest 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.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static - * @param {google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.dialogflow.cx.v3.Environment} message Environment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + Environment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.versionConfigs = []; if (options.defaults) { - object.entityType = null; - object.languageCode = ""; - object.updateMask = null; + object.name = ""; + object.displayName = ""; + object.description = ""; + object.updateTime = null; + object.testCasesConfig = null; + object.webhookConfig = 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.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + 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.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) + object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); + if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) + object.webhookConfig = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.toObject(message.webhookConfig, options); return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this Environment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + Environment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for Environment * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest + * @memberof google.cloud.dialogflow.cx.v3.Environment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Environment"; }; - return UpdateEntityTypeRequest; - })(); + Environment.VersionConfig = (function() { - v3.DeleteEntityTypeRequest = (function() { + /** + * Properties of a VersionConfig. + * @memberof google.cloud.dialogflow.cx.v3.Environment + * @interface IVersionConfig + * @property {string|null} [version] VersionConfig version + */ - /** - * Properties of a DeleteEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force - */ + /** + * 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]]; + } - /** - * Constructs a new DeleteEntityTypeRequest. - * @memberof google.cloud.dialogflow.cx.v3 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set - */ - 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]]; - } + /** + * VersionConfig version. + * @member {string} version + * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig + * @instance + */ + VersionConfig.prototype.version = ""; - /** - * DeleteEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.name = ""; + /** + * 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); + }; - /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @instance - */ - DeleteEntityTypeRequest.prototype.force = false; + /** + * 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; + }; - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance - */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); - }; + /** + * 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(); + }; - /** - * 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.DeleteEntityTypeRequest - * @static - * @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 - */ - 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; - }; - - /** - * 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.DeleteEntityTypeRequest - * @static - * @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 - */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. - * @function decode - * @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.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.v3.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 message; - }; - - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.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()); - }; - - /** - * Verifies a DeleteEntityTypeRequest message. - * @function verify - * @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 - */ - 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 DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} DeleteEntityTypeRequest - */ - 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.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 DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @static - * @param {google.cloud.dialogflow.cx.v3.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; - }; - - /** - * Converts this DeleteEntityTypeRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DeleteEntityTypeRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteEntityTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest"; - }; - - return DeleteEntityTypeRequest; - })(); - - v3.Environments = (function() { - - /** - * Constructs a new Environments service. - * @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. - */ - 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 - */ - - /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @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" }); - - /** - * Calls ListEnvironments. - * @function listEnvironments - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @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 - */ - - /** - * 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 - * @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" }); - - /** - * 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 - */ - - /** - * 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 - */ - - /** - * 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 - */ - 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 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 - */ - - /** - * 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 - */ - - /** - * 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 - */ - 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 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 - */ - - /** - * 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 DeleteEnvironment. - * @function deleteEnvironment - * @memberof google.cloud.dialogflow.cx.v3.Environments - * @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 - */ - 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 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 - */ - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - /** - * 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 - */ - 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" }); - - /** - * 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 - */ - - return Environments; - })(); - - v3.Environment = (function() { - - /** - * 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 - * @property {google.cloud.dialogflow.cx.v3.Environment.IWebhookConfig|null} [webhookConfig] Environment webhookConfig - */ - - /** - * 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 - */ - 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 - * @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; - - /** - * Environment webhookConfig. - * @member {google.cloud.dialogflow.cx.v3.Environment.IWebhookConfig|null|undefined} webhookConfig - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @instance - */ - Environment.prototype.webhookConfig = null; - - /** - * Creates a new Environment instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @static - * @param {google.cloud.dialogflow.cx.v3.IEnvironment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment instance - */ - Environment.create = function create(properties) { - return new Environment(properties); - }; - - /** - * 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.Environment - * @static - * @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 - */ - 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.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.webhookConfig != null && Object.hasOwnProperty.call(message, "webhookConfig")) - $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.encode(message.webhookConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * 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.Environment - * @static - * @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 - */ - Environment.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Environment message from the specified reader or buffer. - * @function decode - * @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.Environment} Environment - * @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) { - 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(); - 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 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()); - break; - } - case 7: { - message.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - message.webhookConfig = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Environment message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.Environment} Environment - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Environment message. - * @function verify - * @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 - */ - Environment.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.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.webhookConfig != null && message.hasOwnProperty("webhookConfig")) { - var error = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.verify(message.webhookConfig); - if (error) - return "webhookConfig." + error; - } - return null; - }; - - /** - * Creates an Environment message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3.Environment} Environment - */ - 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.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.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.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.webhookConfig != null) { - if (typeof object.webhookConfig !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3.Environment.webhookConfig: object expected"); - message.webhookConfig = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.fromObject(object.webhookConfig); - } - return message; - }; - - /** - * Creates a plain object from an Environment message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @static - * @param {google.cloud.dialogflow.cx.v3.Environment} message Environment - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Environment.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; - object.webhookConfig = 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.testCasesConfig != null && message.hasOwnProperty("testCasesConfig")) - object.testCasesConfig = $root.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.toObject(message.testCasesConfig, options); - if (message.webhookConfig != null && message.hasOwnProperty("webhookConfig")) - object.webhookConfig = $root.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.toObject(message.webhookConfig, options); - return object; - }; - - /** - * Converts this Environment to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @instance - * @returns {Object.} JSON object - */ - Environment.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Environment - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Environment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3.Environment"; - }; - - Environment.VersionConfig = (function() { - - /** - * Properties of a VersionConfig. - * @memberof google.cloud.dialogflow.cx.v3.Environment - * @interface IVersionConfig - * @property {string|null} [version] VersionConfig version - */ - - /** - * 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]]; - } - - /** - * VersionConfig version. - * @member {string} version - * @memberof google.cloud.dialogflow.cx.v3.Environment.VersionConfig - * @instance - */ - VersionConfig.prototype.version = ""; - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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; - }; + /** + * 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; + }; /** * Decodes a VersionConfig message from the specified reader or buffer, length delimited. @@ -70910,6 +71415,7 @@ * Properties of an AdvancedSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 * @interface IAdvancedSettings + * @property {google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null} [audioExportGcsDestination] AdvancedSettings audioExportGcsDestination * @property {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null} [loggingSettings] AdvancedSettings loggingSettings */ @@ -70928,6 +71434,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * AdvancedSettings audioExportGcsDestination. + * @member {google.cloud.dialogflow.cx.v3beta1.IGcsDestination|null|undefined} audioExportGcsDestination + * @memberof google.cloud.dialogflow.cx.v3beta1.AdvancedSettings + * @instance + */ + AdvancedSettings.prototype.audioExportGcsDestination = null; + /** * AdvancedSettings loggingSettings. * @member {google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.ILoggingSettings|null|undefined} loggingSettings @@ -70960,6 +71474,8 @@ AdvancedSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.audioExportGcsDestination != null && Object.hasOwnProperty.call(message, "audioExportGcsDestination")) + $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.encode(message.audioExportGcsDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.loggingSettings != null && Object.hasOwnProperty.call(message, "loggingSettings")) $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.encode(message.loggingSettings, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; @@ -70996,6 +71512,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 2: { + message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.decode(reader, reader.uint32()); + break; + } case 6: { message.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.decode(reader, reader.uint32()); break; @@ -71035,6 +71555,11 @@ AdvancedSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify(message.audioExportGcsDestination); + if (error) + return "audioExportGcsDestination." + error; + } if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) { var error = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.verify(message.loggingSettings); if (error) @@ -71055,6 +71580,11 @@ if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings) return object; var message = new $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings(); + if (object.audioExportGcsDestination != null) { + if (typeof object.audioExportGcsDestination !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.audioExportGcsDestination: object expected"); + message.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.fromObject(object.audioExportGcsDestination); + } if (object.loggingSettings != null) { if (typeof object.loggingSettings !== "object") throw TypeError(".google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.loggingSettings: object expected"); @@ -71076,8 +71606,12 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { + object.audioExportGcsDestination = null; object.loggingSettings = null; + } + if (message.audioExportGcsDestination != null && message.hasOwnProperty("audioExportGcsDestination")) + object.audioExportGcsDestination = $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination.toObject(message.audioExportGcsDestination, options); if (message.loggingSettings != null && message.hasOwnProperty("loggingSettings")) object.loggingSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.toObject(message.loggingSettings, options); return object; @@ -71339,6 +71873,209 @@ return AdvancedSettings; })(); + v3beta1.GcsDestination = (function() { + + /** + * Properties of a GcsDestination. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGcsDestination + * @property {string|null} [uri] GcsDestination uri + */ + + /** + * Constructs a new GcsDestination. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GcsDestination. + * @implements IGcsDestination + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination=} [properties] Properties to set + */ + function GcsDestination(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]]; + } + + /** + * GcsDestination uri. + * @member {string} uri + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @instance + */ + GcsDestination.prototype.uri = ""; + + /** + * Creates a new GcsDestination instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination instance + */ + GcsDestination.create = function create(properties) { + return new GcsDestination(properties); + }; + + /** + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination} message GcsDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsDestination.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); + return writer; + }; + + /** + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GcsDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGcsDestination} message GcsDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcsDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcsDestination message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @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.GcsDestination} GcsDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsDestination.decode = function decode(reader, length) { + 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.GcsDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.uri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcsDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcsDestination message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcsDestination.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"; + return null; + }; + + /** + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GcsDestination} GcsDestination + */ + GcsDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GcsDestination(); + if (object.uri != null) + message.uri = String(object.uri); + return message; + }; + + /** + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GcsDestination} message GcsDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcsDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.uri = ""; + if (message.uri != null && message.hasOwnProperty("uri")) + object.uri = message.uri; + return object; + }; + + /** + * Converts this GcsDestination to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @instance + * @returns {Object.} JSON object + */ + GcsDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GcsDestination + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GcsDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcsDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GcsDestination"; + }; + + return GcsDestination; + })(); + v3beta1.Agents = (function() { /** @@ -71894,6 +72631,7 @@ * @property {boolean|null} [enableSpellCorrection] Agent enableSpellCorrection * @property {boolean|null} [locked] Agent locked * @property {google.cloud.dialogflow.cx.v3beta1.IAdvancedSettings|null} [advancedSettings] Agent advancedSettings + * @property {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null} [textToSpeechSettings] Agent textToSpeechSettings */ /** @@ -72024,6 +72762,14 @@ */ Agent.prototype.advancedSettings = null; + /** + * Agent textToSpeechSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings|null|undefined} textToSpeechSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Agent + * @instance + */ + Agent.prototype.textToSpeechSettings = null; + /** * Creates a new Agent instance using the specified properties. * @function create @@ -72077,6 +72823,8 @@ $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.encode(message.advancedSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) writer.uint32(/* id 27, wireType 0 =*/216).bool(message.locked); + if (message.textToSpeechSettings != null && Object.hasOwnProperty.call(message, "textToSpeechSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.encode(message.textToSpeechSettings, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); return writer; }; @@ -72169,6 +72917,10 @@ message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.decode(reader, reader.uint32()); break; } + case 31: { + message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -72254,6 +73006,11 @@ if (error) return "advancedSettings." + error; } + if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify(message.textToSpeechSettings); + if (error) + return "textToSpeechSettings." + error; + } return null; }; @@ -72308,6 +73065,11 @@ throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.advancedSettings: object expected"); message.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.fromObject(object.advancedSettings); } + if (object.textToSpeechSettings != null) { + if (typeof object.textToSpeechSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Agent.textToSpeechSettings: object expected"); + message.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.fromObject(object.textToSpeechSettings); + } return message; }; @@ -72340,6 +73102,7 @@ object.enableSpellCorrection = false; object.advancedSettings = null; object.locked = false; + object.textToSpeechSettings = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -72372,6 +73135,8 @@ object.advancedSettings = $root.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.toObject(message.advancedSettings, options); if (message.locked != null && message.hasOwnProperty("locked")) object.locked = message.locked; + if (message.textToSpeechSettings != null && message.hasOwnProperty("textToSpeechSettings")) + object.textToSpeechSettings = $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.toObject(message.textToSpeechSettings, options); return object; }; @@ -75386,391 +76151,71 @@ return AgentValidationResult; })(); - v3beta1.Flows = (function() { - - /** - * Constructs a new Flows service. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Flows - * @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 Flows(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (Flows.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Flows; - - /** - * Creates new Flows service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @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 {Flows} RPC service. Useful where requests and/or responses are streamed. - */ - Flows.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef CreateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow - */ - - /** - * Calls CreateFlow. - * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { - return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); - }, "name", { value: "CreateFlow" }); - - /** - * Calls CreateFlow. - * @function createFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef DeleteFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls DeleteFlow. - * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { - return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeleteFlow" }); - - /** - * Calls DeleteFlow. - * @function deleteFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|listFlows}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ListFlowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} [response] ListFlowsResponse - */ - - /** - * Calls ListFlows. - * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { - return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, request, callback); - }, "name", { value: "ListFlows" }); - - /** - * Calls ListFlows. - * @function listFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef GetFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow - */ - - /** - * Calls GetFlow. - * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { - return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); - }, "name", { value: "GetFlow" }); - - /** - * Calls GetFlow. - * @function getFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|updateFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef UpdateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow - */ - - /** - * Calls UpdateFlow. - * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { - return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); - }, "name", { value: "UpdateFlow" }); - - /** - * Calls UpdateFlow. - * @function updateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|trainFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef TrainFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls TrainFlow. - * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { - return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "TrainFlow" }); - - /** - * Calls TrainFlow. - * @function trainFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ValidateFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult - */ - - /** - * Calls ValidateFlow. - * @function validateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback} callback Node-style callback called with the error, if any, and FlowValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.validateFlow = function validateFlow(request, callback) { - return this.rpcCall(validateFlow, $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); - }, "name", { value: "ValidateFlow" }); - - /** - * Calls ValidateFlow. - * @function validateFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef GetFlowValidationResultCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult - */ - - /** - * Calls GetFlowValidationResult. - * @function getFlowValidationResult - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback} callback Node-style callback called with the error, if any, and FlowValidationResult - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.getFlowValidationResult = function getFlowValidationResult(request, callback) { - return this.rpcCall(getFlowValidationResult, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); - }, "name", { value: "GetFlowValidationResult" }); - - /** - * Calls GetFlowValidationResult. - * @function getFlowValidationResult - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ImportFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ImportFlow. - * @function importFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.importFlow = function importFlow(request, callback) { - return this.rpcCall(importFlow, $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportFlow" }); - - /** - * Calls ImportFlow. - * @function importFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @typedef ExportFlowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportFlow. - * @function exportFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Flows.prototype.exportFlow = function exportFlow(request, callback) { - return this.rpcCall(exportFlow, $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportFlow" }); - - /** - * Calls ExportFlow. - * @function exportFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.Flows - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * 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 Flows; + /** + * 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.NluSettings = (function() { + v3beta1.SpeechWordInfo = (function() { /** - * Properties of a NluSettings. + * Properties of a SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface INluSettings - * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null} [modelType] NluSettings modelType - * @property {number|null} [classificationThreshold] NluSettings classificationThreshold - * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode + * @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 NluSettings. + * Constructs a new SpeechWordInfo. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a NluSettings. - * @implements INluSettings + * @classdesc Represents a SpeechWordInfo. + * @implements ISpeechWordInfo * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set */ - function NluSettings(properties) { + function SpeechWordInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -75778,103 +76223,117 @@ } /** - * NluSettings modelType. - * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType} modelType - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * SpeechWordInfo word. + * @member {string} word + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - NluSettings.prototype.modelType = 0; + SpeechWordInfo.prototype.word = ""; /** - * NluSettings classificationThreshold. - * @member {number} classificationThreshold - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * SpeechWordInfo startOffset. + * @member {google.protobuf.IDuration|null|undefined} startOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - NluSettings.prototype.classificationThreshold = 0; + SpeechWordInfo.prototype.startOffset = null; /** - * NluSettings modelTrainingMode. - * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode} modelTrainingMode - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * SpeechWordInfo endOffset. + * @member {google.protobuf.IDuration|null|undefined} endOffset + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance */ - NluSettings.prototype.modelTrainingMode = 0; + SpeechWordInfo.prototype.endOffset = null; /** - * Creates a new NluSettings instance using the specified properties. + * 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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo instance */ - NluSettings.create = function create(properties) { - return new NluSettings(properties); + SpeechWordInfo.create = function create(properties) { + return new SpeechWordInfo(properties); }; /** - * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings 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 */ - NluSettings.encode = function encode(message, writer) { + SpeechWordInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelType != null && Object.hasOwnProperty.call(message, "modelType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); - if (message.classificationThreshold != null && Object.hasOwnProperty.call(message, "classificationThreshold")) - writer.uint32(/* id 3, wireType 5 =*/29).float(message.classificationThreshold); - if (message.modelTrainingMode != null && Object.hasOwnProperty.call(message, "modelTrainingMode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.modelTrainingMode); + 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 NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings 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 */ - NluSettings.encodeDelimited = function encodeDelimited(message, writer) { + SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NluSettings 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.NluSettings + * @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.NluSettings} NluSettings + * @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 */ - NluSettings.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.NluSettings(); + 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: { - message.modelType = reader.int32(); + message.startOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } - case 3: { - message.classificationThreshold = reader.float(); + case 2: { + message.endOffset = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; } case 4: { - message.modelTrainingMode = reader.int32(); + message.confidence = reader.float(); break; } default: @@ -75886,228 +76345,164 @@ }; /** - * Decodes a NluSettings 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.NluSettings + * @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.NluSettings} NluSettings + * @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 */ - NluSettings.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 NluSettings message. + * Verifies a SpeechWordInfo message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @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 */ - NluSettings.verify = function verify(message) { + SpeechWordInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelType != null && message.hasOwnProperty("modelType")) - switch (message.modelType) { - default: - return "modelType: enum value expected"; - case 0: - case 1: - case 3: - break; - } - if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) - if (typeof message.classificationThreshold !== "number") - return "classificationThreshold: number expected"; - if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - switch (message.modelTrainingMode) { - default: - return "modelTrainingMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } + 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 NluSettings 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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings + * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo */ - NluSettings.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.NluSettings) + 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.NluSettings(); - switch (object.modelType) { - default: - if (typeof object.modelType === "number") { - message.modelType = object.modelType; - break; - } - break; - case "MODEL_TYPE_UNSPECIFIED": - case 0: - message.modelType = 0; - break; - case "MODEL_TYPE_STANDARD": - case 1: - message.modelType = 1; - break; - case "MODEL_TYPE_ADVANCED": - case 3: - message.modelType = 3; - break; + 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.classificationThreshold != null) - message.classificationThreshold = Number(object.classificationThreshold); - switch (object.modelTrainingMode) { - default: - if (typeof object.modelTrainingMode === "number") { - message.modelTrainingMode = object.modelTrainingMode; - break; - } - break; - case "MODEL_TRAINING_MODE_UNSPECIFIED": - case 0: - message.modelTrainingMode = 0; - break; - case "MODEL_TRAINING_MODE_AUTOMATIC": - case 1: - message.modelTrainingMode = 1; - break; - case "MODEL_TRAINING_MODE_MANUAL": - case 2: - message.modelTrainingMode = 2; - 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.confidence != null) + message.confidence = Number(object.confidence); return message; }; /** - * Creates a plain object from a NluSettings 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.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static - * @param {google.cloud.dialogflow.cx.v3beta1.NluSettings} message NluSettings + * @param {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} message SpeechWordInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NluSettings.toObject = function toObject(message, options) { + SpeechWordInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; - object.classificationThreshold = 0; - object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; + object.startOffset = null; + object.endOffset = null; + object.word = ""; + object.confidence = 0; } - if (message.modelType != null && message.hasOwnProperty("modelType")) - object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] === undefined ? message.modelType : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] : message.modelType; - if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) - object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; - if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) - object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] === undefined ? message.modelTrainingMode : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; + 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 NluSettings to JSON. + * Converts this SpeechWordInfo to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @instance * @returns {Object.} JSON object */ - NluSettings.prototype.toJSON = function toJSON() { + SpeechWordInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NluSettings + * Gets the default type url for SpeechWordInfo * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NluSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SpeechWordInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.NluSettings"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo"; }; - /** - * ModelType enum. - * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType - * @enum {number} - * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value - * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value - * @property {number} MODEL_TYPE_ADVANCED=3 MODEL_TYPE_ADVANCED value - */ - NluSettings.ModelType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MODEL_TYPE_STANDARD"] = 1; - values[valuesById[3] = "MODEL_TYPE_ADVANCED"] = 3; - return values; - })(); - - /** - * ModelTrainingMode enum. - * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode - * @enum {number} - * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value - * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value - * @property {number} MODEL_TRAINING_MODE_MANUAL=2 MODEL_TRAINING_MODE_MANUAL value - */ - NluSettings.ModelTrainingMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_TRAINING_MODE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MODEL_TRAINING_MODE_AUTOMATIC"] = 1; - values[valuesById[2] = "MODEL_TRAINING_MODE_MANUAL"] = 2; - return values; - })(); - - return NluSettings; + return SpeechWordInfo; })(); - v3beta1.Flow = (function() { + v3beta1.InputAudioConfig = (function() { /** - * Properties of a Flow. + * Properties of an InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFlow - * @property {string|null} [name] Flow name - * @property {string|null} [displayName] Flow displayName - * @property {string|null} [description] Flow description - * @property {Array.|null} [transitionRoutes] Flow transitionRoutes - * @property {Array.|null} [eventHandlers] Flow eventHandlers - * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups - * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Flow nluSettings + * @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 Flow. + * Constructs a new InputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Flow. - * @implements IFlow + * @classdesc Represents an InputAudioConfig. + * @implements IInputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set */ - function Flow(properties) { - this.transitionRoutes = []; - this.eventHandlers = []; - this.transitionRouteGroups = []; + function InputAudioConfig(properties) { + this.phraseHints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76115,168 +76510,162 @@ } /** - * Flow name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.name = ""; + InputAudioConfig.prototype.audioEncoding = 0; /** - * Flow displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.displayName = ""; + InputAudioConfig.prototype.sampleRateHertz = 0; /** - * Flow description. - * @member {string} description - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig enableWordInfo. + * @member {boolean} enableWordInfo + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.description = ""; + InputAudioConfig.prototype.enableWordInfo = false; /** - * Flow transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig phraseHints. + * @member {Array.} phraseHints + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.transitionRoutes = $util.emptyArray; + InputAudioConfig.prototype.phraseHints = $util.emptyArray; /** - * Flow eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig model. + * @member {string} model + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.eventHandlers = $util.emptyArray; + InputAudioConfig.prototype.model = ""; /** - * Flow transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig modelVariant. + * @member {google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant} modelVariant + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.transitionRouteGroups = $util.emptyArray; + InputAudioConfig.prototype.modelVariant = 0; /** - * Flow nluSettings. - * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * InputAudioConfig singleUtterance. + * @member {boolean} singleUtterance + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance */ - Flow.prototype.nluSettings = null; + InputAudioConfig.prototype.singleUtterance = false; /** - * Creates a new Flow instance using the specified properties. + * Creates a new InputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow instance + * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig instance */ - Flow.create = function create(properties) { - return new Flow(properties); + InputAudioConfig.create = function create(properties) { + return new InputAudioConfig(properties); }; /** - * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.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.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow 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 */ - Flow.encode = function encode(message, writer) { + InputAudioConfig.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.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 4, wireType 2 =*/34).fork()).ldelim(); - if (message.eventHandlers != null && message.eventHandlers.length) - for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) - $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); + 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 Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.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.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow 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 */ - Flow.encodeDelimited = function encodeDelimited(message, writer) { + InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Flow 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.Flow + * @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.Flow} Flow + * @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 */ - Flow.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.Flow(); + 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.name = reader.string(); + message.audioEncoding = reader.int32(); break; } case 2: { - message.displayName = reader.string(); + message.sampleRateHertz = reader.int32(); break; } - case 3: { - message.description = reader.string(); + case 13: { + message.enableWordInfo = reader.bool(); break; } case 4: { - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + if (!(message.phraseHints && message.phraseHints.length)) + message.phraseHints = []; + message.phraseHints.push(reader.string()); break; } - case 10: { - if (!(message.eventHandlers && message.eventHandlers.length)) - message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + case 7: { + message.model = reader.string(); break; } - case 15: { - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push(reader.string()); + case 10: { + message.modelVariant = reader.int32(); break; } - case 11: { - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); + case 8: { + message.singleUtterance = reader.bool(); break; } default: @@ -76288,226 +76677,281 @@ }; /** - * Decodes a Flow 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.Flow + * @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.Flow} Flow + * @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 */ - Flow.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 Flow message. + * Verifies an InputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @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 */ - Flow.verify = function verify(message) { + InputAudioConfig.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.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.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.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { - if (!Array.isArray(message.eventHandlers)) - return "eventHandlers: array expected"; - for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); - if (error) - return "eventHandlers." + 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.transitionRouteGroups != null && message.hasOwnProperty("transitionRouteGroups")) { - if (!Array.isArray(message.transitionRouteGroups)) - return "transitionRouteGroups: array expected"; - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - if (!$util.isString(message.transitionRouteGroups[i])) - return "transitionRouteGroups: 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.singleUtterance != null && message.hasOwnProperty("singleUtterance")) + if (typeof message.singleUtterance !== "boolean") + return "singleUtterance: boolean expected"; return null; }; /** - * Creates a Flow 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.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow + * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig */ - Flow.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Flow) + 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.Flow(); - 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.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.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.Flow.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } - if (object.eventHandlers) { - if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: array expected"); - message.eventHandlers = []; - for (var i = 0; i < object.eventHandlers.length; ++i) { - if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(); + switch (object.audioEncoding) { + default: + if (typeof object.audioEncoding === "number") { + message.audioEncoding = object.audioEncoding; + break; } + break; + 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.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) - message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + 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.nluSettings != null) { - if (typeof object.nluSettings !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.nluSettings: object expected"); - message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); + if (object.model != null) + message.model = String(object.model); + switch (object.modelVariant) { + default: + if (typeof object.modelVariant === "number") { + message.modelVariant = object.modelVariant; + break; + } + break; + 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 Flow 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.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Flow} message Flow + * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Flow.toObject = function toObject(message, options) { + InputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.transitionRoutes = []; - object.eventHandlers = []; - object.transitionRouteGroups = []; - } + if (options.arrays || options.defaults) + object.phraseHints = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.nluSettings = 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.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); - } - if (message.eventHandlers && message.eventHandlers.length) { - object.eventHandlers = []; - for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + 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.nluSettings != null && message.hasOwnProperty("nluSettings")) - object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; + if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.AudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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] === undefined ? message.modelVariant : $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 Flow to JSON. + * Converts this InputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @instance * @returns {Object.} JSON object */ - Flow.prototype.toJSON = function toJSON() { + InputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Flow + * Gets the default type url for InputAudioConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Flow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Flow"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.InputAudioConfig"; }; - return Flow; + return InputAudioConfig; })(); - v3beta1.CreateFlowRequest = (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 CreateFlowRequest. + * Properties of a VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreateFlowRequest - * @property {string|null} [parent] CreateFlowRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] CreateFlowRequest flow - * @property {string|null} [languageCode] CreateFlowRequest languageCode + * @interface IVoiceSelectionParams + * @property {string|null} [name] VoiceSelectionParams name + * @property {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender|null} [ssmlGender] VoiceSelectionParams ssmlGender */ /** - * Constructs a new CreateFlowRequest. + * Constructs a new VoiceSelectionParams. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreateFlowRequest. - * @implements ICreateFlowRequest + * @classdesc Represents a VoiceSelectionParams. + * @implements IVoiceSelectionParams * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set */ - function CreateFlowRequest(properties) { + function VoiceSelectionParams(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76515,103 +76959,89 @@ } /** - * CreateFlowRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest - * @instance - */ - CreateFlowRequest.prototype.parent = ""; - - /** - * CreateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * VoiceSelectionParams name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance */ - CreateFlowRequest.prototype.flow = null; + VoiceSelectionParams.prototype.name = ""; /** - * CreateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * VoiceSelectionParams ssmlGender. + * @member {google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender} ssmlGender + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance */ - CreateFlowRequest.prototype.languageCode = ""; + VoiceSelectionParams.prototype.ssmlGender = 0; /** - * Creates a new CreateFlowRequest instance using the specified properties. + * Creates a new VoiceSelectionParams instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance */ - CreateFlowRequest.create = function create(properties) { - return new CreateFlowRequest(properties); + VoiceSelectionParams.create = function create(properties) { + return new VoiceSelectionParams(properties); }; /** - * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest 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 */ - CreateFlowRequest.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.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(); - if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + 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 CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest 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 */ - CreateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFlowRequest 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.CreateFlowRequest + * @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.CreateFlowRequest} CreateFlowRequest + * @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 */ - CreateFlowRequest.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.CreateFlowRequest(); + 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.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); - break; - } - case 3: { - message.languageCode = reader.string(); + message.ssmlGender = reader.int32(); break; } default: @@ -76623,145 +77053,165 @@ }; /** - * Decodes a CreateFlowRequest 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.CreateFlowRequest + * @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.CreateFlowRequest} CreateFlowRequest + * @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 */ - CreateFlowRequest.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 CreateFlowRequest message. + * Verifies a VoiceSelectionParams message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @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 */ - CreateFlowRequest.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.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); - if (error) - return "flow." + error; - } - 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.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 CreateFlowRequest 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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams */ - CreateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest) + 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.CreateFlowRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(); + if (object.name != null) + message.name = String(object.name); + switch (object.ssmlGender) { + default: + if (typeof object.ssmlGender === "number") { + message.ssmlGender = object.ssmlGender; + break; + } + break; + 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; } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a CreateFlowRequest 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.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} message CreateFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFlowRequest.toObject = function toObject(message, options) { + VoiceSelectionParams.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.flow = null; - object.languageCode = ""; + 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.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + 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] === undefined ? message.ssmlGender : $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; return object; }; /** - * Converts this CreateFlowRequest to JSON. + * Converts this VoiceSelectionParams to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @instance * @returns {Object.} JSON object */ - CreateFlowRequest.prototype.toJSON = function toJSON() { + VoiceSelectionParams.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateFlowRequest + * Gets the default type url for VoiceSelectionParams * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + VoiceSelectionParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams"; }; - return CreateFlowRequest; + return VoiceSelectionParams; })(); - v3beta1.DeleteFlowRequest = (function() { + v3beta1.SynthesizeSpeechConfig = (function() { /** - * Properties of a DeleteFlowRequest. + * Properties of a SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeleteFlowRequest - * @property {string|null} [name] DeleteFlowRequest name - * @property {boolean|null} [force] DeleteFlowRequest force + * @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 DeleteFlowRequest. + * Constructs a new SynthesizeSpeechConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeleteFlowRequest. - * @implements IDeleteFlowRequest + * @classdesc Represents a SynthesizeSpeechConfig. + * @implements ISynthesizeSpeechConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set */ - function DeleteFlowRequest(properties) { + function SynthesizeSpeechConfig(properties) { + this.effectsProfileId = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76769,89 +77219,134 @@ } /** - * DeleteFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * SynthesizeSpeechConfig speakingRate. + * @member {number} speakingRate + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - DeleteFlowRequest.prototype.name = ""; + SynthesizeSpeechConfig.prototype.speakingRate = 0; /** - * DeleteFlowRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * SynthesizeSpeechConfig pitch. + * @member {number} pitch + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance */ - DeleteFlowRequest.prototype.force = false; + SynthesizeSpeechConfig.prototype.pitch = 0; /** - * Creates a new DeleteFlowRequest instance using the specified properties. + * 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 + * @instance + */ + SynthesizeSpeechConfig.prototype.voice = null; + + /** + * Creates a new SynthesizeSpeechConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig instance */ - DeleteFlowRequest.create = function create(properties) { - return new DeleteFlowRequest(properties); + SynthesizeSpeechConfig.create = function create(properties) { + return new SynthesizeSpeechConfig(properties); }; /** - * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest 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 */ - DeleteFlowRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + 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 DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest 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 */ - DeleteFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFlowRequest 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.DeleteFlowRequest + * @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.DeleteFlowRequest} DeleteFlowRequest + * @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 */ - DeleteFlowRequest.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.DeleteFlowRequest(); + 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.force = reader.bool(); + 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()); break; } default: @@ -76863,134 +77358,197 @@ }; /** - * Decodes a DeleteFlowRequest 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.DeleteFlowRequest + * @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.DeleteFlowRequest} DeleteFlowRequest + * @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 */ - DeleteFlowRequest.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 DeleteFlowRequest message. + * Verifies a SynthesizeSpeechConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @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 */ - DeleteFlowRequest.verify = function verify(message) { + SynthesizeSpeechConfig.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.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; + } return null; }; /** - * Creates a DeleteFlowRequest 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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig */ - DeleteFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest) + 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.DeleteFlowRequest(); - 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.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); + } return message; }; /** - * Creates a plain object from a DeleteFlowRequest 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.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} message DeleteFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFlowRequest.toObject = function toObject(message, options) { + SynthesizeSpeechConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.effectsProfileId = []; if (options.defaults) { - object.name = ""; - object.force = false; + 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 (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 DeleteFlowRequest to JSON. + * Converts this SynthesizeSpeechConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @instance * @returns {Object.} JSON object */ - DeleteFlowRequest.prototype.toJSON = function toJSON() { + SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteFlowRequest + * Gets the default type url for SynthesizeSpeechConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SynthesizeSpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig"; }; - return DeleteFlowRequest; + return SynthesizeSpeechConfig; })(); - v3beta1.ListFlowsRequest = (function() { + /** + * 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; + })(); + + v3beta1.OutputAudioConfig = (function() { /** - * Properties of a ListFlowsRequest. + * Properties of an OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListFlowsRequest - * @property {string|null} [parent] ListFlowsRequest parent - * @property {number|null} [pageSize] ListFlowsRequest pageSize - * @property {string|null} [pageToken] ListFlowsRequest pageToken - * @property {string|null} [languageCode] ListFlowsRequest languageCode + * @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 ListFlowsRequest. + * Constructs a new OutputAudioConfig. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListFlowsRequest. - * @implements IListFlowsRequest + * @classdesc Represents an OutputAudioConfig. + * @implements IOutputAudioConfig * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set */ - function ListFlowsRequest(properties) { + function OutputAudioConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -76998,117 +77556,103 @@ } /** - * ListFlowsRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest - * @instance - */ - ListFlowsRequest.prototype.parent = ""; - - /** - * ListFlowsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * OutputAudioConfig audioEncoding. + * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - ListFlowsRequest.prototype.pageSize = 0; + OutputAudioConfig.prototype.audioEncoding = 0; /** - * ListFlowsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * OutputAudioConfig sampleRateHertz. + * @member {number} sampleRateHertz + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - ListFlowsRequest.prototype.pageToken = ""; + OutputAudioConfig.prototype.sampleRateHertz = 0; /** - * ListFlowsRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * OutputAudioConfig synthesizeSpeechConfig. + * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance */ - ListFlowsRequest.prototype.languageCode = ""; + OutputAudioConfig.prototype.synthesizeSpeechConfig = null; /** - * Creates a new ListFlowsRequest instance using the specified properties. + * Creates a new OutputAudioConfig instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig instance */ - ListFlowsRequest.create = function create(properties) { - return new ListFlowsRequest(properties); + OutputAudioConfig.create = function create(properties) { + return new OutputAudioConfig(properties); }; /** - * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest 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 */ - ListFlowsRequest.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.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.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 ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest 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 */ - ListFlowsRequest.encodeDelimited = function encodeDelimited(message, writer) { + OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFlowsRequest 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.ListFlowsRequest + * @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.ListFlowsRequest} ListFlowsRequest + * @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 */ - ListFlowsRequest.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.ListFlowsRequest(); + 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 1: { - message.parent = reader.string(); + message.audioEncoding = reader.int32(); break; } case 2: { - message.pageSize = reader.int32(); + message.sampleRateHertz = reader.int32(); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.languageCode = reader.string(); + message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); break; } default: @@ -77120,149 +77664,184 @@ }; /** - * Decodes a ListFlowsRequest 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.ListFlowsRequest + * @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.ListFlowsRequest} ListFlowsRequest + * @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 */ - ListFlowsRequest.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 ListFlowsRequest message. + * Verifies an OutputAudioConfig message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @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 */ - ListFlowsRequest.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.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.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 "synthesizeSpeechConfig." + error; + } return null; }; /** - * Creates a ListFlowsRequest 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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig */ - ListFlowsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest) + 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.ListFlowsRequest(); - 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.OutputAudioConfig(); + switch (object.audioEncoding) { + default: + if (typeof object.audioEncoding === "number") { + message.audioEncoding = object.audioEncoding; + break; + } + break; + 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); + } return message; }; /** - * Creates a plain object from a ListFlowsRequest 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.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} message ListFlowsRequest + * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFlowsRequest.toObject = function toObject(message, options) { + OutputAudioConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.languageCode = ""; + 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.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.audioEncoding != null && message.hasOwnProperty("audioEncoding")) + object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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 ListFlowsRequest to JSON. + * Converts this OutputAudioConfig to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @instance * @returns {Object.} JSON object */ - ListFlowsRequest.prototype.toJSON = function toJSON() { + OutputAudioConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFlowsRequest + * Gets the default type url for OutputAudioConfig * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFlowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + OutputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig"; }; - return ListFlowsRequest; + return OutputAudioConfig; })(); - v3beta1.ListFlowsResponse = (function() { + v3beta1.TextToSpeechSettings = (function() { /** - * Properties of a ListFlowsResponse. + * Properties of a TextToSpeechSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListFlowsResponse - * @property {Array.|null} [flows] ListFlowsResponse flows - * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken + * @interface ITextToSpeechSettings + * @property {Object.|null} [synthesizeSpeechConfigs] TextToSpeechSettings synthesizeSpeechConfigs */ /** - * Constructs a new ListFlowsResponse. + * Constructs a new TextToSpeechSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListFlowsResponse. - * @implements IListFlowsResponse + * @classdesc Represents a TextToSpeechSettings. + * @implements ITextToSpeechSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings=} [properties] Properties to set */ - function ListFlowsResponse(properties) { - this.flows = []; + function TextToSpeechSettings(properties) { + this.synthesizeSpeechConfigs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77270,92 +77849,97 @@ } /** - * ListFlowsResponse flows. - * @member {Array.} flows - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse - * @instance - */ - ListFlowsResponse.prototype.flows = $util.emptyArray; - - /** - * ListFlowsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * TextToSpeechSettings synthesizeSpeechConfigs. + * @member {Object.} synthesizeSpeechConfigs + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @instance */ - ListFlowsResponse.prototype.nextPageToken = ""; + TextToSpeechSettings.prototype.synthesizeSpeechConfigs = $util.emptyObject; /** - * Creates a new ListFlowsResponse instance using the specified properties. + * Creates a new TextToSpeechSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings instance */ - ListFlowsResponse.create = function create(properties) { - return new ListFlowsResponse(properties); + TextToSpeechSettings.create = function create(properties) { + return new TextToSpeechSettings(properties); }; /** - * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified TextToSpeechSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsResponse.encode = function encode(message, writer) { + TextToSpeechSettings.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flows != null && message.flows.length) - for (var i = 0; i < message.flows.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flows[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.synthesizeSpeechConfigs != null && Object.hasOwnProperty.call(message, "synthesizeSpeechConfigs")) + for (var keys = Object.keys(message.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.encode(message.synthesizeSpeechConfigs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. + * Encodes the specified TextToSpeechSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITextToSpeechSettings} message TextToSpeechSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFlowsResponse.encodeDelimited = function encodeDelimited(message, writer) { + TextToSpeechSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer. + * Decodes a TextToSpeechSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @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.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsResponse.decode = function decode(reader, length) { + TextToSpeechSettings.decode = function decode(reader, length) { 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.ListFlowsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.flows && message.flows.length)) - message.flows = []; - message.flows.push($root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + if (message.synthesizeSpeechConfigs === $util.emptyObject) + message.synthesizeSpeechConfigs = {}; + 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.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.synthesizeSpeechConfigs[key] = value; break; } default: @@ -77367,149 +77951,508 @@ }; /** - * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. + * Decodes a TextToSpeechSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFlowsResponse.decodeDelimited = function decodeDelimited(reader) { + TextToSpeechSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFlowsResponse message. + * Verifies a TextToSpeechSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFlowsResponse.verify = function verify(message) { + TextToSpeechSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flows != null && message.hasOwnProperty("flows")) { - if (!Array.isArray(message.flows)) - return "flows: array expected"; - for (var i = 0; i < message.flows.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flows[i]); + if (message.synthesizeSpeechConfigs != null && message.hasOwnProperty("synthesizeSpeechConfigs")) { + if (!$util.isObject(message.synthesizeSpeechConfigs)) + return "synthesizeSpeechConfigs: object expected"; + var key = Object.keys(message.synthesizeSpeechConfigs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.verify(message.synthesizeSpeechConfigs[key[i]]); if (error) - return "flows." + error; + return "synthesizeSpeechConfigs." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TextToSpeechSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} TextToSpeechSettings */ - ListFlowsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) + TextToSpeechSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); - if (object.flows) { - if (!Array.isArray(object.flows)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: array expected"); - message.flows = []; - for (var i = 0; i < object.flows.length; ++i) { - if (typeof object.flows[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: object expected"); - message.flows[i] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flows[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings(); + if (object.synthesizeSpeechConfigs) { + if (typeof object.synthesizeSpeechConfigs !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); + message.synthesizeSpeechConfigs = {}; + for (var keys = Object.keys(object.synthesizeSpeechConfigs), i = 0; i < keys.length; ++i) { + if (typeof object.synthesizeSpeechConfigs[keys[i]] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings.synthesizeSpeechConfigs: object expected"); + message.synthesizeSpeechConfigs[keys[i]] = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.fromObject(object.synthesizeSpeechConfigs[keys[i]]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. + * Creates a plain object from a TextToSpeechSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} message ListFlowsResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings} message TextToSpeechSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFlowsResponse.toObject = function toObject(message, options) { + TextToSpeechSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.flows = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.flows && message.flows.length) { - object.flows = []; - for (var j = 0; j < message.flows.length; ++j) - object.flows[j] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flows[j], options); + if (options.objects || options.defaults) + object.synthesizeSpeechConfigs = {}; + var keys2; + if (message.synthesizeSpeechConfigs && (keys2 = Object.keys(message.synthesizeSpeechConfigs)).length) { + object.synthesizeSpeechConfigs = {}; + for (var j = 0; j < keys2.length; ++j) + object.synthesizeSpeechConfigs[keys2[j]] = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.toObject(message.synthesizeSpeechConfigs[keys2[j]], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListFlowsResponse to JSON. + * Converts this TextToSpeechSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @instance * @returns {Object.} JSON object */ - ListFlowsResponse.prototype.toJSON = function toJSON() { + TextToSpeechSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListFlowsResponse + * Gets the default type url for TextToSpeechSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListFlowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TextToSpeechSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TextToSpeechSettings"; }; - return ListFlowsResponse; + return TextToSpeechSettings; })(); - v3beta1.GetFlowRequest = (function() { + v3beta1.Flows = (function() { /** - * Properties of a GetFlowRequest. + * Constructs a new Flows service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetFlowRequest - * @property {string|null} [name] GetFlowRequest name - * @property {string|null} [languageCode] GetFlowRequest languageCode + * @classdesc Represents a Flows + * @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 Flows(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Flows.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Flows; + + /** + * Creates new Flows service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @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 {Flows} RPC service. Useful where requests and/or responses are streamed. */ + Flows.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new GetFlowRequest. + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|createFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef CreateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow + */ + + /** + * Calls CreateFlow. + * @function createFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.CreateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.createFlow = function createFlow(request, callback) { + return this.rpcCall(createFlow, $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + }, "name", { value: "CreateFlow" }); + + /** + * Calls CreateFlow. + * @function createFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} request CreateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|deleteFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef DeleteFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls DeleteFlow. + * @function deleteFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.DeleteFlowCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.deleteFlow = function deleteFlow(request, callback) { + return this.rpcCall(deleteFlow, $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeleteFlow" }); + + /** + * Calls DeleteFlow. + * @function deleteFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} request DeleteFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|listFlows}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ListFlowsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} [response] ListFlowsResponse + */ + + /** + * Calls ListFlows. + * @function listFlows + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ListFlowsCallback} callback Node-style callback called with the error, if any, and ListFlowsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.listFlows = function listFlows(request, callback) { + return this.rpcCall(listFlows, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse, request, callback); + }, "name", { value: "ListFlows" }); + + /** + * Calls ListFlows. + * @function listFlows + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} request ListFlowsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef GetFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow + */ + + /** + * Calls GetFlow. + * @function getFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.getFlow = function getFlow(request, callback) { + return this.rpcCall(getFlow, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + }, "name", { value: "GetFlow" }); + + /** + * Calls GetFlow. + * @function getFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} request GetFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|updateFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef UpdateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} [response] Flow + */ + + /** + * Calls UpdateFlow. + * @function updateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.UpdateFlowCallback} callback Node-style callback called with the error, if any, and Flow + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.updateFlow = function updateFlow(request, callback) { + return this.rpcCall(updateFlow, $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.Flow, request, callback); + }, "name", { value: "UpdateFlow" }); + + /** + * Calls UpdateFlow. + * @function updateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} request UpdateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|trainFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef TrainFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls TrainFlow. + * @function trainFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.TrainFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.trainFlow = function trainFlow(request, callback) { + return this.rpcCall(trainFlow, $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "TrainFlow" }); + + /** + * Calls TrainFlow. + * @function trainFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} request TrainFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|validateFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ValidateFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult + */ + + /** + * Calls ValidateFlow. + * @function validateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ValidateFlowCallback} callback Node-style callback called with the error, if any, and FlowValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.validateFlow = function validateFlow(request, callback) { + return this.rpcCall(validateFlow, $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); + }, "name", { value: "ValidateFlow" }); + + /** + * Calls ValidateFlow. + * @function validateFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} request ValidateFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|getFlowValidationResult}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef GetFlowValidationResultCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} [response] FlowValidationResult + */ + + /** + * Calls GetFlowValidationResult. + * @function getFlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.GetFlowValidationResultCallback} callback Node-style callback called with the error, if any, and FlowValidationResult + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.getFlowValidationResult = function getFlowValidationResult(request, callback) { + return this.rpcCall(getFlowValidationResult, $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest, $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult, request, callback); + }, "name", { value: "GetFlowValidationResult" }); + + /** + * Calls GetFlowValidationResult. + * @function getFlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} request GetFlowValidationResultRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|importFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ImportFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportFlow. + * @function importFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ImportFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.importFlow = function importFlow(request, callback) { + return this.rpcCall(importFlow, $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportFlow" }); + + /** + * Calls ImportFlow. + * @function importFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} request ImportFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Flows|exportFlow}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @typedef ExportFlowCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportFlow. + * @function exportFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Flows.ExportFlowCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(Flows.prototype.exportFlow = function exportFlow(request, callback) { + return this.rpcCall(exportFlow, $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportFlow" }); + + /** + * Calls ExportFlow. + * @function exportFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.Flows + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} request ExportFlowRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return Flows; + })(); + + v3beta1.NluSettings = (function() { + + /** + * Properties of a NluSettings. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetFlowRequest. - * @implements IGetFlowRequest + * @interface INluSettings + * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType|null} [modelType] NluSettings modelType + * @property {number|null} [classificationThreshold] NluSettings classificationThreshold + * @property {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode|null} [modelTrainingMode] NluSettings modelTrainingMode + */ + + /** + * Constructs a new NluSettings. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a NluSettings. + * @implements INluSettings * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set */ - function GetFlowRequest(properties) { + function NluSettings(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77517,89 +78460,103 @@ } /** - * GetFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * NluSettings modelType. + * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType} modelType + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance */ - GetFlowRequest.prototype.name = ""; + NluSettings.prototype.modelType = 0; /** - * GetFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * NluSettings classificationThreshold. + * @member {number} classificationThreshold + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance */ - GetFlowRequest.prototype.languageCode = ""; + NluSettings.prototype.classificationThreshold = 0; /** - * Creates a new GetFlowRequest instance using the specified properties. + * NluSettings modelTrainingMode. + * @member {google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode} modelTrainingMode + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings + * @instance + */ + NluSettings.prototype.modelTrainingMode = 0; + + /** + * Creates a new NluSettings instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings instance */ - GetFlowRequest.create = function create(properties) { - return new GetFlowRequest(properties); + NluSettings.create = function create(properties) { + return new NluSettings(properties); }; /** - * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified NluSettings message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowRequest.encode = function encode(message, writer) { + NluSettings.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.modelType != null && Object.hasOwnProperty.call(message, "modelType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.modelType); + if (message.classificationThreshold != null && Object.hasOwnProperty.call(message, "classificationThreshold")) + writer.uint32(/* id 3, wireType 5 =*/29).float(message.classificationThreshold); + if (message.modelTrainingMode != null && Object.hasOwnProperty.call(message, "modelTrainingMode")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.modelTrainingMode); return writer; }; /** - * Encodes the specified GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * Encodes the specified NluSettings message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.NluSettings.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.INluSettings} message NluSettings message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + NluSettings.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFlowRequest message from the specified reader or buffer. + * Decodes a NluSettings message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @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.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowRequest.decode = function decode(reader, length) { + NluSettings.decode = function decode(reader, length) { 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.GetFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.NluSettings(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelType = reader.int32(); break; } - case 2: { - message.languageCode = reader.string(); + case 3: { + message.classificationThreshold = reader.float(); + break; + } + case 4: { + message.modelTrainingMode = reader.int32(); break; } default: @@ -77611,133 +78568,228 @@ }; /** - * Decodes a GetFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a NluSettings message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowRequest.decodeDelimited = function decodeDelimited(reader) { + NluSettings.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFlowRequest message. + * Verifies a NluSettings message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFlowRequest.verify = function verify(message) { + NluSettings.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.modelType != null && message.hasOwnProperty("modelType")) + switch (message.modelType) { + default: + return "modelType: enum value expected"; + case 0: + case 1: + case 3: + break; + } + if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) + if (typeof message.classificationThreshold !== "number") + return "classificationThreshold: number expected"; + if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) + switch (message.modelTrainingMode) { + default: + return "modelTrainingMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a GetFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NluSettings message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.NluSettings} NluSettings */ - GetFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest) + NluSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.NluSettings) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); - 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.NluSettings(); + switch (object.modelType) { + default: + if (typeof object.modelType === "number") { + message.modelType = object.modelType; + break; + } + break; + case "MODEL_TYPE_UNSPECIFIED": + case 0: + message.modelType = 0; + break; + case "MODEL_TYPE_STANDARD": + case 1: + message.modelType = 1; + break; + case "MODEL_TYPE_ADVANCED": + case 3: + message.modelType = 3; + break; + } + if (object.classificationThreshold != null) + message.classificationThreshold = Number(object.classificationThreshold); + switch (object.modelTrainingMode) { + default: + if (typeof object.modelTrainingMode === "number") { + message.modelTrainingMode = object.modelTrainingMode; + break; + } + break; + case "MODEL_TRAINING_MODE_UNSPECIFIED": + case 0: + message.modelTrainingMode = 0; + break; + case "MODEL_TRAINING_MODE_AUTOMATIC": + case 1: + message.modelTrainingMode = 1; + break; + case "MODEL_TRAINING_MODE_MANUAL": + case 2: + message.modelTrainingMode = 2; + break; + } return message; }; /** - * Creates a plain object from a GetFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a NluSettings message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} message GetFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.NluSettings} message NluSettings * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFlowRequest.toObject = function toObject(message, options) { + NluSettings.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.languageCode = ""; + object.modelType = options.enums === String ? "MODEL_TYPE_UNSPECIFIED" : 0; + object.classificationThreshold = 0; + object.modelTrainingMode = options.enums === String ? "MODEL_TRAINING_MODE_UNSPECIFIED" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.modelType != null && message.hasOwnProperty("modelType")) + object.modelType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] === undefined ? message.modelType : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType[message.modelType] : message.modelType; + if (message.classificationThreshold != null && message.hasOwnProperty("classificationThreshold")) + object.classificationThreshold = options.json && !isFinite(message.classificationThreshold) ? String(message.classificationThreshold) : message.classificationThreshold; + if (message.modelTrainingMode != null && message.hasOwnProperty("modelTrainingMode")) + object.modelTrainingMode = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] === undefined ? message.modelTrainingMode : $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode[message.modelTrainingMode] : message.modelTrainingMode; return object; }; /** - * Converts this GetFlowRequest to JSON. + * Converts this NluSettings to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @instance * @returns {Object.} JSON object */ - GetFlowRequest.prototype.toJSON = function toJSON() { + NluSettings.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFlowRequest + * Gets the default type url for NluSettings * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.NluSettings * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NluSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.NluSettings"; }; - return GetFlowRequest; + /** + * ModelType enum. + * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType + * @enum {number} + * @property {number} MODEL_TYPE_UNSPECIFIED=0 MODEL_TYPE_UNSPECIFIED value + * @property {number} MODEL_TYPE_STANDARD=1 MODEL_TYPE_STANDARD value + * @property {number} MODEL_TYPE_ADVANCED=3 MODEL_TYPE_ADVANCED value + */ + NluSettings.ModelType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MODEL_TYPE_STANDARD"] = 1; + values[valuesById[3] = "MODEL_TYPE_ADVANCED"] = 3; + return values; + })(); + + /** + * ModelTrainingMode enum. + * @name google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode + * @enum {number} + * @property {number} MODEL_TRAINING_MODE_UNSPECIFIED=0 MODEL_TRAINING_MODE_UNSPECIFIED value + * @property {number} MODEL_TRAINING_MODE_AUTOMATIC=1 MODEL_TRAINING_MODE_AUTOMATIC value + * @property {number} MODEL_TRAINING_MODE_MANUAL=2 MODEL_TRAINING_MODE_MANUAL value + */ + NluSettings.ModelTrainingMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_TRAINING_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MODEL_TRAINING_MODE_AUTOMATIC"] = 1; + values[valuesById[2] = "MODEL_TRAINING_MODE_MANUAL"] = 2; + return values; + })(); + + return NluSettings; })(); - v3beta1.UpdateFlowRequest = (function() { + v3beta1.Flow = (function() { /** - * Properties of an UpdateFlowRequest. + * Properties of a Flow. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdateFlowRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] UpdateFlowRequest flow - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask - * @property {string|null} [languageCode] UpdateFlowRequest languageCode + * @interface IFlow + * @property {string|null} [name] Flow name + * @property {string|null} [displayName] Flow displayName + * @property {string|null} [description] Flow description + * @property {Array.|null} [transitionRoutes] Flow transitionRoutes + * @property {Array.|null} [eventHandlers] Flow eventHandlers + * @property {Array.|null} [transitionRouteGroups] Flow transitionRouteGroups + * @property {google.cloud.dialogflow.cx.v3beta1.INluSettings|null} [nluSettings] Flow nluSettings */ /** - * Constructs a new UpdateFlowRequest. + * Constructs a new Flow. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdateFlowRequest. - * @implements IUpdateFlowRequest + * @classdesc Represents a Flow. + * @implements IFlow * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set */ - function UpdateFlowRequest(properties) { + function Flow(properties) { + this.transitionRoutes = []; + this.eventHandlers = []; + this.transitionRouteGroups = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -77745,257 +78797,399 @@ } /** - * UpdateFlowRequest flow. - * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * Flow name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - UpdateFlowRequest.prototype.flow = null; + Flow.prototype.name = ""; /** - * UpdateFlowRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * Flow displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - UpdateFlowRequest.prototype.updateMask = null; + Flow.prototype.displayName = ""; /** - * UpdateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * Flow description. + * @member {string} description + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance */ - UpdateFlowRequest.prototype.languageCode = ""; + Flow.prototype.description = ""; /** - * Creates a new UpdateFlowRequest instance using the specified properties. + * Flow transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @instance + */ + Flow.prototype.transitionRoutes = $util.emptyArray; + + /** + * Flow eventHandlers. + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @instance + */ + Flow.prototype.eventHandlers = $util.emptyArray; + + /** + * Flow transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @instance + */ + Flow.prototype.transitionRouteGroups = $util.emptyArray; + + /** + * Flow nluSettings. + * @member {google.cloud.dialogflow.cx.v3beta1.INluSettings|null|undefined} nluSettings + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow + * @instance + */ + Flow.prototype.nluSettings = null; + + /** + * Creates a new Flow instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow instance */ - UpdateFlowRequest.create = function create(properties) { - return new UpdateFlowRequest(properties); + Flow.create = function create(properties) { + return new Flow(properties); }; /** - * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified Flow message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFlowRequest.encode = function encode(message, writer) { + Flow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, 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); + 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.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 4, wireType 2 =*/34).fork()).ldelim(); + if (message.eventHandlers != null && message.eventHandlers.length) + for (var i = 0; i < message.eventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.nluSettings != null && Object.hasOwnProperty.call(message, "nluSettings")) + $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.encode(message.nluSettings, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).string(message.transitionRouteGroups[i]); return writer; }; /** - * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. + * Encodes the specified Flow message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Flow.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFlow} message Flow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + Flow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer. + * Decodes a Flow message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @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.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFlowRequest.decode = function decode(reader, length) { + Flow.decode = function decode(reader, length) { 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.UpdateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.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 3: { - message.languageCode = reader.string(); + message.description = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + case 4: { + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.eventHandlers && message.eventHandlers.length)) + message.eventHandlers = []; + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + break; + } + case 15: { + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push(reader.string()); + break; + } + case 11: { + message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Flow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + Flow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFlowRequest message. + * Verifies a Flow message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFlowRequest.verify = function verify(message) { + Flow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flow != null && message.hasOwnProperty("flow")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); - if (error) - return "flow." + error; + 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.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.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { + if (!Array.isArray(message.eventHandlers)) + return "eventHandlers: array expected"; + for (var i = 0; i < message.eventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); + if (error) + return "eventHandlers." + 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) + if (!$util.isString(message.transitionRouteGroups[i])) + return "transitionRouteGroups: string[] expected"; + } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.verify(message.nluSettings); if (error) - return "updateMask." + error; + return "nluSettings." + error; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Flow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Flow} Flow */ - UpdateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest) + Flow.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Flow) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); - if (object.flow != null) { - if (typeof object.flow !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.flow: object expected"); - message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Flow(); + 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.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.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.Flow.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + } } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.eventHandlers) { + if (!Array.isArray(object.eventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: array expected"); + message.eventHandlers = []; + for (var i = 0; i < object.eventHandlers.length; ++i) { + if (typeof object.eventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + } + } + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) + message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + } + if (object.nluSettings != null) { + if (typeof object.nluSettings !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Flow.nluSettings: object expected"); + message.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.fromObject(object.nluSettings); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a Flow message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} message UpdateFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Flow} message Flow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFlowRequest.toObject = function toObject(message, options) { + Flow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.transitionRoutes = []; + object.eventHandlers = []; + object.transitionRouteGroups = []; + } if (options.defaults) { - object.flow = null; - object.updateMask = null; - object.languageCode = ""; + object.name = ""; + object.displayName = ""; + object.description = ""; + object.nluSettings = 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.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); + } + if (message.eventHandlers && message.eventHandlers.length) { + object.eventHandlers = []; + for (var j = 0; j < message.eventHandlers.length; ++j) + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + } + if (message.nluSettings != null && message.hasOwnProperty("nluSettings")) + object.nluSettings = $root.google.cloud.dialogflow.cx.v3beta1.NluSettings.toObject(message.nluSettings, options); + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; } - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, 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 UpdateFlowRequest to JSON. + * Converts this Flow to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @instance * @returns {Object.} JSON object */ - UpdateFlowRequest.prototype.toJSON = function toJSON() { + Flow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateFlowRequest + * Gets the default type url for Flow * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Flow * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Flow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Flow"; }; - return UpdateFlowRequest; + return Flow; })(); - v3beta1.TrainFlowRequest = (function() { + v3beta1.CreateFlowRequest = (function() { /** - * Properties of a TrainFlowRequest. + * Properties of a CreateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITrainFlowRequest - * @property {string|null} [name] TrainFlowRequest name + * @interface ICreateFlowRequest + * @property {string|null} [parent] CreateFlowRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] CreateFlowRequest flow + * @property {string|null} [languageCode] CreateFlowRequest languageCode */ /** - * Constructs a new TrainFlowRequest. + * Constructs a new CreateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TrainFlowRequest. - * @implements ITrainFlowRequest + * @classdesc Represents a CreateFlowRequest. + * @implements ICreateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set */ - function TrainFlowRequest(properties) { + function CreateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78003,75 +79197,103 @@ } /** - * TrainFlowRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * CreateFlowRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @instance */ - TrainFlowRequest.prototype.name = ""; + CreateFlowRequest.prototype.parent = ""; /** - * Creates a new TrainFlowRequest instance using the specified properties. + * CreateFlowRequest flow. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @instance + */ + CreateFlowRequest.prototype.flow = null; + + /** + * CreateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest + * @instance + */ + CreateFlowRequest.prototype.languageCode = ""; + + /** + * Creates a new CreateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest instance */ - TrainFlowRequest.create = function create(properties) { - return new TrainFlowRequest(properties); + CreateFlowRequest.create = function create(properties) { + return new CreateFlowRequest(properties); }; /** - * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainFlowRequest.encode = function encode(message, writer) { + CreateFlowRequest.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.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(); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); return writer; }; /** - * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. + * Encodes the specified CreateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ICreateFlowRequest} message CreateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer. + * Decodes a CreateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @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.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainFlowRequest.decode = function decode(reader, length) { + CreateFlowRequest.decode = function decode(reader, length) { 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.TrainFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); 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.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); break; } default: @@ -78083,123 +79305,145 @@ }; /** - * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainFlowRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainFlowRequest message. + * Verifies a CreateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainFlowRequest.verify = function verify(message) { + CreateFlowRequest.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.flow != null && message.hasOwnProperty("flow")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + if (error) + return "flow." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} CreateFlowRequest */ - TrainFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest) + CreateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} message TrainFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest} message CreateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainFlowRequest.toObject = function toObject(message, options) { + CreateFlowRequest.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.flow = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this TrainFlowRequest to JSON. + * Converts this CreateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @instance * @returns {Object.} JSON object */ - TrainFlowRequest.prototype.toJSON = function toJSON() { + CreateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainFlowRequest + * Gets the default type url for CreateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest"; }; - return TrainFlowRequest; + return CreateFlowRequest; })(); - v3beta1.ValidateFlowRequest = (function() { + v3beta1.DeleteFlowRequest = (function() { /** - * Properties of a ValidateFlowRequest. + * Properties of a DeleteFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IValidateFlowRequest - * @property {string|null} [name] ValidateFlowRequest name - * @property {string|null} [languageCode] ValidateFlowRequest languageCode + * @interface IDeleteFlowRequest + * @property {string|null} [name] DeleteFlowRequest name + * @property {boolean|null} [force] DeleteFlowRequest force */ /** - * Constructs a new ValidateFlowRequest. + * Constructs a new DeleteFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ValidateFlowRequest. - * @implements IValidateFlowRequest + * @classdesc Represents a DeleteFlowRequest. + * @implements IDeleteFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set */ - function ValidateFlowRequest(properties) { + function DeleteFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78207,80 +79451,80 @@ } /** - * ValidateFlowRequest name. + * DeleteFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @instance */ - ValidateFlowRequest.prototype.name = ""; + DeleteFlowRequest.prototype.name = ""; /** - * ValidateFlowRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * DeleteFlowRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @instance */ - ValidateFlowRequest.prototype.languageCode = ""; + DeleteFlowRequest.prototype.force = false; /** - * Creates a new ValidateFlowRequest instance using the specified properties. + * Creates a new DeleteFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest instance */ - ValidateFlowRequest.create = function create(properties) { - return new ValidateFlowRequest(properties); + DeleteFlowRequest.create = function create(properties) { + return new DeleteFlowRequest(properties); }; /** - * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateFlowRequest.encode = function encode(message, writer) { + DeleteFlowRequest.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.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. + * Encodes the specified DeleteFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IDeleteFlowRequest} message DeleteFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ValidateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer. + * Decodes a DeleteFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @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.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateFlowRequest.decode = function decode(reader, length) { + DeleteFlowRequest.decode = function decode(reader, length) { 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.ValidateFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -78289,7 +79533,7 @@ break; } case 2: { - message.languageCode = reader.string(); + message.force = reader.bool(); break; } default: @@ -78301,132 +79545,134 @@ }; /** - * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ValidateFlowRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ValidateFlowRequest message. + * Verifies a DeleteFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ValidateFlowRequest.verify = function verify(message) { + DeleteFlowRequest.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.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} DeleteFlowRequest */ - ValidateFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest) + DeleteFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} message ValidateFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest} message DeleteFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ValidateFlowRequest.toObject = function toObject(message, options) { + DeleteFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.languageCode = ""; + object.force = 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.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ValidateFlowRequest to JSON. + * Converts this DeleteFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @instance * @returns {Object.} JSON object */ - ValidateFlowRequest.prototype.toJSON = function toJSON() { + DeleteFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ValidateFlowRequest + * Gets the default type url for DeleteFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ValidateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest"; }; - return ValidateFlowRequest; + return DeleteFlowRequest; })(); - v3beta1.GetFlowValidationResultRequest = (function() { + v3beta1.ListFlowsRequest = (function() { /** - * Properties of a GetFlowValidationResultRequest. + * Properties of a ListFlowsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetFlowValidationResultRequest - * @property {string|null} [name] GetFlowValidationResultRequest name - * @property {string|null} [languageCode] GetFlowValidationResultRequest languageCode + * @interface IListFlowsRequest + * @property {string|null} [parent] ListFlowsRequest parent + * @property {number|null} [pageSize] ListFlowsRequest pageSize + * @property {string|null} [pageToken] ListFlowsRequest pageToken + * @property {string|null} [languageCode] ListFlowsRequest languageCode */ /** - * Constructs a new GetFlowValidationResultRequest. + * Constructs a new ListFlowsRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetFlowValidationResultRequest. - * @implements IGetFlowValidationResultRequest + * @classdesc Represents a ListFlowsRequest. + * @implements IListFlowsRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set */ - function GetFlowValidationResultRequest(properties) { + function ListFlowsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78434,88 +79680,116 @@ } /** - * GetFlowValidationResultRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * ListFlowsRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance */ - GetFlowValidationResultRequest.prototype.name = ""; + ListFlowsRequest.prototype.parent = ""; /** - * GetFlowValidationResultRequest languageCode. + * ListFlowsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @instance + */ + ListFlowsRequest.prototype.pageSize = 0; + + /** + * ListFlowsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest + * @instance + */ + ListFlowsRequest.prototype.pageToken = ""; + + /** + * ListFlowsRequest languageCode. * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance */ - GetFlowValidationResultRequest.prototype.languageCode = ""; + ListFlowsRequest.prototype.languageCode = ""; /** - * Creates a new GetFlowValidationResultRequest instance using the specified properties. + * Creates a new ListFlowsRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest instance */ - GetFlowValidationResultRequest.create = function create(properties) { - return new GetFlowValidationResultRequest(properties); + ListFlowsRequest.create = function create(properties) { + return new ListFlowsRequest(properties); }; /** - * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowValidationResultRequest.encode = function encode(message, writer) { + ListFlowsRequest.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); if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; /** - * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. + * Encodes the specified ListFlowsRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsRequest} message ListFlowsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFlowValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFlowsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. + * Decodes a ListFlowsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @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.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowValidationResultRequest.decode = function decode(reader, length) { + ListFlowsRequest.decode = function decode(reader, length) { 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.GetFlowValidationResultRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); 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; + } + case 4: { message.languageCode = reader.string(); break; } @@ -78528,35 +79802,41 @@ }; /** - * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFlowValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { + ListFlowsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFlowValidationResultRequest message. + * Verifies a ListFlowsRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFlowValidationResultRequest.verify = function verify(message) { + ListFlowsRequest.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"; if (message.languageCode != null && message.hasOwnProperty("languageCode")) if (!$util.isString(message.languageCode)) return "languageCode: string expected"; @@ -78564,98 +79844,107 @@ }; /** - * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} ListFlowsRequest */ - GetFlowValidationResultRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest) + ListFlowsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(); + 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 GetFlowValidationResultRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFlowsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} message GetFlowValidationResultRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest} message ListFlowsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFlowValidationResultRequest.toObject = function toObject(message, options) { + ListFlowsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; object.languageCode = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + 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 GetFlowValidationResultRequest to JSON. + * Converts this ListFlowsRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @instance * @returns {Object.} JSON object */ - GetFlowValidationResultRequest.prototype.toJSON = function toJSON() { + ListFlowsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetFlowValidationResultRequest + * Gets the default type url for ListFlowsRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetFlowValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFlowsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest"; }; - return GetFlowValidationResultRequest; + return ListFlowsRequest; })(); - v3beta1.FlowValidationResult = (function() { + v3beta1.ListFlowsResponse = (function() { /** - * Properties of a FlowValidationResult. + * Properties of a ListFlowsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFlowValidationResult - * @property {string|null} [name] FlowValidationResult name - * @property {Array.|null} [validationMessages] FlowValidationResult validationMessages - * @property {google.protobuf.ITimestamp|null} [updateTime] FlowValidationResult updateTime + * @interface IListFlowsResponse + * @property {Array.|null} [flows] ListFlowsResponse flows + * @property {string|null} [nextPageToken] ListFlowsResponse nextPageToken */ /** - * Constructs a new FlowValidationResult. + * Constructs a new ListFlowsResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a FlowValidationResult. - * @implements IFlowValidationResult + * @classdesc Represents a ListFlowsResponse. + * @implements IListFlowsResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set */ - function FlowValidationResult(properties) { - this.validationMessages = []; + function ListFlowsResponse(properties) { + this.flows = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78663,106 +79952,92 @@ } /** - * FlowValidationResult name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult - * @instance - */ - FlowValidationResult.prototype.name = ""; - - /** - * FlowValidationResult validationMessages. - * @member {Array.} validationMessages - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * ListFlowsResponse flows. + * @member {Array.} flows + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @instance */ - FlowValidationResult.prototype.validationMessages = $util.emptyArray; + ListFlowsResponse.prototype.flows = $util.emptyArray; /** - * FlowValidationResult updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * ListFlowsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @instance */ - FlowValidationResult.prototype.updateTime = null; + ListFlowsResponse.prototype.nextPageToken = ""; /** - * Creates a new FlowValidationResult instance using the specified properties. + * Creates a new ListFlowsResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse instance */ - FlowValidationResult.create = function create(properties) { - return new FlowValidationResult(properties); + ListFlowsResponse.create = function create(properties) { + return new ListFlowsResponse(properties); }; /** - * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * Encodes the specified ListFlowsResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlowValidationResult.encode = function encode(message, writer) { + ListFlowsResponse.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.validationMessages != null && message.validationMessages.length) - for (var i = 0; i < message.validationMessages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.encode(message.validationMessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.flows != null && message.flows.length) + for (var i = 0; i < message.flows.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flows[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 FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * Encodes the specified ListFlowsResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListFlowsResponse} message ListFlowsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FlowValidationResult.encodeDelimited = function encodeDelimited(message, writer) { + ListFlowsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FlowValidationResult message from the specified reader or buffer. + * Decodes a ListFlowsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @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.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FlowValidationResult.decode = function decode(reader, length) { + ListFlowsResponse.decode = function decode(reader, length) { 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.FlowValidationResult(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.flows && message.flows.length)) + message.flows = []; + message.flows.push($root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32())); break; } case 2: { - if (!(message.validationMessages && message.validationMessages.length)) - message.validationMessages = []; - message.validationMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.decode(reader, reader.uint32())); - break; - } - case 3: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -78774,165 +80049,149 @@ }; /** - * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * Decodes a ListFlowsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FlowValidationResult.decodeDelimited = function decodeDelimited(reader) { + ListFlowsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FlowValidationResult message. + * Verifies a ListFlowsResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FlowValidationResult.verify = function verify(message) { + ListFlowsResponse.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.validationMessages != null && message.hasOwnProperty("validationMessages")) { - if (!Array.isArray(message.validationMessages)) - return "validationMessages: array expected"; - for (var i = 0; i < message.validationMessages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify(message.validationMessages[i]); + if (message.flows != null && message.hasOwnProperty("flows")) { + if (!Array.isArray(message.flows)) + return "flows: array expected"; + for (var i = 0; i < message.flows.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flows[i]); if (error) - return "validationMessages." + error; + return "flows." + error; } } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * Creates a ListFlowsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult + * @returns {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} ListFlowsResponse */ - FlowValidationResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) + ListFlowsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult(); - if (object.name != null) - message.name = String(object.name); - if (object.validationMessages) { - if (!Array.isArray(object.validationMessages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: array expected"); - message.validationMessages = []; - for (var i = 0; i < object.validationMessages.length; ++i) { - if (typeof object.validationMessages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: object expected"); - message.validationMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.fromObject(object.validationMessages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(); + if (object.flows) { + if (!Array.isArray(object.flows)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: array expected"); + message.flows = []; + for (var i = 0; i < object.flows.length; ++i) { + if (typeof object.flows[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse.flows: object expected"); + message.flows[i] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flows[i]); } } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.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 FlowValidationResult message. Also converts values to other types if specified. + * Creates a plain object from a ListFlowsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} message FlowValidationResult + * @param {google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse} message ListFlowsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FlowValidationResult.toObject = function toObject(message, options) { + ListFlowsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.validationMessages = []; - if (options.defaults) { - object.name = ""; - object.updateTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.validationMessages && message.validationMessages.length) { - object.validationMessages = []; - for (var j = 0; j < message.validationMessages.length; ++j) - object.validationMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.toObject(message.validationMessages[j], options); + object.flows = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.flows && message.flows.length) { + object.flows = []; + for (var j = 0; j < message.flows.length; ++j) + object.flows[j] = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flows[j], options); } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FlowValidationResult to JSON. + * Converts this ListFlowsResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @instance * @returns {Object.} JSON object */ - FlowValidationResult.prototype.toJSON = function toJSON() { + ListFlowsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FlowValidationResult + * Gets the default type url for ListFlowsResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @memberof google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FlowValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListFlowsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.FlowValidationResult"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse"; }; - return FlowValidationResult; + return ListFlowsResponse; })(); - v3beta1.ImportFlowRequest = (function() { + v3beta1.GetFlowRequest = (function() { /** - * Properties of an ImportFlowRequest. + * Properties of a GetFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportFlowRequest - * @property {string|null} [parent] ImportFlowRequest parent - * @property {string|null} [flowUri] ImportFlowRequest flowUri - * @property {Uint8Array|null} [flowContent] ImportFlowRequest flowContent - * @property {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null} [importOption] ImportFlowRequest importOption + * @interface IGetFlowRequest + * @property {string|null} [name] GetFlowRequest name + * @property {string|null} [languageCode] GetFlowRequest languageCode */ /** - * Constructs a new ImportFlowRequest. + * Constructs a new GetFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportFlowRequest. - * @implements IImportFlowRequest + * @classdesc Represents a GetFlowRequest. + * @implements IGetFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set */ - function ImportFlowRequest(properties) { + function GetFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -78940,131 +80199,331 @@ } /** - * ImportFlowRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * GetFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @instance */ - ImportFlowRequest.prototype.parent = ""; + GetFlowRequest.prototype.name = ""; /** - * ImportFlowRequest flowUri. - * @member {string|null|undefined} flowUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * GetFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @instance */ - ImportFlowRequest.prototype.flowUri = null; + GetFlowRequest.prototype.languageCode = ""; /** - * ImportFlowRequest flowContent. - * @member {Uint8Array|null|undefined} flowContent - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest - * @instance + * Creates a new GetFlowRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest instance */ - ImportFlowRequest.prototype.flowContent = null; + GetFlowRequest.create = function create(properties) { + return new GetFlowRequest(properties); + }; /** - * ImportFlowRequest importOption. - * @member {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption} importOption - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * Encodes the specified GetFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFlowRequest.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 GetFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowRequest} message GetFlowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetFlowRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @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.GetFlowRequest} GetFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFlowRequest.decode = function decode(reader, length) { + 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.GetFlowRequest(); + 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 GetFlowRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetFlowRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetFlowRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetFlowRequest.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 GetFlowRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} GetFlowRequest + */ + GetFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(); + 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 GetFlowRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowRequest} message GetFlowRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetFlowRequest.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 GetFlowRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest * @instance + * @returns {Object.} JSON object */ - ImportFlowRequest.prototype.importOption = 0; + GetFlowRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for GetFlowRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowRequest"; + }; + + return GetFlowRequest; + })(); + + v3beta1.UpdateFlowRequest = (function() { /** - * ImportFlowRequest flow. - * @member {"flowUri"|"flowContent"|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * Properties of an UpdateFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdateFlowRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IFlow|null} [flow] UpdateFlowRequest flow + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFlowRequest updateMask + * @property {string|null} [languageCode] UpdateFlowRequest languageCode + */ + + /** + * Constructs a new UpdateFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdateFlowRequest. + * @implements IUpdateFlowRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set + */ + function UpdateFlowRequest(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]]; + } + + /** + * UpdateFlowRequest flow. + * @member {google.cloud.dialogflow.cx.v3beta1.IFlow|null|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @instance */ - Object.defineProperty(ImportFlowRequest.prototype, "flow", { - get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateFlowRequest.prototype.flow = null; /** - * Creates a new ImportFlowRequest instance using the specified properties. + * UpdateFlowRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @instance + */ + UpdateFlowRequest.prototype.updateMask = null; + + /** + * UpdateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest + * @instance + */ + UpdateFlowRequest.prototype.languageCode = ""; + + /** + * Creates a new UpdateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest instance */ - ImportFlowRequest.create = function create(properties) { - return new ImportFlowRequest(properties); + UpdateFlowRequest.create = function create(properties) { + return new UpdateFlowRequest(properties); }; /** - * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowRequest.encode = function encode(message, writer) { + UpdateFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); - if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.flowContent); - if (message.importOption != null && Object.hasOwnProperty.call(message, "importOption")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.importOption); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + $root.google.cloud.dialogflow.cx.v3beta1.Flow.encode(message.flow, 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 ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. + * Encodes the specified UpdateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdateFlowRequest} message UpdateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer. + * Decodes an UpdateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @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.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowRequest.decode = function decode(reader, length) { + UpdateFlowRequest.decode = function decode(reader, length) { 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.ImportFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.decode(reader, reader.uint32()); break; } case 2: { - message.flowUri = reader.string(); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } case 3: { - message.flowContent = reader.bytes(); - break; - } - case 4: { - message.importOption = reader.int32(); + message.languageCode = reader.string(); break; } default: @@ -79076,201 +80535,149 @@ }; /** - * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFlowRequest message. + * Verifies an UpdateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFlowRequest.verify = function verify(message) { + UpdateFlowRequest.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.flowUri != null && message.hasOwnProperty("flowUri")) { - properties.flow = 1; - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; + if (message.flow != null && message.hasOwnProperty("flow")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Flow.verify(message.flow); + if (error) + return "flow." + error; } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - if (properties.flow === 1) - return "flow: multiple values"; - properties.flow = 1; - if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) - return "flowContent: buffer expected"; + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } - if (message.importOption != null && message.hasOwnProperty("importOption")) - switch (message.importOption) { - default: - return "importOption: enum value expected"; - case 0: - case 1: - case 2: - break; - } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} UpdateFlowRequest */ - ImportFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) + UpdateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.flowContent != null) - if (typeof object.flowContent === "string") - $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); - else if (object.flowContent.length >= 0) - message.flowContent = object.flowContent; - switch (object.importOption) { - default: - if (typeof object.importOption === "number") { - message.importOption = object.importOption; - break; - } - break; - case "IMPORT_OPTION_UNSPECIFIED": - case 0: - message.importOption = 0; - break; - case "KEEP": - case 1: - message.importOption = 1; - break; - case "FALLBACK": - case 2: - message.importOption = 2; - break; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(); + if (object.flow != null) { + if (typeof object.flow !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.flow: object expected"); + message.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.fromObject(object.flow); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest.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 ImportFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} message ImportFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest} message UpdateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFlowRequest.toObject = function toObject(message, options) { + UpdateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.importOption = options.enums === String ? "IMPORT_OPTION_UNSPECIFIED" : 0; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - object.flowUri = message.flowUri; - if (options.oneofs) - object.flow = "flowUri"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; - if (options.oneofs) - object.flow = "flowContent"; + object.flow = null; + object.updateMask = null; + object.languageCode = ""; } - if (message.importOption != null && message.hasOwnProperty("importOption")) - object.importOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] === undefined ? message.importOption : $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] : message.importOption; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = $root.google.cloud.dialogflow.cx.v3beta1.Flow.toObject(message.flow, 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 ImportFlowRequest to JSON. + * Converts this UpdateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @instance * @returns {Object.} JSON object */ - ImportFlowRequest.prototype.toJSON = function toJSON() { + UpdateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFlowRequest + * Gets the default type url for UpdateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest"; }; - /** - * ImportOption enum. - * @name google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption - * @enum {number} - * @property {number} IMPORT_OPTION_UNSPECIFIED=0 IMPORT_OPTION_UNSPECIFIED value - * @property {number} KEEP=1 KEEP value - * @property {number} FALLBACK=2 FALLBACK value - */ - ImportFlowRequest.ImportOption = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IMPORT_OPTION_UNSPECIFIED"] = 0; - values[valuesById[1] = "KEEP"] = 1; - values[valuesById[2] = "FALLBACK"] = 2; - return values; - })(); - - return ImportFlowRequest; + return UpdateFlowRequest; })(); - v3beta1.ImportFlowResponse = (function() { + v3beta1.TrainFlowRequest = (function() { /** - * Properties of an ImportFlowResponse. + * Properties of a TrainFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IImportFlowResponse - * @property {string|null} [flow] ImportFlowResponse flow + * @interface ITrainFlowRequest + * @property {string|null} [name] TrainFlowRequest name */ /** - * Constructs a new ImportFlowResponse. + * Constructs a new TrainFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ImportFlowResponse. - * @implements IImportFlowResponse + * @classdesc Represents a TrainFlowRequest. + * @implements ITrainFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set */ - function ImportFlowResponse(properties) { + function TrainFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79278,75 +80685,75 @@ } /** - * ImportFlowResponse flow. - * @member {string} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * TrainFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @instance */ - ImportFlowResponse.prototype.flow = ""; + TrainFlowRequest.prototype.name = ""; /** - * Creates a new ImportFlowResponse instance using the specified properties. + * Creates a new TrainFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest instance */ - ImportFlowResponse.create = function create(properties) { - return new ImportFlowResponse(properties); + TrainFlowRequest.create = function create(properties) { + return new TrainFlowRequest(properties); }; /** - * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * Encodes the specified TrainFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowResponse.encode = function encode(message, writer) { + TrainFlowRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flow); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. + * Encodes the specified TrainFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITrainFlowRequest} message TrainFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + TrainFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer. + * Decodes a TrainFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @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.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowResponse.decode = function decode(reader, length) { + TrainFlowRequest.decode = function decode(reader, length) { 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.ImportFlowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flow = reader.string(); + message.name = reader.string(); break; } default: @@ -79358,124 +80765,123 @@ }; /** - * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a TrainFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + TrainFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFlowResponse message. + * Verifies a TrainFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFlowResponse.verify = function verify(message) { + TrainFlowRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.flow != null && message.hasOwnProperty("flow")) - if (!$util.isString(message.flow)) - return "flow: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a TrainFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} TrainFlowRequest */ - ImportFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse) + TrainFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse(); - if (object.flow != null) - message.flow = String(object.flow); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. + * Creates a plain object from a TrainFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} message ImportFlowResponse + * @param {google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest} message TrainFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFlowResponse.toObject = function toObject(message, options) { + TrainFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.flow = ""; - if (message.flow != null && message.hasOwnProperty("flow")) - object.flow = message.flow; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ImportFlowResponse to JSON. + * Converts this TrainFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @instance * @returns {Object.} JSON object */ - ImportFlowResponse.prototype.toJSON = function toJSON() { + TrainFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportFlowResponse + * Gets the default type url for TrainFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest"; }; - return ImportFlowResponse; + return TrainFlowRequest; })(); - v3beta1.ExportFlowRequest = (function() { + v3beta1.ValidateFlowRequest = (function() { /** - * Properties of an ExportFlowRequest. + * Properties of a ValidateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportFlowRequest - * @property {string|null} [name] ExportFlowRequest name - * @property {string|null} [flowUri] ExportFlowRequest flowUri - * @property {boolean|null} [includeReferencedFlows] ExportFlowRequest includeReferencedFlows + * @interface IValidateFlowRequest + * @property {string|null} [name] ValidateFlowRequest name + * @property {string|null} [languageCode] ValidateFlowRequest languageCode */ /** - * Constructs a new ExportFlowRequest. + * Constructs a new ValidateFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportFlowRequest. - * @implements IExportFlowRequest + * @classdesc Represents a ValidateFlowRequest. + * @implements IValidateFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set */ - function ExportFlowRequest(properties) { + function ValidateFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79483,90 +80889,80 @@ } /** - * ExportFlowRequest name. + * ValidateFlowRequest name. * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest - * @instance - */ - ExportFlowRequest.prototype.name = ""; - - /** - * ExportFlowRequest flowUri. - * @member {string} flowUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @instance */ - ExportFlowRequest.prototype.flowUri = ""; + ValidateFlowRequest.prototype.name = ""; /** - * ExportFlowRequest includeReferencedFlows. - * @member {boolean} includeReferencedFlows - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * ValidateFlowRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @instance */ - ExportFlowRequest.prototype.includeReferencedFlows = false; + ValidateFlowRequest.prototype.languageCode = ""; /** - * Creates a new ExportFlowRequest instance using the specified properties. + * Creates a new ValidateFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest instance */ - ExportFlowRequest.create = function create(properties) { - return new ExportFlowRequest(properties); + ValidateFlowRequest.create = function create(properties) { + return new ValidateFlowRequest(properties); }; /** - * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * Encodes the specified ValidateFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowRequest.encode = function encode(message, writer) { + ValidateFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); - if (message.includeReferencedFlows != null && Object.hasOwnProperty.call(message, "includeReferencedFlows")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeReferencedFlows); + if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.languageCode); return writer; }; /** - * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * Encodes the specified ValidateFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IValidateFlowRequest} message ValidateFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { + ValidateFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer. + * Decodes a ValidateFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @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.ExportFlowRequest} ExportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowRequest.decode = function decode(reader, length) { + ValidateFlowRequest.decode = function decode(reader, length) { 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.ExportFlowRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -79575,11 +80971,7 @@ break; } case 2: { - message.flowUri = reader.string(); - break; - } - case 4: { - message.includeReferencedFlows = reader.bool(); + message.languageCode = reader.string(); break; } default: @@ -79591,140 +80983,132 @@ }; /** - * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. + * Decodes a ValidateFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowRequest.decodeDelimited = function decodeDelimited(reader) { + ValidateFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFlowRequest message. + * Verifies a ValidateFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFlowRequest.verify = function verify(message) { + ValidateFlowRequest.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.flowUri != null && message.hasOwnProperty("flowUri")) - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) - if (typeof message.includeReferencedFlows !== "boolean") - return "includeReferencedFlows: boolean expected"; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; return null; }; /** - * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ValidateFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} ValidateFlowRequest */ - ExportFlowRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) + ValidateFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.includeReferencedFlows != null) - message.includeReferencedFlows = Boolean(object.includeReferencedFlows); + if (object.languageCode != null) + message.languageCode = String(object.languageCode); return message; }; /** - * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. + * Creates a plain object from a ValidateFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} message ExportFlowRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest} message ValidateFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFlowRequest.toObject = function toObject(message, options) { + ValidateFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.flowUri = ""; - object.includeReferencedFlows = false; + object.languageCode = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) - object.flowUri = message.flowUri; - if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) - object.includeReferencedFlows = message.includeReferencedFlows; + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; return object; }; /** - * Converts this ExportFlowRequest to JSON. + * Converts this ValidateFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @instance * @returns {Object.} JSON object */ - ExportFlowRequest.prototype.toJSON = function toJSON() { + ValidateFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFlowRequest + * Gets the default type url for ValidateFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidateFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest"; }; - return ExportFlowRequest; + return ValidateFlowRequest; })(); - v3beta1.ExportFlowResponse = (function() { + v3beta1.GetFlowValidationResultRequest = (function() { /** - * Properties of an ExportFlowResponse. + * Properties of a GetFlowValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IExportFlowResponse - * @property {string|null} [flowUri] ExportFlowResponse flowUri - * @property {Uint8Array|null} [flowContent] ExportFlowResponse flowContent + * @interface IGetFlowValidationResultRequest + * @property {string|null} [name] GetFlowValidationResultRequest name + * @property {string|null} [languageCode] GetFlowValidationResultRequest languageCode */ /** - * Constructs a new ExportFlowResponse. + * Constructs a new GetFlowValidationResultRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an ExportFlowResponse. - * @implements IExportFlowResponse + * @classdesc Represents a GetFlowValidationResultRequest. + * @implements IGetFlowValidationResultRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set */ - function ExportFlowResponse(properties) { + function GetFlowValidationResultRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -79732,103 +81116,89 @@ } /** - * ExportFlowResponse flowUri. - * @member {string|null|undefined} flowUri - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse - * @instance - */ - ExportFlowResponse.prototype.flowUri = null; - - /** - * ExportFlowResponse flowContent. - * @member {Uint8Array|null|undefined} flowContent - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * GetFlowValidationResultRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @instance */ - ExportFlowResponse.prototype.flowContent = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + GetFlowValidationResultRequest.prototype.name = ""; /** - * ExportFlowResponse flow. - * @member {"flowUri"|"flowContent"|undefined} flow - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * GetFlowValidationResultRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @instance */ - Object.defineProperty(ExportFlowResponse.prototype, "flow", { - get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetFlowValidationResultRequest.prototype.languageCode = ""; /** - * Creates a new ExportFlowResponse instance using the specified properties. + * Creates a new GetFlowValidationResultRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest instance */ - ExportFlowResponse.create = function create(properties) { - return new ExportFlowResponse(properties); + GetFlowValidationResultRequest.create = function create(properties) { + return new GetFlowValidationResultRequest(properties); }; /** - * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * Encodes the specified GetFlowValidationResultRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowResponse.encode = function encode(message, writer) { + GetFlowValidationResultRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flowUri); - if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.flowContent); + 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 ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. + * Encodes the specified GetFlowValidationResultRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetFlowValidationResultRequest} message GetFlowValidationResultRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetFlowValidationResultRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @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.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowResponse.decode = function decode(reader, length) { + GetFlowValidationResultRequest.decode = function decode(reader, length) { 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.ExportFlowResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.flowUri = reader.string(); + message.name = reader.string(); break; } case 2: { - message.flowContent = reader.bytes(); + message.languageCode = reader.string(); break; } default: @@ -79840,352 +81210,411 @@ }; /** - * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. + * Decodes a GetFlowValidationResultRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFlowResponse.decodeDelimited = function decodeDelimited(reader) { + GetFlowValidationResultRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFlowResponse message. + * Verifies a GetFlowValidationResultRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFlowResponse.verify = function verify(message) { + GetFlowValidationResultRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - properties.flow = 1; - if (!$util.isString(message.flowUri)) - return "flowUri: string expected"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - if (properties.flow === 1) - return "flow: multiple values"; - properties.flow = 1; - if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) - return "flowContent: buffer 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 an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetFlowValidationResultRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} GetFlowValidationResultRequest */ - ExportFlowResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse) + GetFlowValidationResultRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse(); - if (object.flowUri != null) - message.flowUri = String(object.flowUri); - if (object.flowContent != null) - if (typeof object.flowContent === "string") - $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); - else if (object.flowContent.length >= 0) - message.flowContent = object.flowContent; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(); + 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 ExportFlowResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetFlowValidationResultRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} message ExportFlowResponse + * @param {google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest} message GetFlowValidationResultRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFlowResponse.toObject = function toObject(message, options) { + GetFlowValidationResultRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.flowUri != null && message.hasOwnProperty("flowUri")) { - object.flowUri = message.flowUri; - if (options.oneofs) - object.flow = "flowUri"; - } - if (message.flowContent != null && message.hasOwnProperty("flowContent")) { - object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; - if (options.oneofs) - object.flow = "flowContent"; + 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 ExportFlowResponse to JSON. + * Converts this GetFlowValidationResultRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @instance * @returns {Object.} JSON object */ - ExportFlowResponse.prototype.toJSON = function toJSON() { + GetFlowValidationResultRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportFlowResponse + * Gets the default type url for GetFlowValidationResultRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetFlowValidationResultRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest"; }; - return ExportFlowResponse; + return GetFlowValidationResultRequest; })(); - v3beta1.Pages = (function() { + v3beta1.FlowValidationResult = (function() { /** - * Constructs a new Pages service. + * Properties of a FlowValidationResult. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Pages - * @extends $protobuf.rpc.Service + * @interface IFlowValidationResult + * @property {string|null} [name] FlowValidationResult name + * @property {Array.|null} [validationMessages] FlowValidationResult validationMessages + * @property {google.protobuf.ITimestamp|null} [updateTime] FlowValidationResult updateTime + */ + + /** + * Constructs a new FlowValidationResult. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a FlowValidationResult. + * @implements IFlowValidationResult * @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.v3beta1.IFlowValidationResult=} [properties] Properties to set */ - function Pages(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function FlowValidationResult(properties) { + this.validationMessages = []; + 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]]; } - (Pages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Pages; - /** - * Creates new Pages service using the specified rpc implementation. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @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 {Pages} RPC service. Useful where requests and/or responses are streamed. + * FlowValidationResult name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @instance */ - Pages.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + FlowValidationResult.prototype.name = ""; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef ListPagesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} [response] ListPagesResponse + * FlowValidationResult validationMessages. + * @member {Array.} validationMessages + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @instance */ + FlowValidationResult.prototype.validationMessages = $util.emptyArray; /** - * Calls ListPages. - * @function listPages - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * FlowValidationResult updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { - return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, request, callback); - }, "name", { value: "ListPages" }); + FlowValidationResult.prototype.updateTime = null; /** - * Calls ListPages. - * @function listPages - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef GetPageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page - */ - - /** - * Calls GetPage. - * @function getPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { - return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); - }, "name", { value: "GetPage" }); - - /** - * Calls GetPage. - * @function getPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new FlowValidationResult instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult instance */ + FlowValidationResult.create = function create(properties) { + return new FlowValidationResult(properties); + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|createPage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef CreatePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + * Encodes the specified FlowValidationResult message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + FlowValidationResult.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.validationMessages != null && message.validationMessages.length) + for (var i = 0; i < message.validationMessages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.encode(message.validationMessages[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; /** - * Calls CreatePage. - * @function createPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 + * Encodes the specified FlowValidationResult message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IFlowValidationResult} message FlowValidationResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { - return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); - }, "name", { value: "CreatePage" }); + FlowValidationResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreatePage. - * @function createPage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a FlowValidationResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @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.FlowValidationResult} FlowValidationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + FlowValidationResult.decode = function decode(reader, length) { + 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.FlowValidationResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.validationMessages && message.validationMessages.length)) + message.validationMessages = []; + message.validationMessages.push($root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.decode(reader, reader.uint32())); + break; + } + case 3: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|updatePage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef UpdatePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + * Decodes a FlowValidationResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + FlowValidationResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UpdatePage. - * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page - * @returns {undefined} - * @variation 1 + * Verifies a FlowValidationResult message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { - return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); - }, "name", { value: "UpdatePage" }); + FlowValidationResult.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.validationMessages != null && message.hasOwnProperty("validationMessages")) { + if (!Array.isArray(message.validationMessages)) + return "validationMessages: array expected"; + for (var i = 0; i < message.validationMessages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.verify(message.validationMessages[i]); + if (error) + return "validationMessages." + error; + } + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + return null; + }; /** - * Calls UpdatePage. - * @function updatePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a FlowValidationResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} FlowValidationResult */ + FlowValidationResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult(); + if (object.name != null) + message.name = String(object.name); + if (object.validationMessages) { + if (!Array.isArray(object.validationMessages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: array expected"); + message.validationMessages = []; + for (var i = 0; i < object.validationMessages.length; ++i) { + if (typeof object.validationMessages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.validationMessages: object expected"); + message.validationMessages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.fromObject(object.validationMessages[i]); + } + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + return message; + }; /** - * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @typedef DeletePageCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a FlowValidationResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.FlowValidationResult} message FlowValidationResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + FlowValidationResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.validationMessages = []; + if (options.defaults) { + object.name = ""; + object.updateTime = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.validationMessages && message.validationMessages.length) { + object.validationMessages = []; + for (var j = 0; j < message.validationMessages.length; ++j) + object.validationMessages[j] = $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.toObject(message.validationMessages[j], options); + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + return object; + }; /** - * Calls DeletePage. - * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * Converts this FlowValidationResult to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object - * @param {google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { - return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "DeletePage" }); + FlowValidationResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeletePage. - * @function deletePage - * @memberof google.cloud.dialogflow.cx.v3beta1.Pages - * @instance - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for FlowValidationResult + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.FlowValidationResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + FlowValidationResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.FlowValidationResult"; + }; - return Pages; + return FlowValidationResult; })(); - v3beta1.Page = (function() { + v3beta1.ImportFlowRequest = (function() { /** - * Properties of a Page. + * Properties of an ImportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IPage - * @property {string|null} [name] Page name - * @property {string|null} [displayName] Page displayName - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [entryFulfillment] Page entryFulfillment - * @property {google.cloud.dialogflow.cx.v3beta1.IForm|null} [form] Page form - * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups - * @property {Array.|null} [transitionRoutes] Page transitionRoutes - * @property {Array.|null} [eventHandlers] Page eventHandlers + * @interface IImportFlowRequest + * @property {string|null} [parent] ImportFlowRequest parent + * @property {string|null} [flowUri] ImportFlowRequest flowUri + * @property {Uint8Array|null} [flowContent] ImportFlowRequest flowContent + * @property {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption|null} [importOption] ImportFlowRequest importOption */ /** - * Constructs a new Page. + * Constructs a new ImportFlowRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Page. - * @implements IPage + * @classdesc Represents an ImportFlowRequest. + * @implements IImportFlowRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set */ - function Page(properties) { - this.transitionRouteGroups = []; - this.transitionRoutes = []; - this.eventHandlers = []; + function ImportFlowRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80193,168 +81622,131 @@ } /** - * Page name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.Page - * @instance - */ - Page.prototype.name = ""; - - /** - * Page displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * ImportFlowRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Page.prototype.displayName = ""; + ImportFlowRequest.prototype.parent = ""; /** - * Page entryFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} entryFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * ImportFlowRequest flowUri. + * @member {string|null|undefined} flowUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Page.prototype.entryFulfillment = null; + ImportFlowRequest.prototype.flowUri = null; /** - * Page form. - * @member {google.cloud.dialogflow.cx.v3beta1.IForm|null|undefined} form - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * ImportFlowRequest flowContent. + * @member {Uint8Array|null|undefined} flowContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Page.prototype.form = null; + ImportFlowRequest.prototype.flowContent = null; /** - * Page transitionRouteGroups. - * @member {Array.} transitionRouteGroups - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * ImportFlowRequest importOption. + * @member {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption} importOption + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Page.prototype.transitionRouteGroups = $util.emptyArray; + ImportFlowRequest.prototype.importOption = 0; - /** - * Page transitionRoutes. - * @member {Array.} transitionRoutes - * @memberof google.cloud.dialogflow.cx.v3beta1.Page - * @instance - */ - Page.prototype.transitionRoutes = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Page eventHandlers. - * @member {Array.} eventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * ImportFlowRequest flow. + * @member {"flowUri"|"flowContent"|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance */ - Page.prototype.eventHandlers = $util.emptyArray; + Object.defineProperty(ImportFlowRequest.prototype, "flow", { + get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new Page instance using the specified properties. + * Creates a new ImportFlowRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest instance */ - Page.create = function create(properties) { - return new Page(properties); + ImportFlowRequest.create = function create(properties) { + return new ImportFlowRequest(properties); }; /** - * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified ImportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Page.encode = function encode(message, writer) { + ImportFlowRequest.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.form != null && Object.hasOwnProperty.call(message, "form")) - $root.google.cloud.dialogflow.cx.v3beta1.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - 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 9, wireType 2 =*/74).fork()).ldelim(); - if (message.eventHandlers != null && message.eventHandlers.length) - for (var i = 0; i < message.eventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) - for (var i = 0; i < message.transitionRouteGroups.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); + if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) + writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.flowContent); + if (message.importOption != null && Object.hasOwnProperty.call(message, "importOption")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.importOption); return writer; }; /** - * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. + * Encodes the specified ImportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowRequest} message ImportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Page.encodeDelimited = function encodeDelimited(message, writer) { + ImportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Page message from the specified reader or buffer. + * Decodes an ImportFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @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.Page} Page + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Page.decode = function decode(reader, length) { + ImportFlowRequest.decode = function decode(reader, length) { 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.Page(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); 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(); + message.flowUri = reader.string(); break; } - case 7: { - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + case 3: { + message.flowContent = reader.bytes(); break; } case 4: { - message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.decode(reader, reader.uint32()); - break; - } - case 11: { - if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) - message.transitionRouteGroups = []; - message.transitionRouteGroups.push(reader.string()); - break; - } - case 9: { - if (!(message.transitionRoutes && message.transitionRoutes.length)) - message.transitionRoutes = []; - message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); - break; - } - case 10: { - if (!(message.eventHandlers && message.eventHandlers.length)) - message.eventHandlers = []; - message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + message.importOption = reader.int32(); break; } default: @@ -80366,230 +81758,201 @@ }; /** - * Decodes a Page message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Page.decodeDelimited = function decodeDelimited(reader) { + ImportFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Page message. + * Verifies an ImportFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Page.verify = function verify(message) { + ImportFlowRequest.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.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.entryFulfillment); - if (error) - return "entryFulfillment." + error; - } - if (message.form != null && message.hasOwnProperty("form")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.verify(message.form); - if (error) - return "form." + 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) - if (!$util.isString(message.transitionRouteGroups[i])) - return "transitionRouteGroups: string[] expected"; + var properties = {}; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + properties.flow = 1; + if (!$util.isString(message.flowUri)) + return "flowUri: 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.flowContent != null && message.hasOwnProperty("flowContent")) { + if (properties.flow === 1) + return "flow: multiple values"; + properties.flow = 1; + if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) + return "flowContent: buffer expected"; } - if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { - if (!Array.isArray(message.eventHandlers)) - return "eventHandlers: array expected"; - for (var i = 0; i < message.eventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); - if (error) - return "eventHandlers." + error; + if (message.importOption != null && message.hasOwnProperty("importOption")) + switch (message.importOption) { + default: + return "importOption: enum value expected"; + case 0: + case 1: + case 2: + break; } - } return null; }; /** - * Creates a Page message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} ImportFlowRequest */ - Page.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Page) + ImportFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.entryFulfillment != null) { - if (typeof object.entryFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.entryFulfillment: object expected"); - message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.entryFulfillment); - } - if (object.form != null) { - if (typeof object.form !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.form: object expected"); - message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.fromObject(object.form); - } - if (object.transitionRouteGroups) { - if (!Array.isArray(object.transitionRouteGroups)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRouteGroups: array expected"); - message.transitionRouteGroups = []; - for (var i = 0; i < object.transitionRouteGroups.length; ++i) - message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); - } - if (object.transitionRoutes) { - if (!Array.isArray(object.transitionRoutes)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.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.Page.transitionRoutes: object expected"); - message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); - } - } - if (object.eventHandlers) { - if (!Array.isArray(object.eventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: array expected"); - message.eventHandlers = []; - for (var i = 0; i < object.eventHandlers.length; ++i) { - if (typeof object.eventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: object expected"); - message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.flowContent != null) + if (typeof object.flowContent === "string") + $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); + else if (object.flowContent.length >= 0) + message.flowContent = object.flowContent; + switch (object.importOption) { + default: + if (typeof object.importOption === "number") { + message.importOption = object.importOption; + break; } + break; + case "IMPORT_OPTION_UNSPECIFIED": + case 0: + message.importOption = 0; + break; + case "KEEP": + case 1: + message.importOption = 1; + break; + case "FALLBACK": + case 2: + message.importOption = 2; + break; } return message; }; /** - * Creates a plain object from a Page message. Also converts values to other types if specified. + * Creates a plain object from an ImportFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Page} message Page + * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest} message ImportFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Page.toObject = function toObject(message, options) { + ImportFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.transitionRoutes = []; - object.eventHandlers = []; - object.transitionRouteGroups = []; - } if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.form = null; - object.entryFulfillment = 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.form != null && message.hasOwnProperty("form")) - object.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.toObject(message.form, options); - if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) - object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.entryFulfillment, options); - 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.parent = ""; + object.importOption = options.enums === String ? "IMPORT_OPTION_UNSPECIFIED" : 0; } - if (message.eventHandlers && message.eventHandlers.length) { - object.eventHandlers = []; - for (var j = 0; j < message.eventHandlers.length; ++j) - object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + object.flowUri = message.flowUri; + if (options.oneofs) + object.flow = "flowUri"; } - if (message.transitionRouteGroups && message.transitionRouteGroups.length) { - object.transitionRouteGroups = []; - for (var j = 0; j < message.transitionRouteGroups.length; ++j) - object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; + if (options.oneofs) + object.flow = "flowContent"; } + if (message.importOption != null && message.hasOwnProperty("importOption")) + object.importOption = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] === undefined ? message.importOption : $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption[message.importOption] : message.importOption; return object; }; /** - * Converts this Page to JSON. + * Converts this ImportFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @instance * @returns {Object.} JSON object */ - Page.prototype.toJSON = function toJSON() { + ImportFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Page + * Gets the default type url for ImportFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Page"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest"; }; - return Page; + /** + * ImportOption enum. + * @name google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption + * @enum {number} + * @property {number} IMPORT_OPTION_UNSPECIFIED=0 IMPORT_OPTION_UNSPECIFIED value + * @property {number} KEEP=1 KEEP value + * @property {number} FALLBACK=2 FALLBACK value + */ + ImportFlowRequest.ImportOption = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IMPORT_OPTION_UNSPECIFIED"] = 0; + values[valuesById[1] = "KEEP"] = 1; + values[valuesById[2] = "FALLBACK"] = 2; + return values; + })(); + + return ImportFlowRequest; })(); - v3beta1.Form = (function() { + v3beta1.ImportFlowResponse = (function() { /** - * Properties of a Form. + * Properties of an ImportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IForm - * @property {Array.|null} [parameters] Form parameters + * @interface IImportFlowResponse + * @property {string|null} [flow] ImportFlowResponse flow */ /** - * Constructs a new Form. + * Constructs a new ImportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Form. - * @implements IForm + * @classdesc Represents an ImportFlowResponse. + * @implements IImportFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set */ - function Form(properties) { - this.parameters = []; + function ImportFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -80597,78 +81960,75 @@ } /** - * Form parameters. - * @member {Array.} parameters - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * ImportFlowResponse flow. + * @member {string} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @instance */ - Form.prototype.parameters = $util.emptyArray; + ImportFlowResponse.prototype.flow = ""; /** - * Creates a new Form instance using the specified properties. + * Creates a new ImportFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form instance + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse instance */ - Form.create = function create(properties) { - return new Form(properties); + ImportFlowResponse.create = function create(properties) { + return new ImportFlowResponse(properties); }; /** - * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified ImportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Form.encode = function encode(message, writer) { + ImportFlowResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flow); return writer; }; /** - * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. + * Encodes the specified ImportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IImportFlowResponse} message ImportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Form.encodeDelimited = function encodeDelimited(message, writer) { + ImportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Form message from the specified reader or buffer. + * Decodes an ImportFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static * @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.Form} Form + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Form.decode = function decode(reader, length) { + ImportFlowResponse.decode = function decode(reader, length) { 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.Form(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.decode(reader, reader.uint32())); + message.flow = reader.string(); break; } default: @@ -80680,894 +82040,228 @@ }; /** - * Decodes a Form message from the specified reader or buffer, length delimited. + * Decodes an ImportFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Form.decodeDelimited = function decodeDelimited(reader) { + ImportFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Form message. + * Verifies an ImportFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Form.verify = function verify(message) { + ImportFlowResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.Form.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } + if (message.flow != null && message.hasOwnProperty("flow")) + if (!$util.isString(message.flow)) + return "flow: string expected"; return null; }; /** - * Creates a Form message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form + * @returns {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} ImportFlowResponse */ - Form.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form) + ImportFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form(); - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.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.Form.parameters: object expected"); - message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fromObject(object.parameters[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse(); + if (object.flow != null) + message.flow = String(object.flow); return message; }; /** - * Creates a plain object from a Form message. Also converts values to other types if specified. + * Creates a plain object from an ImportFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form} message Form + * @param {google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse} message ImportFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Form.toObject = function toObject(message, options) { + ImportFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.parameters = []; - 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.Form.Parameter.toObject(message.parameters[j], options); - } + if (options.defaults) + object.flow = ""; + if (message.flow != null && message.hasOwnProperty("flow")) + object.flow = message.flow; return object; }; /** - * Converts this Form to JSON. + * Converts this ImportFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @instance * @returns {Object.} JSON object */ - Form.prototype.toJSON = function toJSON() { + ImportFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Form + * Gets the default type url for ImportFlowResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @memberof google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ImportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse"; }; - Form.Parameter = (function() { + return ImportFlowResponse; + })(); - /** - * Properties of a Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form - * @interface IParameter - * @property {string|null} [displayName] Parameter displayName - * @property {boolean|null} [required] Parameter required - * @property {string|null} [entityType] Parameter entityType - * @property {boolean|null} [isList] Parameter isList - * @property {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior - * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue - * @property {boolean|null} [redact] Parameter redact - */ + v3beta1.ExportFlowRequest = (function() { - /** - * Constructs a new Parameter. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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]]; - } + /** + * Properties of an ExportFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IExportFlowRequest + * @property {string|null} [name] ExportFlowRequest name + * @property {string|null} [flowUri] ExportFlowRequest flowUri + * @property {boolean|null} [includeReferencedFlows] ExportFlowRequest includeReferencedFlows + */ - /** - * Parameter displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.displayName = ""; + /** + * Constructs a new ExportFlowRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an ExportFlowRequest. + * @implements IExportFlowRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set + */ + function ExportFlowRequest(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 required. - * @member {boolean} required - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.required = false; + /** + * ExportFlowRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @instance + */ + ExportFlowRequest.prototype.name = ""; - /** - * Parameter entityType. - * @member {string} entityType - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.entityType = ""; + /** + * ExportFlowRequest flowUri. + * @member {string} flowUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @instance + */ + ExportFlowRequest.prototype.flowUri = ""; - /** - * Parameter isList. - * @member {boolean} isList - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.isList = false; + /** + * ExportFlowRequest includeReferencedFlows. + * @member {boolean} includeReferencedFlows + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @instance + */ + ExportFlowRequest.prototype.includeReferencedFlows = false; - /** - * Parameter fillBehavior. - * @member {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null|undefined} fillBehavior - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.fillBehavior = null; + /** + * Creates a new ExportFlowRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest instance + */ + ExportFlowRequest.create = function create(properties) { + return new ExportFlowRequest(properties); + }; - /** - * Parameter defaultValue. - * @member {google.protobuf.IValue|null|undefined} defaultValue - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.defaultValue = null; - - /** - * Parameter redact. - * @member {boolean} redact - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @instance - */ - Parameter.prototype.redact = false; - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.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.v3beta1.Form.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.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.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType); - if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); - if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) - $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); - return writer; - }; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.v3beta1.Form.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.Form.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.Form.Parameter(); - 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.entityType = reader.string(); - break; - } - case 4: { - message.isList = reader.bool(); - break; - } - case 7: { - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); - break; - } - case 9: { - message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 11: { - 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.v3beta1.Form.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.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.Form.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.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.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.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify(message.fillBehavior); - if (error) - return "fillBehavior." + error; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - var error = $root.google.protobuf.Value.verify(message.defaultValue); - if (error) - return "defaultValue." + error; - } - 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.Form.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.required != null) - message.required = Boolean(object.required); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.isList != null) - message.isList = Boolean(object.isList); - if (object.fillBehavior != null) { - if (typeof object.fillBehavior !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fillBehavior: object expected"); - message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); - } - if (object.defaultValue != null) { - if (typeof object.defaultValue !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.defaultValue: object expected"); - message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); - } - 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.Form.Parameter - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.displayName = ""; - object.required = false; - object.entityType = ""; - object.isList = false; - object.fillBehavior = null; - object.defaultValue = null; - object.redact = 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.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.isList != null && message.hasOwnProperty("isList")) - object.isList = message.isList; - if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) - object.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); - 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.v3beta1.Form.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Parameter - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter"; - }; - - Parameter.FillBehavior = (function() { - - /** - * Properties of a FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @interface IFillBehavior - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment - * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers - */ - - /** - * Constructs a new FillBehavior. - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter - * @classdesc Represents a FillBehavior. - * @implements IFillBehavior - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set - */ - function FillBehavior(properties) { - this.repromptEventHandlers = []; - 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]]; - } - - /** - * FillBehavior initialPromptFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} initialPromptFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @instance - */ - FillBehavior.prototype.initialPromptFulfillment = null; - - /** - * FillBehavior repromptEventHandlers. - * @member {Array.} repromptEventHandlers - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @instance - */ - FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; - - /** - * Creates a new FillBehavior instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior instance - */ - FillBehavior.create = function create(properties) { - return new FillBehavior(properties); - }; - - /** - * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FillBehavior.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) - for (var i = 0; i < message.repromptEventHandlers.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FillBehavior.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FillBehavior message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @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.Form.Parameter.FillBehavior} FillBehavior - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FillBehavior.decode = function decode(reader, length) { - 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.Form.Parameter.FillBehavior(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: { - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) - message.repromptEventHandlers = []; - message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FillBehavior message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FillBehavior.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FillBehavior message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FillBehavior.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.initialPromptFulfillment); - if (error) - return "initialPromptFulfillment." + error; - } - if (message.repromptEventHandlers != null && message.hasOwnProperty("repromptEventHandlers")) { - if (!Array.isArray(message.repromptEventHandlers)) - return "repromptEventHandlers: array expected"; - for (var i = 0; i < message.repromptEventHandlers.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.repromptEventHandlers[i]); - if (error) - return "repromptEventHandlers." + error; - } - } - return null; - }; - - /** - * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior - */ - FillBehavior.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); - if (object.initialPromptFulfillment != null) { - if (typeof object.initialPromptFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); - message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.initialPromptFulfillment); - } - if (object.repromptEventHandlers) { - if (!Array.isArray(object.repromptEventHandlers)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); - message.repromptEventHandlers = []; - for (var i = 0; i < object.repromptEventHandlers.length; ++i) { - if (typeof object.repromptEventHandlers[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); - message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.repromptEventHandlers[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} message FillBehavior - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FillBehavior.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.repromptEventHandlers = []; - if (options.defaults) - object.initialPromptFulfillment = null; - if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) - object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.initialPromptFulfillment, options); - if (message.repromptEventHandlers && message.repromptEventHandlers.length) { - object.repromptEventHandlers = []; - for (var j = 0; j < message.repromptEventHandlers.length; ++j) - object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.repromptEventHandlers[j], options); - } - return object; - }; - - /** - * Converts this FillBehavior to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @instance - * @returns {Object.} JSON object - */ - FillBehavior.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for FillBehavior - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FillBehavior.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior"; - }; - - return FillBehavior; - })(); - - return Parameter; - })(); - - return Form; - })(); - - v3beta1.EventHandler = (function() { - - /** - * Properties of an EventHandler. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IEventHandler - * @property {string|null} [name] EventHandler name - * @property {string|null} [event] EventHandler event - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment - * @property {string|null} [targetPage] EventHandler targetPage - * @property {string|null} [targetFlow] EventHandler targetFlow - */ - - /** - * Constructs a new EventHandler. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an EventHandler. - * @implements IEventHandler - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set - */ - function EventHandler(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]]; - } - - /** - * EventHandler name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.name = ""; - - /** - * EventHandler event. - * @member {string} event - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.event = ""; - - /** - * EventHandler triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.triggerFulfillment = null; - - /** - * EventHandler targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.targetPage = null; - - /** - * EventHandler targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - EventHandler.prototype.targetFlow = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * EventHandler target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @instance - */ - Object.defineProperty(EventHandler.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new EventHandler instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler instance - */ - EventHandler.create = function create(properties) { - return new EventHandler(properties); - }; - - /** - * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventHandler.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetFlow); - if (message.event != null && Object.hasOwnProperty.call(message, "event")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - return writer; - }; + /** + * Encodes the specified ExportFlowRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFlowRequest.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.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.flowUri); + if (message.includeReferencedFlows != null && Object.hasOwnProperty.call(message, "includeReferencedFlows")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeReferencedFlows); + return writer; + }; /** - * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. + * Encodes the specified ExportFlowRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowRequest} message ExportFlowRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EventHandler.encodeDelimited = function encodeDelimited(message, writer) { + ExportFlowRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EventHandler message from the specified reader or buffer. + * Decodes an ExportFlowRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @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.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventHandler.decode = function decode(reader, length) { + ExportFlowRequest.decode = function decode(reader, length) { 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.EventHandler(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: { + case 1: { message.name = reader.string(); break; } - case 4: { - message.event = reader.string(); - break; - } - case 5: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } case 2: { - message.targetPage = reader.string(); + message.flowUri = reader.string(); break; } - case 3: { - message.targetFlow = reader.string(); + case 4: { + message.includeReferencedFlows = reader.bool(); break; } default: @@ -81579,176 +82273,140 @@ }; /** - * Decodes an EventHandler message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EventHandler.decodeDelimited = function decodeDelimited(reader) { + ExportFlowRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EventHandler message. + * Verifies an ExportFlowRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EventHandler.verify = function verify(message) { + ExportFlowRequest.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.event != null && message.hasOwnProperty("event")) - if (!$util.isString(message.event)) - return "event: string expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; - } + if (message.flowUri != null && message.hasOwnProperty("flowUri")) + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; + if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) + if (typeof message.includeReferencedFlows !== "boolean") + return "includeReferencedFlows: boolean expected"; return null; }; /** - * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} ExportFlowRequest */ - EventHandler.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventHandler) + ExportFlowRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(); if (object.name != null) message.name = String(object.name); - if (object.event != null) - message.event = String(object.event); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EventHandler.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); - } - if (object.targetPage != null) - message.targetPage = String(object.targetPage); - if (object.targetFlow != null) - message.targetFlow = String(object.targetFlow); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.includeReferencedFlows != null) + message.includeReferencedFlows = Boolean(object.includeReferencedFlows); return message; }; /** - * Creates a plain object from an EventHandler message. Also converts values to other types if specified. + * Creates a plain object from an ExportFlowRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.EventHandler} message EventHandler + * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest} message ExportFlowRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EventHandler.toObject = function toObject(message, options) { + ExportFlowRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.event = ""; - object.triggerFulfillment = null; object.name = ""; + object.flowUri = ""; + object.includeReferencedFlows = false; } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; - if (options.oneofs) - object.target = "targetPage"; - } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; - if (options.oneofs) - object.target = "targetFlow"; - } - if (message.event != null && message.hasOwnProperty("event")) - object.event = message.event; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) + object.flowUri = message.flowUri; + if (message.includeReferencedFlows != null && message.hasOwnProperty("includeReferencedFlows")) + object.includeReferencedFlows = message.includeReferencedFlows; return object; }; /** - * Converts this EventHandler to JSON. + * Converts this ExportFlowRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @instance * @returns {Object.} JSON object */ - EventHandler.prototype.toJSON = function toJSON() { + ExportFlowRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EventHandler + * Gets the default type url for ExportFlowRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EventHandler.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportFlowRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EventHandler"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest"; }; - return EventHandler; + return ExportFlowRequest; })(); - v3beta1.TransitionRoute = (function() { + v3beta1.ExportFlowResponse = (function() { /** - * Properties of a TransitionRoute. + * Properties of an ExportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ITransitionRoute - * @property {string|null} [name] TransitionRoute name - * @property {string|null} [intent] TransitionRoute intent - * @property {string|null} [condition] TransitionRoute condition - * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment - * @property {string|null} [targetPage] TransitionRoute targetPage - * @property {string|null} [targetFlow] TransitionRoute targetFlow + * @interface IExportFlowResponse + * @property {string|null} [flowUri] ExportFlowResponse flowUri + * @property {Uint8Array|null} [flowContent] ExportFlowResponse flowContent */ /** - * Constructs a new TransitionRoute. + * Constructs a new ExportFlowResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a TransitionRoute. - * @implements ITransitionRoute + * @classdesc Represents an ExportFlowResponse. + * @implements IExportFlowResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set */ - function TransitionRoute(properties) { + function ExportFlowResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81756,159 +82414,103 @@ } /** - * TransitionRoute name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.name = ""; - - /** - * TransitionRoute intent. - * @member {string} intent - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.intent = ""; - - /** - * TransitionRoute condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.condition = ""; - - /** - * TransitionRoute triggerFulfillment. - * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute - * @instance - */ - TransitionRoute.prototype.triggerFulfillment = null; - - /** - * TransitionRoute targetPage. - * @member {string|null|undefined} targetPage - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * ExportFlowResponse flowUri. + * @member {string|null|undefined} flowUri + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @instance */ - TransitionRoute.prototype.targetPage = null; + ExportFlowResponse.prototype.flowUri = null; /** - * TransitionRoute targetFlow. - * @member {string|null|undefined} targetFlow - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * ExportFlowResponse flowContent. + * @member {Uint8Array|null|undefined} flowContent + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @instance */ - TransitionRoute.prototype.targetFlow = null; + ExportFlowResponse.prototype.flowContent = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; /** - * TransitionRoute target. - * @member {"targetPage"|"targetFlow"|undefined} target - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * ExportFlowResponse flow. + * @member {"flowUri"|"flowContent"|undefined} flow + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @instance */ - Object.defineProperty(TransitionRoute.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + Object.defineProperty(ExportFlowResponse.prototype, "flow", { + get: $util.oneOfGetter($oneOfFields = ["flowUri", "flowContent"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new TransitionRoute instance using the specified properties. + * Creates a new ExportFlowResponse instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute instance + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse instance */ - TransitionRoute.create = function create(properties) { - return new TransitionRoute(properties); + ExportFlowResponse.create = function create(properties) { + return new ExportFlowResponse(properties); }; /** - * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * Encodes the specified ExportFlowResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRoute.encode = function encode(message, writer) { + ExportFlowResponse.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.condition != null && Object.hasOwnProperty.call(message, "condition")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); - if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); - if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.flowUri != null && Object.hasOwnProperty.call(message, "flowUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.flowUri); + if (message.flowContent != null && Object.hasOwnProperty.call(message, "flowContent")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.flowContent); return writer; }; /** - * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. + * Encodes the specified ExportFlowResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IExportFlowResponse} message ExportFlowResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TransitionRoute.encodeDelimited = function encodeDelimited(message, writer) { + ExportFlowResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TransitionRoute message from the specified reader or buffer. + * Decodes an ExportFlowResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static * @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.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRoute.decode = function decode(reader, length) { + ExportFlowResponse.decode = function decode(reader, length) { 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.TransitionRoute(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: { - message.name = reader.string(); - break; - } case 1: { - message.intent = reader.string(); + message.flowUri = reader.string(); break; } case 2: { - message.condition = reader.string(); - break; - } - case 3: { - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); - break; - } - case 4: { - message.targetPage = reader.string(); - break; - } - case 5: { - message.targetFlow = reader.string(); + message.flowContent = reader.bytes(); break; } default: @@ -81920,454 +82522,352 @@ }; /** - * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. + * Decodes an ExportFlowResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TransitionRoute.decodeDelimited = function decodeDelimited(reader) { + ExportFlowResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TransitionRoute message. + * Verifies an ExportFlowResponse message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TransitionRoute.verify = function verify(message) { + ExportFlowResponse.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.intent != null && message.hasOwnProperty("intent")) - if (!$util.isString(message.intent)) - return "intent: string expected"; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); - if (error) - return "triggerFulfillment." + error; - } - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - properties.target = 1; - if (!$util.isString(message.targetPage)) - return "targetPage: string expected"; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + properties.flow = 1; + if (!$util.isString(message.flowUri)) + return "flowUri: string expected"; } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - if (!$util.isString(message.targetFlow)) - return "targetFlow: string expected"; + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + if (properties.flow === 1) + return "flow: multiple values"; + properties.flow = 1; + if (!(message.flowContent && typeof message.flowContent.length === "number" || $util.isString(message.flowContent))) + return "flowContent: buffer expected"; } return null; }; /** - * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFlowResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute + * @returns {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} ExportFlowResponse */ - TransitionRoute.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) + ExportFlowResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); - if (object.name != null) - message.name = String(object.name); - if (object.intent != null) - message.intent = String(object.intent); - if (object.condition != null) - message.condition = String(object.condition); - if (object.triggerFulfillment != null) { - if (typeof object.triggerFulfillment !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRoute.triggerFulfillment: object expected"); - message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); - } - 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.v3beta1.ExportFlowResponse(); + if (object.flowUri != null) + message.flowUri = String(object.flowUri); + if (object.flowContent != null) + if (typeof object.flowContent === "string") + $util.base64.decode(object.flowContent, message.flowContent = $util.newBuffer($util.base64.length(object.flowContent)), 0); + else if (object.flowContent.length >= 0) + message.flowContent = object.flowContent; return message; }; /** - * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. + * Creates a plain object from an ExportFlowResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static - * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} message TransitionRoute + * @param {google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse} message ExportFlowResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TransitionRoute.toObject = function toObject(message, options) { + ExportFlowResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.intent = ""; - object.condition = ""; - object.triggerFulfillment = null; - object.name = ""; - } - if (message.intent != null && message.hasOwnProperty("intent")) - object.intent = message.intent; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) - object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); - if (message.targetPage != null && message.hasOwnProperty("targetPage")) { - object.targetPage = message.targetPage; + if (message.flowUri != null && message.hasOwnProperty("flowUri")) { + object.flowUri = message.flowUri; if (options.oneofs) - object.target = "targetPage"; + object.flow = "flowUri"; } - if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { - object.targetFlow = message.targetFlow; + if (message.flowContent != null && message.hasOwnProperty("flowContent")) { + object.flowContent = options.bytes === String ? $util.base64.encode(message.flowContent, 0, message.flowContent.length) : options.bytes === Array ? Array.prototype.slice.call(message.flowContent) : message.flowContent; if (options.oneofs) - object.target = "targetFlow"; + object.flow = "flowContent"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this TransitionRoute to JSON. + * Converts this ExportFlowResponse to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @instance * @returns {Object.} JSON object */ - TransitionRoute.prototype.toJSON = function toJSON() { + ExportFlowResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TransitionRoute + * Gets the default type url for ExportFlowResponse * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @memberof google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TransitionRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportFlowResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRoute"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse"; }; - return TransitionRoute; + return ExportFlowResponse; })(); - v3beta1.ListPagesRequest = (function() { + v3beta1.Pages = (function() { /** - * Properties of a ListPagesRequest. + * Constructs a new Pages service. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListPagesRequest - * @property {string|null} [parent] ListPagesRequest parent - * @property {string|null} [languageCode] ListPagesRequest languageCode - * @property {number|null} [pageSize] ListPagesRequest pageSize - * @property {string|null} [pageToken] ListPagesRequest pageToken + * @classdesc Represents a Pages + * @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 Pages(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (Pages.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Pages; /** - * Constructs a new ListPagesRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListPagesRequest. - * @implements IListPagesRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set + * Creates new Pages service using the specified rpc implementation. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @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 {Pages} RPC service. Useful where requests and/or responses are streamed. */ - function ListPagesRequest(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]]; - } + Pages.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ListPagesRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @instance + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|listPages}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef ListPagesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} [response] ListPagesResponse */ - ListPagesRequest.prototype.parent = ""; /** - * ListPagesRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * Calls ListPages. + * @function listPages + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.ListPagesCallback} callback Node-style callback called with the error, if any, and ListPagesResponse + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.prototype.languageCode = ""; + Object.defineProperty(Pages.prototype.listPages = function listPages(request, callback) { + return this.rpcCall(listPages, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest, $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse, request, callback); + }, "name", { value: "ListPages" }); /** - * ListPagesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * Calls ListPages. + * @function listPages + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} request ListPagesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.prototype.pageSize = 0; /** - * ListPagesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|getPage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef GetPageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page + */ + + /** + * Calls GetPage. + * @function getPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.GetPageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.prototype.pageToken = ""; + Object.defineProperty(Pages.prototype.getPage = function getPage(request, callback) { + return this.rpcCall(getPage, $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + }, "name", { value: "GetPage" }); /** - * Creates a new ListPagesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest instance + * Calls GetPage. + * @function getPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} request GetPageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.create = function create(properties) { - return new ListPagesRequest(properties); - }; /** - * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest 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.Pages|createPage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef CreatePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page */ - ListPagesRequest.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; - }; /** - * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreatePage. + * @function createPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.CreatePageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(Pages.prototype.createPage = function createPage(request, callback) { + return this.rpcCall(createPage, $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + }, "name", { value: "CreatePage" }); /** - * Decodes a ListPagesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @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.ListPagesRequest} ListPagesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreatePage. + * @function createPage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} request CreatePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.decode = function decode(reader, length) { - 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.ListPagesRequest(); - 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 ListPagesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest - * @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.Pages|updatePage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef UpdatePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.dialogflow.cx.v3beta1.Page} [response] Page */ - ListPagesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListPagesRequest message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdatePage. + * @function updatePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.UpdatePageCallback} callback Node-style callback called with the error, if any, and Page + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.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; - }; + Object.defineProperty(Pages.prototype.updatePage = function updatePage(request, callback) { + return this.rpcCall(updatePage, $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest, $root.google.cloud.dialogflow.cx.v3beta1.Page, request, callback); + }, "name", { value: "UpdatePage" }); /** - * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest + * Calls UpdatePage. + * @function updatePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} request UpdatePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(); - 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 ListPagesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} message ListPagesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.dialogflow.cx.v3beta1.Pages|deletePage}. + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @typedef DeletePageCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListPagesRequest.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; - }; /** - * Converts this ListPagesRequest to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * Calls DeletePage. + * @function deletePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages * @instance - * @returns {Object.} JSON object + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object + * @param {google.cloud.dialogflow.cx.v3beta1.Pages.DeletePageCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListPagesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(Pages.prototype.deletePage = function deletePage(request, callback) { + return this.rpcCall(deletePage, $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "DeletePage" }); /** - * Gets the default type url for ListPagesRequest - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls DeletePage. + * @function deletePage + * @memberof google.cloud.dialogflow.cx.v3beta1.Pages + * @instance + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} request DeletePageRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListPagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesRequest"; - }; - return ListPagesRequest; + return Pages; })(); - v3beta1.ListPagesResponse = (function() { + v3beta1.Page = (function() { /** - * Properties of a ListPagesResponse. + * Properties of a Page. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IListPagesResponse - * @property {Array.|null} [pages] ListPagesResponse pages - * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken + * @interface IPage + * @property {string|null} [name] Page name + * @property {string|null} [displayName] Page displayName + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [entryFulfillment] Page entryFulfillment + * @property {google.cloud.dialogflow.cx.v3beta1.IForm|null} [form] Page form + * @property {Array.|null} [transitionRouteGroups] Page transitionRouteGroups + * @property {Array.|null} [transitionRoutes] Page transitionRoutes + * @property {Array.|null} [eventHandlers] Page eventHandlers */ /** - * Constructs a new ListPagesResponse. + * Constructs a new Page. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ListPagesResponse. - * @implements IListPagesResponse + * @classdesc Represents a Page. + * @implements IPage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set */ - function ListPagesResponse(properties) { - this.pages = []; + function Page(properties) { + this.transitionRouteGroups = []; + this.transitionRoutes = []; + this.eventHandlers = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82375,92 +82875,168 @@ } /** - * ListPagesResponse pages. - * @member {Array.} pages - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * Page name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @instance */ - ListPagesResponse.prototype.pages = $util.emptyArray; + Page.prototype.name = ""; /** - * ListPagesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * Page displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @instance */ - ListPagesResponse.prototype.nextPageToken = ""; + Page.prototype.displayName = ""; /** - * Creates a new ListPagesResponse instance using the specified properties. + * Page entryFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} entryFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.entryFulfillment = null; + + /** + * Page form. + * @member {google.cloud.dialogflow.cx.v3beta1.IForm|null|undefined} form + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.form = null; + + /** + * Page transitionRouteGroups. + * @member {Array.} transitionRouteGroups + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.transitionRouteGroups = $util.emptyArray; + + /** + * Page transitionRoutes. + * @member {Array.} transitionRoutes + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.transitionRoutes = $util.emptyArray; + + /** + * Page eventHandlers. + * @member {Array.} eventHandlers + * @memberof google.cloud.dialogflow.cx.v3beta1.Page + * @instance + */ + Page.prototype.eventHandlers = $util.emptyArray; + + /** + * Creates a new Page instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse instance + * @param {google.cloud.dialogflow.cx.v3beta1.IPage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page instance */ - ListPagesResponse.create = function create(properties) { - return new ListPagesResponse(properties); + Page.create = function create(properties) { + return new Page(properties); }; /** - * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified Page message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesResponse.encode = function encode(message, writer) { + Page.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pages != null && message.pages.length) - for (var i = 0; i < message.pages.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.pages[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.form != null && Object.hasOwnProperty.call(message, "form")) + $root.google.cloud.dialogflow.cx.v3beta1.Form.encode(message.form, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.entryFulfillment != null && Object.hasOwnProperty.call(message, "entryFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.entryFulfillment, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 9, wireType 2 =*/74).fork()).ldelim(); + if (message.eventHandlers != null && message.eventHandlers.length) + for (var i = 0; i < message.eventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.eventHandlers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.transitionRouteGroups != null && message.transitionRouteGroups.length) + for (var i = 0; i < message.transitionRouteGroups.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.transitionRouteGroups[i]); return writer; }; /** - * Encodes the specified ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * Encodes the specified Page message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Page.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IPage} message Page message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Page.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPagesResponse message from the specified reader or buffer. + * Decodes a Page message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static * @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.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesResponse.decode = function decode(reader, length) { + Page.decode = function decode(reader, length) { 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.ListPagesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pages && message.pages.length)) - message.pages = []; - message.pages.push($root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.displayName = reader.string(); + break; + } + case 7: { + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.decode(reader, reader.uint32()); + break; + } + case 11: { + if (!(message.transitionRouteGroups && message.transitionRouteGroups.length)) + message.transitionRouteGroups = []; + message.transitionRouteGroups.push(reader.string()); + break; + } + case 9: { + if (!(message.transitionRoutes && message.transitionRoutes.length)) + message.transitionRoutes = []; + message.transitionRoutes.push($root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.eventHandlers && message.eventHandlers.length)) + message.eventHandlers = []; + message.eventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); break; } default: @@ -82472,149 +83048,230 @@ }; /** - * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * Decodes a Page message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPagesResponse.decodeDelimited = function decodeDelimited(reader) { + Page.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPagesResponse message. + * Verifies a Page message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPagesResponse.verify = function verify(message) { + Page.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pages != null && message.hasOwnProperty("pages")) { - if (!Array.isArray(message.pages)) - return "pages: array expected"; - for (var i = 0; i < message.pages.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.pages[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.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.entryFulfillment); + if (error) + return "entryFulfillment." + error; + } + if (message.form != null && message.hasOwnProperty("form")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.verify(message.form); + if (error) + return "form." + 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) + if (!$util.isString(message.transitionRouteGroups[i])) + return "transitionRouteGroups: 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 "pages." + error; + return "transitionRoutes." + error; + } + } + if (message.eventHandlers != null && message.hasOwnProperty("eventHandlers")) { + if (!Array.isArray(message.eventHandlers)) + return "eventHandlers: array expected"; + for (var i = 0; i < message.eventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.eventHandlers[i]); + if (error) + return "eventHandlers." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Page message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @returns {google.cloud.dialogflow.cx.v3beta1.Page} Page */ - ListPagesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) + Page.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Page) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(); - if (object.pages) { - if (!Array.isArray(object.pages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: array expected"); - message.pages = []; - for (var i = 0; i < object.pages.length; ++i) { - if (typeof object.pages[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: object expected"); - message.pages[i] = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.pages[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Page(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.entryFulfillment != null) { + if (typeof object.entryFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.entryFulfillment: object expected"); + message.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.entryFulfillment); + } + if (object.form != null) { + if (typeof object.form !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.form: object expected"); + message.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.fromObject(object.form); + } + if (object.transitionRouteGroups) { + if (!Array.isArray(object.transitionRouteGroups)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.transitionRouteGroups: array expected"); + message.transitionRouteGroups = []; + for (var i = 0; i < object.transitionRouteGroups.length; ++i) + message.transitionRouteGroups[i] = String(object.transitionRouteGroups[i]); + } + if (object.transitionRoutes) { + if (!Array.isArray(object.transitionRoutes)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.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.Page.transitionRoutes: object expected"); + message.transitionRoutes[i] = $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.fromObject(object.transitionRoutes[i]); + } + } + if (object.eventHandlers) { + if (!Array.isArray(object.eventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: array expected"); + message.eventHandlers = []; + for (var i = 0; i < object.eventHandlers.length; ++i) { + if (typeof object.eventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Page.eventHandlers: object expected"); + message.eventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.eventHandlers[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * Creates a plain object from a Page message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} message ListPagesResponse + * @param {google.cloud.dialogflow.cx.v3beta1.Page} message Page * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPagesResponse.toObject = function toObject(message, options) { + Page.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pages = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.pages && message.pages.length) { - object.pages = []; - for (var j = 0; j < message.pages.length; ++j) - object.pages[j] = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.pages[j], options); + if (options.arrays || options.defaults) { + object.transitionRoutes = []; + object.eventHandlers = []; + object.transitionRouteGroups = []; + } + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.form = null; + object.entryFulfillment = 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.form != null && message.hasOwnProperty("form")) + object.form = $root.google.cloud.dialogflow.cx.v3beta1.Form.toObject(message.form, options); + if (message.entryFulfillment != null && message.hasOwnProperty("entryFulfillment")) + object.entryFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.entryFulfillment, options); + 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); + } + if (message.eventHandlers && message.eventHandlers.length) { + object.eventHandlers = []; + for (var j = 0; j < message.eventHandlers.length; ++j) + object.eventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.eventHandlers[j], options); + } + if (message.transitionRouteGroups && message.transitionRouteGroups.length) { + object.transitionRouteGroups = []; + for (var j = 0; j < message.transitionRouteGroups.length; ++j) + object.transitionRouteGroups[j] = message.transitionRouteGroups[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListPagesResponse to JSON. + * Converts this Page to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @instance * @returns {Object.} JSON object */ - ListPagesResponse.prototype.toJSON = function toJSON() { + Page.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPagesResponse + * Gets the default type url for Page * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @memberof google.cloud.dialogflow.cx.v3beta1.Page * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Page.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesResponse"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Page"; }; - return ListPagesResponse; + return Page; })(); - v3beta1.GetPageRequest = (function() { + v3beta1.Form = (function() { /** - * Properties of a GetPageRequest. + * Properties of a Form. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IGetPageRequest - * @property {string|null} [name] GetPageRequest name - * @property {string|null} [languageCode] GetPageRequest languageCode + * @interface IForm + * @property {Array.|null} [parameters] Form parameters */ /** - * Constructs a new GetPageRequest. + * Constructs a new Form. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a GetPageRequest. - * @implements IGetPageRequest + * @classdesc Represents a Form. + * @implements IForm * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set */ - function GetPageRequest(properties) { + function Form(properties) { + this.parameters = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82622,89 +83279,78 @@ } /** - * GetPageRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest - * @instance - */ - GetPageRequest.prototype.name = ""; - - /** - * GetPageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * Form parameters. + * @member {Array.} parameters + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @instance */ - GetPageRequest.prototype.languageCode = ""; + Form.prototype.parameters = $util.emptyArray; /** - * Creates a new GetPageRequest instance using the specified properties. + * Creates a new Form instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IForm=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form instance */ - GetPageRequest.create = function create(properties) { - return new GetPageRequest(properties); + Form.create = function create(properties) { + return new Form(properties); }; /** - * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified Form message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPageRequest.encode = function encode(message, writer) { + Form.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.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.encode(message.parameters[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. + * Encodes the specified Form message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IForm} message Form message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPageRequest.encodeDelimited = function encodeDelimited(message, writer) { + Form.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPageRequest message from the specified reader or buffer. + * Decodes a Form message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static * @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.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPageRequest.decode = function decode(reader, length) { + Form.decode = function decode(reader, length) { 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.GetPageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Form(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.languageCode = reader.string(); + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.decode(reader, reader.uint32())); break; } default: @@ -82716,237 +83362,894 @@ }; /** - * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. + * Decodes a Form message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPageRequest.decodeDelimited = function decodeDelimited(reader) { + Form.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPageRequest message. + * Verifies a Form message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPageRequest.verify = function verify(message) { + Form.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.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.Form.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } return null; }; /** - * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Form message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.Form} Form */ - GetPageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest) + Form.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); - 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.Form(); + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.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.Form.parameters: object expected"); + message.parameters[i] = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fromObject(object.parameters[i]); + } + } return message; }; /** - * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. + * Creates a plain object from a Form message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static - * @param {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} message GetPageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.Form} message Form * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPageRequest.toObject = function toObject(message, options) { + Form.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.languageCode = ""; + if (options.arrays || options.defaults) + object.parameters = []; + 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.Form.Parameter.toObject(message.parameters[j], options); } - 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 GetPageRequest to JSON. + * Converts this Form to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @instance * @returns {Object.} JSON object */ - GetPageRequest.prototype.toJSON = function toJSON() { + Form.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPageRequest + * Gets the default type url for Form * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.Form * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Form.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetPageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form"; }; - return GetPageRequest; - })(); - - v3beta1.CreatePageRequest = (function() { + Form.Parameter = (function() { - /** - * Properties of a CreatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface ICreatePageRequest - * @property {string|null} [parent] CreatePageRequest parent - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] CreatePageRequest page - * @property {string|null} [languageCode] CreatePageRequest languageCode - */ + /** + * Properties of a Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @interface IParameter + * @property {string|null} [displayName] Parameter displayName + * @property {boolean|null} [required] Parameter required + * @property {string|null} [entityType] Parameter entityType + * @property {boolean|null} [isList] Parameter isList + * @property {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null} [fillBehavior] Parameter fillBehavior + * @property {google.protobuf.IValue|null} [defaultValue] Parameter defaultValue + * @property {boolean|null} [redact] Parameter redact + */ - /** - * Constructs a new CreatePageRequest. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a CreatePageRequest. - * @implements ICreatePageRequest - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set - */ - function CreatePageRequest(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 Parameter. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form + * @classdesc Represents a Parameter. + * @implements IParameter + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Form.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]]; + } - /** - * CreatePageRequest parent. - * @member {string} parent - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest - * @instance + /** + * Parameter displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.displayName = ""; + + /** + * Parameter required. + * @member {boolean} required + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.required = false; + + /** + * Parameter entityType. + * @member {string} entityType + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.entityType = ""; + + /** + * Parameter isList. + * @member {boolean} isList + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.isList = false; + + /** + * Parameter fillBehavior. + * @member {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior|null|undefined} fillBehavior + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.fillBehavior = null; + + /** + * Parameter defaultValue. + * @member {google.protobuf.IValue|null|undefined} defaultValue + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.defaultValue = null; + + /** + * Parameter redact. + * @member {boolean} redact + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @instance + */ + Parameter.prototype.redact = false; + + /** + * Creates a new Parameter instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.IParameter=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.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.v3beta1.Form.Parameter.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.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.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType); + if (message.isList != null && Object.hasOwnProperty.call(message, "isList")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isList); + if (message.fillBehavior != null && Object.hasOwnProperty.call(message, "fillBehavior")) + $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.encode(message.fillBehavior, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + $root.google.protobuf.Value.encode(message.defaultValue, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.redact != null && Object.hasOwnProperty.call(message, "redact")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.redact); + return writer; + }; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.v3beta1.Form.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.Form.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.Form.Parameter(); + 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.entityType = reader.string(); + break; + } + case 4: { + message.isList = reader.bool(); + break; + } + case 7: { + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.decode(reader, reader.uint32()); + break; + } + case 9: { + message.defaultValue = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 11: { + 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.v3beta1.Form.Parameter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.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.Form.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.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.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.fillBehavior != null && message.hasOwnProperty("fillBehavior")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify(message.fillBehavior); + if (error) + return "fillBehavior." + error; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + var error = $root.google.protobuf.Value.verify(message.defaultValue); + if (error) + return "defaultValue." + error; + } + 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.Form.Parameter + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter} Parameter + */ + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.required != null) + message.required = Boolean(object.required); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.isList != null) + message.isList = Boolean(object.isList); + if (object.fillBehavior != null) { + if (typeof object.fillBehavior !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.fillBehavior: object expected"); + message.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.fromObject(object.fillBehavior); + } + if (object.defaultValue != null) { + if (typeof object.defaultValue !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.defaultValue: object expected"); + message.defaultValue = $root.google.protobuf.Value.fromObject(object.defaultValue); + } + 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.Form.Parameter + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.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.displayName = ""; + object.required = false; + object.entityType = ""; + object.isList = false; + object.fillBehavior = null; + object.defaultValue = null; + object.redact = 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.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.isList != null && message.hasOwnProperty("isList")) + object.isList = message.isList; + if (message.fillBehavior != null && message.hasOwnProperty("fillBehavior")) + object.fillBehavior = $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.toObject(message.fillBehavior, options); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = $root.google.protobuf.Value.toObject(message.defaultValue, options); + 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.v3beta1.Form.Parameter + * @instance + * @returns {Object.} JSON object + */ + Parameter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Parameter + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Parameter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter"; + }; + + Parameter.FillBehavior = (function() { + + /** + * Properties of a FillBehavior. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @interface IFillBehavior + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [initialPromptFulfillment] FillBehavior initialPromptFulfillment + * @property {Array.|null} [repromptEventHandlers] FillBehavior repromptEventHandlers + */ + + /** + * Constructs a new FillBehavior. + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter + * @classdesc Represents a FillBehavior. + * @implements IFillBehavior + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set + */ + function FillBehavior(properties) { + this.repromptEventHandlers = []; + 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]]; + } + + /** + * FillBehavior initialPromptFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} initialPromptFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @instance + */ + FillBehavior.prototype.initialPromptFulfillment = null; + + /** + * FillBehavior repromptEventHandlers. + * @member {Array.} repromptEventHandlers + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @instance + */ + FillBehavior.prototype.repromptEventHandlers = $util.emptyArray; + + /** + * Creates a new FillBehavior instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior instance + */ + FillBehavior.create = function create(properties) { + return new FillBehavior(properties); + }; + + /** + * Encodes the specified FillBehavior message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FillBehavior.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.initialPromptFulfillment != null && Object.hasOwnProperty.call(message, "initialPromptFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.initialPromptFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.repromptEventHandlers != null && message.repromptEventHandlers.length) + for (var i = 0; i < message.repromptEventHandlers.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.encode(message.repromptEventHandlers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FillBehavior message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.IFillBehavior} message FillBehavior message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FillBehavior.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FillBehavior message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @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.Form.Parameter.FillBehavior} FillBehavior + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FillBehavior.decode = function decode(reader, length) { + 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.Form.Parameter.FillBehavior(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.repromptEventHandlers && message.repromptEventHandlers.length)) + message.repromptEventHandlers = []; + message.repromptEventHandlers.push($root.google.cloud.dialogflow.cx.v3beta1.EventHandler.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FillBehavior message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FillBehavior.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FillBehavior message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FillBehavior.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.initialPromptFulfillment); + if (error) + return "initialPromptFulfillment." + error; + } + if (message.repromptEventHandlers != null && message.hasOwnProperty("repromptEventHandlers")) { + if (!Array.isArray(message.repromptEventHandlers)) + return "repromptEventHandlers: array expected"; + for (var i = 0; i < message.repromptEventHandlers.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.verify(message.repromptEventHandlers[i]); + if (error) + return "repromptEventHandlers." + error; + } + } + return null; + }; + + /** + * Creates a FillBehavior message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} FillBehavior + */ + FillBehavior.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(); + if (object.initialPromptFulfillment != null) { + if (typeof object.initialPromptFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.initialPromptFulfillment: object expected"); + message.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.initialPromptFulfillment); + } + if (object.repromptEventHandlers) { + if (!Array.isArray(object.repromptEventHandlers)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: array expected"); + message.repromptEventHandlers = []; + for (var i = 0; i < object.repromptEventHandlers.length; ++i) { + if (typeof object.repromptEventHandlers[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.repromptEventHandlers: object expected"); + message.repromptEventHandlers[i] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.fromObject(object.repromptEventHandlers[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FillBehavior message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior} message FillBehavior + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FillBehavior.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.repromptEventHandlers = []; + if (options.defaults) + object.initialPromptFulfillment = null; + if (message.initialPromptFulfillment != null && message.hasOwnProperty("initialPromptFulfillment")) + object.initialPromptFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.initialPromptFulfillment, options); + if (message.repromptEventHandlers && message.repromptEventHandlers.length) { + object.repromptEventHandlers = []; + for (var j = 0; j < message.repromptEventHandlers.length; ++j) + object.repromptEventHandlers[j] = $root.google.cloud.dialogflow.cx.v3beta1.EventHandler.toObject(message.repromptEventHandlers[j], options); + } + return object; + }; + + /** + * Converts this FillBehavior to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @instance + * @returns {Object.} JSON object + */ + FillBehavior.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FillBehavior + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FillBehavior.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior"; + }; + + return FillBehavior; + })(); + + return Parameter; + })(); + + return Form; + })(); + + v3beta1.EventHandler = (function() { + + /** + * Properties of an EventHandler. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IEventHandler + * @property {string|null} [name] EventHandler name + * @property {string|null} [event] EventHandler event + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] EventHandler triggerFulfillment + * @property {string|null} [targetPage] EventHandler targetPage + * @property {string|null} [targetFlow] EventHandler targetFlow */ - CreatePageRequest.prototype.parent = ""; /** - * CreatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * Constructs a new EventHandler. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an EventHandler. + * @implements IEventHandler + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set + */ + function EventHandler(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]]; + } + + /** + * EventHandler name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @instance */ - CreatePageRequest.prototype.page = null; + EventHandler.prototype.name = ""; /** - * CreatePageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * EventHandler event. + * @member {string} event + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @instance */ - CreatePageRequest.prototype.languageCode = ""; + EventHandler.prototype.event = ""; /** - * Creates a new CreatePageRequest instance using the specified properties. + * EventHandler triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.triggerFulfillment = null; + + /** + * EventHandler targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.targetPage = null; + + /** + * EventHandler targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + EventHandler.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * EventHandler target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler + * @instance + */ + Object.defineProperty(EventHandler.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new EventHandler instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler instance */ - CreatePageRequest.create = function create(properties) { - return new CreatePageRequest(properties); + EventHandler.create = function create(properties) { + return new EventHandler(properties); }; /** - * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified EventHandler message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePageRequest.encode = function encode(message, writer) { + EventHandler.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.page != null && Object.hasOwnProperty.call(message, "page")) - $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, 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.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.targetFlow); + if (message.event != null && Object.hasOwnProperty.call(message, "event")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.event); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * Encodes the specified EventHandler message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.EventHandler.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IEventHandler} message EventHandler message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + EventHandler.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePageRequest message from the specified reader or buffer. + * Decodes an EventHandler message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static * @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.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePageRequest.decode = function decode(reader, length) { + EventHandler.decode = function decode(reader, length) { 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.CreatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 6: { + message.name = reader.string(); + break; + } + case 4: { + message.event = reader.string(); + break; + } + case 5: { + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); break; } case 2: { - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.targetPage = reader.string(); break; } case 3: { - message.languageCode = reader.string(); + message.targetFlow = reader.string(); break; } default: @@ -82958,146 +84261,176 @@ }; /** - * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * Decodes an EventHandler message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePageRequest.decodeDelimited = function decodeDelimited(reader) { + EventHandler.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePageRequest message. + * Verifies an EventHandler message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePageRequest.verify = function verify(message) { + EventHandler.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.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.event != null && message.hasOwnProperty("event")) + if (!$util.isString(message.event)) + return "event: string expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); if (error) - return "page." + error; + return "triggerFulfillment." + error; + } + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; } - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - if (!$util.isString(message.languageCode)) - return "languageCode: string expected"; return null; }; /** - * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EventHandler message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.EventHandler} EventHandler */ - CreatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest) + EventHandler.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.EventHandler) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.EventHandler(); + if (object.name != null) + message.name = String(object.name); + if (object.event != null) + message.event = String(object.event); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.EventHandler.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); } - if (object.languageCode != null) - message.languageCode = String(object.languageCode); + 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 CreatePageRequest message. Also converts values to other types if specified. + * Creates a plain object from an EventHandler message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static - * @param {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} message CreatePageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.EventHandler} message EventHandler * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePageRequest.toObject = function toObject(message, options) { + EventHandler.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.page = null; - object.languageCode = ""; + object.event = ""; + object.triggerFulfillment = null; + object.name = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); - if (message.languageCode != null && message.hasOwnProperty("languageCode")) - object.languageCode = message.languageCode; + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.event != null && message.hasOwnProperty("event")) + object.event = message.event; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreatePageRequest to JSON. + * Converts this EventHandler to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @instance * @returns {Object.} JSON object */ - CreatePageRequest.prototype.toJSON = function toJSON() { + EventHandler.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePageRequest + * Gets the default type url for EventHandler * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.EventHandler * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + EventHandler.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreatePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.EventHandler"; }; - return CreatePageRequest; + return EventHandler; })(); - v3beta1.UpdatePageRequest = (function() { + v3beta1.TransitionRoute = (function() { /** - * Properties of an UpdatePageRequest. + * Properties of a TransitionRoute. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IUpdatePageRequest - * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] UpdatePageRequest page - * @property {string|null} [languageCode] UpdatePageRequest languageCode - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask + * @interface ITransitionRoute + * @property {string|null} [name] TransitionRoute name + * @property {string|null} [intent] TransitionRoute intent + * @property {string|null} [condition] TransitionRoute condition + * @property {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null} [triggerFulfillment] TransitionRoute triggerFulfillment + * @property {string|null} [targetPage] TransitionRoute targetPage + * @property {string|null} [targetFlow] TransitionRoute targetFlow */ /** - * Constructs a new UpdatePageRequest. + * Constructs a new TransitionRoute. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an UpdatePageRequest. - * @implements IUpdatePageRequest + * @classdesc Represents a TransitionRoute. + * @implements ITransitionRoute * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set */ - function UpdatePageRequest(properties) { + function TransitionRoute(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83105,103 +84438,159 @@ } /** - * UpdatePageRequest page. - * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * TransitionRoute name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @instance */ - UpdatePageRequest.prototype.page = null; + TransitionRoute.prototype.name = ""; /** - * UpdatePageRequest languageCode. - * @member {string} languageCode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * TransitionRoute intent. + * @member {string} intent + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @instance */ - UpdatePageRequest.prototype.languageCode = ""; + TransitionRoute.prototype.intent = ""; /** - * UpdatePageRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * TransitionRoute condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @instance */ - UpdatePageRequest.prototype.updateMask = null; + TransitionRoute.prototype.condition = ""; /** - * Creates a new UpdatePageRequest instance using the specified properties. + * TransitionRoute triggerFulfillment. + * @member {google.cloud.dialogflow.cx.v3beta1.IFulfillment|null|undefined} triggerFulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.triggerFulfillment = null; + + /** + * TransitionRoute targetPage. + * @member {string|null|undefined} targetPage + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.targetPage = null; + + /** + * TransitionRoute targetFlow. + * @member {string|null|undefined} targetFlow + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + TransitionRoute.prototype.targetFlow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TransitionRoute target. + * @member {"targetPage"|"targetFlow"|undefined} target + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute + * @instance + */ + Object.defineProperty(TransitionRoute.prototype, "target", { + get: $util.oneOfGetter($oneOfFields = ["targetPage", "targetFlow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TransitionRoute instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute instance */ - UpdatePageRequest.create = function create(properties) { - return new UpdatePageRequest(properties); + TransitionRoute.create = function create(properties) { + return new TransitionRoute(properties); }; /** - * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified TransitionRoute message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePageRequest.encode = function encode(message, writer) { + TransitionRoute.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.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.intent != null && Object.hasOwnProperty.call(message, "intent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.intent); + if (message.condition != null && Object.hasOwnProperty.call(message, "condition")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.condition); + if (message.triggerFulfillment != null && Object.hasOwnProperty.call(message, "triggerFulfillment")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.encode(message.triggerFulfillment, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.targetPage != null && Object.hasOwnProperty.call(message, "targetPage")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.targetPage); + if (message.targetFlow != null && Object.hasOwnProperty.call(message, "targetFlow")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetFlow); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * Encodes the specified TransitionRoute message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.TransitionRoute.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ITransitionRoute} message TransitionRoute message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + TransitionRoute.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdatePageRequest message from the specified reader or buffer. + * Decodes a TransitionRoute message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static * @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.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePageRequest.decode = function decode(reader, length) { + TransitionRoute.decode = function decode(reader, length) { 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.UpdatePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 6: { + message.name = reader.string(); + break; + } case 1: { - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + message.intent = reader.string(); break; } case 2: { - message.languageCode = reader.string(); + message.condition = reader.string(); break; } case 3: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.decode(reader, reader.uint32()); + break; + } + case 4: { + message.targetPage = reader.string(); + break; + } + case 5: { + message.targetFlow = reader.string(); break; } default: @@ -83213,150 +84602,182 @@ }; /** - * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. + * Decodes a TransitionRoute message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdatePageRequest.decodeDelimited = function decodeDelimited(reader) { + TransitionRoute.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdatePageRequest message. + * Verifies a TransitionRoute message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdatePageRequest.verify = function verify(message) { + TransitionRoute.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.page != null && message.hasOwnProperty("page")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + var properties = {}; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.intent != null && message.hasOwnProperty("intent")) + if (!$util.isString(message.intent)) + return "intent: string expected"; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify(message.triggerFulfillment); if (error) - return "page." + error; + return "triggerFulfillment." + 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.targetPage != null && message.hasOwnProperty("targetPage")) { + properties.target = 1; + if (!$util.isString(message.targetPage)) + return "targetPage: string expected"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + if (properties.target === 1) + return "target: multiple values"; + properties.target = 1; + if (!$util.isString(message.targetFlow)) + return "targetFlow: string expected"; } return null; }; /** - * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TransitionRoute message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} TransitionRoute */ - UpdatePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest) + TransitionRoute.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(); - if (object.page != null) { - if (typeof object.page !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.page: object expected"); - message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); - } - 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.UpdatePageRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(); + if (object.name != null) + message.name = String(object.name); + if (object.intent != null) + message.intent = String(object.intent); + if (object.condition != null) + message.condition = String(object.condition); + if (object.triggerFulfillment != null) { + if (typeof object.triggerFulfillment !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.TransitionRoute.triggerFulfillment: object expected"); + message.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.fromObject(object.triggerFulfillment); } + 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 an UpdatePageRequest message. Also converts values to other types if specified. + * Creates a plain object from a TransitionRoute message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static - * @param {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} message UpdatePageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.TransitionRoute} message TransitionRoute * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdatePageRequest.toObject = function toObject(message, options) { + TransitionRoute.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.page = null; - object.languageCode = ""; - object.updateMask = null; + object.intent = ""; + object.condition = ""; + object.triggerFulfillment = null; + object.name = ""; } - if (message.page != null && message.hasOwnProperty("page")) - object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, 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.intent != null && message.hasOwnProperty("intent")) + object.intent = message.intent; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.triggerFulfillment != null && message.hasOwnProperty("triggerFulfillment")) + object.triggerFulfillment = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.toObject(message.triggerFulfillment, options); + if (message.targetPage != null && message.hasOwnProperty("targetPage")) { + object.targetPage = message.targetPage; + if (options.oneofs) + object.target = "targetPage"; + } + if (message.targetFlow != null && message.hasOwnProperty("targetFlow")) { + object.targetFlow = message.targetFlow; + if (options.oneofs) + object.target = "targetFlow"; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdatePageRequest to JSON. + * Converts this TransitionRoute to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @instance * @returns {Object.} JSON object */ - UpdatePageRequest.prototype.toJSON = function toJSON() { + TransitionRoute.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdatePageRequest + * Gets the default type url for TransitionRoute * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.TransitionRoute * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TransitionRoute.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.TransitionRoute"; }; - return UpdatePageRequest; + return TransitionRoute; })(); - v3beta1.DeletePageRequest = (function() { + v3beta1.ListPagesRequest = (function() { /** - * Properties of a DeletePageRequest. + * Properties of a ListPagesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IDeletePageRequest - * @property {string|null} [name] DeletePageRequest name - * @property {boolean|null} [force] DeletePageRequest force + * @interface IListPagesRequest + * @property {string|null} [parent] ListPagesRequest parent + * @property {string|null} [languageCode] ListPagesRequest languageCode + * @property {number|null} [pageSize] ListPagesRequest pageSize + * @property {string|null} [pageToken] ListPagesRequest pageToken */ /** - * Constructs a new DeletePageRequest. + * Constructs a new ListPagesRequest. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a DeletePageRequest. - * @implements IDeletePageRequest + * @classdesc Represents a ListPagesRequest. + * @implements IListPagesRequest * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set */ - function DeletePageRequest(properties) { + function ListPagesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83364,89 +84785,117 @@ } /** - * DeletePageRequest name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * ListPagesRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @instance */ - DeletePageRequest.prototype.name = ""; + ListPagesRequest.prototype.parent = ""; /** - * DeletePageRequest force. - * @member {boolean} force - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * ListPagesRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @instance */ - DeletePageRequest.prototype.force = false; + ListPagesRequest.prototype.languageCode = ""; /** - * Creates a new DeletePageRequest instance using the specified properties. + * ListPagesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.pageSize = 0; + + /** + * ListPagesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest + * @instance + */ + ListPagesRequest.prototype.pageToken = ""; + + /** + * Creates a new ListPagesRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest instance + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest instance */ - DeletePageRequest.create = function create(properties) { - return new DeletePageRequest(properties); + ListPagesRequest.create = function create(properties) { + return new ListPagesRequest(properties); }; /** - * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePageRequest.encode = function encode(message, writer) { + ListPagesRequest.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.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 DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * Encodes the specified ListPagesRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesRequest} message ListPagesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListPagesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePageRequest message from the specified reader or buffer. + * Decodes a ListPagesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static * @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.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePageRequest.decode = function decode(reader, length) { + ListPagesRequest.decode = function decode(reader, length) { 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.DeletePageRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(); 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.languageCode = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); break; } default: @@ -83458,139 +84907,149 @@ }; /** - * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * Decodes a ListPagesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePageRequest.decodeDelimited = function decodeDelimited(reader) { + ListPagesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePageRequest message. + * Verifies a ListPagesRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePageRequest.verify = function verify(message) { + ListPagesRequest.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.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 DeletePageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListPagesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} ListPagesRequest */ - DeletePageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest) + ListPagesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(); - 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.ListPagesRequest(); + 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 DeletePageRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListPagesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} message DeletePageRequest + * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesRequest} message ListPagesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePageRequest.toObject = function toObject(message, options) { + ListPagesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.force = false; + object.parent = ""; + object.languageCode = ""; + object.pageSize = 0; + object.pageToken = ""; } - 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.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 DeletePageRequest to JSON. + * Converts this ListPagesRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @instance * @returns {Object.} JSON object */ - DeletePageRequest.prototype.toJSON = function toJSON() { + ListPagesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePageRequest + * Gets the default type url for ListPagesRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPagesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeletePageRequest"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesRequest"; }; - return DeletePageRequest; + return ListPagesRequest; })(); - v3beta1.Fulfillment = (function() { + v3beta1.ListPagesResponse = (function() { /** - * Properties of a Fulfillment. + * Properties of a ListPagesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IFulfillment - * @property {Array.|null} [messages] Fulfillment messages - * @property {string|null} [webhook] Fulfillment webhook - * @property {boolean|null} [returnPartialResponses] Fulfillment returnPartialResponses - * @property {string|null} [tag] Fulfillment tag - * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions - * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases + * @interface IListPagesResponse + * @property {Array.|null} [pages] ListPagesResponse pages + * @property {string|null} [nextPageToken] ListPagesResponse nextPageToken */ /** - * Constructs a new Fulfillment. + * Constructs a new ListPagesResponse. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a Fulfillment. - * @implements IFulfillment + * @classdesc Represents a ListPagesResponse. + * @implements IListPagesResponse * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set */ - function Fulfillment(properties) { - this.messages = []; - this.setParameterActions = []; - this.conditionalCases = []; + function ListPagesResponse(properties) { + this.pages = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83598,154 +85057,336 @@ } /** - * Fulfillment messages. - * @member {Array.} messages - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ListPagesResponse pages. + * @member {Array.} pages + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse * @instance */ - Fulfillment.prototype.messages = $util.emptyArray; + ListPagesResponse.prototype.pages = $util.emptyArray; /** - * Fulfillment webhook. - * @member {string} webhook - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * ListPagesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse * @instance */ - Fulfillment.prototype.webhook = ""; + ListPagesResponse.prototype.nextPageToken = ""; /** - * Fulfillment returnPartialResponses. - * @member {boolean} returnPartialResponses - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @instance + * Creates a new ListPagesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse instance */ - Fulfillment.prototype.returnPartialResponses = false; + ListPagesResponse.create = function create(properties) { + return new ListPagesResponse(properties); + }; /** - * Fulfillment tag. - * @member {string} tag - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * Encodes the specified ListPagesResponse message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pages != null && message.pages.length) + for (var i = 0; i < message.pages.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.pages[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 ListPagesResponse message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IListPagesResponse} message ListPagesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListPagesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @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.ListPagesResponse} ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesResponse.decode = function decode(reader, length) { + 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.ListPagesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.pages && message.pages.length)) + message.pages = []; + message.pages.push($root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListPagesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListPagesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListPagesResponse message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListPagesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pages != null && message.hasOwnProperty("pages")) { + if (!Array.isArray(message.pages)) + return "pages: array expected"; + for (var i = 0; i < message.pages.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.pages[i]); + if (error) + return "pages." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListPagesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} ListPagesResponse + */ + ListPagesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(); + if (object.pages) { + if (!Array.isArray(object.pages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: array expected"); + message.pages = []; + for (var i = 0; i < object.pages.length; ++i) { + if (typeof object.pages[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ListPagesResponse.pages: object expected"); + message.pages[i] = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.pages[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListPagesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ListPagesResponse} message ListPagesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListPagesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pages = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.pages && message.pages.length) { + object.pages = []; + for (var j = 0; j < message.pages.length; ++j) + object.pages[j] = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.pages[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListPagesResponse to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse * @instance + * @returns {Object.} JSON object */ - Fulfillment.prototype.tag = ""; + ListPagesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Fulfillment setParameterActions. - * @member {Array.} setParameterActions - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * Gets the default type url for ListPagesResponse + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ListPagesResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListPagesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ListPagesResponse"; + }; + + return ListPagesResponse; + })(); + + v3beta1.GetPageRequest = (function() { + + /** + * Properties of a GetPageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IGetPageRequest + * @property {string|null} [name] GetPageRequest name + * @property {string|null} [languageCode] GetPageRequest languageCode + */ + + /** + * Constructs a new GetPageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a GetPageRequest. + * @implements IGetPageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + */ + function GetPageRequest(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]]; + } + + /** + * GetPageRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @instance */ - Fulfillment.prototype.setParameterActions = $util.emptyArray; + GetPageRequest.prototype.name = ""; /** - * Fulfillment conditionalCases. - * @member {Array.} conditionalCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * GetPageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @instance */ - Fulfillment.prototype.conditionalCases = $util.emptyArray; + GetPageRequest.prototype.languageCode = ""; /** - * Creates a new Fulfillment instance using the specified properties. + * Creates a new GetPageRequest instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment instance + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest instance */ - Fulfillment.create = function create(properties) { - return new Fulfillment(properties); + GetPageRequest.create = function create(properties) { + return new GetPageRequest(properties); }; /** - * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified GetPageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fulfillment.encode = function encode(message, writer) { + GetPageRequest.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.webhook != null && Object.hasOwnProperty.call(message, "webhook")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); - if (message.setParameterActions != null && message.setParameterActions.length) - for (var i = 0; i < message.setParameterActions.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.conditionalCases != null && message.conditionalCases.length) - for (var i = 0; i < message.conditionalCases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); + 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 Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. + * Encodes the specified GetPageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.GetPageRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IGetPageRequest} message GetPageRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Fulfillment.encodeDelimited = function encodeDelimited(message, writer) { + GetPageRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Fulfillment message from the specified reader or buffer. + * Decodes a GetPageRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static * @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.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fulfillment.decode = function decode(reader, length) { + GetPageRequest.decode = function decode(reader, length) { 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.Fulfillment(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); 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())); + message.name = reader.string(); break; } case 2: { - message.webhook = reader.string(); - break; - } - case 8: { - message.returnPartialResponses = reader.bool(); - break; - } - case 3: { - message.tag = reader.string(); - break; - } - case 4: { - if (!(message.setParameterActions && message.setParameterActions.length)) - message.setParameterActions = []; - message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); - break; - } - case 5: { - if (!(message.conditionalCases && message.conditionalCases.length)) - message.conditionalCases = []; - message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); + message.languageCode = reader.string(); break; } default: @@ -83757,1407 +85398,1036 @@ }; /** - * Decodes a Fulfillment message from the specified reader or buffer, length delimited. + * Decodes a GetPageRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Fulfillment.decodeDelimited = function decodeDelimited(reader) { + GetPageRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Fulfillment message. + * Verifies a GetPageRequest message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Fulfillment.verify = function verify(message) { + GetPageRequest.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.webhook != null && message.hasOwnProperty("webhook")) - if (!$util.isString(message.webhook)) - return "webhook: string expected"; - if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) - if (typeof message.returnPartialResponses !== "boolean") - return "returnPartialResponses: boolean expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.setParameterActions != null && message.hasOwnProperty("setParameterActions")) { - if (!Array.isArray(message.setParameterActions)) - return "setParameterActions: array expected"; - for (var i = 0; i < message.setParameterActions.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); - if (error) - return "setParameterActions." + error; - } - } - if (message.conditionalCases != null && message.hasOwnProperty("conditionalCases")) { - if (!Array.isArray(message.conditionalCases)) - return "conditionalCases: array expected"; - for (var i = 0; i < message.conditionalCases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); - if (error) - return "conditionalCases." + error; - } - } + 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 Fulfillment message from a plain object. Also converts values to their respective internal types. + * Creates a GetPageRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment + * @returns {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} GetPageRequest */ - Fulfillment.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment) + GetPageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); - if (object.messages) { - if (!Array.isArray(object.messages)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.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.Fulfillment.messages: object expected"); - message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); - } - } - if (object.webhook != null) - message.webhook = String(object.webhook); - if (object.returnPartialResponses != null) - message.returnPartialResponses = Boolean(object.returnPartialResponses); - if (object.tag != null) - message.tag = String(object.tag); - if (object.setParameterActions) { - if (!Array.isArray(object.setParameterActions)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: array expected"); - message.setParameterActions = []; - for (var i = 0; i < object.setParameterActions.length; ++i) { - if (typeof object.setParameterActions[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: object expected"); - message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); - } - } - if (object.conditionalCases) { - if (!Array.isArray(object.conditionalCases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: array expected"); - message.conditionalCases = []; - for (var i = 0; i < object.conditionalCases.length; ++i) { - if (typeof object.conditionalCases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: object expected"); - message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); - } - } + var message = new $root.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(); + 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 Fulfillment message. Also converts values to other types if specified. + * Creates a plain object from a GetPageRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment} message Fulfillment + * @param {google.cloud.dialogflow.cx.v3beta1.GetPageRequest} message GetPageRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Fulfillment.toObject = function toObject(message, options) { + GetPageRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.messages = []; - object.setParameterActions = []; - object.conditionalCases = []; - } if (options.defaults) { - object.webhook = ""; - object.tag = ""; - object.returnPartialResponses = false; - } - 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.webhook != null && message.hasOwnProperty("webhook")) - object.webhook = message.webhook; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - if (message.setParameterActions && message.setParameterActions.length) { - object.setParameterActions = []; - for (var j = 0; j < message.setParameterActions.length; ++j) - object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); - } - if (message.conditionalCases && message.conditionalCases.length) { - object.conditionalCases = []; - for (var j = 0; j < message.conditionalCases.length; ++j) - object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); + object.name = ""; + object.languageCode = ""; } - if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) - object.returnPartialResponses = message.returnPartialResponses; + 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 Fulfillment to JSON. + * Converts this GetPageRequest to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @instance * @returns {Object.} JSON object */ - Fulfillment.prototype.toJSON = function toJSON() { + GetPageRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Fulfillment + * Gets the default type url for GetPageRequest * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @memberof google.cloud.dialogflow.cx.v3beta1.GetPageRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Fulfillment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.GetPageRequest"; }; - Fulfillment.SetParameterAction = (function() { + return GetPageRequest; + })(); - /** - * Properties of a SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @interface ISetParameterAction - * @property {string|null} [parameter] SetParameterAction parameter - * @property {google.protobuf.IValue|null} [value] SetParameterAction value - */ + v3beta1.CreatePageRequest = (function() { - /** - * Constructs a new SetParameterAction. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @classdesc Represents a SetParameterAction. - * @implements ISetParameterAction - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set - */ - function SetParameterAction(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 CreatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface ICreatePageRequest + * @property {string|null} [parent] CreatePageRequest parent + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] CreatePageRequest page + * @property {string|null} [languageCode] CreatePageRequest languageCode + */ - /** - * SetParameterAction parameter. - * @member {string} parameter - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @instance - */ - SetParameterAction.prototype.parameter = ""; + /** + * Constructs a new CreatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a CreatePageRequest. + * @implements ICreatePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set + */ + function CreatePageRequest(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]]; + } - /** - * SetParameterAction value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @instance - */ - SetParameterAction.prototype.value = null; + /** + * CreatePageRequest parent. + * @member {string} parent + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.parent = ""; - /** - * Creates a new SetParameterAction instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction instance - */ - SetParameterAction.create = function create(properties) { - return new SetParameterAction(properties); - }; + /** + * CreatePageRequest page. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.page = null; - /** - * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetParameterAction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * CreatePageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + */ + CreatePageRequest.prototype.languageCode = ""; - /** - * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SetParameterAction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new CreatePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest instance + */ + CreatePageRequest.create = function create(properties) { + return new CreatePageRequest(properties); + }; - /** - * Decodes a SetParameterAction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @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.Fulfillment.SetParameterAction} SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetParameterAction.decode = function decode(reader, length) { - 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.Fulfillment.SetParameterAction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parameter = reader.string(); - break; - } - case 2: { - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified CreatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePageRequest.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.page != null && Object.hasOwnProperty.call(message, "page")) + $root.google.cloud.dialogflow.cx.v3beta1.Page.encode(message.page, 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 CreatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ICreatePageRequest} message CreatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreatePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @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.CreatePageRequest} CreatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePageRequest.decode = function decode(reader, length) { + 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.CreatePageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.decode(reader, reader.uint32()); + break; + } + case 3: { + message.languageCode = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetParameterAction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a SetParameterAction message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SetParameterAction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameter != null && message.hasOwnProperty("parameter")) - if (!$util.isString(message.parameter)) - return "parameter: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; + /** + * Decodes a CreatePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreatePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction - */ - SetParameterAction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); - if (object.parameter != null) - message.parameter = String(object.parameter); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - return message; - }; + /** + * Verifies a CreatePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreatePageRequest.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.page != null && message.hasOwnProperty("page")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (error) + return "page." + error; + } + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + if (!$util.isString(message.languageCode)) + return "languageCode: string expected"; + return null; + }; - /** - * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} message SetParameterAction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SetParameterAction.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parameter = ""; - object.value = null; - } - if (message.parameter != null && message.hasOwnProperty("parameter")) - object.parameter = message.parameter; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); + /** + * Creates a CreatePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} CreatePageRequest + */ + CreatePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.CreatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + if (object.languageCode != null) + message.languageCode = String(object.languageCode); + return message; + }; - /** - * Converts this SetParameterAction to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @instance - * @returns {Object.} JSON object - */ - SetParameterAction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a CreatePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.CreatePageRequest} message CreatePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreatePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.page = null; + object.languageCode = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.page != null && message.hasOwnProperty("page")) + object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, options); + if (message.languageCode != null && message.hasOwnProperty("languageCode")) + object.languageCode = message.languageCode; + return object; + }; - /** - * Gets the default type url for SetParameterAction - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SetParameterAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction"; - }; + /** + * Converts this CreatePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @instance + * @returns {Object.} JSON object + */ + CreatePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return SetParameterAction; - })(); + /** + * Gets the default type url for CreatePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.CreatePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.CreatePageRequest"; + }; - Fulfillment.ConditionalCases = (function() { + return CreatePageRequest; + })(); - /** - * Properties of a ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @interface IConditionalCases - * @property {Array.|null} [cases] ConditionalCases cases - */ + v3beta1.UpdatePageRequest = (function() { - /** - * Constructs a new ConditionalCases. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment - * @classdesc Represents a ConditionalCases. - * @implements IConditionalCases - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set - */ - function ConditionalCases(properties) { - this.cases = []; - 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 UpdatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IUpdatePageRequest + * @property {google.cloud.dialogflow.cx.v3beta1.IPage|null} [page] UpdatePageRequest page + * @property {string|null} [languageCode] UpdatePageRequest languageCode + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdatePageRequest updateMask + */ - /** - * ConditionalCases cases. - * @member {Array.} cases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @instance - */ - ConditionalCases.prototype.cases = $util.emptyArray; + /** + * Constructs a new UpdatePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents an UpdatePageRequest. + * @implements IUpdatePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + */ + function UpdatePageRequest(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 ConditionalCases instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases instance - */ - ConditionalCases.create = function create(properties) { - return new ConditionalCases(properties); - }; + /** + * UpdatePageRequest page. + * @member {google.cloud.dialogflow.cx.v3beta1.IPage|null|undefined} page + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.page = null; - /** - * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalCases.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cases != null && message.cases.length) - for (var i = 0; i < message.cases.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * UpdatePageRequest languageCode. + * @member {string} languageCode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.languageCode = ""; - /** - * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalCases.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * UpdatePageRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + */ + UpdatePageRequest.prototype.updateMask = null; - /** - * Decodes a ConditionalCases message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @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.Fulfillment.ConditionalCases} ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalCases.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.cases && message.cases.length)) - message.cases = []; - message.cases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new UpdatePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest instance + */ + UpdatePageRequest.create = function create(properties) { + return new UpdatePageRequest(properties); + }; - /** - * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalCases.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified UpdatePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePageRequest.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.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; + }; - /** - * Verifies a ConditionalCases message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConditionalCases.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cases != null && message.hasOwnProperty("cases")) { - if (!Array.isArray(message.cases)) - return "cases: array expected"; - for (var i = 0; i < message.cases.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); - if (error) - return "cases." + error; - } - } - return null; - }; + /** + * Encodes the specified UpdatePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IUpdatePageRequest} message UpdatePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdatePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases - */ - ConditionalCases.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); - if (object.cases) { - if (!Array.isArray(object.cases)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: array expected"); - message.cases = []; - for (var i = 0; i < object.cases.length; ++i) { - if (typeof object.cases[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: object expected"); - message.cases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); + /** + * Decodes an UpdatePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @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.UpdatePageRequest} UpdatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePageRequest.decode = function decode(reader, length) { + 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.UpdatePageRequest(); + 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.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; - }; + } + return message; + }; - /** - * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} message ConditionalCases - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConditionalCases.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.cases = []; - if (message.cases && message.cases.length) { - object.cases = []; - for (var j = 0; j < message.cases.length; ++j) - object.cases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); - } - return object; - }; + /** + * Decodes an UpdatePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdatePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ConditionalCases to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @instance - * @returns {Object.} JSON object - */ - ConditionalCases.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies an UpdatePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdatePageRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.page != null && message.hasOwnProperty("page")) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Page.verify(message.page); + if (error) + return "page." + 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; + }; - /** - * Gets the default type url for ConditionalCases - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConditionalCases.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases"; - }; + /** + * Creates an UpdatePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} UpdatePageRequest + */ + UpdatePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(); + if (object.page != null) { + if (typeof object.page !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest.page: object expected"); + message.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.fromObject(object.page); + } + 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.UpdatePageRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + return message; + }; - ConditionalCases.Case = (function() { + /** + * Creates a plain object from an UpdatePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest} message UpdatePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdatePageRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.page = null; + object.languageCode = ""; + object.updateMask = null; + } + if (message.page != null && message.hasOwnProperty("page")) + object.page = $root.google.cloud.dialogflow.cx.v3beta1.Page.toObject(message.page, 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; + }; - /** - * Properties of a Case. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @interface ICase - * @property {string|null} [condition] Case condition - * @property {Array.|null} [caseContent] Case caseContent - */ + /** + * Converts this UpdatePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @instance + * @returns {Object.} JSON object + */ + UpdatePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new Case. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases - * @classdesc Represents a Case. - * @implements ICase - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - */ - function Case(properties) { - this.caseContent = []; - 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]]; - } + /** + * Gets the default type url for UpdatePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest"; + }; - /** - * Case condition. - * @member {string} condition - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @instance - */ - Case.prototype.condition = ""; + return UpdatePageRequest; + })(); - /** - * Case caseContent. - * @member {Array.} caseContent - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @instance - */ - Case.prototype.caseContent = $util.emptyArray; + v3beta1.DeletePageRequest = (function() { - /** - * Creates a new Case instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case instance - */ - Case.create = function create(properties) { - return new Case(properties); - }; + /** + * Properties of a DeletePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IDeletePageRequest + * @property {string|null} [name] DeletePageRequest name + * @property {boolean|null} [force] DeletePageRequest force + */ - /** - * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Case.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.caseContent != null && message.caseContent.length) - for (var i = 0; i < message.caseContent.length; ++i) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new DeletePageRequest. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a DeletePageRequest. + * @implements IDeletePageRequest + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + */ + function DeletePageRequest(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 Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Case.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DeletePageRequest name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @instance + */ + DeletePageRequest.prototype.name = ""; - /** - * Decodes a Case message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @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.Fulfillment.ConditionalCases.Case} Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Case.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases.Case(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.condition = reader.string(); - break; - } - case 2: { - if (!(message.caseContent && message.caseContent.length)) - message.caseContent = []; - message.caseContent.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * DeletePageRequest force. + * @member {boolean} force + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @instance + */ + DeletePageRequest.prototype.force = false; - /** - * Decodes a Case message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Case.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new DeletePageRequest instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest instance + */ + DeletePageRequest.create = function create(properties) { + return new DeletePageRequest(properties); + }; - /** - * Verifies a Case message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Case.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.condition != null && message.hasOwnProperty("condition")) - if (!$util.isString(message.condition)) - return "condition: string expected"; - if (message.caseContent != null && message.hasOwnProperty("caseContent")) { - if (!Array.isArray(message.caseContent)) - return "caseContent: array expected"; - for (var i = 0; i < message.caseContent.length; ++i) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); - if (error) - return "caseContent." + error; - } - } - return null; - }; + /** + * Encodes the specified DeletePageRequest message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePageRequest.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 Case message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case - */ - Case.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(); - if (object.condition != null) - message.condition = String(object.condition); - if (object.caseContent) { - if (!Array.isArray(object.caseContent)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: array expected"); - message.caseContent = []; - for (var i = 0; i < object.caseContent.length; ++i) { - if (typeof object.caseContent[i] !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: object expected"); - message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); - } - } - return message; - }; + /** + * Encodes the specified DeletePageRequest message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.DeletePageRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IDeletePageRequest} message DeletePageRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeletePageRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a Case message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} message Case - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Case.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.caseContent = []; - if (options.defaults) - object.condition = ""; - if (message.condition != null && message.hasOwnProperty("condition")) - object.condition = message.condition; - if (message.caseContent && message.caseContent.length) { - object.caseContent = []; - for (var j = 0; j < message.caseContent.length; ++j) - object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); - } - return object; - }; - - /** - * Converts this Case to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @instance - * @returns {Object.} JSON object - */ - Case.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Case - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Case.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a DeletePageRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @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.DeletePageRequest} DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePageRequest.decode = function decode(reader, length) { + 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.DeletePageRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case"; - }; - - Case.CaseContent = (function() { - - /** - * Properties of a CaseContent. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @interface ICaseContent - * @property {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null} [message] CaseContent message - * @property {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases - */ - - /** - * Constructs a new CaseContent. - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case - * @classdesc Represents a CaseContent. - * @implements ICaseContent - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - */ - function CaseContent(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]]; + case 2: { + message.force = reader.bool(); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CaseContent message. - * @member {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null|undefined} message - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - CaseContent.prototype.message = null; - - /** - * CaseContent additionalCases. - * @member {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null|undefined} additionalCases - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - CaseContent.prototype.additionalCases = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CaseContent casesOrMessage. - * @member {"message"|"additionalCases"|undefined} casesOrMessage - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - */ - Object.defineProperty(CaseContent.prototype, "casesOrMessage", { - get: $util.oneOfGetter($oneOfFields = ["message", "additionalCases"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CaseContent instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance - */ - CaseContent.create = function create(properties) { - return new CaseContent(properties); - }; - - /** - * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CaseContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) - $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CaseContent.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CaseContent message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @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.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CaseContent.decode = function decode(reader, length) { - 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.Fulfillment.ConditionalCases.Case.CaseContent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32()); - break; - } - case 2: { - message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CaseContent message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CaseContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CaseContent message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CaseContent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.message != null && message.hasOwnProperty("message")) { - properties.casesOrMessage = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.message); - if (error) - return "message." + error; - } - } - if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - if (properties.casesOrMessage === 1) - return "casesOrMessage: multiple values"; - properties.casesOrMessage = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.additionalCases); - if (error) - return "additionalCases." + error; - } - } - return null; - }; - - /** - * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent - */ - CaseContent.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent(); - if (object.message != null) { - if (typeof object.message !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); - message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.message); - } - if (object.additionalCases != null) { - if (typeof object.additionalCases !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); - message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.additionalCases); - } - return message; - }; - - /** - * Creates a plain object from a CaseContent message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CaseContent.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.message != null && message.hasOwnProperty("message")) { - object.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.message, options); - if (options.oneofs) - object.casesOrMessage = "message"; - } - if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { - object.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); - if (options.oneofs) - object.casesOrMessage = "additionalCases"; - } - return object; - }; - - /** - * Converts this CaseContent to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @instance - * @returns {Object.} JSON object - */ - CaseContent.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CaseContent - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CaseContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent"; - }; - - return CaseContent; - })(); - - return Case; - })(); - - return ConditionalCases; - })(); - - return Fulfillment; - })(); - - v3beta1.ResponseMessage = (function() { + /** + * Decodes a DeletePageRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeletePageRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Properties of a ResponseMessage. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IResponseMessage - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null} [text] ResponseMessage text - * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio - * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall - * @property {string|null} [channel] ResponseMessage channel + * Verifies a DeletePageRequest message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeletePageRequest.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; + }; /** - * Constructs a new ResponseMessage. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a ResponseMessage. - * @implements IResponseMessage - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + * Creates a DeletePageRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} DeletePageRequest */ - function ResponseMessage(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]]; - } + DeletePageRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; + }; /** - * ResponseMessage text. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance + * Creates a plain object from a DeletePageRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.DeletePageRequest} message DeletePageRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ResponseMessage.prototype.text = null; + DeletePageRequest.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; + }; /** - * ResponseMessage payload. - * @member {google.protobuf.IStruct|null|undefined} payload - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Converts this DeletePageRequest to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest * @instance + * @returns {Object.} JSON object */ - ResponseMessage.prototype.payload = null; + DeletePageRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ResponseMessage conversationSuccess. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance + * Gets the default type url for DeletePageRequest + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.DeletePageRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - ResponseMessage.prototype.conversationSuccess = null; + DeletePageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.DeletePageRequest"; + }; + + return DeletePageRequest; + })(); + + v3beta1.Fulfillment = (function() { /** - * ResponseMessage outputAudioText. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance + * Properties of a Fulfillment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IFulfillment + * @property {Array.|null} [messages] Fulfillment messages + * @property {string|null} [webhook] Fulfillment webhook + * @property {boolean|null} [returnPartialResponses] Fulfillment returnPartialResponses + * @property {string|null} [tag] Fulfillment tag + * @property {Array.|null} [setParameterActions] Fulfillment setParameterActions + * @property {Array.|null} [conditionalCases] Fulfillment conditionalCases */ - ResponseMessage.prototype.outputAudioText = null; /** - * ResponseMessage liveAgentHandoff. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @instance + * Constructs a new Fulfillment. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a Fulfillment. + * @implements IFulfillment + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set */ - ResponseMessage.prototype.liveAgentHandoff = null; + function Fulfillment(properties) { + this.messages = []; + this.setParameterActions = []; + this.conditionalCases = []; + 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]]; + } /** - * ResponseMessage endInteraction. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null|undefined} endInteraction - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Fulfillment messages. + * @member {Array.} messages + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance */ - ResponseMessage.prototype.endInteraction = null; + Fulfillment.prototype.messages = $util.emptyArray; /** - * ResponseMessage playAudio. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null|undefined} playAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Fulfillment webhook. + * @member {string} webhook + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance */ - ResponseMessage.prototype.playAudio = null; + Fulfillment.prototype.webhook = ""; /** - * ResponseMessage mixedAudio. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null|undefined} mixedAudio - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Fulfillment returnPartialResponses. + * @member {boolean} returnPartialResponses + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance */ - ResponseMessage.prototype.mixedAudio = null; + Fulfillment.prototype.returnPartialResponses = false; /** - * ResponseMessage telephonyTransferCall. - * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Fulfillment tag. + * @member {string} tag + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance */ - ResponseMessage.prototype.telephonyTransferCall = null; + Fulfillment.prototype.tag = ""; /** - * ResponseMessage channel. - * @member {string} channel - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Fulfillment setParameterActions. + * @member {Array.} setParameterActions + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance */ - ResponseMessage.prototype.channel = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Fulfillment.prototype.setParameterActions = $util.emptyArray; /** - * ResponseMessage message. - * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|undefined} message - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * Fulfillment conditionalCases. + * @member {Array.} conditionalCases + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance */ - Object.defineProperty(ResponseMessage.prototype, "message", { - get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall"]), - set: $util.oneOfSetter($oneOfFields) - }); + Fulfillment.prototype.conditionalCases = $util.emptyArray; /** - * Creates a new ResponseMessage instance using the specified properties. + * Creates a new Fulfillment instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage instance + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment instance */ - ResponseMessage.create = function create(properties) { - return new ResponseMessage(properties); + Fulfillment.create = function create(properties) { + return new Fulfillment(properties); }; /** - * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified Fulfillment message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseMessage.encode = function encode(message, writer) { + Fulfillment.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.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.mixedAudio != null && Object.hasOwnProperty.call(message, "mixedAudio")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.telephonyTransferCall != null && Object.hasOwnProperty.call(message, "telephonyTransferCall")) - $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.channel); + 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.webhook != null && Object.hasOwnProperty.call(message, "webhook")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.webhook); + if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.tag); + if (message.setParameterActions != null && message.setParameterActions.length) + for (var i = 0; i < message.setParameterActions.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.encode(message.setParameterActions[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.conditionalCases != null && message.conditionalCases.length) + for (var i = 0; i < message.conditionalCases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.conditionalCases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.returnPartialResponses != null && Object.hasOwnProperty.call(message, "returnPartialResponses")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.returnPartialResponses); return writer; }; /** - * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * Encodes the specified Fulfillment message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.IFulfillment} message Fulfillment message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResponseMessage.encodeDelimited = function encodeDelimited(message, writer) { + Fulfillment.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResponseMessage message from the specified reader or buffer. + * Decodes a Fulfillment message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static * @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} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseMessage.decode = function decode(reader, length) { + Fulfillment.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32()); + 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.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 9: { - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); + message.webhook = reader.string(); break; } case 8: { - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); - break; - } - case 10: { - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); - break; - } - case 11: { - message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); - break; - } - case 12: { - message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); + message.returnPartialResponses = reader.bool(); break; } - case 13: { - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); + case 3: { + message.tag = reader.string(); break; } - case 18: { - message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); + case 4: { + if (!(message.setParameterActions && message.setParameterActions.length)) + message.setParameterActions = []; + message.setParameterActions.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.decode(reader, reader.uint32())); break; } - case 19: { - message.channel = reader.string(); + case 5: { + if (!(message.conditionalCases && message.conditionalCases.length)) + message.conditionalCases = []; + message.conditionalCases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32())); break; } default: @@ -85169,300 +86439,214 @@ }; /** - * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * Decodes a Fulfillment message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResponseMessage.decodeDelimited = function decodeDelimited(reader) { + Fulfillment.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResponseMessage message. + * Verifies a Fulfillment message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResponseMessage.verify = function verify(message) { + Fulfillment.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.text); - if (error) - return "text." + error; - } - } - if (message.payload != null && message.hasOwnProperty("payload")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.protobuf.Struct.verify(message.payload); - if (error) - return "payload." + error; - } - } - if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); - if (error) - return "conversationSuccess." + error; - } - } - if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify(message.outputAudioText); - if (error) - return "outputAudioText." + error; - } - } - if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); - if (error) - return "liveAgentHandoff." + error; - } - } - if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify(message.endInteraction); - if (error) - return "endInteraction." + error; - } - } - if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify(message.playAudio); + 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 "playAudio." + error; + return "messages." + error; } } - if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify(message.mixedAudio); + if (message.webhook != null && message.hasOwnProperty("webhook")) + if (!$util.isString(message.webhook)) + return "webhook: string expected"; + if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) + if (typeof message.returnPartialResponses !== "boolean") + return "returnPartialResponses: boolean expected"; + if (message.tag != null && message.hasOwnProperty("tag")) + if (!$util.isString(message.tag)) + return "tag: string expected"; + if (message.setParameterActions != null && message.hasOwnProperty("setParameterActions")) { + if (!Array.isArray(message.setParameterActions)) + return "setParameterActions: array expected"; + for (var i = 0; i < message.setParameterActions.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify(message.setParameterActions[i]); if (error) - return "mixedAudio." + error; + return "setParameterActions." + error; } } - if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { - if (properties.message === 1) - return "message: multiple values"; - properties.message = 1; - { - var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); + if (message.conditionalCases != null && message.hasOwnProperty("conditionalCases")) { + if (!Array.isArray(message.conditionalCases)) + return "conditionalCases: array expected"; + for (var i = 0; i < message.conditionalCases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.conditionalCases[i]); if (error) - return "telephonyTransferCall." + error; + return "conditionalCases." + error; } } - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; return null; }; /** - * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. + * Creates a Fulfillment message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment} Fulfillment */ - ResponseMessage.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage) + Fulfillment.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(); - if (object.text != null) { - if (typeof object.text !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.text: object expected"); - message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.text); - } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.payload: object expected"); - message.payload = $root.google.protobuf.Struct.fromObject(object.payload); - } - if (object.conversationSuccess != null) { - if (typeof object.conversationSuccess !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.conversationSuccess: object expected"); - message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); - } - if (object.outputAudioText != null) { - if (typeof object.outputAudioText !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.outputAudioText: object expected"); - message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); - } - if (object.liveAgentHandoff != null) { - if (typeof object.liveAgentHandoff !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.liveAgentHandoff: object expected"); - message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); - } - if (object.endInteraction != null) { - if (typeof object.endInteraction !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.endInteraction: object expected"); - message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.fromObject(object.endInteraction); - } - if (object.playAudio != null) { - if (typeof object.playAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.playAudio: object expected"); - message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.fromObject(object.playAudio); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment(); + if (object.messages) { + if (!Array.isArray(object.messages)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.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.Fulfillment.messages: object expected"); + message.messages[i] = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.messages[i]); + } } - if (object.mixedAudio != null) { - if (typeof object.mixedAudio !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixedAudio: object expected"); - message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + if (object.webhook != null) + message.webhook = String(object.webhook); + if (object.returnPartialResponses != null) + message.returnPartialResponses = Boolean(object.returnPartialResponses); + if (object.tag != null) + message.tag = String(object.tag); + if (object.setParameterActions) { + if (!Array.isArray(object.setParameterActions)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: array expected"); + message.setParameterActions = []; + for (var i = 0; i < object.setParameterActions.length; ++i) { + if (typeof object.setParameterActions[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.setParameterActions: object expected"); + message.setParameterActions[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.fromObject(object.setParameterActions[i]); + } } - if (object.telephonyTransferCall != null) { - if (typeof object.telephonyTransferCall !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.telephonyTransferCall: object expected"); - message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + if (object.conditionalCases) { + if (!Array.isArray(object.conditionalCases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: array expected"); + message.conditionalCases = []; + for (var i = 0; i < object.conditionalCases.length; ++i) { + if (typeof object.conditionalCases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.conditionalCases: object expected"); + message.conditionalCases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.conditionalCases[i]); + } } - if (object.channel != null) - message.channel = String(object.channel); return message; }; /** - * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * Creates a plain object from a Fulfillment message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} message ResponseMessage + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment} message Fulfillment * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResponseMessage.toObject = function toObject(message, options) { + Fulfillment.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.channel = ""; - if (message.text != null && message.hasOwnProperty("text")) { - object.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.text, options); - if (options.oneofs) - object.message = "text"; - } - if (message.payload != null && message.hasOwnProperty("payload")) { - object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); - if (options.oneofs) - object.message = "payload"; - } - if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { - object.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); - if (options.oneofs) - object.message = "outputAudioText"; - } - if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { - object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); - if (options.oneofs) - object.message = "conversationSuccess"; - } - if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { - object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); - if (options.oneofs) - object.message = "liveAgentHandoff"; + if (options.arrays || options.defaults) { + object.messages = []; + object.setParameterActions = []; + object.conditionalCases = []; } - if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { - object.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); - if (options.oneofs) - object.message = "endInteraction"; + if (options.defaults) { + object.webhook = ""; + object.tag = ""; + object.returnPartialResponses = false; } - if (message.playAudio != null && message.hasOwnProperty("playAudio")) { - object.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.toObject(message.playAudio, options); - if (options.oneofs) - object.message = "playAudio"; + 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.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { - object.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); - if (options.oneofs) - object.message = "mixedAudio"; + if (message.webhook != null && message.hasOwnProperty("webhook")) + object.webhook = message.webhook; + if (message.tag != null && message.hasOwnProperty("tag")) + object.tag = message.tag; + if (message.setParameterActions && message.setParameterActions.length) { + object.setParameterActions = []; + for (var j = 0; j < message.setParameterActions.length; ++j) + object.setParameterActions[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.toObject(message.setParameterActions[j], options); } - if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { - object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); - if (options.oneofs) - object.message = "telephonyTransferCall"; + if (message.conditionalCases && message.conditionalCases.length) { + object.conditionalCases = []; + for (var j = 0; j < message.conditionalCases.length; ++j) + object.conditionalCases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.conditionalCases[j], options); } - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; + if (message.returnPartialResponses != null && message.hasOwnProperty("returnPartialResponses")) + object.returnPartialResponses = message.returnPartialResponses; return object; }; /** - * Converts this ResponseMessage to JSON. + * Converts this Fulfillment to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @instance * @returns {Object.} JSON object */ - ResponseMessage.prototype.toJSON = function toJSON() { + Fulfillment.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResponseMessage + * Gets the default type url for Fulfillment * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Fulfillment.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment"; }; - ResponseMessage.Text = (function() { + Fulfillment.SetParameterAction = (function() { /** - * Properties of a Text. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IText - * @property {Array.|null} [text] Text text - * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption + * Properties of a SetParameterAction. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @interface ISetParameterAction + * @property {string|null} [parameter] SetParameterAction parameter + * @property {google.protobuf.IValue|null} [value] SetParameterAction value */ /** - * Constructs a new Text. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a Text. - * @implements IText + * Constructs a new SetParameterAction. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @classdesc Represents a SetParameterAction. + * @implements ISetParameterAction * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set */ - function Text(properties) { - this.text = []; + function SetParameterAction(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85470,92 +86654,89 @@ } /** - * Text text. - * @member {Array.} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * SetParameterAction parameter. + * @member {string} parameter + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @instance */ - Text.prototype.text = $util.emptyArray; + SetParameterAction.prototype.parameter = ""; /** - * Text allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text - * @instance + * SetParameterAction value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction + * @instance */ - Text.prototype.allowPlaybackInterruption = false; + SetParameterAction.prototype.value = null; /** - * Creates a new Text instance using the specified properties. + * Creates a new SetParameterAction instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text instance + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction instance */ - Text.create = function create(properties) { - return new Text(properties); + SetParameterAction.create = function create(properties) { + return new SetParameterAction(properties); }; /** - * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified SetParameterAction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Text.encode = function encode(message, writer) { + SetParameterAction.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.text != null && message.text.length) - for (var i = 0; i < message.text.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.text[i]); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); + if (message.parameter != null && Object.hasOwnProperty.call(message, "parameter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameter); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. + * Encodes the specified SetParameterAction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ISetParameterAction} message SetParameterAction message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Text.encodeDelimited = function encodeDelimited(message, writer) { + SetParameterAction.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Text message from the specified reader or buffer. + * Decodes a SetParameterAction message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static * @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.Text} Text + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Text.decode = function decode(reader, length) { + SetParameterAction.decode = function decode(reader, length) { 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.Text(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.text && message.text.length)) - message.text = []; - message.text.push(reader.string()); + message.parameter = reader.string(); break; } case 2: { - message.allowPlaybackInterruption = reader.bool(); + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -85567,143 +86748,137 @@ }; /** - * Decodes a Text message from the specified reader or buffer, length delimited. + * Decodes a SetParameterAction message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Text.decodeDelimited = function decodeDelimited(reader) { + SetParameterAction.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Text message. + * Verifies a SetParameterAction message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Text.verify = function verify(message) { + SetParameterAction.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.text != null && message.hasOwnProperty("text")) { - if (!Array.isArray(message.text)) - return "text: array expected"; - for (var i = 0; i < message.text.length; ++i) - if (!$util.isString(message.text[i])) - return "text: string[] expected"; + if (message.parameter != null && message.hasOwnProperty("parameter")) + if (!$util.isString(message.parameter)) + return "parameter: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates a Text message from a plain object. Also converts values to their respective internal types. + * Creates a SetParameterAction message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} SetParameterAction */ - Text.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) + SetParameterAction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); - if (object.text) { - if (!Array.isArray(object.text)) - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.text: array expected"); - message.text = []; - for (var i = 0; i < object.text.length; ++i) - message.text[i] = String(object.text[i]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(); + if (object.parameter != null) + message.parameter = String(object.parameter); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); } - if (object.allowPlaybackInterruption != null) - message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); return message; }; /** - * Creates a plain object from a Text message. Also converts values to other types if specified. + * Creates a plain object from a SetParameterAction message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} message Text + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction} message SetParameterAction * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Text.toObject = function toObject(message, options) { + SetParameterAction.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.text = []; - if (options.defaults) - object.allowPlaybackInterruption = false; - if (message.text && message.text.length) { - object.text = []; - for (var j = 0; j < message.text.length; ++j) - object.text[j] = message.text[j]; + if (options.defaults) { + object.parameter = ""; + object.value = null; } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; + if (message.parameter != null && message.hasOwnProperty("parameter")) + object.parameter = message.parameter; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); return object; }; /** - * Converts this Text to JSON. + * Converts this SetParameterAction to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @instance * @returns {Object.} JSON object */ - Text.prototype.toJSON = function toJSON() { + SetParameterAction.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Text + * Gets the default type url for SetParameterAction * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Text.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SetParameterAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction"; }; - return Text; + return SetParameterAction; })(); - ResponseMessage.LiveAgentHandoff = (function() { + Fulfillment.ConditionalCases = (function() { /** - * Properties of a LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface ILiveAgentHandoff - * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata + * Properties of a ConditionalCases. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @interface IConditionalCases + * @property {Array.|null} [cases] ConditionalCases cases */ /** - * Constructs a new LiveAgentHandoff. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a LiveAgentHandoff. - * @implements ILiveAgentHandoff + * Constructs a new ConditionalCases. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment + * @classdesc Represents a ConditionalCases. + * @implements IConditionalCases * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set */ - function LiveAgentHandoff(properties) { + function ConditionalCases(properties) { + this.cases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85711,75 +86886,78 @@ } /** - * LiveAgentHandoff metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * ConditionalCases cases. + * @member {Array.} cases + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @instance */ - LiveAgentHandoff.prototype.metadata = null; + ConditionalCases.prototype.cases = $util.emptyArray; /** - * Creates a new LiveAgentHandoff instance using the specified properties. + * Creates a new ConditionalCases instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases instance */ - LiveAgentHandoff.create = function create(properties) { - return new LiveAgentHandoff(properties); + ConditionalCases.create = function create(properties) { + return new ConditionalCases(properties); }; /** - * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified ConditionalCases message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveAgentHandoff.encode = function encode(message, writer) { + ConditionalCases.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.cases != null && message.cases.length) + for (var i = 0; i < message.cases.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.encode(message.cases[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. + * Encodes the specified ConditionalCases message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases} message ConditionalCases message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LiveAgentHandoff.encodeDelimited = function encodeDelimited(message, writer) { + ConditionalCases.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer. + * Decodes a ConditionalCases message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static * @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.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveAgentHandoff.decode = function decode(reader, length) { + ConditionalCases.decode = function decode(reader, length) { 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.LiveAgentHandoff(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + if (!(message.cases && message.cases.length)) + message.cases = []; + message.cases.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.decode(reader, reader.uint32())); break; } default: @@ -85791,608 +86969,1182 @@ }; /** - * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. + * Decodes a ConditionalCases message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LiveAgentHandoff.decodeDelimited = function decodeDelimited(reader) { + ConditionalCases.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LiveAgentHandoff message. + * Verifies a ConditionalCases message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LiveAgentHandoff.verify = function verify(message) { + ConditionalCases.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.cases != null && message.hasOwnProperty("cases")) { + if (!Array.isArray(message.cases)) + return "cases: array expected"; + for (var i = 0; i < message.cases.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify(message.cases[i]); + if (error) + return "cases." + error; + } } return null; }; /** - * Creates a LiveAgentHandoff message from a plain object. Also converts values to their respective internal types. + * Creates a ConditionalCases message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} ConditionalCases */ - LiveAgentHandoff.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff) + ConditionalCases.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases) return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(); + if (object.cases) { + if (!Array.isArray(object.cases)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: array expected"); + message.cases = []; + for (var i = 0; i < object.cases.length; ++i) { + if (typeof object.cases[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.cases: object expected"); + message.cases[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.fromObject(object.cases[i]); + } } return message; }; /** - * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. + * Creates a plain object from a ConditionalCases message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases} message ConditionalCases * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LiveAgentHandoff.toObject = function toObject(message, options) { + ConditionalCases.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (options.arrays || options.defaults) + object.cases = []; + if (message.cases && message.cases.length) { + object.cases = []; + for (var j = 0; j < message.cases.length; ++j) + object.cases[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.toObject(message.cases[j], options); + } return object; }; /** - * Converts this LiveAgentHandoff to JSON. + * Converts this ConditionalCases to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @instance * @returns {Object.} JSON object */ - LiveAgentHandoff.prototype.toJSON = function toJSON() { + ConditionalCases.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for LiveAgentHandoff + * Gets the default type url for ConditionalCases * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - LiveAgentHandoff.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ConditionalCases.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases"; }; - return LiveAgentHandoff; - })(); + ConditionalCases.Case = (function() { - ResponseMessage.ConversationSuccess = (function() { + /** + * Properties of a Case. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @interface ICase + * @property {string|null} [condition] Case condition + * @property {Array.|null} [caseContent] Case caseContent + */ - /** - * Properties of a ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IConversationSuccess - * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata - */ + /** + * Constructs a new Case. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases + * @classdesc Represents a Case. + * @implements ICase + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + */ + function Case(properties) { + this.caseContent = []; + 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 ConversationSuccess. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a ConversationSuccess. - * @implements IConversationSuccess - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set - */ - function ConversationSuccess(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]]; - } + /** + * Case condition. + * @member {string} condition + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @instance + */ + Case.prototype.condition = ""; - /** - * ConversationSuccess metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @instance - */ - ConversationSuccess.prototype.metadata = null; + /** + * Case caseContent. + * @member {Array.} caseContent + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @instance + */ + Case.prototype.caseContent = $util.emptyArray; - /** - * Creates a new ConversationSuccess instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess instance - */ - ConversationSuccess.create = function create(properties) { - return new ConversationSuccess(properties); - }; + /** + * Creates a new Case instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case instance + */ + Case.create = function create(properties) { + return new Case(properties); + }; - /** - * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConversationSuccess.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified Case message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Case.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.caseContent != null && message.caseContent.length) + for (var i = 0; i < message.caseContent.length; ++i) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.encode(message.caseContent[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConversationSuccess.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Case message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.ICase} message Case message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Case.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConversationSuccess message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @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.ConversationSuccess} ConversationSuccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConversationSuccess.decode = function decode(reader, length) { - 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.ConversationSuccess(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + /** + * Decodes a Case message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @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.Fulfillment.ConditionalCases.Case} Case + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Case.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases.Case(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.condition = reader.string(); + break; + } + case 2: { + if (!(message.caseContent && message.caseContent.length)) + message.caseContent = []; + message.caseContent.push($root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConversationSuccess.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Case message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Case.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ConversationSuccess message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConversationSuccess.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; + /** + * Verifies a Case message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Case.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.condition != null && message.hasOwnProperty("condition")) + if (!$util.isString(message.condition)) + return "condition: string expected"; + if (message.caseContent != null && message.hasOwnProperty("caseContent")) { + if (!Array.isArray(message.caseContent)) + return "caseContent: array expected"; + for (var i = 0; i < message.caseContent.length; ++i) { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify(message.caseContent[i]); + if (error) + return "caseContent." + error; + } + } + return null; + }; - /** - * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess - */ - ConversationSuccess.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess) - return object; - var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); - } - return message; - }; + /** + * Creates a Case message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} Case + */ + Case.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(); + if (object.condition != null) + message.condition = String(object.condition); + if (object.caseContent) { + if (!Array.isArray(object.caseContent)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: array expected"); + message.caseContent = []; + for (var i = 0; i < object.caseContent.length; ++i) { + if (typeof object.caseContent[i] !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.caseContent: object expected"); + message.caseContent[i] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.fromObject(object.caseContent[i]); + } + } + return message; + }; - /** - * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} message ConversationSuccess - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConversationSuccess.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); - return object; - }; + /** + * Creates a plain object from a Case message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case} message Case + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Case.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.caseContent = []; + if (options.defaults) + object.condition = ""; + if (message.condition != null && message.hasOwnProperty("condition")) + object.condition = message.condition; + if (message.caseContent && message.caseContent.length) { + object.caseContent = []; + for (var j = 0; j < message.caseContent.length; ++j) + object.caseContent[j] = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.toObject(message.caseContent[j], options); + } + return object; + }; - /** - * Converts this ConversationSuccess to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @instance - * @returns {Object.} JSON object - */ - ConversationSuccess.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this Case to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @instance + * @returns {Object.} JSON object + */ + Case.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for ConversationSuccess - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConversationSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess"; - }; + /** + * Gets the default type url for Case + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Case.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case"; + }; - return ConversationSuccess; - })(); + Case.CaseContent = (function() { - ResponseMessage.OutputAudioText = (function() { + /** + * Properties of a CaseContent. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @interface ICaseContent + * @property {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null} [message] CaseContent message + * @property {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null} [additionalCases] CaseContent additionalCases + */ - /** - * Properties of an OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IOutputAudioText - * @property {string|null} [text] OutputAudioText text - * @property {string|null} [ssml] OutputAudioText ssml - * @property {boolean|null} [allowPlaybackInterruption] OutputAudioText allowPlaybackInterruption - */ + /** + * Constructs a new CaseContent. + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case + * @classdesc Represents a CaseContent. + * @implements ICaseContent + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + */ + function CaseContent(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 OutputAudioText. - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents an OutputAudioText. - * @implements IOutputAudioText - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set - */ - function OutputAudioText(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]]; - } + /** + * CaseContent message. + * @member {google.cloud.dialogflow.cx.v3beta1.IResponseMessage|null|undefined} message + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + CaseContent.prototype.message = null; - /** - * OutputAudioText text. - * @member {string|null|undefined} text - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.text = null; + /** + * CaseContent additionalCases. + * @member {google.cloud.dialogflow.cx.v3beta1.Fulfillment.IConditionalCases|null|undefined} additionalCases + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + CaseContent.prototype.additionalCases = null; - /** - * OutputAudioText ssml. - * @member {string|null|undefined} ssml - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.ssml = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * OutputAudioText allowPlaybackInterruption. - * @member {boolean} allowPlaybackInterruption - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - OutputAudioText.prototype.allowPlaybackInterruption = false; + /** + * CaseContent casesOrMessage. + * @member {"message"|"additionalCases"|undefined} casesOrMessage + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + */ + Object.defineProperty(CaseContent.prototype, "casesOrMessage", { + get: $util.oneOfGetter($oneOfFields = ["message", "additionalCases"]), + set: $util.oneOfSetter($oneOfFields) + }); - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Creates a new CaseContent instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent instance + */ + CaseContent.create = function create(properties) { + return new CaseContent(properties); + }; - /** - * OutputAudioText source. - * @member {"text"|"ssml"|undefined} source - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @instance - */ - Object.defineProperty(OutputAudioText.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["text", "ssml"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Encodes the specified CaseContent message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CaseContent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.encode(message.message, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.additionalCases != null && Object.hasOwnProperty.call(message, "additionalCases")) + $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.encode(message.additionalCases, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Creates a new OutputAudioText instance using the specified properties. - * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText instance - */ - OutputAudioText.create = function create(properties) { - return new OutputAudioText(properties); - }; + /** + * Encodes the specified CaseContent message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.ICaseContent} message CaseContent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CaseContent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputAudioText.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.ssml != null && Object.hasOwnProperty.call(message, "ssml")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.ssml); - if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); - return writer; - }; + /** + * Decodes a CaseContent message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @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.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CaseContent.decode = function decode(reader, length) { + 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.Fulfillment.ConditionalCases.Case.CaseContent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.decode(reader, reader.uint32()); + break; + } + case 2: { + message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputAudioText.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a CaseContent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CaseContent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes an OutputAudioText message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @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.OutputAudioText} OutputAudioText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputAudioText.decode = function decode(reader, length) { - 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.OutputAudioText(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.text = reader.string(); - break; - } - case 2: { - message.ssml = reader.string(); - break; - } - case 3: { - message.allowPlaybackInterruption = reader.bool(); - break; + /** + * Verifies a CaseContent message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CaseContent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.message != null && message.hasOwnProperty("message")) { + properties.casesOrMessage = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify(message.message); + if (error) + return "message." + error; + } } - default: - reader.skipType(tag & 7); - break; + if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { + if (properties.casesOrMessage === 1) + return "casesOrMessage: multiple values"; + properties.casesOrMessage = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.verify(message.additionalCases); + if (error) + return "additionalCases." + error; + } + } + return null; + }; + + /** + * Creates a CaseContent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} CaseContent + */ + CaseContent.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent(); + if (object.message != null) { + if (typeof object.message !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.message: object expected"); + message.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.fromObject(object.message); + } + if (object.additionalCases != null) { + if (typeof object.additionalCases !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent.additionalCases: object expected"); + message.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.fromObject(object.additionalCases); + } + return message; + }; + + /** + * Creates a plain object from a CaseContent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent} message CaseContent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CaseContent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.message != null && message.hasOwnProperty("message")) { + object.message = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.toObject(message.message, options); + if (options.oneofs) + object.casesOrMessage = "message"; + } + if (message.additionalCases != null && message.hasOwnProperty("additionalCases")) { + object.additionalCases = $root.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.toObject(message.additionalCases, options); + if (options.oneofs) + object.casesOrMessage = "additionalCases"; + } + return object; + }; + + /** + * Converts this CaseContent to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @instance + * @returns {Object.} JSON object + */ + CaseContent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CaseContent + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CaseContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent"; + }; + + return CaseContent; + })(); + + return Case; + })(); + + return ConditionalCases; + })(); + + return Fulfillment; + })(); + + v3beta1.ResponseMessage = (function() { + + /** + * Properties of a ResponseMessage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @interface IResponseMessage + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null} [text] ResponseMessage text + * @property {google.protobuf.IStruct|null} [payload] ResponseMessage payload + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null} [conversationSuccess] ResponseMessage conversationSuccess + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null} [outputAudioText] ResponseMessage outputAudioText + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null} [liveAgentHandoff] ResponseMessage liveAgentHandoff + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null} [endInteraction] ResponseMessage endInteraction + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null} [playAudio] ResponseMessage playAudio + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null} [mixedAudio] ResponseMessage mixedAudio + * @property {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null} [telephonyTransferCall] ResponseMessage telephonyTransferCall + * @property {string|null} [channel] ResponseMessage channel + */ + + /** + * Constructs a new ResponseMessage. + * @memberof google.cloud.dialogflow.cx.v3beta1 + * @classdesc Represents a ResponseMessage. + * @implements IResponseMessage + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + */ + function ResponseMessage(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]]; + } + + /** + * ResponseMessage text. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.text = null; + + /** + * ResponseMessage payload. + * @member {google.protobuf.IStruct|null|undefined} payload + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.payload = null; + + /** + * ResponseMessage conversationSuccess. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess|null|undefined} conversationSuccess + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.conversationSuccess = null; + + /** + * ResponseMessage outputAudioText. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText|null|undefined} outputAudioText + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.outputAudioText = null; + + /** + * ResponseMessage liveAgentHandoff. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff|null|undefined} liveAgentHandoff + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.liveAgentHandoff = null; + + /** + * ResponseMessage endInteraction. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction|null|undefined} endInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.endInteraction = null; + + /** + * ResponseMessage playAudio. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio|null|undefined} playAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.playAudio = null; + + /** + * ResponseMessage mixedAudio. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IMixedAudio|null|undefined} mixedAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.mixedAudio = null; + + /** + * ResponseMessage telephonyTransferCall. + * @member {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ITelephonyTransferCall|null|undefined} telephonyTransferCall + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.telephonyTransferCall = null; + + /** + * ResponseMessage channel. + * @member {string} channel + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + ResponseMessage.prototype.channel = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ResponseMessage message. + * @member {"text"|"payload"|"conversationSuccess"|"outputAudioText"|"liveAgentHandoff"|"endInteraction"|"playAudio"|"mixedAudio"|"telephonyTransferCall"|undefined} message + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + */ + Object.defineProperty(ResponseMessage.prototype, "message", { + get: $util.oneOfGetter($oneOfFields = ["text", "payload", "conversationSuccess", "outputAudioText", "liveAgentHandoff", "endInteraction", "playAudio", "mixedAudio", "telephonyTransferCall"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ResponseMessage instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage instance + */ + ResponseMessage.create = function create(properties) { + return new ResponseMessage(properties); + }; + + /** + * Encodes the specified ResponseMessage message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResponseMessage.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.ResponseMessage.Text.encode(message.text, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Struct.encode(message.payload, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.outputAudioText != null && Object.hasOwnProperty.call(message, "outputAudioText")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.encode(message.outputAudioText, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.conversationSuccess != null && Object.hasOwnProperty.call(message, "conversationSuccess")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.encode(message.conversationSuccess, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.liveAgentHandoff != null && Object.hasOwnProperty.call(message, "liveAgentHandoff")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.encode(message.liveAgentHandoff, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.endInteraction != null && Object.hasOwnProperty.call(message, "endInteraction")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.encode(message.endInteraction, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.playAudio != null && Object.hasOwnProperty.call(message, "playAudio")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.encode(message.playAudio, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.mixedAudio != null && Object.hasOwnProperty.call(message, "mixedAudio")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.encode(message.mixedAudio, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.telephonyTransferCall != null && Object.hasOwnProperty.call(message, "telephonyTransferCall")) + $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.encode(message.telephonyTransferCall, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.channel); + return writer; + }; + + /** + * Encodes the specified ResponseMessage message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.IResponseMessage} message ResponseMessage message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResponseMessage.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResponseMessage message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @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} ResponseMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResponseMessage.decode = function decode(reader, length) { + 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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.decode(reader, reader.uint32()); + break; + } + case 2: { + message.payload = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 9: { + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.decode(reader, reader.uint32()); + break; + } + case 8: { + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.decode(reader, reader.uint32()); + break; + } + case 10: { + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.decode(reader, reader.uint32()); + break; + } + case 11: { + message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.decode(reader, reader.uint32()); + break; + } + case 12: { + message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.decode(reader, reader.uint32()); + break; + } + case 13: { + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.decode(reader, reader.uint32()); + break; + } + case 18: { + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.decode(reader, reader.uint32()); + break; + } + case 19: { + message.channel = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputAudioText.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ResponseMessage message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResponseMessage.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an OutputAudioText message. - * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputAudioText.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.text != null && message.hasOwnProperty("text")) { - properties.source = 1; - if (!$util.isString(message.text)) - return "text: string expected"; + /** + * Verifies a ResponseMessage message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResponseMessage.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify(message.text); + if (error) + return "text." + error; } - 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.payload != null && message.hasOwnProperty("payload")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.protobuf.Struct.verify(message.payload); + if (error) + return "payload." + error; } - 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.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify(message.conversationSuccess); + if (error) + return "conversationSuccess." + error; } - if (message.ssml != null && message.hasOwnProperty("ssml")) { - object.ssml = message.ssml; - if (options.oneofs) - object.source = "ssml"; + } + if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify(message.outputAudioText); + if (error) + return "outputAudioText." + error; } - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - object.allowPlaybackInterruption = message.allowPlaybackInterruption; + } + if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify(message.liveAgentHandoff); + if (error) + return "liveAgentHandoff." + error; + } + } + if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify(message.endInteraction); + if (error) + return "endInteraction." + error; + } + } + if (message.playAudio != null && message.hasOwnProperty("playAudio")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify(message.playAudio); + if (error) + return "playAudio." + error; + } + } + if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.verify(message.mixedAudio); + if (error) + return "mixedAudio." + error; + } + } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + if (properties.message === 1) + return "message: multiple values"; + properties.message = 1; + { + var error = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.verify(message.telephonyTransferCall); + if (error) + return "telephonyTransferCall." + error; + } + } + if (message.channel != null && message.hasOwnProperty("channel")) + if (!$util.isString(message.channel)) + return "channel: string expected"; + return null; + }; + + /** + * Creates a ResponseMessage message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} ResponseMessage + */ + ResponseMessage.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage) return object; - }; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(); + if (object.text != null) { + if (typeof object.text !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.text: object expected"); + message.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.fromObject(object.text); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.payload: object expected"); + message.payload = $root.google.protobuf.Struct.fromObject(object.payload); + } + if (object.conversationSuccess != null) { + if (typeof object.conversationSuccess !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.conversationSuccess: object expected"); + message.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.fromObject(object.conversationSuccess); + } + if (object.outputAudioText != null) { + if (typeof object.outputAudioText !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.outputAudioText: object expected"); + message.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.fromObject(object.outputAudioText); + } + if (object.liveAgentHandoff != null) { + if (typeof object.liveAgentHandoff !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.liveAgentHandoff: object expected"); + message.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.fromObject(object.liveAgentHandoff); + } + if (object.endInteraction != null) { + if (typeof object.endInteraction !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.endInteraction: object expected"); + message.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.fromObject(object.endInteraction); + } + if (object.playAudio != null) { + if (typeof object.playAudio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.playAudio: object expected"); + message.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.fromObject(object.playAudio); + } + if (object.mixedAudio != null) { + if (typeof object.mixedAudio !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixedAudio: object expected"); + message.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.fromObject(object.mixedAudio); + } + if (object.telephonyTransferCall != null) { + if (typeof object.telephonyTransferCall !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.telephonyTransferCall: object expected"); + message.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.fromObject(object.telephonyTransferCall); + } + if (object.channel != null) + message.channel = String(object.channel); + return message; + }; - /** - * 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); - }; + /** + * Creates a plain object from a ResponseMessage message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage} message ResponseMessage + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResponseMessage.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.channel = ""; + if (message.text != null && message.hasOwnProperty("text")) { + object.text = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.toObject(message.text, options); + if (options.oneofs) + object.message = "text"; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + object.payload = $root.google.protobuf.Struct.toObject(message.payload, options); + if (options.oneofs) + object.message = "payload"; + } + if (message.outputAudioText != null && message.hasOwnProperty("outputAudioText")) { + object.outputAudioText = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.toObject(message.outputAudioText, options); + if (options.oneofs) + object.message = "outputAudioText"; + } + if (message.conversationSuccess != null && message.hasOwnProperty("conversationSuccess")) { + object.conversationSuccess = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.toObject(message.conversationSuccess, options); + if (options.oneofs) + object.message = "conversationSuccess"; + } + if (message.liveAgentHandoff != null && message.hasOwnProperty("liveAgentHandoff")) { + object.liveAgentHandoff = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.toObject(message.liveAgentHandoff, options); + if (options.oneofs) + object.message = "liveAgentHandoff"; + } + if (message.endInteraction != null && message.hasOwnProperty("endInteraction")) { + object.endInteraction = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.toObject(message.endInteraction, options); + if (options.oneofs) + object.message = "endInteraction"; + } + if (message.playAudio != null && message.hasOwnProperty("playAudio")) { + object.playAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.toObject(message.playAudio, options); + if (options.oneofs) + object.message = "playAudio"; + } + if (message.mixedAudio != null && message.hasOwnProperty("mixedAudio")) { + object.mixedAudio = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.toObject(message.mixedAudio, options); + if (options.oneofs) + object.message = "mixedAudio"; + } + if (message.telephonyTransferCall != null && message.hasOwnProperty("telephonyTransferCall")) { + object.telephonyTransferCall = $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall.toObject(message.telephonyTransferCall, options); + if (options.oneofs) + object.message = "telephonyTransferCall"; + } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = message.channel; + return object; + }; - /** - * Gets the default type url for OutputAudioText - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputAudioText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText"; - }; + /** + * Converts this ResponseMessage to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @instance + * @returns {Object.} JSON object + */ + ResponseMessage.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return OutputAudioText; - })(); + /** + * Gets the default type url for ResponseMessage + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResponseMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage"; + }; - ResponseMessage.EndInteraction = (function() { + ResponseMessage.Text = (function() { /** - * Properties of an EndInteraction. + * Properties of a Text. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IEndInteraction + * @interface IText + * @property {Array.|null} [text] Text text + * @property {boolean|null} [allowPlaybackInterruption] Text allowPlaybackInterruption */ /** - * Constructs a new EndInteraction. + * Constructs a new Text. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents an EndInteraction. - * @implements IEndInteraction + * @classdesc Represents a Text. + * @implements IText * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set */ - function EndInteraction(properties) { + function Text(properties) { + this.text = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86400,63 +88152,94 @@ } /** - * Creates a new EndInteraction instance using the specified properties. + * Text text. + * @member {Array.} text + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @instance + */ + Text.prototype.text = $util.emptyArray; + + /** + * Text allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text + * @instance + */ + Text.prototype.allowPlaybackInterruption = false; + + /** + * Creates a new Text instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction instance + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text instance */ - EndInteraction.create = function create(properties) { - return new EndInteraction(properties); + Text.create = function create(properties) { + return new Text(properties); }; /** - * Encodes the specified EndInteraction message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. + * Encodes the specified Text message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EndInteraction.encode = function encode(message, writer) { + Text.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.text != null && message.text.length) + for (var i = 0; i < message.text.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.text[i]); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowPlaybackInterruption); return writer; }; /** - * Encodes the specified EndInteraction message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction.verify|verify} messages. + * Encodes the specified Text message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IEndInteraction} message EndInteraction message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IText} message Text message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EndInteraction.encodeDelimited = function encodeDelimited(message, writer) { + Text.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EndInteraction message from the specified reader or buffer. + * Decodes a Text message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text * @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) { + Text.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.text && message.text.length)) + message.text = []; + message.text.push(reader.string()); + break; + } + case 2: { + message.allowPlaybackInterruption = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -86466,110 +88249,143 @@ }; /** - * Decodes an EndInteraction message from the specified reader or buffer, length delimited. + * Decodes a Text message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text * @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) { + Text.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EndInteraction message. + * Verifies a Text message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @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) { + Text.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.text != null && message.hasOwnProperty("text")) { + if (!Array.isArray(message.text)) + return "text: array expected"; + for (var i = 0; i < message.text.length; ++i) + if (!$util.isString(message.text[i])) + return "text: string[] expected"; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; return null; }; /** - * Creates an EndInteraction message from a plain object. Also converts values to their respective internal types. + * Creates a Text message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} EndInteraction + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} Text */ - EndInteraction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction) + Text.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text) return object; - return new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction(); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(); + if (object.text) { + if (!Array.isArray(object.text)) + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.text: array expected"); + message.text = []; + for (var i = 0; i < object.text.length; ++i) + message.text[i] = String(object.text[i]); + } + if (object.allowPlaybackInterruption != null) + message.allowPlaybackInterruption = Boolean(object.allowPlaybackInterruption); + return message; }; /** - * Creates a plain object from an EndInteraction message. Also converts values to other types if specified. + * Creates a plain object from a Text message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction} message EndInteraction + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text} message Text * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EndInteraction.toObject = function toObject() { - return {}; + Text.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.text = []; + if (options.defaults) + object.allowPlaybackInterruption = false; + if (message.text && message.text.length) { + object.text = []; + for (var j = 0; j < message.text.length; ++j) + object.text[j] = message.text[j]; + } + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + object.allowPlaybackInterruption = message.allowPlaybackInterruption; + return object; }; /** - * Converts this EndInteraction to JSON. + * Converts this Text to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @instance * @returns {Object.} JSON object */ - EndInteraction.prototype.toJSON = function toJSON() { + Text.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EndInteraction + * Gets the default type url for Text * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EndInteraction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Text.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text"; }; - return EndInteraction; + return Text; })(); - ResponseMessage.PlayAudio = (function() { + ResponseMessage.LiveAgentHandoff = (function() { /** - * Properties of a PlayAudio. + * Properties of a LiveAgentHandoff. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @interface IPlayAudio - * @property {string|null} [audioUri] PlayAudio audioUri - * @property {boolean|null} [allowPlaybackInterruption] PlayAudio allowPlaybackInterruption + * @interface ILiveAgentHandoff + * @property {google.protobuf.IStruct|null} [metadata] LiveAgentHandoff metadata */ /** - * Constructs a new PlayAudio. + * Constructs a new LiveAgentHandoff. * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage - * @classdesc Represents a PlayAudio. - * @implements IPlayAudio + * @classdesc Represents a LiveAgentHandoff. + * @implements ILiveAgentHandoff * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set */ - function PlayAudio(properties) { + function LiveAgentHandoff(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -86577,89 +88393,75 @@ } /** - * 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 + * LiveAgentHandoff metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @instance */ - PlayAudio.prototype.allowPlaybackInterruption = false; + LiveAgentHandoff.prototype.metadata = null; /** - * Creates a new PlayAudio instance using the specified properties. + * Creates a new LiveAgentHandoff instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio instance + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff instance */ - PlayAudio.create = function create(properties) { - return new PlayAudio(properties); + LiveAgentHandoff.create = function create(properties) { + return new LiveAgentHandoff(properties); }; /** - * Encodes the specified PlayAudio message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlayAudio.encode = function encode(message, writer) { + LiveAgentHandoff.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); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified PlayAudio message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio.verify|verify} messages. + * Encodes the specified LiveAgentHandoff message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IPlayAudio} message PlayAudio message or plain object to encode + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ILiveAgentHandoff} message LiveAgentHandoff message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PlayAudio.encodeDelimited = function encodeDelimited(message, writer) { + LiveAgentHandoff.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PlayAudio message from the specified reader or buffer. + * Decodes a LiveAgentHandoff message from the specified reader or buffer. * @function decode - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @static * @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 + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff * @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) { + LiveAgentHandoff.decode = function decode(reader, length) { 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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.audioUri = reader.string(); - break; - } - case 2: { - message.allowPlaybackInterruption = reader.bool(); + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } default: @@ -86671,48 +88473,928 @@ }; /** - * Decodes a PlayAudio message from the specified reader or buffer, length delimited. + * Decodes a LiveAgentHandoff message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff * @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) { + LiveAgentHandoff.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PlayAudio message. + * Verifies a LiveAgentHandoff message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff * @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) { + LiveAgentHandoff.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"; - if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) - if (typeof message.allowPlaybackInterruption !== "boolean") - return "allowPlaybackInterruption: boolean expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } return null; }; /** - * Creates a PlayAudio message from a plain object. Also converts values to their respective internal types. + * Creates a LiveAgentHandoff 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.LiveAgentHandoff * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} LiveAgentHandoff + */ + LiveAgentHandoff.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a LiveAgentHandoff message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff} message LiveAgentHandoff + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LiveAgentHandoff.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this LiveAgentHandoff to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @instance + * @returns {Object.} JSON object + */ + LiveAgentHandoff.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LiveAgentHandoff + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LiveAgentHandoff.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff"; + }; + + return LiveAgentHandoff; + })(); + + ResponseMessage.ConversationSuccess = (function() { + + /** + * Properties of a ConversationSuccess. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IConversationSuccess + * @property {google.protobuf.IStruct|null} [metadata] ConversationSuccess metadata + */ + + /** + * Constructs a new ConversationSuccess. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents a ConversationSuccess. + * @implements IConversationSuccess + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set + */ + function ConversationSuccess(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]]; + } + + /** + * ConversationSuccess metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @instance + */ + ConversationSuccess.prototype.metadata = null; + + /** + * Creates a new ConversationSuccess instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess instance + */ + ConversationSuccess.create = function create(properties) { + return new ConversationSuccess(properties); + }; + + /** + * Encodes the specified ConversationSuccess message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationSuccess.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ConversationSuccess message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IConversationSuccess} message ConversationSuccess message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConversationSuccess.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConversationSuccess message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @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.ConversationSuccess} ConversationSuccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationSuccess.decode = function decode(reader, length) { + 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.ConversationSuccess(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConversationSuccess message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConversationSuccess.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConversationSuccess message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConversationSuccess.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates a ConversationSuccess message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} ConversationSuccess + */ + ConversationSuccess.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess) + return object; + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a ConversationSuccess message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess} message ConversationSuccess + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConversationSuccess.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this ConversationSuccess to JSON. + * @function toJSON + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @instance + * @returns {Object.} JSON object + */ + ConversationSuccess.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConversationSuccess + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConversationSuccess.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess"; + }; + + return ConversationSuccess; + })(); + + ResponseMessage.OutputAudioText = (function() { + + /** + * Properties of an OutputAudioText. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @interface IOutputAudioText + * @property {string|null} [text] OutputAudioText text + * @property {string|null} [ssml] OutputAudioText ssml + * @property {boolean|null} [allowPlaybackInterruption] OutputAudioText allowPlaybackInterruption + */ + + /** + * Constructs a new OutputAudioText. + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage + * @classdesc Represents an OutputAudioText. + * @implements IOutputAudioText + * @constructor + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set + */ + function OutputAudioText(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]]; + } + + /** + * OutputAudioText text. + * @member {string|null|undefined} text + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.text = null; + + /** + * OutputAudioText ssml. + * @member {string|null|undefined} ssml + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.ssml = null; + + /** + * OutputAudioText allowPlaybackInterruption. + * @member {boolean} allowPlaybackInterruption + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + OutputAudioText.prototype.allowPlaybackInterruption = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * OutputAudioText source. + * @member {"text"|"ssml"|undefined} source + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @instance + */ + Object.defineProperty(OutputAudioText.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["text", "ssml"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new OutputAudioText instance using the specified properties. + * @function create + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText instance + */ + OutputAudioText.create = function create(properties) { + return new OutputAudioText(properties); + }; + + /** + * Encodes the specified OutputAudioText message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * @function encode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioText.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.ssml != null && Object.hasOwnProperty.call(message, "ssml")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.ssml); + if (message.allowPlaybackInterruption != null && Object.hasOwnProperty.call(message, "allowPlaybackInterruption")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowPlaybackInterruption); + return writer; + }; + + /** + * Encodes the specified OutputAudioText message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.IOutputAudioText} message OutputAudioText message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputAudioText.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputAudioText message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @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.OutputAudioText} OutputAudioText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioText.decode = function decode(reader, length) { + 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.OutputAudioText(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.text = reader.string(); + break; + } + case 2: { + message.ssml = reader.string(); + break; + } + case 3: { + message.allowPlaybackInterruption = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputAudioText message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText} OutputAudioText + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputAudioText.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputAudioText message. + * @function verify + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputAudioText.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.text != null && message.hasOwnProperty("text")) { + properties.source = 1; + if (!$util.isString(message.text)) + return "text: string expected"; + } + 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); + }; + + /** + * Gets the default type url for OutputAudioText + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputAudioText.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText"; + }; + + 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); + }; + + /** + * Gets the default type url for EndInteraction + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EndInteraction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.EndInteraction"; + }; + + 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"; + if (message.allowPlaybackInterruption != null && message.hasOwnProperty("allowPlaybackInterruption")) + if (typeof message.allowPlaybackInterruption !== "boolean") + return "allowPlaybackInterruption: boolean expected"; + return null; + }; + + /** + * 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.PlayAudio + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio} PlayAudio */ PlayAudio.fromObject = function fromObject(object) { if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio) @@ -87359,1937 +90041,174 @@ * @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(); - }; - - /** - * 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; - }; - - /** - * 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()); - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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); - }; - - /** - * Gets the default type url for TelephonyTransferCall - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TelephonyTransferCall.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall"; - }; - - 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) { - default: - if (typeof object.resourceType === "number") { - message.resourceType = object.resourceType; - break; - } - break; - 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]); - } - } - switch (object.severity) { - default: - if (typeof object.severity === "number") { - message.severity = object.severity; - break; - } - break; - 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] === undefined ? message.resourceType : $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] === undefined ? message.severity : $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; - }; - - /** - * 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); - }; - - /** - * Gets the default type url for ValidationMessage - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ValidationMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidationMessage"; - }; - - /** - * 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.ResourceName = (function() { - - /** - * Properties of a ResourceName. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @interface IResourceName - * @property {string|null} [name] ResourceName name - * @property {string|null} [displayName] ResourceName displayName - */ - - /** - * 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]]; - } - - /** - * ResourceName name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @instance - */ - ResourceName.prototype.name = ""; - - /** - * ResourceName displayName. - * @member {string} displayName - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @instance - */ - ResourceName.prototype.displayName = ""; - - /** - * 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); - }; - - /** - * 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; - }; - - /** - * 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(); - }; - - /** - * 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; - } - } - 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()); - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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; - }; - - /** - * 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); - }; - - /** - * Gets the default type url for ResourceName - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ResourceName.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResourceName"; - }; - - return ResourceName; - })(); - - /** - * 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 SpeechWordInfo. - * @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 - */ - - /** - * Constructs a new SpeechWordInfo. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SpeechWordInfo. - * @implements ISpeechWordInfo - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.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.v3beta1.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.word = ""; - - /** - * SpeechWordInfo startOffset. - * @member {google.protobuf.IDuration|null|undefined} startOffset - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @instance - */ - SpeechWordInfo.prototype.startOffset = null; - - /** - * 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.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISpeechWordInfo=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo instance - */ - SpeechWordInfo.create = function create(properties) { - return new SpeechWordInfo(properties); - }; - - /** - * 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.SpeechWordInfo - * @static - * @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 - */ - SpeechWordInfo.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); - return writer; - }; - - /** - * 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.SpeechWordInfo - * @static - * @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 - */ - SpeechWordInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SpeechWordInfo message from the specified reader or buffer. - * @function decode - * @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.SpeechWordInfo} SpeechWordInfo - * @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) { - 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(); - 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()); - 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); - break; - } - } - return message; - }; - - /** - * Decodes a SpeechWordInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.SpeechWordInfo} SpeechWordInfo - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SpeechWordInfo message. - * @function verify - * @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 - */ - SpeechWordInfo.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 (error) - return "endOffset." + 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. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} SpeechWordInfo - */ - 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.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.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 SpeechWordInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo} message SpeechWordInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SpeechWordInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - 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 SpeechWordInfo to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @instance - * @returns {Object.} JSON object - */ - SpeechWordInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for SpeechWordInfo - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SpeechWordInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo"; - }; - - return SpeechWordInfo; - })(); - - v3beta1.InputAudioConfig = (function() { - - /** - * Properties of an InputAudioConfig. - * @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 - */ - - /** - * 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 - */ - 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]]; - } - - /** - * InputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.AudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.audioEncoding = 0; - - /** - * InputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - */ - InputAudioConfig.prototype.sampleRateHertz = 0; - - /** - * 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.InputAudioConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IInputAudioConfig=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.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.v3beta1.InputAudioConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @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 - */ - 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 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.InputAudioConfig - * @static - * @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 - */ - InputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputAudioConfig message from the specified reader or buffer. - * @function decode - * @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.InputAudioConfig} InputAudioConfig - * @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) { - 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(); - 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 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); - break; - } - } - return message; - }; - - /** - * Decodes an InputAudioConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.InputAudioConfig} InputAudioConfig - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputAudioConfig message. - * @function verify - * @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 - */ - InputAudioConfig.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"; - return null; - }; - - /** - * Creates an InputAudioConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} InputAudioConfig - */ - 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.InputAudioConfig(); - switch (object.audioEncoding) { - default: - if (typeof object.audioEncoding === "number") { - message.audioEncoding = object.audioEncoding; - break; - } - break; - 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) { - default: - if (typeof object.modelVariant === "number") { - message.modelVariant = object.modelVariant; - break; - } - break; - 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 InputAudioConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.InputAudioConfig} message InputAudioConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputAudioConfig.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] === undefined ? message.audioEncoding : $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] === undefined ? message.modelVariant : $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 InputAudioConfig to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @instance - * @returns {Object.} JSON object - */ - InputAudioConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InputAudioConfig - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.InputAudioConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.InputAudioConfig"; - }; - - 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; - })(); - - v3beta1.VoiceSelectionParams = (function() { - - /** - * Properties of a VoiceSelectionParams. - * @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 - */ - - /** - * Constructs a new VoiceSelectionParams. - * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a VoiceSelectionParams. - * @implements IVoiceSelectionParams - * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set - */ - function VoiceSelectionParams(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]]; - } - - /** - * VoiceSelectionParams name. - * @member {string} name - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams - * @instance - */ - VoiceSelectionParams.prototype.name = ""; - - /** - * 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.VoiceSelectionParams - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams=} [properties] Properties to set - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams instance - */ - VoiceSelectionParams.create = function create(properties) { - return new VoiceSelectionParams(properties); - }; - - /** - * 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.VoiceSelectionParams - * @static - * @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 - */ - 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 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.VoiceSelectionParams - * @static - * @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 - */ - VoiceSelectionParams.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + * @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(); + }; - /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer. - * @function decode - * @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.VoiceSelectionParams} VoiceSelectionParams - * @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) { - 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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.ssmlGender = reader.int32(); + /** + * 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; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a VoiceSelectionParams message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @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.VoiceSelectionParams} VoiceSelectionParams - * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * 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()); + }; - /** - * Verifies a VoiceSelectionParams message. - * @function verify - * @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 - */ - 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; + /** + * 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; - }; + return null; + }; - /** - * Creates a VoiceSelectionParams message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} VoiceSelectionParams - */ - 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.VoiceSelectionParams(); - if (object.name != null) - message.name = String(object.name); - switch (object.ssmlGender) { - default: - if (typeof object.ssmlGender === "number") { - message.ssmlGender = object.ssmlGender; - break; + /** + * 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; + }; + + /** + * 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"; } - break; - 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; - }; + return object; + }; - /** - * Creates a plain object from a VoiceSelectionParams message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams - * @static - * @param {google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams} message VoiceSelectionParams - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - VoiceSelectionParams.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 (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] === undefined ? message.ssmlGender : $root.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender[message.ssmlGender] : message.ssmlGender; - 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); + }; - /** - * Converts this VoiceSelectionParams to JSON. - * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams - * @instance - * @returns {Object.} JSON object - */ - VoiceSelectionParams.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for TelephonyTransferCall + * @function getTypeUrl + * @memberof google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TelephonyTransferCall.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall"; + }; - /** - * Gets the default type url for VoiceSelectionParams - * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - VoiceSelectionParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams"; - }; + return TelephonyTransferCall; + })(); - return VoiceSelectionParams; + return ResponseMessage; })(); - v3beta1.SynthesizeSpeechConfig = (function() { + v3beta1.ValidationMessage = (function() { /** - * Properties of a SynthesizeSpeechConfig. + * Properties of a ValidationMessage. * @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 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 SynthesizeSpeechConfig. + * Constructs a new ValidationMessage. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents a SynthesizeSpeechConfig. - * @implements ISynthesizeSpeechConfig + * @classdesc Represents a ValidationMessage. + * @implements IValidationMessage * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IValidationMessage=} [properties] Properties to set */ - function SynthesizeSpeechConfig(properties) { - this.effectsProfileId = []; + 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) @@ -89297,134 +90216,137 @@ } /** - * SynthesizeSpeechConfig speakingRate. - * @member {number} speakingRate - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * ValidationMessage resourceType. + * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType} resourceType + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - SynthesizeSpeechConfig.prototype.speakingRate = 0; + ValidationMessage.prototype.resourceType = 0; /** - * SynthesizeSpeechConfig pitch. - * @member {number} pitch - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * ValidationMessage resources. + * @member {Array.} resources + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - SynthesizeSpeechConfig.prototype.pitch = 0; + ValidationMessage.prototype.resources = $util.emptyArray; /** - * SynthesizeSpeechConfig volumeGainDb. - * @member {number} volumeGainDb - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * ValidationMessage resourceNames. + * @member {Array.} resourceNames + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - SynthesizeSpeechConfig.prototype.volumeGainDb = 0; + ValidationMessage.prototype.resourceNames = $util.emptyArray; /** - * SynthesizeSpeechConfig effectsProfileId. - * @member {Array.} effectsProfileId - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * ValidationMessage severity. + * @member {google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity} severity + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - SynthesizeSpeechConfig.prototype.effectsProfileId = $util.emptyArray; + ValidationMessage.prototype.severity = 0; /** - * SynthesizeSpeechConfig voice. - * @member {google.cloud.dialogflow.cx.v3beta1.IVoiceSelectionParams|null|undefined} voice - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * ValidationMessage detail. + * @member {string} detail + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance */ - SynthesizeSpeechConfig.prototype.voice = null; + ValidationMessage.prototype.detail = ""; /** - * Creates a new SynthesizeSpeechConfig instance using the specified properties. + * Creates a new ValidationMessage instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @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.IValidationMessage=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage instance */ - SynthesizeSpeechConfig.create = function create(properties) { - return new SynthesizeSpeechConfig(properties); + ValidationMessage.create = function create(properties) { + return new ValidationMessage(properties); }; /** - * Encodes the specified SynthesizeSpeechConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig 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 */ - SynthesizeSpeechConfig.encode = function encode(message, writer) { + ValidationMessage.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.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 SynthesizeSpeechConfig message, length delimited. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig} message SynthesizeSpeechConfig 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 */ - SynthesizeSpeechConfig.encodeDelimited = function encodeDelimited(message, writer) { + ValidationMessage.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @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 */ - SynthesizeSpeechConfig.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.SynthesizeSpeechConfig(); + 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.speakingRate = reader.double(); + message.resourceType = reader.int32(); break; } case 2: { - message.pitch = reader.double(); + if (!(message.resources && message.resources.length)) + message.resources = []; + message.resources.push(reader.string()); break; } - case 3: { - message.volumeGainDb = reader.double(); + 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 5: { - if (!(message.effectsProfileId && message.effectsProfileId.length)) - message.effectsProfileId = []; - message.effectsProfileId.push(reader.string()); + case 3: { + message.severity = reader.int32(); break; } case 4: { - message.voice = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.decode(reader, reader.uint32()); + message.detail = reader.string(); break; } default: @@ -89436,197 +90358,351 @@ }; /** - * Decodes a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @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.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @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 */ - SynthesizeSpeechConfig.decodeDelimited = function decodeDelimited(reader) { + ValidationMessage.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SynthesizeSpeechConfig message. + * Verifies a ValidationMessage message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @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 */ - SynthesizeSpeechConfig.verify = function verify(message) { + ValidationMessage.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.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.voice != null && message.hasOwnProperty("voice")) { - var error = $root.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.verify(message.voice); - if (error) - return "voice." + 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 a SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} SynthesizeSpeechConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} ValidationMessage */ - SynthesizeSpeechConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig) + 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.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]); + var message = new $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(); + switch (object.resourceType) { + default: + if (typeof object.resourceType === "number") { + message.resourceType = object.resourceType; + break; + } + break; + 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.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); + 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]); + } + } + switch (object.severity) { + default: + if (typeof object.severity === "number") { + message.severity = object.severity; + break; + } + break; + 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 SynthesizeSpeechConfig 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.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static - * @param {google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig} message SynthesizeSpeechConfig + * @param {google.cloud.dialogflow.cx.v3beta1.ValidationMessage} message ValidationMessage * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SynthesizeSpeechConfig.toObject = function toObject(message, options) { + ValidationMessage.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.effectsProfileId = []; + if (options.arrays || options.defaults) { + object.resources = []; + object.resourceNames = []; + } if (options.defaults) { - object.speakingRate = 0; - object.pitch = 0; - object.volumeGainDb = 0; - object.voice = null; + object.resourceType = options.enums === String ? "RESOURCE_TYPE_UNSPECIFIED" : 0; + object.severity = options.enums === String ? "SEVERITY_UNSPECIFIED" : 0; + object.detail = ""; } - 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.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType[message.resourceType] === undefined ? message.resourceType : $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] === undefined ? message.severity : $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; }; /** - * Converts this SynthesizeSpeechConfig to JSON. + * Converts this ValidationMessage to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @instance * @returns {Object.} JSON object */ - SynthesizeSpeechConfig.prototype.toJSON = function toJSON() { + ValidationMessage.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SynthesizeSpeechConfig + * Gets the default type url for ValidationMessage * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ValidationMessage * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SynthesizeSpeechConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ValidationMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ValidationMessage"; }; - return SynthesizeSpeechConfig; - })(); + /** + * 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; + })(); - /** - * 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; + /** + * 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.OutputAudioConfig = (function() { + v3beta1.ResourceName = (function() { /** - * Properties of an OutputAudioConfig. + * Properties of a ResourceName. * @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 IResourceName + * @property {string|null} [name] ResourceName name + * @property {string|null} [displayName] ResourceName displayName */ /** - * Constructs a new OutputAudioConfig. + * Constructs a new ResourceName. * @memberof google.cloud.dialogflow.cx.v3beta1 - * @classdesc Represents an OutputAudioConfig. - * @implements IOutputAudioConfig + * @classdesc Represents a ResourceName. + * @implements IResourceName * @constructor - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig=} [properties] Properties to set + * @param {google.cloud.dialogflow.cx.v3beta1.IResourceName=} [properties] Properties to set */ - function OutputAudioConfig(properties) { + function ResourceName(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89634,103 +90710,89 @@ } /** - * OutputAudioConfig audioEncoding. - * @member {google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding} audioEncoding - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig - * @instance - */ - OutputAudioConfig.prototype.audioEncoding = 0; - - /** - * OutputAudioConfig sampleRateHertz. - * @member {number} sampleRateHertz - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * ResourceName name. + * @member {string} name + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @instance */ - OutputAudioConfig.prototype.sampleRateHertz = 0; + ResourceName.prototype.name = ""; /** - * OutputAudioConfig synthesizeSpeechConfig. - * @member {google.cloud.dialogflow.cx.v3beta1.ISynthesizeSpeechConfig|null|undefined} synthesizeSpeechConfig - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * ResourceName displayName. + * @member {string} displayName + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @instance */ - OutputAudioConfig.prototype.synthesizeSpeechConfig = null; + ResourceName.prototype.displayName = ""; /** - * Creates a new OutputAudioConfig instance using the specified properties. + * Creates a new ResourceName instance using the specified properties. * @function create - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @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.IResourceName=} [properties] Properties to set + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName instance */ - OutputAudioConfig.create = function create(properties) { - return new OutputAudioConfig(properties); + ResourceName.create = function create(properties) { + return new ResourceName(properties); }; /** - * Encodes the specified OutputAudioConfig message. Does not implicitly {@link google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig 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 */ - OutputAudioConfig.encode = function encode(message, writer) { + ResourceName.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.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); 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 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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.IOutputAudioConfig} message OutputAudioConfig 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 */ - OutputAudioConfig.encodeDelimited = function encodeDelimited(message, writer) { + ResourceName.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OutputAudioConfig 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.OutputAudioConfig + * @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.OutputAudioConfig} OutputAudioConfig + * @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 */ - OutputAudioConfig.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.OutputAudioConfig(); + 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.audioEncoding = reader.int32(); + message.name = reader.string(); break; } case 2: { - message.sampleRateHertz = reader.int32(); - break; - } - case 3: { - message.synthesizeSpeechConfig = $root.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; } default: @@ -89742,163 +90804,111 @@ }; /** - * Decodes an OutputAudioConfig 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.OutputAudioConfig + * @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.OutputAudioConfig} OutputAudioConfig + * @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 */ - OutputAudioConfig.decodeDelimited = function decodeDelimited(reader) { + ResourceName.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OutputAudioConfig message. + * Verifies a ResourceName message. * @function verify - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @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 */ - OutputAudioConfig.verify = function verify(message) { + ResourceName.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 (error) - return "synthesizeSpeechConfig." + error; - } + 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 an OutputAudioConfig 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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static * @param {Object.} object Plain object - * @returns {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} OutputAudioConfig + * @returns {google.cloud.dialogflow.cx.v3beta1.ResourceName} ResourceName */ - OutputAudioConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig) + 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.OutputAudioConfig(); - switch (object.audioEncoding) { - default: - if (typeof object.audioEncoding === "number") { - message.audioEncoding = object.audioEncoding; - break; - } - break; - 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.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 an OutputAudioConfig 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.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static - * @param {google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig} message OutputAudioConfig + * @param {google.cloud.dialogflow.cx.v3beta1.ResourceName} message ResourceName * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OutputAudioConfig.toObject = function toObject(message, options) { + ResourceName.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.displayName = ""; } - if (message.audioEncoding != null && message.hasOwnProperty("audioEncoding")) - object.audioEncoding = options.enums === String ? $root.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding[message.audioEncoding] === undefined ? message.audioEncoding : $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.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; return object; }; /** - * Converts this OutputAudioConfig to JSON. + * Converts this ResourceName to JSON. * @function toJSON - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @instance * @returns {Object.} JSON object */ - OutputAudioConfig.prototype.toJSON = function toJSON() { + ResourceName.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for OutputAudioConfig + * Gets the default type url for ResourceName * @function getTypeUrl - * @memberof google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig + * @memberof google.cloud.dialogflow.cx.v3beta1.ResourceName * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - OutputAudioConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResourceName.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig"; + return typeUrlPrefix + "/google.cloud.dialogflow.cx.v3beta1.ResourceName"; }; - return OutputAudioConfig; + return ResourceName; })(); v3beta1.Changelogs = (function() { @@ -152827,6 +153837,247 @@ 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); + }; + + /** + * Gets the default type url for Duration + * @function getTypeUrl + * @memberof google.protobuf.Duration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Duration"; + }; + + return Duration; + })(); + protobuf.Struct = (function() { /** @@ -154330,247 +155581,6 @@ 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); - }; - - /** - * Gets the default type url for Duration - * @function getTypeUrl - * @memberof google.protobuf.Duration - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.protobuf.Duration"; - }; - - 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 efba7ef5fc8..5d1544ce2a2 100644 --- a/packages/google-cloud-dialogflow-cx/protos/protos.json +++ b/packages/google-cloud-dialogflow-cx/protos/protos.json @@ -24,6 +24,10 @@ "nested": { "AdvancedSettings": { "fields": { + "audioExportGcsDestination": { + "type": "GcsDestination", + "id": 2 + }, "loggingSettings": { "type": "LoggingSettings", "id": 6 @@ -44,6 +48,17 @@ } } }, + "GcsDestination": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "Agents": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -317,6 +332,10 @@ "advancedSettings": { "type": "AdvancedSettings", "id": 22 + }, + "textToSpeechSettings": { + "type": "TextToSpeechSettings", + "id": 31 } } }, @@ -564,6 +583,165 @@ } } }, + "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 + }, + "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.field_behavior)": "REQUIRED" + } + }, + "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.field_behavior)": "REQUIRED" + } + }, + "sampleRateHertz": { + "type": "int32", + "id": 2 + }, + "synthesizeSpeechConfig": { + "type": "SynthesizeSpeechConfig", + "id": 3 + } + } + }, + "TextToSpeechSettings": { + "fields": { + "synthesizeSpeechConfigs": { + "keyType": "string", + "type": "SynthesizeSpeechConfig", + "id": 1 + } + } + }, "Flows": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -1914,156 +2092,6 @@ } } }, - "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 - }, - "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.field_behavior)": "REQUIRED" - } - }, - "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.field_behavior)": "REQUIRED" - } - }, - "sampleRateHertz": { - "type": "int32", - "id": 2 - }, - "synthesizeSpeechConfig": { - "type": "SynthesizeSpeechConfig", - "id": 3 - } - } - }, "Changelogs": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -2879,10 +2907,7 @@ "versionConfigs": { "rule": "repeated", "type": "VersionConfig", - "id": 6, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 6 }, "updateTime": { "type": "google.protobuf.Timestamp", @@ -7577,6 +7602,10 @@ "nested": { "AdvancedSettings": { "fields": { + "audioExportGcsDestination": { + "type": "GcsDestination", + "id": 2 + }, "loggingSettings": { "type": "LoggingSettings", "id": 6 @@ -7597,6 +7626,17 @@ } } }, + "GcsDestination": { + "fields": { + "uri": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "Agents": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -7870,6 +7910,10 @@ "advancedSettings": { "type": "AdvancedSettings", "id": 22 + }, + "textToSpeechSettings": { + "type": "TextToSpeechSettings", + "id": 31 } } }, @@ -8068,52 +8112,211 @@ } } }, - "ValidateAgentRequest": { + "ValidateAgentRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" + } + }, + "languageCode": { + "type": "string", + "id": 2 + } + } + }, + "GetAgentValidationResultRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "dialogflow.googleapis.com/AgentValidationResult" + } + }, + "languageCode": { + "type": "string", + "id": 2 + } + } + }, + "AgentValidationResult": { + "options": { + "(google.api.resource).type": "dialogflow.googleapis.com/AgentValidationResult", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/validationResult" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "flowValidationResults": { + "rule": "repeated", + "type": "FlowValidationResult", + "id": 2 + } + } + }, + "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 + }, + "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.field_behavior)": "REQUIRED" + } + }, + "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, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/Agent" - } + "id": 1 }, - "languageCode": { - "type": "string", + "ssmlGender": { + "type": "SsmlVoiceGender", "id": 2 } } }, - "GetAgentValidationResultRequest": { + "SynthesizeSpeechConfig": { "fields": { - "name": { + "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.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "dialogflow.googleapis.com/AgentValidationResult" + "(google.api.field_behavior)": "REQUIRED" } }, - "languageCode": { - "type": "string", + "sampleRateHertz": { + "type": "int32", "id": 2 + }, + "synthesizeSpeechConfig": { + "type": "SynthesizeSpeechConfig", + "id": 3 } } }, - "AgentValidationResult": { - "options": { - "(google.api.resource).type": "dialogflow.googleapis.com/AgentValidationResult", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/agents/{agent}/validationResult" - }, + "TextToSpeechSettings": { "fields": { - "name": { - "type": "string", + "synthesizeSpeechConfigs": { + "keyType": "string", + "type": "SynthesizeSpeechConfig", "id": 1 - }, - "flowValidationResults": { - "rule": "repeated", - "type": "FlowValidationResult", - "id": 2 } } }, @@ -9467,156 +9670,6 @@ } } }, - "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 - }, - "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.field_behavior)": "REQUIRED" - } - }, - "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.field_behavior)": "REQUIRED" - } - }, - "sampleRateHertz": { - "type": "int32", - "id": 2 - }, - "synthesizeSpeechConfig": { - "type": "SynthesizeSpeechConfig", - "id": 3 - } - } - }, "Changelogs": { "options": { "(google.api.default_host)": "dialogflow.googleapis.com", @@ -10432,10 +10485,7 @@ "versionConfigs": { "rule": "repeated", "type": "VersionConfig", - "id": 6, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "id": 6 }, "updateTime": { "type": "google.protobuf.Timestamp", @@ -16261,6 +16311,18 @@ } } }, + "Duration": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, "Struct": { "fields": { "fields": { @@ -16348,18 +16410,6 @@ } } }, - "Duration": { - "fields": { - "seconds": { - "type": "int64", - "id": 1 - }, - "nanos": { - "type": "int32", - "id": 2 - } - } - }, "Timestamp": { "fields": { "seconds": { diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata.google.cloud.dialogflow.cx.v3.json b/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata.google.cloud.dialogflow.cx.v3.json index 0ec49796db6..2ffdb69fa46 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata.google.cloud.dialogflow.cx.v3.json +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/snippet_metadata.google.cloud.dialogflow.cx.v3.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-cx", - "version": "3.2.0", + "version": "3.2.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json index b76b7bda1a3..958f848c7c3 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/snippet_metadata.google.cloud.dialogflow.cx.v3beta1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-cx", - "version": "3.2.0", + "version": "3.2.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/agents_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/changelogs_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/deployments_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/entity_types_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/environments_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/experiments_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/flows_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/intents_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/pages_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/sessions_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/test_cases_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/versions_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json index a5646b3747f..2302ab0993c 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3/webhooks_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3/page.proto", "../../protos/google/cloud/dialogflow/cx/v3/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto", diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json b/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json index 941c0603443..04157986b2a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_proto_list.json @@ -9,6 +9,7 @@ "../../protos/google/cloud/dialogflow/cx/v3beta1/experiment.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/flow.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto", + "../../protos/google/cloud/dialogflow/cx/v3beta1/gcs.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/intent.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/page.proto", "../../protos/google/cloud/dialogflow/cx/v3beta1/response_message.proto",