From ed2467393107183339d68016993c79e18d471c5c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:18:12 +0000 Subject: [PATCH] fix: better support for fallback mode (#305) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: https://github.com/googleapis/googleapis/commit/873ab456273d105245df0fb82a6c17a814553b80 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 --- .../generated/v3/agents.create_agent.js | 3 + .../generated/v3/agents.delete_agent.js | 3 + .../generated/v3/agents.export_agent.js | 3 + .../samples/generated/v3/agents.get_agent.js | 3 + .../v3/agents.get_agent_validation_result.js | 3 + .../generated/v3/agents.list_agents.js | 3 + .../generated/v3/agents.restore_agent.js | 3 + .../generated/v3/agents.update_agent.js | 3 + .../generated/v3/agents.validate_agent.js | 3 + .../generated/v3/changelogs.get_changelog.js | 3 + .../v3/changelogs.list_changelogs.js | 3 + .../v3/deployments.get_deployment.js | 3 + .../v3/deployments.list_deployments.js | 3 + .../v3/entity_types.create_entity_type.js | 3 + .../v3/entity_types.delete_entity_type.js | 3 + .../v3/entity_types.get_entity_type.js | 3 + .../v3/entity_types.list_entity_types.js | 3 + .../v3/entity_types.update_entity_type.js | 3 + .../v3/environments.create_environment.js | 3 + .../v3/environments.delete_environment.js | 3 + .../generated/v3/environments.deploy_flow.js | 3 + .../v3/environments.get_environment.js | 3 + ...vironments.list_continuous_test_results.js | 3 + .../v3/environments.list_environments.js | 3 + ...environments.lookup_environment_history.js | 3 + .../v3/environments.run_continuous_test.js | 3 + .../v3/environments.update_environment.js | 3 + .../v3/experiments.create_experiment.js | 3 + .../v3/experiments.delete_experiment.js | 3 + .../v3/experiments.get_experiment.js | 3 + .../v3/experiments.list_experiments.js | 3 + .../v3/experiments.start_experiment.js | 3 + .../v3/experiments.stop_experiment.js | 3 + .../v3/experiments.update_experiment.js | 3 + .../samples/generated/v3/flows.create_flow.js | 3 + .../samples/generated/v3/flows.delete_flow.js | 3 + .../samples/generated/v3/flows.export_flow.js | 3 + .../samples/generated/v3/flows.get_flow.js | 3 + .../v3/flows.get_flow_validation_result.js | 3 + .../samples/generated/v3/flows.import_flow.js | 3 + .../samples/generated/v3/flows.list_flows.js | 3 + .../samples/generated/v3/flows.train_flow.js | 3 + .../samples/generated/v3/flows.update_flow.js | 3 + .../generated/v3/flows.validate_flow.js | 3 + .../generated/v3/intents.create_intent.js | 3 + .../generated/v3/intents.delete_intent.js | 3 + .../generated/v3/intents.get_intent.js | 3 + .../generated/v3/intents.list_intents.js | 3 + .../generated/v3/intents.update_intent.js | 3 + .../samples/generated/v3/pages.create_page.js | 3 + .../samples/generated/v3/pages.delete_page.js | 3 + .../samples/generated/v3/pages.get_page.js | 3 + .../samples/generated/v3/pages.list_pages.js | 3 + .../samples/generated/v3/pages.update_page.js | 3 + ...ttings_service.create_security_settings.js | 3 + ...ttings_service.delete_security_settings.js | 3 + ..._settings_service.get_security_settings.js | 3 + ...settings_service.list_security_settings.js | 3 + ...ttings_service.update_security_settings.js | 3 + ...entity_types.create_session_entity_type.js | 3 + ...entity_types.delete_session_entity_type.js | 3 + ...on_entity_types.get_session_entity_type.js | 3 + ..._entity_types.list_session_entity_types.js | 3 + ...entity_types.update_session_entity_type.js | 3 + .../generated/v3/sessions.detect_intent.js | 3 + .../generated/v3/sessions.fulfill_intent.js | 3 + .../generated/v3/sessions.match_intent.js | 3 + .../v3/sessions.streaming_detect_intent.js | 3 + ...etadata.google.cloud.dialogflow.cx.v3.json | 194 ++++++++--------- .../v3/test_cases.batch_delete_test_cases.js | 3 + .../v3/test_cases.batch_run_test_cases.js | 3 + .../v3/test_cases.calculate_coverage.js | 3 + .../v3/test_cases.create_test_case.js | 3 + .../v3/test_cases.export_test_cases.js | 3 + .../generated/v3/test_cases.get_test_case.js | 3 + .../v3/test_cases.get_test_case_result.js | 3 + .../v3/test_cases.import_test_cases.js | 3 + .../v3/test_cases.list_test_case_results.js | 3 + .../v3/test_cases.list_test_cases.js | 3 + .../generated/v3/test_cases.run_test_case.js | 3 + .../v3/test_cases.update_test_case.js | 3 + ...te_groups.create_transition_route_group.js | 3 + ...te_groups.delete_transition_route_group.js | 3 + ...route_groups.get_transition_route_group.js | 3 + ...ute_groups.list_transition_route_groups.js | 3 + ...te_groups.update_transition_route_group.js | 3 + .../generated/v3/versions.compare_versions.js | 3 + .../generated/v3/versions.create_version.js | 3 + .../generated/v3/versions.delete_version.js | 3 + .../generated/v3/versions.get_version.js | 3 + .../generated/v3/versions.list_versions.js | 3 + .../generated/v3/versions.load_version.js | 3 + .../generated/v3/versions.update_version.js | 3 + .../generated/v3/webhooks.create_webhook.js | 3 + .../generated/v3/webhooks.delete_webhook.js | 3 + .../generated/v3/webhooks.get_webhook.js | 3 + .../generated/v3/webhooks.list_webhooks.js | 3 + .../generated/v3/webhooks.update_webhook.js | 3 + .../generated/v3beta1/agents.create_agent.js | 3 + .../generated/v3beta1/agents.delete_agent.js | 3 + .../generated/v3beta1/agents.export_agent.js | 3 + .../generated/v3beta1/agents.get_agent.js | 3 + .../agents.get_agent_validation_result.js | 3 + .../generated/v3beta1/agents.list_agents.js | 3 + .../generated/v3beta1/agents.restore_agent.js | 3 + .../generated/v3beta1/agents.update_agent.js | 3 + .../v3beta1/agents.validate_agent.js | 3 + .../v3beta1/changelogs.get_changelog.js | 3 + .../v3beta1/changelogs.list_changelogs.js | 3 + .../v3beta1/deployments.get_deployment.js | 3 + .../v3beta1/deployments.list_deployments.js | 3 + .../entity_types.create_entity_type.js | 3 + .../entity_types.delete_entity_type.js | 3 + .../v3beta1/entity_types.get_entity_type.js | 3 + .../v3beta1/entity_types.list_entity_types.js | 3 + .../entity_types.update_entity_type.js | 3 + .../environments.create_environment.js | 3 + .../environments.delete_environment.js | 3 + .../v3beta1/environments.deploy_flow.js | 3 + .../v3beta1/environments.get_environment.js | 3 + ...vironments.list_continuous_test_results.js | 3 + .../v3beta1/environments.list_environments.js | 3 + ...environments.lookup_environment_history.js | 3 + .../environments.run_continuous_test.js | 3 + .../environments.update_environment.js | 3 + .../v3beta1/experiments.create_experiment.js | 3 + .../v3beta1/experiments.delete_experiment.js | 3 + .../v3beta1/experiments.get_experiment.js | 3 + .../v3beta1/experiments.list_experiments.js | 3 + .../v3beta1/experiments.start_experiment.js | 3 + .../v3beta1/experiments.stop_experiment.js | 3 + .../v3beta1/experiments.update_experiment.js | 3 + .../generated/v3beta1/flows.create_flow.js | 3 + .../generated/v3beta1/flows.delete_flow.js | 3 + .../generated/v3beta1/flows.export_flow.js | 3 + .../generated/v3beta1/flows.get_flow.js | 3 + .../flows.get_flow_validation_result.js | 3 + .../generated/v3beta1/flows.import_flow.js | 3 + .../generated/v3beta1/flows.list_flows.js | 3 + .../generated/v3beta1/flows.train_flow.js | 3 + .../generated/v3beta1/flows.update_flow.js | 3 + .../generated/v3beta1/flows.validate_flow.js | 3 + .../v3beta1/intents.create_intent.js | 3 + .../v3beta1/intents.delete_intent.js | 3 + .../generated/v3beta1/intents.get_intent.js | 3 + .../generated/v3beta1/intents.list_intents.js | 3 + .../v3beta1/intents.update_intent.js | 3 + .../generated/v3beta1/pages.create_page.js | 3 + .../generated/v3beta1/pages.delete_page.js | 3 + .../generated/v3beta1/pages.get_page.js | 3 + .../generated/v3beta1/pages.list_pages.js | 3 + .../generated/v3beta1/pages.update_page.js | 3 + ...ttings_service.create_security_settings.js | 3 + ...ttings_service.delete_security_settings.js | 3 + ..._settings_service.get_security_settings.js | 3 + ...settings_service.list_security_settings.js | 3 + ...ttings_service.update_security_settings.js | 3 + ...entity_types.create_session_entity_type.js | 3 + ...entity_types.delete_session_entity_type.js | 3 + ...on_entity_types.get_session_entity_type.js | 3 + ..._entity_types.list_session_entity_types.js | 3 + ...entity_types.update_session_entity_type.js | 3 + .../v3beta1/sessions.detect_intent.js | 3 + .../v3beta1/sessions.fulfill_intent.js | 3 + .../v3beta1/sessions.match_intent.js | 3 + .../sessions.streaming_detect_intent.js | 3 + ...ta.google.cloud.dialogflow.cx.v3beta1.json | 194 ++++++++--------- .../test_cases.batch_delete_test_cases.js | 3 + .../test_cases.batch_run_test_cases.js | 3 + .../v3beta1/test_cases.calculate_coverage.js | 3 + .../v3beta1/test_cases.create_test_case.js | 3 + .../v3beta1/test_cases.export_test_cases.js | 3 + .../v3beta1/test_cases.get_test_case.js | 3 + .../test_cases.get_test_case_result.js | 3 + .../v3beta1/test_cases.import_test_cases.js | 3 + .../test_cases.list_test_case_results.js | 3 + .../v3beta1/test_cases.list_test_cases.js | 3 + .../v3beta1/test_cases.run_test_case.js | 3 + .../v3beta1/test_cases.update_test_case.js | 3 + ...te_groups.create_transition_route_group.js | 3 + ...te_groups.delete_transition_route_group.js | 3 + ...route_groups.get_transition_route_group.js | 3 + ...ute_groups.list_transition_route_groups.js | 3 + ...te_groups.update_transition_route_group.js | 3 + .../v3beta1/versions.compare_versions.js | 3 + .../v3beta1/versions.create_version.js | 3 + .../v3beta1/versions.delete_version.js | 3 + .../generated/v3beta1/versions.get_version.js | 3 + .../v3beta1/versions.list_versions.js | 3 + .../v3beta1/versions.load_version.js | 3 + .../v3beta1/versions.update_version.js | 3 + .../v3beta1/webhooks.create_webhook.js | 3 + .../v3beta1/webhooks.delete_webhook.js | 3 + .../generated/v3beta1/webhooks.get_webhook.js | 3 + .../v3beta1/webhooks.list_webhooks.js | 3 + .../v3beta1/webhooks.update_webhook.js | 3 + .../src/v3/agents_client.ts | 12 +- .../src/v3/changelogs_client.ts | 10 +- .../src/v3/deployments_client.ts | 10 +- .../src/v3/entity_types_client.ts | 10 +- .../src/v3/environments_client.ts | 24 +-- .../src/v3/experiments_client.ts | 10 +- .../src/v3/flows_client.ts | 14 +- .../src/v3/intents_client.ts | 10 +- .../src/v3/pages_client.ts | 10 +- .../v3/security_settings_service_client.ts | 10 +- .../src/v3/session_entity_types_client.ts | 10 +- .../src/v3/sessions_client.ts | 5 +- .../src/v3/test_cases_client.ts | 20 +- .../src/v3/transition_route_groups_client.ts | 10 +- .../src/v3/versions_client.ts | 12 +- .../src/v3/webhooks_client.ts | 10 +- .../src/v3beta1/agents_client.ts | 12 +- .../src/v3beta1/changelogs_client.ts | 10 +- .../src/v3beta1/deployments_client.ts | 10 +- .../src/v3beta1/entity_types_client.ts | 10 +- .../src/v3beta1/environments_client.ts | 24 +-- .../src/v3beta1/experiments_client.ts | 10 +- .../src/v3beta1/flows_client.ts | 14 +- .../src/v3beta1/intents_client.ts | 10 +- .../src/v3beta1/pages_client.ts | 10 +- .../security_settings_service_client.ts | 10 +- .../v3beta1/session_entity_types_client.ts | 10 +- .../src/v3beta1/sessions_client.ts | 5 +- .../src/v3beta1/test_cases_client.ts | 20 +- .../v3beta1/transition_route_groups_client.ts | 10 +- .../src/v3beta1/versions_client.ts | 12 +- .../src/v3beta1/webhooks_client.ts | 10 +- .../test/gapic_agents_v3.ts | 156 +++++++------- .../test/gapic_agents_v3beta1.ts | 156 +++++++------- .../test/gapic_changelogs_v3.ts | 163 +++++++------- .../test/gapic_changelogs_v3beta1.ts | 163 +++++++------- .../test/gapic_deployments_v3.ts | 163 +++++++------- .../test/gapic_deployments_v3beta1.ts | 165 +++++++------- .../test/gapic_entity_types_v3.ts | 163 +++++++------- .../test/gapic_entity_types_v3beta1.ts | 165 +++++++------- .../test/gapic_environments_v3.ts | 156 +++++++------- .../test/gapic_environments_v3beta1.ts | 160 +++++++------- .../test/gapic_experiments_v3.ts | 163 +++++++------- .../test/gapic_experiments_v3beta1.ts | 165 +++++++------- .../test/gapic_flows_v3.ts | 156 +++++++------- .../test/gapic_flows_v3beta1.ts | 156 +++++++------- .../test/gapic_intents_v3.ts | 163 +++++++------- .../test/gapic_intents_v3beta1.ts | 163 +++++++------- .../test/gapic_pages_v3.ts | 163 +++++++------- .../test/gapic_pages_v3beta1.ts | 163 +++++++------- .../gapic_security_settings_service_v3.ts | 189 ++++++++-------- ...gapic_security_settings_service_v3beta1.ts | 202 +++++++++--------- .../test/gapic_session_entity_types_v3.ts | 167 +++++++-------- .../gapic_session_entity_types_v3beta1.ts | 184 ++++++++-------- .../test/gapic_sessions_v3.ts | 163 +++++++------- .../test/gapic_sessions_v3beta1.ts | 163 +++++++------- .../test/gapic_test_cases_v3.ts | 156 +++++++------- .../test/gapic_test_cases_v3beta1.ts | 156 +++++++------- .../test/gapic_transition_route_groups_v3.ts | 185 ++++++++-------- .../gapic_transition_route_groups_v3beta1.ts | 189 ++++++++-------- .../test/gapic_versions_v3.ts | 156 +++++++------- .../test/gapic_versions_v3beta1.ts | 156 +++++++------- .../test/gapic_webhooks_v3.ts | 163 +++++++------- .../test/gapic_webhooks_v3beta1.ts | 163 +++++++------- 260 files changed, 3598 insertions(+), 3040 deletions(-) diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.create_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.create_agent.js index 4f2f20d2f8c..068cddce899 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.create_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.create_agent.js @@ -23,6 +23,9 @@ function main(parent, agent) { // [START dialogflow_v3_generated_Agents_CreateAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.delete_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.delete_agent.js index c12d28a6c43..2c90d044799 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.delete_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.delete_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Agents_DeleteAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.export_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.export_agent.js index f028c286c66..8734d3419fa 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.export_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.export_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Agents_ExportAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent.js index 9a2c086d318..404dd14f26d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Agents_GetAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent_validation_result.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent_validation_result.js index a32684dd45d..2968c672318 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent_validation_result.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.get_agent_validation_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Agents_GetAgentValidationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.list_agents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.list_agents.js index d07b40aeb1b..5b8b6ccc417 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.list_agents.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.list_agents.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Agents_ListAgents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.restore_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.restore_agent.js index 841939f4ffa..52f91d3f559 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.restore_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.restore_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Agents_RestoreAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.update_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.update_agent.js index d48ef831f39..60380732046 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.update_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.update_agent.js @@ -23,6 +23,9 @@ function main(agent) { // [START dialogflow_v3_generated_Agents_UpdateAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.validate_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.validate_agent.js index 987a8d0be4d..e156e0a9129 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.validate_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/agents.validate_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Agents_ValidateAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.get_changelog.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.get_changelog.js index 968481ef528..15c5f6090f4 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.get_changelog.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.get_changelog.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Changelogs_GetChangelog_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.list_changelogs.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.list_changelogs.js index 3b288a7766b..100b4856ae5 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.list_changelogs.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/changelogs.list_changelogs.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Changelogs_ListChangelogs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.get_deployment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.get_deployment.js index ce7e3de446c..d989c076511 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.get_deployment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.get_deployment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Deployments_GetDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.list_deployments.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.list_deployments.js index 8f39ef5fedf..159234e16ca 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.list_deployments.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/deployments.list_deployments.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Deployments_ListDeployments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.create_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.create_entity_type.js index 1f874148485..4f52dfae232 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.create_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.create_entity_type.js @@ -23,6 +23,9 @@ function main(parent, entityType) { // [START dialogflow_v3_generated_EntityTypes_CreateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.delete_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.delete_entity_type.js index d2b1011bdb2..6f87a7105a8 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.delete_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.delete_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_EntityTypes_DeleteEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.get_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.get_entity_type.js index 4cf13524ade..32b72f8f5f9 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.get_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.get_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_EntityTypes_GetEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.list_entity_types.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.list_entity_types.js index 843aa732bae..454acfdd9e3 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.list_entity_types.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.list_entity_types.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_EntityTypes_ListEntityTypes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.update_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.update_entity_type.js index 567407c0c50..ac5501159ba 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.update_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/entity_types.update_entity_type.js @@ -23,6 +23,9 @@ function main(entityType) { // [START dialogflow_v3_generated_EntityTypes_UpdateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.create_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.create_environment.js index 4aca1be9a25..f0534fba051 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.create_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.create_environment.js @@ -23,6 +23,9 @@ function main(parent, environment) { // [START dialogflow_v3_generated_Environments_CreateEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.delete_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.delete_environment.js index 696ba089896..2b6c32597e1 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.delete_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.delete_environment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Environments_DeleteEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.deploy_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.deploy_flow.js index febe6b4a6ef..6806abf9cfc 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.deploy_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.deploy_flow.js @@ -23,6 +23,9 @@ function main(environment, flowVersion) { // [START dialogflow_v3_generated_Environments_DeployFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.get_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.get_environment.js index 2cc033bbf5f..2e0fb94e5d6 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.get_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.get_environment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Environments_GetEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_continuous_test_results.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_continuous_test_results.js index b030e8c27ec..36e670920a7 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_continuous_test_results.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_continuous_test_results.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Environments_ListContinuousTestResults_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_environments.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_environments.js index 3edc87b72e2..aab6e0a8194 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_environments.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.list_environments.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Environments_ListEnvironments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.lookup_environment_history.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.lookup_environment_history.js index dba4d1a521f..bb51596623c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.lookup_environment_history.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.lookup_environment_history.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Environments_LookupEnvironmentHistory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.run_continuous_test.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.run_continuous_test.js index 00dc041e632..a0c3b379dac 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.run_continuous_test.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.run_continuous_test.js @@ -23,6 +23,9 @@ function main(environment) { // [START dialogflow_v3_generated_Environments_RunContinuousTest_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.update_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.update_environment.js index 272649466f4..d95336609f3 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.update_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/environments.update_environment.js @@ -23,6 +23,9 @@ function main(environment, updateMask) { // [START dialogflow_v3_generated_Environments_UpdateEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.create_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.create_experiment.js index 468dd2f245a..90afa7ff930 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.create_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.create_experiment.js @@ -23,6 +23,9 @@ function main(parent, experiment) { // [START dialogflow_v3_generated_Experiments_CreateExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.delete_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.delete_experiment.js index 27c6a8b20b1..b5c977c68b8 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.delete_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.delete_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Experiments_DeleteExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.get_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.get_experiment.js index 7df61c370e7..0c09e13fcee 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.get_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.get_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Experiments_GetExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.list_experiments.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.list_experiments.js index bf697de8b57..c4b02b66b9a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.list_experiments.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.list_experiments.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Experiments_ListExperiments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.start_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.start_experiment.js index a2cb124b143..3e44e9d27eb 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.start_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.start_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Experiments_StartExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.stop_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.stop_experiment.js index ba594470a70..f1ab9f8dd1a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.stop_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.stop_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Experiments_StopExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.update_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.update_experiment.js index 927188da563..c0d7855662d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.update_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/experiments.update_experiment.js @@ -23,6 +23,9 @@ function main(experiment, updateMask) { // [START dialogflow_v3_generated_Experiments_UpdateExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.create_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.create_flow.js index 5eb34931089..543e87f6dbe 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.create_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.create_flow.js @@ -23,6 +23,9 @@ function main(parent, flow) { // [START dialogflow_v3_generated_Flows_CreateFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.delete_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.delete_flow.js index 5e88bfbc3fd..438ec439f9d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.delete_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.delete_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Flows_DeleteFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.export_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.export_flow.js index dc6ad6cb991..c3cea86930a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.export_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.export_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Flows_ExportFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow.js index f19e66ebcad..c067cf79eb2 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Flows_GetFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow_validation_result.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow_validation_result.js index be625958792..9d34c29db6d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow_validation_result.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.get_flow_validation_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Flows_GetFlowValidationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.import_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.import_flow.js index a283e263bb5..6fb24e55c23 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.import_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.import_flow.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Flows_ImportFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.list_flows.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.list_flows.js index e3fd86fd6eb..192659ca3fa 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.list_flows.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.list_flows.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Flows_ListFlows_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.train_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.train_flow.js index d7853b73dbe..eb7bc7a23ac 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.train_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.train_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Flows_TrainFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.update_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.update_flow.js index 8b391f8adfe..bf593c75ec8 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.update_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.update_flow.js @@ -23,6 +23,9 @@ function main(flow) { // [START dialogflow_v3_generated_Flows_UpdateFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.validate_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.validate_flow.js index ba65eb690d1..66b5d9bf288 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.validate_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/flows.validate_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Flows_ValidateFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.create_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.create_intent.js index bba81387e49..946e7adef38 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.create_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.create_intent.js @@ -23,6 +23,9 @@ function main(parent, intent) { // [START dialogflow_v3_generated_Intents_CreateIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.delete_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.delete_intent.js index aa63d2f995e..65a3032f6d5 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.delete_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.delete_intent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Intents_DeleteIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js index 14652ab92c4..722292fa185 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.get_intent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Intents_GetIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js index 59b84a4ed03..6c1cb1787fd 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.list_intents.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Intents_ListIntents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.update_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.update_intent.js index 2071272ac32..bd87f38f391 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.update_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/intents.update_intent.js @@ -23,6 +23,9 @@ function main(intent) { // [START dialogflow_v3_generated_Intents_UpdateIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.create_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.create_page.js index f1fd0cd6b95..0b9d9431b64 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.create_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.create_page.js @@ -23,6 +23,9 @@ function main(parent, page) { // [START dialogflow_v3_generated_Pages_CreatePage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.delete_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.delete_page.js index f28e94e2fa1..731024727c5 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.delete_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.delete_page.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Pages_DeletePage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.get_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.get_page.js index f23532102ac..371c9d6b3c9 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.get_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.get_page.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Pages_GetPage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.list_pages.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.list_pages.js index be8aa40ca7d..7d559331d19 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.list_pages.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.list_pages.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Pages_ListPages_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.update_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.update_page.js index eee960345a7..dd11b1dbfc0 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.update_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/pages.update_page.js @@ -23,6 +23,9 @@ function main(page) { // [START dialogflow_v3_generated_Pages_UpdatePage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.create_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.create_security_settings.js index 92cf3f66ab7..2a02371bb0b 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.create_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.create_security_settings.js @@ -23,6 +23,9 @@ function main(parent, securitySettings) { // [START dialogflow_v3_generated_SecuritySettingsService_CreateSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.delete_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.delete_security_settings.js index 92b2c173d06..28e8bc06424 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.delete_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.delete_security_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_SecuritySettingsService_DeleteSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.get_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.get_security_settings.js index 0d9f5488e1c..6311455610d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.get_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.get_security_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_SecuritySettingsService_GetSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.list_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.list_security_settings.js index afb9570f5dc..510fc9ae609 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.list_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.list_security_settings.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_SecuritySettingsService_ListSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.update_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.update_security_settings.js index 0c67b0c81b4..9aafb91571d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.update_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/security_settings_service.update_security_settings.js @@ -23,6 +23,9 @@ function main(securitySettings, updateMask) { // [START dialogflow_v3_generated_SecuritySettingsService_UpdateSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.create_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.create_session_entity_type.js index 620588dc02f..36acc528869 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.create_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.create_session_entity_type.js @@ -23,6 +23,9 @@ function main(parent, sessionEntityType) { // [START dialogflow_v3_generated_SessionEntityTypes_CreateSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.delete_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.delete_session_entity_type.js index 3eed3a68487..d3faf189ce8 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.delete_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.delete_session_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_SessionEntityTypes_DeleteSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.get_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.get_session_entity_type.js index 0c07726190a..e16ac97bab1 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.get_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.get_session_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_SessionEntityTypes_GetSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.list_session_entity_types.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.list_session_entity_types.js index 9541e20083e..f3c22923008 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.list_session_entity_types.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.list_session_entity_types.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_SessionEntityTypes_ListSessionEntityTypes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.update_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.update_session_entity_type.js index 61d622395ca..dbeba79684d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.update_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/session_entity_types.update_session_entity_type.js @@ -23,6 +23,9 @@ function main(sessionEntityType) { // [START dialogflow_v3_generated_SessionEntityTypes_UpdateSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.detect_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.detect_intent.js index 701f00431d9..b377084e78f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.detect_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.detect_intent.js @@ -23,6 +23,9 @@ function main(session, queryInput) { // [START dialogflow_v3_generated_Sessions_DetectIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.fulfill_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.fulfill_intent.js index 717d5bce917..e4510801ec7 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.fulfill_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.fulfill_intent.js @@ -23,6 +23,9 @@ function main() { // [START dialogflow_v3_generated_Sessions_FulfillIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.match_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.match_intent.js index 083ad12c7d4..2ddb38480a6 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.match_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.match_intent.js @@ -23,6 +23,9 @@ function main(session, queryInput) { // [START dialogflow_v3_generated_Sessions_MatchIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.streaming_detect_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.streaming_detect_intent.js index 7334a8e9a2c..5e0173aa8cc 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.streaming_detect_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/sessions.streaming_detect_intent.js @@ -23,6 +23,9 @@ function main(queryInput) { // [START dialogflow_v3_generated_Sessions_StreamingDetectIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** 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 73f16e8cefb..628c40748af 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 @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -70,7 +70,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -154,7 +154,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -198,7 +198,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -238,7 +238,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -290,7 +290,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -342,7 +342,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -386,7 +386,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -430,7 +430,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -482,7 +482,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -522,7 +522,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -570,7 +570,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -610,7 +610,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -662,7 +662,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -706,7 +706,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -754,7 +754,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -802,7 +802,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -846,7 +846,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -894,7 +894,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -934,7 +934,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1022,7 +1022,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1062,7 +1062,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -1110,7 +1110,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1150,7 +1150,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -1198,7 +1198,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1242,7 +1242,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -1290,7 +1290,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1330,7 +1330,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -1374,7 +1374,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1418,7 +1418,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1458,7 +1458,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1498,7 +1498,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1538,7 +1538,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -1586,7 +1586,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1630,7 +1630,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -1682,7 +1682,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1726,7 +1726,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -1774,7 +1774,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -1814,7 +1814,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1858,7 +1858,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1902,7 +1902,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -1954,7 +1954,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -2002,7 +2002,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -2058,7 +2058,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -2102,7 +2102,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -2150,7 +2150,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2198,7 +2198,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2238,7 +2238,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -2290,7 +2290,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -2334,7 +2334,7 @@ "segments": [ { "start": 25, - "end": 78, + "end": 81, "type": "FULL" } ], @@ -2382,7 +2382,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -2430,7 +2430,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -2474,7 +2474,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2518,7 +2518,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2558,7 +2558,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -2602,7 +2602,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -2650,7 +2650,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2690,7 +2690,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -2738,7 +2738,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2778,7 +2778,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2822,7 +2822,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2866,7 +2866,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2906,7 +2906,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -2958,7 +2958,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -3014,7 +3014,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -3062,7 +3062,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3110,7 +3110,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -3162,7 +3162,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -3206,7 +3206,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3246,7 +3246,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3290,7 +3290,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -3334,7 +3334,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3378,7 +3378,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -3426,7 +3426,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3470,7 +3470,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -3518,7 +3518,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -3570,7 +3570,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 89, "type": "FULL" } ], @@ -3622,7 +3622,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3662,7 +3662,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -3714,7 +3714,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -3758,7 +3758,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -3806,7 +3806,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -3854,7 +3854,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -3898,7 +3898,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -3946,7 +3946,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3986,7 +3986,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -4030,7 +4030,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4074,7 +4074,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4114,7 +4114,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -4158,7 +4158,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -4206,7 +4206,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -4254,7 +4254,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4294,7 +4294,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4338,7 +4338,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -4382,7 +4382,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_delete_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_delete_test_cases.js index 0c9177e2586..9a693427489 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_delete_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_delete_test_cases.js @@ -23,6 +23,9 @@ function main(parent, names) { // [START dialogflow_v3_generated_TestCases_BatchDeleteTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_run_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_run_test_cases.js index f0a15bc26b3..d64aa0779de 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_run_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.batch_run_test_cases.js @@ -23,6 +23,9 @@ function main(parent, testCases) { // [START dialogflow_v3_generated_TestCases_BatchRunTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.calculate_coverage.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.calculate_coverage.js index ce077bb44de..c6ab071cb58 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.calculate_coverage.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.calculate_coverage.js @@ -23,6 +23,9 @@ function main(agent, type) { // [START dialogflow_v3_generated_TestCases_CalculateCoverage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.create_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.create_test_case.js index 60a2d331076..1afb269c8d7 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.create_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.create_test_case.js @@ -23,6 +23,9 @@ function main(parent, testCase) { // [START dialogflow_v3_generated_TestCases_CreateTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.export_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.export_test_cases.js index 4443f8a92a0..9a853a9834e 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.export_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.export_test_cases.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_TestCases_ExportTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case.js index c727e27e996..22386f7846c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_TestCases_GetTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case_result.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case_result.js index 487fefe3c01..f335ad62f2b 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case_result.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.get_test_case_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_TestCases_GetTestCaseResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.import_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.import_test_cases.js index ef61a4aae65..35bbd5946b3 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.import_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.import_test_cases.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_TestCases_ImportTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_case_results.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_case_results.js index e3d0f298e97..f31d96486b8 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_case_results.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_case_results.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_TestCases_ListTestCaseResults_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_cases.js index f35e2ec6604..3467f5ad477 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.list_test_cases.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_TestCases_ListTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.run_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.run_test_case.js index fc3f4b226d5..c8528cc0cac 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.run_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.run_test_case.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_TestCases_RunTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.update_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.update_test_case.js index be671a8ca0b..67f8c0c23c7 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.update_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/test_cases.update_test_case.js @@ -23,6 +23,9 @@ function main(testCase, updateMask) { // [START dialogflow_v3_generated_TestCases_UpdateTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.create_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.create_transition_route_group.js index f57f7151252..fe335428d7a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.create_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.create_transition_route_group.js @@ -23,6 +23,9 @@ function main(parent, transitionRouteGroup) { // [START dialogflow_v3_generated_TransitionRouteGroups_CreateTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.delete_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.delete_transition_route_group.js index e559e2998e9..9b54a3dc41b 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.delete_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.delete_transition_route_group.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.get_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.get_transition_route_group.js index 3175e25632d..e7bead1dc3a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.get_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.get_transition_route_group.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_TransitionRouteGroups_GetTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.list_transition_route_groups.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.list_transition_route_groups.js index 4f88664fc71..2ce31c19fc8 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.list_transition_route_groups.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.list_transition_route_groups.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_TransitionRouteGroups_ListTransitionRouteGroups_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.update_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.update_transition_route_group.js index 94893abae49..79fc11469fe 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.update_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/transition_route_groups.update_transition_route_group.js @@ -23,6 +23,9 @@ function main(transitionRouteGroup) { // [START dialogflow_v3_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.compare_versions.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.compare_versions.js index a9b6ba31640..1a8090c4f03 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.compare_versions.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.compare_versions.js @@ -23,6 +23,9 @@ function main(baseVersion, targetVersion) { // [START dialogflow_v3_generated_Versions_CompareVersions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.create_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.create_version.js index d02e0a38964..c656857a662 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.create_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.create_version.js @@ -23,6 +23,9 @@ function main(parent, version) { // [START dialogflow_v3_generated_Versions_CreateVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.delete_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.delete_version.js index b157b3940f4..90fefa3634a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.delete_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.delete_version.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Versions_DeleteVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.get_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.get_version.js index 2ab111269ca..79471b24038 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.get_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.get_version.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Versions_GetVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.list_versions.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.list_versions.js index 1a30032db89..93c2142b33e 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.list_versions.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.list_versions.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Versions_ListVersions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.load_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.load_version.js index 59435a4293b..644915513fa 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.load_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.load_version.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Versions_LoadVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.update_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.update_version.js index 9613f3281c6..26dfc8c197b 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.update_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/versions.update_version.js @@ -23,6 +23,9 @@ function main(version, updateMask) { // [START dialogflow_v3_generated_Versions_UpdateVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.create_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.create_webhook.js index e3ae9655b6c..f32b855e095 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.create_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.create_webhook.js @@ -23,6 +23,9 @@ function main(parent, webhook) { // [START dialogflow_v3_generated_Webhooks_CreateWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.delete_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.delete_webhook.js index 9972c7e221e..d6edef52b47 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.delete_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.delete_webhook.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Webhooks_DeleteWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.get_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.get_webhook.js index 2c18d509ca5..1b919a8b1e0 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.get_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.get_webhook.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3_generated_Webhooks_GetWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.list_webhooks.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.list_webhooks.js index 3ced6d4da8f..7a3f804dbee 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.list_webhooks.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.list_webhooks.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3_generated_Webhooks_ListWebhooks_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.update_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.update_webhook.js index 5682045b86a..6ea85dcb006 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.update_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3/webhooks.update_webhook.js @@ -23,6 +23,9 @@ function main(webhook) { // [START dialogflow_v3_generated_Webhooks_UpdateWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.create_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.create_agent.js index 2b73ce0007b..2ef0c379253 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.create_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.create_agent.js @@ -23,6 +23,9 @@ function main(parent, agent) { // [START dialogflow_v3beta1_generated_Agents_CreateAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.delete_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.delete_agent.js index 7dc94aea997..3488c60a865 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.delete_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.delete_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Agents_DeleteAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.export_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.export_agent.js index 176a83de19c..d88b214d1ef 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.export_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.export_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Agents_ExportAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent.js index a7ac79ed1d3..5d51d5af618 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Agents_GetAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent_validation_result.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent_validation_result.js index a1f6ccbfb52..1eabe96534c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent_validation_result.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.get_agent_validation_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Agents_GetAgentValidationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.list_agents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.list_agents.js index d99912589fc..347505d511f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.list_agents.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.list_agents.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Agents_ListAgents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.restore_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.restore_agent.js index cb0ed139742..e25f26bb898 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.restore_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.restore_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Agents_RestoreAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.update_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.update_agent.js index 92b2527b5ad..811fd5a9432 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.update_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.update_agent.js @@ -23,6 +23,9 @@ function main(agent) { // [START dialogflow_v3beta1_generated_Agents_UpdateAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.validate_agent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.validate_agent.js index 6a9c7d9de51..3b106db3530 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.validate_agent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/agents.validate_agent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Agents_ValidateAgent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.get_changelog.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.get_changelog.js index 784fd0c8c5c..44e6f03e429 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.get_changelog.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.get_changelog.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Changelogs_GetChangelog_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.list_changelogs.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.list_changelogs.js index b51b71da430..e045559fcfe 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.list_changelogs.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/changelogs.list_changelogs.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Changelogs_ListChangelogs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.get_deployment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.get_deployment.js index 101f7da0a82..87edcc8d827 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.get_deployment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.get_deployment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Deployments_GetDeployment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.list_deployments.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.list_deployments.js index 57c66710726..0a529ad9e08 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.list_deployments.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/deployments.list_deployments.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Deployments_ListDeployments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.create_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.create_entity_type.js index 108a6b94a33..541c6bb072c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.create_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.create_entity_type.js @@ -23,6 +23,9 @@ function main(parent, entityType) { // [START dialogflow_v3beta1_generated_EntityTypes_CreateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.delete_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.delete_entity_type.js index f228608c535..8382ebb37ce 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.delete_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.delete_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_EntityTypes_DeleteEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.get_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.get_entity_type.js index f9df9000820..41ad8df208f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.get_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.get_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_EntityTypes_GetEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.list_entity_types.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.list_entity_types.js index 95fb79d6a4b..7732bf928f5 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.list_entity_types.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.list_entity_types.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_EntityTypes_ListEntityTypes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.update_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.update_entity_type.js index 26a0a957f6d..17ce2eb89e1 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.update_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/entity_types.update_entity_type.js @@ -23,6 +23,9 @@ function main(entityType) { // [START dialogflow_v3beta1_generated_EntityTypes_UpdateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.create_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.create_environment.js index 1aad4e3ae8d..f20ceae9f9c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.create_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.create_environment.js @@ -23,6 +23,9 @@ function main(parent, environment) { // [START dialogflow_v3beta1_generated_Environments_CreateEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.delete_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.delete_environment.js index b15cec8ff1d..3969d1544fb 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.delete_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.delete_environment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Environments_DeleteEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.deploy_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.deploy_flow.js index e4f42592c55..918d0f66698 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.deploy_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.deploy_flow.js @@ -23,6 +23,9 @@ function main(environment, flowVersion) { // [START dialogflow_v3beta1_generated_Environments_DeployFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.get_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.get_environment.js index 6ae39466399..a8293d032d1 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.get_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.get_environment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Environments_GetEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_continuous_test_results.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_continuous_test_results.js index de0e552c807..da5f6b1640d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_continuous_test_results.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_continuous_test_results.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Environments_ListContinuousTestResults_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_environments.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_environments.js index bb76daf0cbc..2468e2dac23 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_environments.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.list_environments.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Environments_ListEnvironments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.lookup_environment_history.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.lookup_environment_history.js index 35ca9e2faa9..45fd61ac314 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.lookup_environment_history.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.lookup_environment_history.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Environments_LookupEnvironmentHistory_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.run_continuous_test.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.run_continuous_test.js index d83ddcbca4a..819da4ce441 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.run_continuous_test.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.run_continuous_test.js @@ -23,6 +23,9 @@ function main(environment) { // [START dialogflow_v3beta1_generated_Environments_RunContinuousTest_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.update_environment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.update_environment.js index 68ae61e2074..7398cb6c2a2 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.update_environment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/environments.update_environment.js @@ -23,6 +23,9 @@ function main(environment, updateMask) { // [START dialogflow_v3beta1_generated_Environments_UpdateEnvironment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.create_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.create_experiment.js index 37e1c6ba8db..42bc0f29a06 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.create_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.create_experiment.js @@ -23,6 +23,9 @@ function main(parent, experiment) { // [START dialogflow_v3beta1_generated_Experiments_CreateExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.delete_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.delete_experiment.js index c4c0eb778ac..dab0c690705 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.delete_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.delete_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Experiments_DeleteExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.get_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.get_experiment.js index e852f48404d..c8561a462c3 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.get_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.get_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Experiments_GetExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.list_experiments.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.list_experiments.js index 703f4b9fadb..900991b8f14 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.list_experiments.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.list_experiments.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Experiments_ListExperiments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.start_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.start_experiment.js index 5d4f076cce8..3a4b9f05ba5 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.start_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.start_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Experiments_StartExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.stop_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.stop_experiment.js index 32f08dc7612..a9be3837053 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.stop_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.stop_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Experiments_StopExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.update_experiment.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.update_experiment.js index 06c0bd87568..41ee943df77 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.update_experiment.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/experiments.update_experiment.js @@ -23,6 +23,9 @@ function main(experiment, updateMask) { // [START dialogflow_v3beta1_generated_Experiments_UpdateExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.create_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.create_flow.js index 7320abb712d..5294d656570 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.create_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.create_flow.js @@ -23,6 +23,9 @@ function main(parent, flow) { // [START dialogflow_v3beta1_generated_Flows_CreateFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.delete_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.delete_flow.js index 9b1296c7344..7689c861d48 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.delete_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.delete_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Flows_DeleteFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.export_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.export_flow.js index 1aca67f274d..872d3a459e2 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.export_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.export_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Flows_ExportFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow.js index a021c7b4dc0..13d4d282222 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Flows_GetFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow_validation_result.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow_validation_result.js index e6aabf425e2..2c64af1a6f2 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow_validation_result.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.get_flow_validation_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Flows_GetFlowValidationResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.import_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.import_flow.js index d3f827b0540..a63deb3e59c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.import_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.import_flow.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Flows_ImportFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.list_flows.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.list_flows.js index f537206afba..34c99aba733 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.list_flows.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.list_flows.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Flows_ListFlows_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.train_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.train_flow.js index ca12c2b48b5..ec85defe823 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.train_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.train_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Flows_TrainFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.update_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.update_flow.js index 6c9119b86b3..caac92dcca7 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.update_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.update_flow.js @@ -23,6 +23,9 @@ function main(flow) { // [START dialogflow_v3beta1_generated_Flows_UpdateFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.validate_flow.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.validate_flow.js index 583692ef4c3..cf3a1e86d6f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.validate_flow.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/flows.validate_flow.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Flows_ValidateFlow_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.create_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.create_intent.js index c317951c788..5917cf8de8e 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.create_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.create_intent.js @@ -23,6 +23,9 @@ function main(parent, intent) { // [START dialogflow_v3beta1_generated_Intents_CreateIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.delete_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.delete_intent.js index 26644e8822a..3b0e6126b8f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.delete_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.delete_intent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Intents_DeleteIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js index 5b10d23386b..af6faacb547 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.get_intent.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Intents_GetIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js index 3ea6385ae38..4c65299731a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.list_intents.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Intents_ListIntents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.update_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.update_intent.js index 072cdb2e4b2..7fc906a685d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.update_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/intents.update_intent.js @@ -23,6 +23,9 @@ function main(intent) { // [START dialogflow_v3beta1_generated_Intents_UpdateIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.create_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.create_page.js index 129c2d0c56e..5913d58abe3 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.create_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.create_page.js @@ -23,6 +23,9 @@ function main(parent, page) { // [START dialogflow_v3beta1_generated_Pages_CreatePage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.delete_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.delete_page.js index b9518a11323..a38b3a7af1f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.delete_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.delete_page.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Pages_DeletePage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.get_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.get_page.js index edc49b4e1e6..446f2100aee 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.get_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.get_page.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Pages_GetPage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.list_pages.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.list_pages.js index cf05426f5af..676516596e0 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.list_pages.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.list_pages.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Pages_ListPages_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.update_page.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.update_page.js index 0422cf6a797..3fa68b3ff71 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.update_page.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/pages.update_page.js @@ -23,6 +23,9 @@ function main(page) { // [START dialogflow_v3beta1_generated_Pages_UpdatePage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.create_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.create_security_settings.js index 0dc6615ac57..7958cc0524e 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.create_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.create_security_settings.js @@ -23,6 +23,9 @@ function main(parent, securitySettings) { // [START dialogflow_v3beta1_generated_SecuritySettingsService_CreateSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.delete_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.delete_security_settings.js index 6912ba44e80..4d3273893cf 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.delete_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.delete_security_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_SecuritySettingsService_DeleteSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.get_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.get_security_settings.js index 5a5a1defecc..56ba230af90 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.get_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.get_security_settings.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_SecuritySettingsService_GetSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.list_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.list_security_settings.js index 3ee2910a258..442693ad30c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.list_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.list_security_settings.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_SecuritySettingsService_ListSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.update_security_settings.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.update_security_settings.js index 172f076f84a..b93dadf9fbb 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.update_security_settings.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/security_settings_service.update_security_settings.js @@ -23,6 +23,9 @@ function main(securitySettings, updateMask) { // [START dialogflow_v3beta1_generated_SecuritySettingsService_UpdateSecuritySettings_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.create_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.create_session_entity_type.js index 4b0f771e6e2..06ca0d1967c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.create_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.create_session_entity_type.js @@ -23,6 +23,9 @@ function main(parent, sessionEntityType) { // [START dialogflow_v3beta1_generated_SessionEntityTypes_CreateSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.delete_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.delete_session_entity_type.js index 49e3ca870b8..0729ff517c4 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.delete_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.delete_session_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_SessionEntityTypes_DeleteSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.get_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.get_session_entity_type.js index 0009b7d185d..d90e492df99 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.get_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.get_session_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_SessionEntityTypes_GetSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.list_session_entity_types.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.list_session_entity_types.js index bd52810d128..e6b5a2f07e7 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.list_session_entity_types.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.list_session_entity_types.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_SessionEntityTypes_ListSessionEntityTypes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.update_session_entity_type.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.update_session_entity_type.js index de8d4e171b1..410a54d2abe 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.update_session_entity_type.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/session_entity_types.update_session_entity_type.js @@ -23,6 +23,9 @@ function main(sessionEntityType) { // [START dialogflow_v3beta1_generated_SessionEntityTypes_UpdateSessionEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.detect_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.detect_intent.js index 236b36b558b..756705caf54 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.detect_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.detect_intent.js @@ -23,6 +23,9 @@ function main(session, queryInput) { // [START dialogflow_v3beta1_generated_Sessions_DetectIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.fulfill_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.fulfill_intent.js index f91979b9ddc..362db9110e1 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.fulfill_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.fulfill_intent.js @@ -23,6 +23,9 @@ function main() { // [START dialogflow_v3beta1_generated_Sessions_FulfillIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.match_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.match_intent.js index bb99d08b300..229b7e3dd48 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.match_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.match_intent.js @@ -23,6 +23,9 @@ function main(session, queryInput) { // [START dialogflow_v3beta1_generated_Sessions_MatchIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.streaming_detect_intent.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.streaming_detect_intent.js index 8ef00b074c9..2ef4cf567f6 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.streaming_detect_intent.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/sessions.streaming_detect_intent.js @@ -23,6 +23,9 @@ function main(queryInput) { // [START dialogflow_v3beta1_generated_Sessions_StreamingDetectIntent_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** 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 857828275c1..b75d6a906e0 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 @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -70,7 +70,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -154,7 +154,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -198,7 +198,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -238,7 +238,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -290,7 +290,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -342,7 +342,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -386,7 +386,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -430,7 +430,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -482,7 +482,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -522,7 +522,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -570,7 +570,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -610,7 +610,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -662,7 +662,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -706,7 +706,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -754,7 +754,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -802,7 +802,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -846,7 +846,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -894,7 +894,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -934,7 +934,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1022,7 +1022,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1062,7 +1062,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -1110,7 +1110,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1150,7 +1150,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -1198,7 +1198,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1242,7 +1242,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -1290,7 +1290,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1330,7 +1330,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -1374,7 +1374,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1418,7 +1418,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1458,7 +1458,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1498,7 +1498,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1538,7 +1538,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -1586,7 +1586,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -1630,7 +1630,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -1682,7 +1682,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1726,7 +1726,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -1774,7 +1774,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -1814,7 +1814,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1858,7 +1858,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1902,7 +1902,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], @@ -1954,7 +1954,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -2002,7 +2002,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -2058,7 +2058,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -2102,7 +2102,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -2150,7 +2150,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -2198,7 +2198,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2238,7 +2238,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -2290,7 +2290,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -2334,7 +2334,7 @@ "segments": [ { "start": 25, - "end": 78, + "end": 81, "type": "FULL" } ], @@ -2382,7 +2382,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -2430,7 +2430,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -2474,7 +2474,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2518,7 +2518,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2558,7 +2558,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -2602,7 +2602,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -2650,7 +2650,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2690,7 +2690,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -2738,7 +2738,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2778,7 +2778,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2822,7 +2822,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2866,7 +2866,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2906,7 +2906,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -2958,7 +2958,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -3014,7 +3014,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -3062,7 +3062,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3110,7 +3110,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -3162,7 +3162,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -3206,7 +3206,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3246,7 +3246,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3290,7 +3290,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -3334,7 +3334,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -3378,7 +3378,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -3426,7 +3426,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3470,7 +3470,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -3518,7 +3518,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -3570,7 +3570,7 @@ "segments": [ { "start": 25, - "end": 86, + "end": 89, "type": "FULL" } ], @@ -3622,7 +3622,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3662,7 +3662,7 @@ "segments": [ { "start": 25, - "end": 76, + "end": 79, "type": "FULL" } ], @@ -3714,7 +3714,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -3758,7 +3758,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -3806,7 +3806,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -3854,7 +3854,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -3898,7 +3898,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -3946,7 +3946,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3986,7 +3986,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -4030,7 +4030,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4074,7 +4074,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4114,7 +4114,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -4158,7 +4158,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -4206,7 +4206,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -4254,7 +4254,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4294,7 +4294,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4338,7 +4338,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -4382,7 +4382,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_delete_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_delete_test_cases.js index 87597100304..f6fb0858511 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_delete_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_delete_test_cases.js @@ -23,6 +23,9 @@ function main(parent, names) { // [START dialogflow_v3beta1_generated_TestCases_BatchDeleteTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_run_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_run_test_cases.js index 703c4808939..6c73ceebc37 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_run_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.batch_run_test_cases.js @@ -23,6 +23,9 @@ function main(parent, testCases) { // [START dialogflow_v3beta1_generated_TestCases_BatchRunTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.calculate_coverage.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.calculate_coverage.js index 82d87dcaf22..03f652d4d4c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.calculate_coverage.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.calculate_coverage.js @@ -23,6 +23,9 @@ function main(agent, type) { // [START dialogflow_v3beta1_generated_TestCases_CalculateCoverage_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.create_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.create_test_case.js index 01b9c90d0fd..e7f3c5516ba 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.create_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.create_test_case.js @@ -23,6 +23,9 @@ function main(parent, testCase) { // [START dialogflow_v3beta1_generated_TestCases_CreateTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.export_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.export_test_cases.js index a750a915ac5..165ad989487 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.export_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.export_test_cases.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_TestCases_ExportTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case.js index f4c87535f82..705220d01ca 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_TestCases_GetTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case_result.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case_result.js index 9cf74db4255..9bddb50f858 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case_result.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.get_test_case_result.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_TestCases_GetTestCaseResult_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.import_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.import_test_cases.js index da69c8835fd..4c0e47f1c26 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.import_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.import_test_cases.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_TestCases_ImportTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_case_results.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_case_results.js index f1986e4c81b..de4e31846cc 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_case_results.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_case_results.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_TestCases_ListTestCaseResults_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_cases.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_cases.js index 26ded9029ed..e14220b0228 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_cases.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.list_test_cases.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_TestCases_ListTestCases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.run_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.run_test_case.js index 7bf98c7a6d5..1890a65330c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.run_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.run_test_case.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_TestCases_RunTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.update_test_case.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.update_test_case.js index a3405e78c26..f152b611c77 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.update_test_case.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/test_cases.update_test_case.js @@ -23,6 +23,9 @@ function main(testCase, updateMask) { // [START dialogflow_v3beta1_generated_TestCases_UpdateTestCase_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.create_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.create_transition_route_group.js index 845c942d622..c502d96e3de 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.create_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.create_transition_route_group.js @@ -23,6 +23,9 @@ function main(parent, transitionRouteGroup) { // [START dialogflow_v3beta1_generated_TransitionRouteGroups_CreateTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.delete_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.delete_transition_route_group.js index 57d9b53823c..d6a5b1a212f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.delete_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.delete_transition_route_group.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_TransitionRouteGroups_DeleteTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.get_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.get_transition_route_group.js index 5f001c9633e..02b56fbfdcc 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.get_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.get_transition_route_group.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_TransitionRouteGroups_GetTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.list_transition_route_groups.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.list_transition_route_groups.js index ac4629ef27a..5e87626a4d5 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.list_transition_route_groups.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.list_transition_route_groups.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_TransitionRouteGroups_ListTransitionRouteGroups_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.update_transition_route_group.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.update_transition_route_group.js index 568d4c38f8e..a6b857b2a8d 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.update_transition_route_group.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/transition_route_groups.update_transition_route_group.js @@ -23,6 +23,9 @@ function main(transitionRouteGroup) { // [START dialogflow_v3beta1_generated_TransitionRouteGroups_UpdateTransitionRouteGroup_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.compare_versions.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.compare_versions.js index b68439ebac3..ae9fc697627 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.compare_versions.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.compare_versions.js @@ -23,6 +23,9 @@ function main(baseVersion, targetVersion) { // [START dialogflow_v3beta1_generated_Versions_CompareVersions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.create_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.create_version.js index 1a78cb44679..45aa869221a 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.create_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.create_version.js @@ -23,6 +23,9 @@ function main(parent, version) { // [START dialogflow_v3beta1_generated_Versions_CreateVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.delete_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.delete_version.js index bc92eea2bbf..4fa5851a6c0 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.delete_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.delete_version.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Versions_DeleteVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.get_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.get_version.js index c4b77e09beb..f65e3ca570c 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.get_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.get_version.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Versions_GetVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.list_versions.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.list_versions.js index fb2ccb995d9..b779b25b9a0 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.list_versions.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.list_versions.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Versions_ListVersions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.load_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.load_version.js index 28957b7bbb0..f0784cac00b 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.load_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.load_version.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Versions_LoadVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.update_version.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.update_version.js index 0357617c493..b976e6b6f8b 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.update_version.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/versions.update_version.js @@ -23,6 +23,9 @@ function main(version, updateMask) { // [START dialogflow_v3beta1_generated_Versions_UpdateVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.create_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.create_webhook.js index 83bbb593907..533ad561107 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.create_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.create_webhook.js @@ -23,6 +23,9 @@ function main(parent, webhook) { // [START dialogflow_v3beta1_generated_Webhooks_CreateWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.delete_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.delete_webhook.js index f468eb5ab53..fe73fa8d490 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.delete_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.delete_webhook.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Webhooks_DeleteWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.get_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.get_webhook.js index ed4116da15f..2a1cd49139f 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.get_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.get_webhook.js @@ -23,6 +23,9 @@ function main(name) { // [START dialogflow_v3beta1_generated_Webhooks_GetWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.list_webhooks.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.list_webhooks.js index 58369f72a87..5b85ba872ca 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.list_webhooks.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.list_webhooks.js @@ -23,6 +23,9 @@ function main(parent) { // [START dialogflow_v3beta1_generated_Webhooks_ListWebhooks_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.update_webhook.js b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.update_webhook.js index 785fb546d68..dcea4057d75 100644 --- a/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.update_webhook.js +++ b/packages/google-cloud-dialogflow-cx/samples/generated/v3beta1/webhooks.update_webhook.js @@ -23,6 +23,9 @@ function main(webhook) { // [START dialogflow_v3beta1_generated_Webhooks_UpdateWebhook_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts index e8461d70259..fa71366b41d 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -404,7 +403,8 @@ export class AgentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1202,7 +1202,7 @@ export class AgentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportAgent, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.ExportAgentResponse, @@ -1367,7 +1367,7 @@ export class AgentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.restoreAgent, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1515,7 +1515,7 @@ export class AgentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAgents.createStream( - this.innerApiCalls.listAgents as gax.GaxCall, + this.innerApiCalls.listAgents as GaxCall, request, callSettings ); @@ -1565,7 +1565,7 @@ export class AgentsClient { this.initialize(); return this.descriptors.page.listAgents.asyncIterate( this.innerApiCalls['listAgents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/changelogs_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/changelogs_client.ts index 0022f688e13..c660df960af 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/changelogs_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/changelogs_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './changelogs_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -367,7 +366,8 @@ export class ChangelogsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -709,7 +709,7 @@ export class ChangelogsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listChangelogs.createStream( - this.innerApiCalls.listChangelogs as gax.GaxCall, + this.innerApiCalls.listChangelogs as GaxCall, request, callSettings ); @@ -780,7 +780,7 @@ export class ChangelogsClient { this.initialize(); return this.descriptors.page.listChangelogs.asyncIterate( this.innerApiCalls['listChangelogs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/deployments_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/deployments_client.ts index 5aedf12b8ce..eac0427a3eb 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/deployments_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/deployments_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './deployments_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -367,7 +366,8 @@ export class DeploymentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -669,7 +669,7 @@ export class DeploymentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDeployments.createStream( - this.innerApiCalls.listDeployments as gax.GaxCall, + this.innerApiCalls.listDeployments as GaxCall, request, callSettings ); @@ -720,7 +720,7 @@ export class DeploymentsClient { this.initialize(); return this.descriptors.page.listDeployments.asyncIterate( this.innerApiCalls['listDeployments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/entity_types_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/entity_types_client.ts index 1b93f945914..a334fc12307 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/entity_types_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/entity_types_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './entity_types_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -373,7 +372,8 @@ export class EntityTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1039,7 +1039,7 @@ export class EntityTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEntityTypes.createStream( - this.innerApiCalls.listEntityTypes as gax.GaxCall, + this.innerApiCalls.listEntityTypes as GaxCall, request, callSettings ); @@ -1102,7 +1102,7 @@ export class EntityTypesClient { this.initialize(); return this.descriptors.page.listEntityTypes.asyncIterate( this.innerApiCalls['listEntityTypes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/environments_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/environments_client.ts index 74357e7a16f..76a5877dd7a 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/environments_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/environments_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -436,7 +435,8 @@ export class EnvironmentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -835,7 +835,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEnvironment, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.Environment, @@ -982,7 +982,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateEnvironment, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.Environment, @@ -1127,7 +1127,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.runContinuousTest, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse, @@ -1277,7 +1277,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deployFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.DeployFlowResponse, @@ -1425,7 +1425,7 @@ export class EnvironmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEnvironments.createStream( - this.innerApiCalls.listEnvironments as gax.GaxCall, + this.innerApiCalls.listEnvironments as GaxCall, request, callSettings ); @@ -1475,7 +1475,7 @@ export class EnvironmentsClient { this.initialize(); return this.descriptors.page.listEnvironments.asyncIterate( this.innerApiCalls['listEnvironments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1626,7 +1626,7 @@ export class EnvironmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.lookupEnvironmentHistory.createStream( - this.innerApiCalls.lookupEnvironmentHistory as gax.GaxCall, + this.innerApiCalls.lookupEnvironmentHistory as GaxCall, request, callSettings ); @@ -1677,7 +1677,7 @@ export class EnvironmentsClient { this.initialize(); return this.descriptors.page.lookupEnvironmentHistory.asyncIterate( this.innerApiCalls['lookupEnvironmentHistory'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1828,7 +1828,7 @@ export class EnvironmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listContinuousTestResults.createStream( - this.innerApiCalls.listContinuousTestResults as gax.GaxCall, + this.innerApiCalls.listContinuousTestResults as GaxCall, request, callSettings ); @@ -1879,7 +1879,7 @@ export class EnvironmentsClient { this.initialize(); return this.descriptors.page.listContinuousTestResults.asyncIterate( this.innerApiCalls['listContinuousTestResults'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/experiments_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/experiments_client.ts index dd82ebffe9e..fb8cc95f68d 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/experiments_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/experiments_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './experiments_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -375,7 +374,8 @@ export class ExperimentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1146,7 +1146,7 @@ export class ExperimentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listExperiments.createStream( - this.innerApiCalls.listExperiments as gax.GaxCall, + this.innerApiCalls.listExperiments as GaxCall, request, callSettings ); @@ -1197,7 +1197,7 @@ export class ExperimentsClient { this.initialize(); return this.descriptors.page.listExperiments.asyncIterate( this.innerApiCalls['listExperiments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/flows_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/flows_client.ts index c6d9af5b0e3..700347f2a0e 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/flows_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/flows_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -416,7 +415,8 @@ export class FlowsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1255,7 +1255,7 @@ export class FlowsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.trainFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1419,7 +1419,7 @@ export class FlowsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.ImportFlowResponse, @@ -1582,7 +1582,7 @@ export class FlowsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.ExportFlowResponse, @@ -1758,7 +1758,7 @@ export class FlowsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFlows.createStream( - this.innerApiCalls.listFlows as gax.GaxCall, + this.innerApiCalls.listFlows as GaxCall, request, callSettings ); @@ -1822,7 +1822,7 @@ export class FlowsClient { this.initialize(); return this.descriptors.page.listFlows.asyncIterate( this.innerApiCalls['listFlows'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts index 0e8973cef9a..904ac62fa16 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './intents_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -373,7 +372,8 @@ export class IntentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1017,7 +1017,7 @@ export class IntentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listIntents.createStream( - this.innerApiCalls.listIntents as gax.GaxCall, + this.innerApiCalls.listIntents as GaxCall, request, callSettings ); @@ -1080,7 +1080,7 @@ export class IntentsClient { this.initialize(); return this.descriptors.page.listIntents.asyncIterate( this.innerApiCalls['listIntents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/pages_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/pages_client.ts index f4659451a74..0e9350f880f 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/pages_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/pages_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './pages_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -373,7 +372,8 @@ export class PagesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1082,7 +1082,7 @@ export class PagesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPages.createStream( - this.innerApiCalls.listPages as gax.GaxCall, + this.innerApiCalls.listPages as GaxCall, request, callSettings ); @@ -1155,7 +1155,7 @@ export class PagesClient { this.initialize(); return this.descriptors.page.listPages.asyncIterate( this.innerApiCalls['listPages'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_client.ts index b3f0dc405b9..377f5f908d5 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './security_settings_service_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -391,7 +390,8 @@ export class SecuritySettingsServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1010,7 +1010,7 @@ export class SecuritySettingsServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSecuritySettings.createStream( - this.innerApiCalls.listSecuritySettings as gax.GaxCall, + this.innerApiCalls.listSecuritySettings as GaxCall, request, callSettings ); @@ -1060,7 +1060,7 @@ export class SecuritySettingsServiceClient { this.initialize(); return this.descriptors.page.listSecuritySettings.asyncIterate( this.innerApiCalls['listSecuritySettings'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_client.ts index 57e913a2a11..ca91357f9b9 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './session_entity_types_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -377,7 +376,8 @@ export class SessionEntityTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1023,7 +1023,7 @@ export class SessionEntityTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSessionEntityTypes.createStream( - this.innerApiCalls.listSessionEntityTypes as gax.GaxCall, + this.innerApiCalls.listSessionEntityTypes as GaxCall, request, callSettings ); @@ -1077,7 +1077,7 @@ export class SessionEntityTypesClient { this.initialize(); return this.descriptors.page.listSessionEntityTypes.asyncIterate( this.innerApiCalls['listSessionEntityTypes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/sessions_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/sessions_client.ts index 069e1193a7e..cdb35a32918 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/sessions_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/sessions_client.ts @@ -38,7 +38,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './sessions_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -381,7 +381,8 @@ export class SessionsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-cloud-dialogflow-cx/src/v3/test_cases_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/test_cases_client.ts index 1b0e18a854e..ec3c11cef4f 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/test_cases_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/test_cases_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -435,7 +434,8 @@ export class TestCasesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1225,7 +1225,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.runTestCase, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.RunTestCaseResponse, @@ -1377,7 +1377,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchRunTestCases, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse, @@ -1536,7 +1536,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importTestCases, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse, @@ -1707,7 +1707,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportTestCases, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse, @@ -1861,7 +1861,7 @@ export class TestCasesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTestCases.createStream( - this.innerApiCalls.listTestCases as gax.GaxCall, + this.innerApiCalls.listTestCases as GaxCall, request, callSettings ); @@ -1914,7 +1914,7 @@ export class TestCasesClient { this.initialize(); return this.descriptors.page.listTestCases.asyncIterate( this.innerApiCalls['listTestCases'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2113,7 +2113,7 @@ export class TestCasesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTestCaseResults.createStream( - this.innerApiCalls.listTestCaseResults as gax.GaxCall, + this.innerApiCalls.listTestCaseResults as GaxCall, request, callSettings ); @@ -2190,7 +2190,7 @@ export class TestCasesClient { this.initialize(); return this.descriptors.page.listTestCaseResults.asyncIterate( this.innerApiCalls['listTestCaseResults'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_client.ts index 1975cf95549..f63be052401 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './transition_route_groups_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -375,7 +374,8 @@ export class TransitionRouteGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1087,7 +1087,7 @@ export class TransitionRouteGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTransitionRouteGroups.createStream( - this.innerApiCalls.listTransitionRouteGroups as gax.GaxCall, + this.innerApiCalls.listTransitionRouteGroups as GaxCall, request, callSettings ); @@ -1152,7 +1152,7 @@ export class TransitionRouteGroupsClient { this.initialize(); return this.descriptors.page.listTransitionRouteGroups.asyncIterate( this.innerApiCalls['listTransitionRouteGroups'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/versions_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/versions_client.ts index c48a85f0e27..9f847c27acb 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/versions_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/versions_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -402,7 +401,8 @@ export class VersionsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -997,7 +997,7 @@ export class VersionsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3.Version, @@ -1147,7 +1147,7 @@ export class VersionsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.loadVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1297,7 +1297,7 @@ export class VersionsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listVersions.createStream( - this.innerApiCalls.listVersions as gax.GaxCall, + this.innerApiCalls.listVersions as GaxCall, request, callSettings ); @@ -1348,7 +1348,7 @@ export class VersionsClient { this.initialize(); return this.descriptors.page.listVersions.asyncIterate( this.innerApiCalls['listVersions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3/webhooks_client.ts b/packages/google-cloud-dialogflow-cx/src/v3/webhooks_client.ts index d355afc17ae..06861f14311 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3/webhooks_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3/webhooks_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './webhooks_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -380,7 +379,8 @@ export class WebhooksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -971,7 +971,7 @@ export class WebhooksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listWebhooks.createStream( - this.innerApiCalls.listWebhooks as gax.GaxCall, + this.innerApiCalls.listWebhooks as GaxCall, request, callSettings ); @@ -1021,7 +1021,7 @@ export class WebhooksClient { this.initialize(); return this.descriptors.page.listWebhooks.asyncIterate( this.innerApiCalls['listWebhooks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts index 752c8b4a03f..c7e9d21e661 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -406,7 +405,8 @@ export class AgentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1216,7 +1216,7 @@ export class AgentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportAgent, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse, @@ -1381,7 +1381,7 @@ export class AgentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.restoreAgent, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1529,7 +1529,7 @@ export class AgentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAgents.createStream( - this.innerApiCalls.listAgents as gax.GaxCall, + this.innerApiCalls.listAgents as GaxCall, request, callSettings ); @@ -1579,7 +1579,7 @@ export class AgentsClient { this.initialize(); return this.descriptors.page.listAgents.asyncIterate( this.innerApiCalls['listAgents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_client.ts index 88c9b267df9..a7d31ce31b0 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/changelogs_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './changelogs_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -369,7 +368,8 @@ export class ChangelogsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -717,7 +717,7 @@ export class ChangelogsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listChangelogs.createStream( - this.innerApiCalls.listChangelogs as gax.GaxCall, + this.innerApiCalls.listChangelogs as GaxCall, request, callSettings ); @@ -788,7 +788,7 @@ export class ChangelogsClient { this.initialize(); return this.descriptors.page.listChangelogs.asyncIterate( this.innerApiCalls['listChangelogs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_client.ts index e737c543c3b..1f0b7790ced 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/deployments_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './deployments_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -369,7 +368,8 @@ export class DeploymentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -677,7 +677,7 @@ export class DeploymentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDeployments.createStream( - this.innerApiCalls.listDeployments as gax.GaxCall, + this.innerApiCalls.listDeployments as GaxCall, request, callSettings ); @@ -728,7 +728,7 @@ export class DeploymentsClient { this.initialize(); return this.descriptors.page.listDeployments.asyncIterate( this.innerApiCalls['listDeployments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_client.ts index 9239db5f1f3..c59ea605ec0 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './entity_types_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -375,7 +374,8 @@ export class EntityTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1061,7 +1061,7 @@ export class EntityTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEntityTypes.createStream( - this.innerApiCalls.listEntityTypes as gax.GaxCall, + this.innerApiCalls.listEntityTypes as GaxCall, request, callSettings ); @@ -1124,7 +1124,7 @@ export class EntityTypesClient { this.initialize(); return this.descriptors.page.listEntityTypes.asyncIterate( this.innerApiCalls['listEntityTypes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_client.ts index 9acf50525ef..42553f4c679 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/environments_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -438,7 +437,8 @@ export class EnvironmentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -843,7 +843,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEnvironment, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.Environment, @@ -990,7 +990,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateEnvironment, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.Environment, @@ -1135,7 +1135,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.runContinuousTest, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse, @@ -1285,7 +1285,7 @@ export class EnvironmentsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deployFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse, @@ -1433,7 +1433,7 @@ export class EnvironmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEnvironments.createStream( - this.innerApiCalls.listEnvironments as gax.GaxCall, + this.innerApiCalls.listEnvironments as GaxCall, request, callSettings ); @@ -1483,7 +1483,7 @@ export class EnvironmentsClient { this.initialize(); return this.descriptors.page.listEnvironments.asyncIterate( this.innerApiCalls['listEnvironments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1634,7 +1634,7 @@ export class EnvironmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.lookupEnvironmentHistory.createStream( - this.innerApiCalls.lookupEnvironmentHistory as gax.GaxCall, + this.innerApiCalls.lookupEnvironmentHistory as GaxCall, request, callSettings ); @@ -1685,7 +1685,7 @@ export class EnvironmentsClient { this.initialize(); return this.descriptors.page.lookupEnvironmentHistory.asyncIterate( this.innerApiCalls['lookupEnvironmentHistory'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -1836,7 +1836,7 @@ export class EnvironmentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listContinuousTestResults.createStream( - this.innerApiCalls.listContinuousTestResults as gax.GaxCall, + this.innerApiCalls.listContinuousTestResults as GaxCall, request, callSettings ); @@ -1887,7 +1887,7 @@ export class EnvironmentsClient { this.initialize(); return this.descriptors.page.listContinuousTestResults.asyncIterate( this.innerApiCalls['listContinuousTestResults'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_client.ts index 92e322dbc3f..47bba5318d8 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './experiments_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -377,7 +376,8 @@ export class ExperimentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1184,7 +1184,7 @@ export class ExperimentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listExperiments.createStream( - this.innerApiCalls.listExperiments as gax.GaxCall, + this.innerApiCalls.listExperiments as GaxCall, request, callSettings ); @@ -1235,7 +1235,7 @@ export class ExperimentsClient { this.initialize(); return this.descriptors.page.listExperiments.asyncIterate( this.innerApiCalls['listExperiments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_client.ts index 1569fac5d6e..c78e34dd7df 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/flows_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -418,7 +417,8 @@ export class FlowsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1269,7 +1269,7 @@ export class FlowsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.trainFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1433,7 +1433,7 @@ export class FlowsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse, @@ -1596,7 +1596,7 @@ export class FlowsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportFlow, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse, @@ -1772,7 +1772,7 @@ export class FlowsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFlows.createStream( - this.innerApiCalls.listFlows as gax.GaxCall, + this.innerApiCalls.listFlows as GaxCall, request, callSettings ); @@ -1836,7 +1836,7 @@ export class FlowsClient { this.initialize(); return this.descriptors.page.listFlows.asyncIterate( this.innerApiCalls['listFlows'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts index e2efb5d158e..2fc59d56b05 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './intents_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -375,7 +374,8 @@ export class IntentsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1043,7 +1043,7 @@ export class IntentsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listIntents.createStream( - this.innerApiCalls.listIntents as gax.GaxCall, + this.innerApiCalls.listIntents as GaxCall, request, callSettings ); @@ -1106,7 +1106,7 @@ export class IntentsClient { this.initialize(); return this.descriptors.page.listIntents.asyncIterate( this.innerApiCalls['listIntents'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_client.ts index 4f5828320b5..99414124794 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/pages_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './pages_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -375,7 +374,8 @@ export class PagesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1078,7 +1078,7 @@ export class PagesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPages.createStream( - this.innerApiCalls.listPages as gax.GaxCall, + this.innerApiCalls.listPages as GaxCall, request, callSettings ); @@ -1151,7 +1151,7 @@ export class PagesClient { this.initialize(); return this.descriptors.page.listPages.asyncIterate( this.innerApiCalls['listPages'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_client.ts index 627fb8751b2..ea038d65f3e 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './security_settings_service_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -393,7 +392,8 @@ export class SecuritySettingsServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1012,7 +1012,7 @@ export class SecuritySettingsServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSecuritySettings.createStream( - this.innerApiCalls.listSecuritySettings as gax.GaxCall, + this.innerApiCalls.listSecuritySettings as GaxCall, request, callSettings ); @@ -1062,7 +1062,7 @@ export class SecuritySettingsServiceClient { this.initialize(); return this.descriptors.page.listSecuritySettings.asyncIterate( this.innerApiCalls['listSecuritySettings'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_client.ts index f0951f0afb6..bf691cebdf5 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './session_entity_types_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -379,7 +378,8 @@ export class SessionEntityTypesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1025,7 +1025,7 @@ export class SessionEntityTypesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSessionEntityTypes.createStream( - this.innerApiCalls.listSessionEntityTypes as gax.GaxCall, + this.innerApiCalls.listSessionEntityTypes as GaxCall, request, callSettings ); @@ -1079,7 +1079,7 @@ export class SessionEntityTypesClient { this.initialize(); return this.descriptors.page.listSessionEntityTypes.asyncIterate( this.innerApiCalls['listSessionEntityTypes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_client.ts index 2c6918017b4..ccb6c8c0c31 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_client.ts @@ -38,7 +38,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './sessions_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -383,7 +383,8 @@ export class SessionsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_client.ts index a2eba83a579..45c17464c32 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -437,7 +436,8 @@ export class TestCasesClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1239,7 +1239,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.runTestCase, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse, @@ -1391,7 +1391,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchRunTestCases, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse, @@ -1550,7 +1550,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importTestCases, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse, @@ -1721,7 +1721,7 @@ export class TestCasesClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportTestCases, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse, @@ -1875,7 +1875,7 @@ export class TestCasesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTestCases.createStream( - this.innerApiCalls.listTestCases as gax.GaxCall, + this.innerApiCalls.listTestCases as GaxCall, request, callSettings ); @@ -1928,7 +1928,7 @@ export class TestCasesClient { this.initialize(); return this.descriptors.page.listTestCases.asyncIterate( this.innerApiCalls['listTestCases'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2127,7 +2127,7 @@ export class TestCasesClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTestCaseResults.createStream( - this.innerApiCalls.listTestCaseResults as gax.GaxCall, + this.innerApiCalls.listTestCaseResults as GaxCall, request, callSettings ); @@ -2204,7 +2204,7 @@ export class TestCasesClient { this.initialize(); return this.descriptors.page.listTestCaseResults.asyncIterate( this.innerApiCalls['listTestCaseResults'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_client.ts index f1e02a24010..61cf57a0849 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/transition_route_groups_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './transition_route_groups_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -377,7 +376,8 @@ export class TransitionRouteGroupsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1087,7 +1087,7 @@ export class TransitionRouteGroupsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTransitionRouteGroups.createStream( - this.innerApiCalls.listTransitionRouteGroups as gax.GaxCall, + this.innerApiCalls.listTransitionRouteGroups as GaxCall, request, callSettings ); @@ -1151,7 +1151,7 @@ export class TransitionRouteGroupsClient { this.initialize(); return this.descriptors.page.listTransitionRouteGroups.asyncIterate( this.innerApiCalls['listTransitionRouteGroups'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_client.ts index 1a384c5232b..e9c03b354d4 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/versions_client.ts @@ -32,7 +32,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -404,7 +403,8 @@ export class VersionsClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1017,7 +1017,7 @@ export class VersionsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.dialogflow.cx.v3beta1.Version, @@ -1167,7 +1167,7 @@ export class VersionsClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.loadVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1317,7 +1317,7 @@ export class VersionsClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listVersions.createStream( - this.innerApiCalls.listVersions as gax.GaxCall, + this.innerApiCalls.listVersions as GaxCall, request, callSettings ); @@ -1368,7 +1368,7 @@ export class VersionsClient { this.initialize(); return this.descriptors.page.listVersions.asyncIterate( this.innerApiCalls['listVersions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_client.ts b/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_client.ts index 1bf1d15459d..bceb1dabe69 100644 --- a/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_client.ts +++ b/packages/google-cloud-dialogflow-cx/src/v3beta1/webhooks_client.ts @@ -31,7 +31,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -40,7 +39,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './webhooks_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -382,7 +381,8 @@ export class WebhooksClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -991,7 +991,7 @@ export class WebhooksClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listWebhooks.createStream( - this.innerApiCalls.listWebhooks as gax.GaxCall, + this.innerApiCalls.listWebhooks as GaxCall, request, callSettings ); @@ -1041,7 +1041,7 @@ export class WebhooksClient { this.initialize(); return this.descriptors.page.listWebhooks.asyncIterate( this.innerApiCalls['listWebhooks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3.ts index f835849a26f..d7152f346eb 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3.AgentsClient', () => { - it('has servicePath', () => { - const servicePath = agentsModule.v3.AgentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = agentsModule.v3.AgentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = agentsModule.v3.AgentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = agentsModule.v3.AgentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new agentsModule.v3.AgentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = agentsModule.v3.AgentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new agentsModule.v3.AgentsClient({ - fallback: true, + it('has port', () => { + const port = agentsModule.v3.AgentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new agentsModule.v3.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new agentsModule.v3.AgentsClient(); + assert(client); }); - assert.strictEqual(client.agentsStub, undefined); - await client.initialize(); - assert(client.agentsStub); - }); - it('has close method for the initialized client', done => { - const client = new agentsModule.v3.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new agentsModule.v3.AgentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.agentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new agentsModule.v3.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.agentsStub, undefined); + await client.initialize(); + assert(client.agentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new agentsModule.v3.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new agentsModule.v3.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.agentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.agentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new agentsModule.v3.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.agentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new agentsModule.v3.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new agentsModule.v3.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new agentsModule.v3.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new agentsModule.v3.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getAgent', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3beta1.ts index 486b96ab8f3..a1646cd3d00 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_agents_v3beta1.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3beta1.AgentsClient', () => { - it('has servicePath', () => { - const servicePath = agentsModule.v3beta1.AgentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = agentsModule.v3beta1.AgentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = agentsModule.v3beta1.AgentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = agentsModule.v3beta1.AgentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new agentsModule.v3beta1.AgentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = agentsModule.v3beta1.AgentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new agentsModule.v3beta1.AgentsClient({ - fallback: true, + it('has port', () => { + const port = agentsModule.v3beta1.AgentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new agentsModule.v3beta1.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new agentsModule.v3beta1.AgentsClient(); + assert(client); }); - assert.strictEqual(client.agentsStub, undefined); - await client.initialize(); - assert(client.agentsStub); - }); - it('has close method for the initialized client', done => { - const client = new agentsModule.v3beta1.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new agentsModule.v3beta1.AgentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.agentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new agentsModule.v3beta1.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.agentsStub, undefined); + await client.initialize(); + assert(client.agentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new agentsModule.v3beta1.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new agentsModule.v3beta1.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.agentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.agentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new agentsModule.v3beta1.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.agentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new agentsModule.v3beta1.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new agentsModule.v3beta1.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new agentsModule.v3beta1.AgentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new agentsModule.v3beta1.AgentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getAgent', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3.ts index 86d99a2f3b8..2582d95ad9a 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3.ts @@ -25,12 +25,7 @@ import * as changelogsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.ChangelogsClient', () => { - it('has servicePath', () => { - const servicePath = changelogsModule.v3.ChangelogsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = changelogsModule.v3.ChangelogsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = changelogsModule.v3.ChangelogsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new changelogsModule.v3.ChangelogsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = changelogsModule.v3.ChangelogsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new changelogsModule.v3.ChangelogsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = changelogsModule.v3.ChangelogsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new changelogsModule.v3.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = changelogsModule.v3.ChangelogsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.changelogsStub, undefined); - await client.initialize(); - assert(client.changelogsStub); - }); - it('has close method for the initialized client', done => { - const client = new changelogsModule.v3.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new changelogsModule.v3.ChangelogsClient(); + assert(client); }); - client.initialize(); - assert(client.changelogsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new changelogsModule.v3.ChangelogsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new changelogsModule.v3.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new changelogsModule.v3.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.changelogsStub, undefined); + await client.initialize(); + assert(client.changelogsStub); }); - assert.strictEqual(client.changelogsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new changelogsModule.v3.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.changelogsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new changelogsModule.v3.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new changelogsModule.v3.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.changelogsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new changelogsModule.v3.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new changelogsModule.v3.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new changelogsModule.v3.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getChangelog', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3beta1.ts index f1aaaaf6ace..e778becf181 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_changelogs_v3beta1.ts @@ -25,12 +25,7 @@ import * as changelogsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3beta1.ChangelogsClient', () => { - it('has servicePath', () => { - const servicePath = changelogsModule.v3beta1.ChangelogsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = changelogsModule.v3beta1.ChangelogsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = changelogsModule.v3beta1.ChangelogsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new changelogsModule.v3beta1.ChangelogsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = changelogsModule.v3beta1.ChangelogsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new changelogsModule.v3beta1.ChangelogsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = changelogsModule.v3beta1.ChangelogsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new changelogsModule.v3beta1.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = changelogsModule.v3beta1.ChangelogsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.changelogsStub, undefined); - await client.initialize(); - assert(client.changelogsStub); - }); - it('has close method for the initialized client', done => { - const client = new changelogsModule.v3beta1.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new changelogsModule.v3beta1.ChangelogsClient(); + assert(client); }); - client.initialize(); - assert(client.changelogsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new changelogsModule.v3beta1.ChangelogsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new changelogsModule.v3beta1.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new changelogsModule.v3beta1.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.changelogsStub, undefined); + await client.initialize(); + assert(client.changelogsStub); }); - assert.strictEqual(client.changelogsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new changelogsModule.v3beta1.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.changelogsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new changelogsModule.v3beta1.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new changelogsModule.v3beta1.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.changelogsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new changelogsModule.v3beta1.ChangelogsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new changelogsModule.v3beta1.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new changelogsModule.v3beta1.ChangelogsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getChangelog', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3.ts index 0c645191704..9f27533c912 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3.ts @@ -25,12 +25,7 @@ import * as deploymentsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.DeploymentsClient', () => { - it('has servicePath', () => { - const servicePath = deploymentsModule.v3.DeploymentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = deploymentsModule.v3.DeploymentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = deploymentsModule.v3.DeploymentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new deploymentsModule.v3.DeploymentsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = deploymentsModule.v3.DeploymentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new deploymentsModule.v3.DeploymentsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = deploymentsModule.v3.DeploymentsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new deploymentsModule.v3.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = deploymentsModule.v3.DeploymentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.deploymentsStub, undefined); - await client.initialize(); - assert(client.deploymentsStub); - }); - it('has close method for the initialized client', done => { - const client = new deploymentsModule.v3.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new deploymentsModule.v3.DeploymentsClient(); + assert(client); }); - client.initialize(); - assert(client.deploymentsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new deploymentsModule.v3.DeploymentsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new deploymentsModule.v3.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new deploymentsModule.v3.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.deploymentsStub, undefined); + await client.initialize(); + assert(client.deploymentsStub); }); - assert.strictEqual(client.deploymentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new deploymentsModule.v3.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.deploymentsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new deploymentsModule.v3.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new deploymentsModule.v3.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.deploymentsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new deploymentsModule.v3.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new deploymentsModule.v3.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new deploymentsModule.v3.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getDeployment', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3beta1.ts index 3b517a6fa85..d78fbc3dbc4 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_deployments_v3beta1.ts @@ -25,12 +25,7 @@ import * as deploymentsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,103 @@ function stubAsyncIterationCall( } describe('v3beta1.DeploymentsClient', () => { - it('has servicePath', () => { - const servicePath = deploymentsModule.v3beta1.DeploymentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = deploymentsModule.v3beta1.DeploymentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = deploymentsModule.v3beta1.DeploymentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new deploymentsModule.v3beta1.DeploymentsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + deploymentsModule.v3beta1.DeploymentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new deploymentsModule.v3beta1.DeploymentsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + deploymentsModule.v3beta1.DeploymentsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new deploymentsModule.v3beta1.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = deploymentsModule.v3beta1.DeploymentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.deploymentsStub, undefined); - await client.initialize(); - assert(client.deploymentsStub); - }); - it('has close method for the initialized client', done => { - const client = new deploymentsModule.v3beta1.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new deploymentsModule.v3beta1.DeploymentsClient(); + assert(client); }); - client.initialize(); - assert(client.deploymentsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new deploymentsModule.v3beta1.DeploymentsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new deploymentsModule.v3beta1.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new deploymentsModule.v3beta1.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.deploymentsStub, undefined); + await client.initialize(); + assert(client.deploymentsStub); }); - assert.strictEqual(client.deploymentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new deploymentsModule.v3beta1.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.deploymentsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new deploymentsModule.v3beta1.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new deploymentsModule.v3beta1.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.deploymentsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new deploymentsModule.v3beta1.DeploymentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new deploymentsModule.v3beta1.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new deploymentsModule.v3beta1.DeploymentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getDeployment', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3.ts index c5b51ce87f8..d956c5c9e06 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3.ts @@ -25,12 +25,7 @@ import * as entitytypesModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.EntityTypesClient', () => { - it('has servicePath', () => { - const servicePath = entitytypesModule.v3.EntityTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = entitytypesModule.v3.EntityTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = entitytypesModule.v3.EntityTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = entitytypesModule.v3.EntityTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new entitytypesModule.v3.EntityTypesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = entitytypesModule.v3.EntityTypesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new entitytypesModule.v3.EntityTypesClient({ - fallback: true, + it('has port', () => { + const port = entitytypesModule.v3.EntityTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new entitytypesModule.v3.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new entitytypesModule.v3.EntityTypesClient(); + assert(client); }); - assert.strictEqual(client.entityTypesStub, undefined); - await client.initialize(); - assert(client.entityTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new entitytypesModule.v3.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new entitytypesModule.v3.EntityTypesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.entityTypesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new entitytypesModule.v3.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.entityTypesStub, undefined); + await client.initialize(); + assert(client.entityTypesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new entitytypesModule.v3.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new entitytypesModule.v3.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.entityTypesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.entityTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new entitytypesModule.v3.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.entityTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new entitytypesModule.v3.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new entitytypesModule.v3.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new entitytypesModule.v3.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new entitytypesModule.v3.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getEntityType', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3beta1.ts index ffe8bbfda35..b3a233539f3 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_entity_types_v3beta1.ts @@ -25,12 +25,7 @@ import * as entitytypesModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,103 @@ function stubAsyncIterationCall( } describe('v3beta1.EntityTypesClient', () => { - it('has servicePath', () => { - const servicePath = entitytypesModule.v3beta1.EntityTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = entitytypesModule.v3beta1.EntityTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = entitytypesModule.v3beta1.EntityTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + entitytypesModule.v3beta1.EntityTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + entitytypesModule.v3beta1.EntityTypesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ - fallback: true, + it('has port', () => { + const port = entitytypesModule.v3beta1.EntityTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new entitytypesModule.v3beta1.EntityTypesClient(); + assert(client); }); - assert.strictEqual(client.entityTypesStub, undefined); - await client.initialize(); - assert(client.entityTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new entitytypesModule.v3beta1.EntityTypesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.entityTypesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new entitytypesModule.v3beta1.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.entityTypesStub, undefined); + await client.initialize(); + assert(client.entityTypesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new entitytypesModule.v3beta1.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new entitytypesModule.v3beta1.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.entityTypesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.entityTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new entitytypesModule.v3beta1.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.entityTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new entitytypesModule.v3beta1.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new entitytypesModule.v3beta1.EntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new entitytypesModule.v3beta1.EntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getEntityType', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3.ts index 19e17a9903c..abba1a49d2e 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3.EnvironmentsClient', () => { - it('has servicePath', () => { - const servicePath = environmentsModule.v3.EnvironmentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = environmentsModule.v3.EnvironmentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = environmentsModule.v3.EnvironmentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new environmentsModule.v3.EnvironmentsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = environmentsModule.v3.EnvironmentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new environmentsModule.v3.EnvironmentsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = environmentsModule.v3.EnvironmentsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new environmentsModule.v3.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = environmentsModule.v3.EnvironmentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.environmentsStub, undefined); - await client.initialize(); - assert(client.environmentsStub); - }); - it('has close method for the initialized client', done => { - const client = new environmentsModule.v3.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new environmentsModule.v3.EnvironmentsClient(); + assert(client); }); - client.initialize(); - assert(client.environmentsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new environmentsModule.v3.EnvironmentsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new environmentsModule.v3.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new environmentsModule.v3.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.environmentsStub, undefined); + await client.initialize(); + assert(client.environmentsStub); }); - assert.strictEqual(client.environmentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new environmentsModule.v3.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.environmentsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new environmentsModule.v3.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new environmentsModule.v3.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.environmentsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new environmentsModule.v3.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new environmentsModule.v3.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new environmentsModule.v3.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getEnvironment', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3beta1.ts index d3c6125ea9d..41026385814 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_environments_v3beta1.ts @@ -150,101 +150,103 @@ function stubAsyncIterationCall( } describe('v3beta1.EnvironmentsClient', () => { - it('has servicePath', () => { - const servicePath = - environmentsModule.v3beta1.EnvironmentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - environmentsModule.v3beta1.EnvironmentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = environmentsModule.v3beta1.EnvironmentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + environmentsModule.v3beta1.EnvironmentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + environmentsModule.v3beta1.EnvironmentsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = environmentsModule.v3beta1.EnvironmentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.environmentsStub, undefined); - await client.initialize(); - assert(client.environmentsStub); - }); - it('has close method for the initialized client', done => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new environmentsModule.v3beta1.EnvironmentsClient(); + assert(client); }); - client.initialize(); - assert(client.environmentsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new environmentsModule.v3beta1.EnvironmentsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new environmentsModule.v3beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new environmentsModule.v3beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.environmentsStub, undefined); + await client.initialize(); + assert(client.environmentsStub); }); - assert.strictEqual(client.environmentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new environmentsModule.v3beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.environmentsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new environmentsModule.v3beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.environmentsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new environmentsModule.v3beta1.EnvironmentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new environmentsModule.v3beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new environmentsModule.v3beta1.EnvironmentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getEnvironment', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3.ts index b86b539301d..ec7a436a11e 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3.ts @@ -25,12 +25,7 @@ import * as experimentsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.ExperimentsClient', () => { - it('has servicePath', () => { - const servicePath = experimentsModule.v3.ExperimentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = experimentsModule.v3.ExperimentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = experimentsModule.v3.ExperimentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = experimentsModule.v3.ExperimentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new experimentsModule.v3.ExperimentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = experimentsModule.v3.ExperimentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new experimentsModule.v3.ExperimentsClient({ - fallback: true, + it('has port', () => { + const port = experimentsModule.v3.ExperimentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new experimentsModule.v3.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new experimentsModule.v3.ExperimentsClient(); + assert(client); }); - assert.strictEqual(client.experimentsStub, undefined); - await client.initialize(); - assert(client.experimentsStub); - }); - it('has close method for the initialized client', done => { - const client = new experimentsModule.v3.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new experimentsModule.v3.ExperimentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.experimentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new experimentsModule.v3.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.experimentsStub, undefined); + await client.initialize(); + assert(client.experimentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new experimentsModule.v3.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new experimentsModule.v3.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.experimentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.experimentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new experimentsModule.v3.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.experimentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new experimentsModule.v3.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new experimentsModule.v3.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new experimentsModule.v3.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new experimentsModule.v3.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getExperiment', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3beta1.ts index 451db82730e..4830f7fb2cc 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_experiments_v3beta1.ts @@ -25,12 +25,7 @@ import * as experimentsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,103 @@ function stubAsyncIterationCall( } describe('v3beta1.ExperimentsClient', () => { - it('has servicePath', () => { - const servicePath = experimentsModule.v3beta1.ExperimentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = experimentsModule.v3beta1.ExperimentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = experimentsModule.v3beta1.ExperimentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + experimentsModule.v3beta1.ExperimentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new experimentsModule.v3beta1.ExperimentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + experimentsModule.v3beta1.ExperimentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new experimentsModule.v3beta1.ExperimentsClient({ - fallback: true, + it('has port', () => { + const port = experimentsModule.v3beta1.ExperimentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new experimentsModule.v3beta1.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new experimentsModule.v3beta1.ExperimentsClient(); + assert(client); }); - assert.strictEqual(client.experimentsStub, undefined); - await client.initialize(); - assert(client.experimentsStub); - }); - it('has close method for the initialized client', done => { - const client = new experimentsModule.v3beta1.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new experimentsModule.v3beta1.ExperimentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.experimentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new experimentsModule.v3beta1.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.experimentsStub, undefined); + await client.initialize(); + assert(client.experimentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new experimentsModule.v3beta1.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new experimentsModule.v3beta1.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.experimentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.experimentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new experimentsModule.v3beta1.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.experimentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new experimentsModule.v3beta1.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new experimentsModule.v3beta1.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new experimentsModule.v3beta1.ExperimentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new experimentsModule.v3beta1.ExperimentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getExperiment', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3.ts index 91469af6add..77e05c93413 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3.FlowsClient', () => { - it('has servicePath', () => { - const servicePath = flowsModule.v3.FlowsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = flowsModule.v3.FlowsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = flowsModule.v3.FlowsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new flowsModule.v3.FlowsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = flowsModule.v3.FlowsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new flowsModule.v3.FlowsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = flowsModule.v3.FlowsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new flowsModule.v3.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = flowsModule.v3.FlowsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.flowsStub, undefined); - await client.initialize(); - assert(client.flowsStub); - }); - it('has close method for the initialized client', done => { - const client = new flowsModule.v3.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new flowsModule.v3.FlowsClient(); + assert(client); }); - client.initialize(); - assert(client.flowsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new flowsModule.v3.FlowsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new flowsModule.v3.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new flowsModule.v3.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.flowsStub, undefined); + await client.initialize(); + assert(client.flowsStub); }); - assert.strictEqual(client.flowsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new flowsModule.v3.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.flowsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new flowsModule.v3.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new flowsModule.v3.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.flowsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new flowsModule.v3.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new flowsModule.v3.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new flowsModule.v3.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createFlow', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3beta1.ts index b1593b32398..66966621f3f 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_flows_v3beta1.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3beta1.FlowsClient', () => { - it('has servicePath', () => { - const servicePath = flowsModule.v3beta1.FlowsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = flowsModule.v3beta1.FlowsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = flowsModule.v3beta1.FlowsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new flowsModule.v3beta1.FlowsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = flowsModule.v3beta1.FlowsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new flowsModule.v3beta1.FlowsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = flowsModule.v3beta1.FlowsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new flowsModule.v3beta1.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = flowsModule.v3beta1.FlowsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.flowsStub, undefined); - await client.initialize(); - assert(client.flowsStub); - }); - it('has close method for the initialized client', done => { - const client = new flowsModule.v3beta1.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new flowsModule.v3beta1.FlowsClient(); + assert(client); }); - client.initialize(); - assert(client.flowsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new flowsModule.v3beta1.FlowsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new flowsModule.v3beta1.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new flowsModule.v3beta1.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.flowsStub, undefined); + await client.initialize(); + assert(client.flowsStub); }); - assert.strictEqual(client.flowsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new flowsModule.v3beta1.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.flowsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new flowsModule.v3beta1.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new flowsModule.v3beta1.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.flowsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new flowsModule.v3beta1.FlowsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new flowsModule.v3beta1.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new flowsModule.v3beta1.FlowsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createFlow', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts index 932e4fb5757..8a5f1bd5f0a 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3.ts @@ -25,12 +25,7 @@ import * as intentsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.IntentsClient', () => { - it('has servicePath', () => { - const servicePath = intentsModule.v3.IntentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = intentsModule.v3.IntentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = intentsModule.v3.IntentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = intentsModule.v3.IntentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new intentsModule.v3.IntentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = intentsModule.v3.IntentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new intentsModule.v3.IntentsClient({ - fallback: true, + it('has port', () => { + const port = intentsModule.v3.IntentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new intentsModule.v3.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new intentsModule.v3.IntentsClient(); + assert(client); }); - assert.strictEqual(client.intentsStub, undefined); - await client.initialize(); - assert(client.intentsStub); - }); - it('has close method for the initialized client', done => { - const client = new intentsModule.v3.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new intentsModule.v3.IntentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.intentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.intentsStub, undefined); + await client.initialize(); + assert(client.intentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new intentsModule.v3.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.intentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.intentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.intentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new intentsModule.v3.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new intentsModule.v3.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new intentsModule.v3.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getIntent', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts index b62875d8a4b..4e5600e8d08 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_intents_v3beta1.ts @@ -25,12 +25,7 @@ import * as intentsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3beta1.IntentsClient', () => { - it('has servicePath', () => { - const servicePath = intentsModule.v3beta1.IntentsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = intentsModule.v3beta1.IntentsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = intentsModule.v3beta1.IntentsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = intentsModule.v3beta1.IntentsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new intentsModule.v3beta1.IntentsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = intentsModule.v3beta1.IntentsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new intentsModule.v3beta1.IntentsClient({ - fallback: true, + it('has port', () => { + const port = intentsModule.v3beta1.IntentsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new intentsModule.v3beta1.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new intentsModule.v3beta1.IntentsClient(); + assert(client); }); - assert.strictEqual(client.intentsStub, undefined); - await client.initialize(); - assert(client.intentsStub); - }); - it('has close method for the initialized client', done => { - const client = new intentsModule.v3beta1.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new intentsModule.v3beta1.IntentsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.intentsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.intentsStub, undefined); + await client.initialize(); + assert(client.intentsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new intentsModule.v3beta1.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.intentsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.intentsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.intentsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new intentsModule.v3beta1.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new intentsModule.v3beta1.IntentsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new intentsModule.v3beta1.IntentsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getIntent', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3.ts index 109a5550363..660dd288517 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3.ts @@ -25,12 +25,7 @@ import * as pagesModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.PagesClient', () => { - it('has servicePath', () => { - const servicePath = pagesModule.v3.PagesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = pagesModule.v3.PagesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = pagesModule.v3.PagesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = pagesModule.v3.PagesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new pagesModule.v3.PagesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = pagesModule.v3.PagesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new pagesModule.v3.PagesClient({ - fallback: true, + it('has port', () => { + const port = pagesModule.v3.PagesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new pagesModule.v3.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new pagesModule.v3.PagesClient(); + assert(client); }); - assert.strictEqual(client.pagesStub, undefined); - await client.initialize(); - assert(client.pagesStub); - }); - it('has close method for the initialized client', done => { - const client = new pagesModule.v3.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new pagesModule.v3.PagesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.pagesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new pagesModule.v3.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pagesStub, undefined); + await client.initialize(); + assert(client.pagesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new pagesModule.v3.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new pagesModule.v3.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.pagesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.pagesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new pagesModule.v3.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pagesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pagesModule.v3.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pagesModule.v3.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pagesModule.v3.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pagesModule.v3.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getPage', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3beta1.ts index 72dfbe025fc..bd90b33d865 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_pages_v3beta1.ts @@ -25,12 +25,7 @@ import * as pagesModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3beta1.PagesClient', () => { - it('has servicePath', () => { - const servicePath = pagesModule.v3beta1.PagesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = pagesModule.v3beta1.PagesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = pagesModule.v3beta1.PagesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = pagesModule.v3beta1.PagesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new pagesModule.v3beta1.PagesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = pagesModule.v3beta1.PagesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new pagesModule.v3beta1.PagesClient({ - fallback: true, + it('has port', () => { + const port = pagesModule.v3beta1.PagesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new pagesModule.v3beta1.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new pagesModule.v3beta1.PagesClient(); + assert(client); }); - assert.strictEqual(client.pagesStub, undefined); - await client.initialize(); - assert(client.pagesStub); - }); - it('has close method for the initialized client', done => { - const client = new pagesModule.v3beta1.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new pagesModule.v3beta1.PagesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.pagesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new pagesModule.v3beta1.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pagesStub, undefined); + await client.initialize(); + assert(client.pagesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new pagesModule.v3beta1.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new pagesModule.v3beta1.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.pagesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.pagesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new pagesModule.v3beta1.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pagesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pagesModule.v3beta1.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pagesModule.v3beta1.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pagesModule.v3beta1.PagesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pagesModule.v3beta1.PagesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getPage', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3.ts index 05779fbbf77..4fb89370777 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3.ts @@ -25,12 +25,7 @@ import * as securitysettingsserviceModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,111 +113,113 @@ function stubAsyncIterationCall( } describe('v3.SecuritySettingsServiceClient', () => { - it('has servicePath', () => { - const servicePath = - securitysettingsserviceModule.v3.SecuritySettingsServiceClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + securitysettingsserviceModule.v3.SecuritySettingsServiceClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - securitysettingsserviceModule.v3.SecuritySettingsServiceClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + securitysettingsserviceModule.v3.SecuritySettingsServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - securitysettingsserviceModule.v3.SecuritySettingsServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + securitysettingsserviceModule.v3.SecuritySettingsServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.securitySettingsServiceStub, undefined); - await client.initialize(); - assert(client.securitySettingsServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.securitySettingsServiceStub, undefined); + await client.initialize(); + assert(client.securitySettingsServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.securitySettingsServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.securitySettingsServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.securitySettingsServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.securitySettingsServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new securitysettingsserviceModule.v3.SecuritySettingsServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createSecuritySettings', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3beta1.ts index 14c92c6b576..7548cca07dd 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_security_settings_service_v3beta1.ts @@ -25,12 +25,7 @@ import * as securitysettingsserviceModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,111 +113,126 @@ function stubAsyncIterationCall( } describe('v3beta1.SecuritySettingsServiceClient', () => { - it('has servicePath', () => { - const servicePath = - securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient + .port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.securitySettingsServiceStub, undefined); - await client.initialize(); - assert(client.securitySettingsServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.securitySettingsServiceStub, undefined); + await client.initialize(); + assert(client.securitySettingsServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.securitySettingsServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.securitySettingsServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.securitySettingsServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.securitySettingsServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new securitysettingsserviceModule.v3beta1.SecuritySettingsServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createSecuritySettings', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3.ts index 270596df194..a4aa9b68a5a 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3.ts @@ -25,12 +25,7 @@ import * as sessionentitytypesModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,101 +113,103 @@ function stubAsyncIterationCall( } describe('v3.SessionEntityTypesClient', () => { - it('has servicePath', () => { - const servicePath = - sessionentitytypesModule.v3.SessionEntityTypesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - sessionentitytypesModule.v3.SessionEntityTypesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = sessionentitytypesModule.v3.SessionEntityTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + sessionentitytypesModule.v3.SessionEntityTypesClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + sessionentitytypesModule.v3.SessionEntityTypesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ - fallback: true, + it('has port', () => { + const port = sessionentitytypesModule.v3.SessionEntityTypesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient(); + assert(client); }); - assert.strictEqual(client.sessionEntityTypesStub, undefined); - await client.initialize(); - assert(client.sessionEntityTypesStub); - }); - it('has close method for the initialized client', done => { - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.sessionEntityTypesStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionEntityTypesStub, undefined); + await client.initialize(); + assert(client.sessionEntityTypesStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.sessionEntityTypesStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.sessionEntityTypesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionEntityTypesStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sessionentitytypesModule.v3.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getSessionEntityType', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3beta1.ts index f4ec221dcb1..e3da2eb95ad 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_session_entity_types_v3beta1.ts @@ -25,12 +25,7 @@ import * as sessionentitytypesModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,108 +113,111 @@ function stubAsyncIterationCall( } describe('v3beta1.SessionEntityTypesClient', () => { - it('has servicePath', () => { - const servicePath = - sessionentitytypesModule.v3beta1.SessionEntityTypesClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + sessionentitytypesModule.v3beta1.SessionEntityTypesClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - sessionentitytypesModule.v3beta1.SessionEntityTypesClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + sessionentitytypesModule.v3beta1.SessionEntityTypesClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = sessionentitytypesModule.v3beta1.SessionEntityTypesClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + sessionentitytypesModule.v3beta1.SessionEntityTypesClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.sessionEntityTypesStub, undefined); - await client.initialize(); - assert(client.sessionEntityTypesStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionEntityTypesStub, undefined); + await client.initialize(); + assert(client.sessionEntityTypesStub); + }); - it('has close method for the initialized client', done => { - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.sessionEntityTypesStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.sessionEntityTypesStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionEntityTypesStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.sessionEntityTypesStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new sessionentitytypesModule.v3beta1.SessionEntityTypesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getSessionEntityType', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3.ts index d7994779a88..0c57a3cd9b1 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3.ts @@ -25,12 +25,7 @@ import * as sessionsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -94,99 +89,101 @@ function stubAsyncIterationCall( } describe('v3.SessionsClient', () => { - it('has servicePath', () => { - const servicePath = sessionsModule.v3.SessionsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = sessionsModule.v3.SessionsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = sessionsModule.v3.SessionsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new sessionsModule.v3.SessionsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = sessionsModule.v3.SessionsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new sessionsModule.v3.SessionsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = sessionsModule.v3.SessionsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new sessionsModule.v3.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = sessionsModule.v3.SessionsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.sessionsStub, undefined); - await client.initialize(); - assert(client.sessionsStub); - }); - it('has close method for the initialized client', done => { - const client = new sessionsModule.v3.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new sessionsModule.v3.SessionsClient(); + assert(client); }); - client.initialize(); - assert(client.sessionsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new sessionsModule.v3.SessionsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new sessionsModule.v3.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new sessionsModule.v3.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionsStub, undefined); + await client.initialize(); + assert(client.sessionsStub); }); - assert.strictEqual(client.sessionsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new sessionsModule.v3.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.sessionsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sessionsModule.v3.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new sessionsModule.v3.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sessionsModule.v3.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sessionsModule.v3.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sessionsModule.v3.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('detectIntent', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3beta1.ts index e3b6a63f8ca..71f683bf3e6 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_sessions_v3beta1.ts @@ -25,12 +25,7 @@ import * as sessionsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -94,99 +89,101 @@ function stubAsyncIterationCall( } describe('v3beta1.SessionsClient', () => { - it('has servicePath', () => { - const servicePath = sessionsModule.v3beta1.SessionsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = sessionsModule.v3beta1.SessionsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = sessionsModule.v3beta1.SessionsClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new sessionsModule.v3beta1.SessionsClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = sessionsModule.v3beta1.SessionsClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new sessionsModule.v3beta1.SessionsClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = sessionsModule.v3beta1.SessionsClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new sessionsModule.v3beta1.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = sessionsModule.v3beta1.SessionsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.sessionsStub, undefined); - await client.initialize(); - assert(client.sessionsStub); - }); - it('has close method for the initialized client', done => { - const client = new sessionsModule.v3beta1.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new sessionsModule.v3beta1.SessionsClient(); + assert(client); }); - client.initialize(); - assert(client.sessionsStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new sessionsModule.v3beta1.SessionsClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new sessionsModule.v3beta1.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new sessionsModule.v3beta1.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionsStub, undefined); + await client.initialize(); + assert(client.sessionsStub); }); - assert.strictEqual(client.sessionsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new sessionsModule.v3beta1.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.sessionsStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sessionsModule.v3beta1.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new sessionsModule.v3beta1.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.sessionsStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new sessionsModule.v3beta1.SessionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sessionsModule.v3beta1.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new sessionsModule.v3beta1.SessionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('detectIntent', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3.ts index 484a2bbea1b..48c3d1ece16 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3.TestCasesClient', () => { - it('has servicePath', () => { - const servicePath = testcasesModule.v3.TestCasesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = testcasesModule.v3.TestCasesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = testcasesModule.v3.TestCasesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new testcasesModule.v3.TestCasesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = testcasesModule.v3.TestCasesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new testcasesModule.v3.TestCasesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = testcasesModule.v3.TestCasesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new testcasesModule.v3.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = testcasesModule.v3.TestCasesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.testCasesStub, undefined); - await client.initialize(); - assert(client.testCasesStub); - }); - it('has close method for the initialized client', done => { - const client = new testcasesModule.v3.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new testcasesModule.v3.TestCasesClient(); + assert(client); }); - client.initialize(); - assert(client.testCasesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new testcasesModule.v3.TestCasesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new testcasesModule.v3.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new testcasesModule.v3.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.testCasesStub, undefined); + await client.initialize(); + assert(client.testCasesStub); }); - assert.strictEqual(client.testCasesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new testcasesModule.v3.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.testCasesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new testcasesModule.v3.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new testcasesModule.v3.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.testCasesStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new testcasesModule.v3.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new testcasesModule.v3.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new testcasesModule.v3.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('batchDeleteTestCases', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3beta1.ts index 91b567d5ced..bfe12d5b02e 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_test_cases_v3beta1.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3beta1.TestCasesClient', () => { - it('has servicePath', () => { - const servicePath = testcasesModule.v3beta1.TestCasesClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = testcasesModule.v3beta1.TestCasesClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = testcasesModule.v3beta1.TestCasesClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new testcasesModule.v3beta1.TestCasesClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = testcasesModule.v3beta1.TestCasesClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new testcasesModule.v3beta1.TestCasesClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = testcasesModule.v3beta1.TestCasesClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new testcasesModule.v3beta1.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = testcasesModule.v3beta1.TestCasesClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.testCasesStub, undefined); - await client.initialize(); - assert(client.testCasesStub); - }); - it('has close method for the initialized client', done => { - const client = new testcasesModule.v3beta1.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new testcasesModule.v3beta1.TestCasesClient(); + assert(client); }); - client.initialize(); - assert(client.testCasesStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new testcasesModule.v3beta1.TestCasesClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new testcasesModule.v3beta1.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new testcasesModule.v3beta1.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.testCasesStub, undefined); + await client.initialize(); + assert(client.testCasesStub); }); - assert.strictEqual(client.testCasesStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new testcasesModule.v3beta1.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.testCasesStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new testcasesModule.v3beta1.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new testcasesModule.v3beta1.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.testCasesStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new testcasesModule.v3beta1.TestCasesClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new testcasesModule.v3beta1.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new testcasesModule.v3beta1.TestCasesClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('batchDeleteTestCases', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3.ts index da8c3b11fe2..ede899cd2d3 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3.ts @@ -25,12 +25,7 @@ import * as transitionroutegroupsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,109 +113,111 @@ function stubAsyncIterationCall( } describe('v3.TransitionRouteGroupsClient', () => { - it('has servicePath', () => { - const servicePath = - transitionroutegroupsModule.v3.TransitionRouteGroupsClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + transitionroutegroupsModule.v3.TransitionRouteGroupsClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - transitionroutegroupsModule.v3.TransitionRouteGroupsClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + transitionroutegroupsModule.v3.TransitionRouteGroupsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - transitionroutegroupsModule.v3.TransitionRouteGroupsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + transitionroutegroupsModule.v3.TransitionRouteGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.transitionRouteGroupsStub, undefined); - await client.initialize(); - assert(client.transitionRouteGroupsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.transitionRouteGroupsStub, undefined); + await client.initialize(); + assert(client.transitionRouteGroupsStub); + }); - it('has close method for the initialized client', done => { - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.transitionRouteGroupsStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.transitionRouteGroupsStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.transitionRouteGroupsStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.transitionRouteGroupsStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new transitionroutegroupsModule.v3.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getTransitionRouteGroup', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3beta1.ts index 035694d2559..e1c5a81f1c2 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_transition_route_groups_v3beta1.ts @@ -25,12 +25,7 @@ import * as transitionroutegroupsModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,111 +113,113 @@ function stubAsyncIterationCall( } describe('v3beta1.TransitionRouteGroupsClient', () => { - it('has servicePath', () => { - const servicePath = - transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.transitionRouteGroupsStub, undefined); - await client.initialize(); - assert(client.transitionRouteGroupsStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.transitionRouteGroupsStub, undefined); + await client.initialize(); + assert(client.transitionRouteGroupsStub); + }); - it('has close method for the initialized client', done => { - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.transitionRouteGroupsStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.transitionRouteGroupsStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.transitionRouteGroupsStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.transitionRouteGroupsStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new transitionroutegroupsModule.v3beta1.TransitionRouteGroupsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getTransitionRouteGroup', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3.ts index f9db8034499..babf1600377 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3.VersionsClient', () => { - it('has servicePath', () => { - const servicePath = versionsModule.v3.VersionsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = versionsModule.v3.VersionsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = versionsModule.v3.VersionsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = versionsModule.v3.VersionsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new versionsModule.v3.VersionsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = versionsModule.v3.VersionsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new versionsModule.v3.VersionsClient({ - fallback: true, + it('has port', () => { + const port = versionsModule.v3.VersionsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new versionsModule.v3.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new versionsModule.v3.VersionsClient(); + assert(client); }); - assert.strictEqual(client.versionsStub, undefined); - await client.initialize(); - assert(client.versionsStub); - }); - it('has close method for the initialized client', done => { - const client = new versionsModule.v3.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new versionsModule.v3.VersionsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.versionsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new versionsModule.v3.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.versionsStub, undefined); + await client.initialize(); + assert(client.versionsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new versionsModule.v3.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new versionsModule.v3.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.versionsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.versionsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new versionsModule.v3.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.versionsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new versionsModule.v3.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new versionsModule.v3.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new versionsModule.v3.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new versionsModule.v3.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getVersion', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3beta1.ts index 44e08fd082e..bf158d22a1b 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_versions_v3beta1.ts @@ -150,99 +150,101 @@ function stubAsyncIterationCall( } describe('v3beta1.VersionsClient', () => { - it('has servicePath', () => { - const servicePath = versionsModule.v3beta1.VersionsClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = versionsModule.v3beta1.VersionsClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = versionsModule.v3beta1.VersionsClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = versionsModule.v3beta1.VersionsClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new versionsModule.v3beta1.VersionsClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = versionsModule.v3beta1.VersionsClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new versionsModule.v3beta1.VersionsClient({ - fallback: true, + it('has port', () => { + const port = versionsModule.v3beta1.VersionsClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new versionsModule.v3beta1.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new versionsModule.v3beta1.VersionsClient(); + assert(client); }); - assert.strictEqual(client.versionsStub, undefined); - await client.initialize(); - assert(client.versionsStub); - }); - it('has close method for the initialized client', done => { - const client = new versionsModule.v3beta1.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new versionsModule.v3beta1.VersionsClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.versionsStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new versionsModule.v3beta1.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.versionsStub, undefined); + await client.initialize(); + assert(client.versionsStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new versionsModule.v3beta1.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new versionsModule.v3beta1.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.versionsStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.versionsStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new versionsModule.v3beta1.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.versionsStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new versionsModule.v3beta1.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new versionsModule.v3beta1.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new versionsModule.v3beta1.VersionsClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new versionsModule.v3beta1.VersionsClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getVersion', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3.ts b/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3.ts index 60a183f0860..bfd99703ac7 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3.ts @@ -25,12 +25,7 @@ import * as webhooksModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3.WebhooksClient', () => { - it('has servicePath', () => { - const servicePath = webhooksModule.v3.WebhooksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = webhooksModule.v3.WebhooksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = webhooksModule.v3.WebhooksClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = webhooksModule.v3.WebhooksClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new webhooksModule.v3.WebhooksClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = webhooksModule.v3.WebhooksClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new webhooksModule.v3.WebhooksClient({ - fallback: true, + it('has port', () => { + const port = webhooksModule.v3.WebhooksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new webhooksModule.v3.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new webhooksModule.v3.WebhooksClient(); + assert(client); }); - assert.strictEqual(client.webhooksStub, undefined); - await client.initialize(); - assert(client.webhooksStub); - }); - it('has close method for the initialized client', done => { - const client = new webhooksModule.v3.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new webhooksModule.v3.WebhooksClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.webhooksStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new webhooksModule.v3.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.webhooksStub, undefined); + await client.initialize(); + assert(client.webhooksStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new webhooksModule.v3.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new webhooksModule.v3.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.webhooksStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.webhooksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new webhooksModule.v3.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.webhooksStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new webhooksModule.v3.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new webhooksModule.v3.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new webhooksModule.v3.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new webhooksModule.v3.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getWebhook', () => { diff --git a/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3beta1.ts b/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3beta1.ts index abb21157c1f..e9d1f7a17ba 100644 --- a/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3beta1.ts +++ b/packages/google-cloud-dialogflow-cx/test/gapic_webhooks_v3beta1.ts @@ -25,12 +25,7 @@ import * as webhooksModule from '../src'; import {PassThrough} from 'stream'; -import { - protobuf, - LROperation, - operationsProtos, - LocationProtos, -} from 'google-gax'; +import {protobuf, operationsProtos, LocationProtos} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -118,99 +113,101 @@ function stubAsyncIterationCall( } describe('v3beta1.WebhooksClient', () => { - it('has servicePath', () => { - const servicePath = webhooksModule.v3beta1.WebhooksClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = webhooksModule.v3beta1.WebhooksClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = webhooksModule.v3beta1.WebhooksClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = webhooksModule.v3beta1.WebhooksClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new webhooksModule.v3beta1.WebhooksClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = webhooksModule.v3beta1.WebhooksClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ - fallback: true, + it('has port', () => { + const port = webhooksModule.v3beta1.WebhooksClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new webhooksModule.v3beta1.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new webhooksModule.v3beta1.WebhooksClient(); + assert(client); }); - assert.strictEqual(client.webhooksStub, undefined); - await client.initialize(); - assert(client.webhooksStub); - }); - it('has close method for the initialized client', done => { - const client = new webhooksModule.v3beta1.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new webhooksModule.v3beta1.WebhooksClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.webhooksStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new webhooksModule.v3beta1.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.webhooksStub, undefined); + await client.initialize(); + assert(client.webhooksStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new webhooksModule.v3beta1.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new webhooksModule.v3beta1.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.webhooksStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.webhooksStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new webhooksModule.v3beta1.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.webhooksStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new webhooksModule.v3beta1.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new webhooksModule.v3beta1.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new webhooksModule.v3beta1.WebhooksClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new webhooksModule.v3beta1.WebhooksClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getWebhook', () => {