From 6ae1443d1eb0c17bcdbeaa1890960cbcd3b70010 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Mon, 12 Oct 2020 13:01:55 -0700 Subject: [PATCH] docs: clarified wording for restore APIs and query input PiperOrigin-RevId: 336725904 --- .../cloud/dialogflow/cx/v3beta1/BUILD.bazel | 72 +++++++++---------- .../cloud/dialogflow/cx/v3beta1/agent.proto | 8 +-- .../dialogflow_grpc_service_config.json | 3 + google/cloud/dialogflow/cx/v3beta1/flow.proto | 1 + .../cloud/dialogflow/cx/v3beta1/session.proto | 7 +- 5 files changed, 49 insertions(+), 42 deletions(-) diff --git a/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel b/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel index 2698303f..89ff6282 100644 --- a/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel +++ b/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel @@ -372,47 +372,45 @@ ruby_gapic_assembly_pkg( ############################################################################## # C# ############################################################################## -# load( -# "@com_google_googleapis_imports//:imports.bzl", -# "csharp_gapic_assembly_pkg", -# "csharp_gapic_library", -# "csharp_grpc_library", -# "csharp_proto_library", -# ) +load( + "@com_google_googleapis_imports//:imports.bzl", + "csharp_gapic_assembly_pkg", + "csharp_gapic_library", + "csharp_grpc_library", + "csharp_proto_library", +) -# csharp_proto_library( -# name = "cx_csharp_proto", -# deps = [":cx_proto"], -# ) +csharp_proto_library( + name = "cx_csharp_proto", + deps = [":cx_proto"], +) -# csharp_grpc_library( -# name = "cx_csharp_grpc", -# srcs = [":cx_proto"], -# deps = [":cx_csharp_proto"], -# ) +csharp_grpc_library( + name = "cx_csharp_grpc", + srcs = [":cx_proto"], + deps = [":cx_csharp_proto"], +) -# csharp_gapic_library( -# name = "cx_csharp_gapic", -# src = ":cx_proto_with_info", -# gapic_yaml = "dialogflow_gapic.yaml", -# grpc_service_config = "dialogflow_grpc_service_config.json", -# package = "google.cloud.dialogflow.cx.v3beta1", -# service_yaml = "dialogflow_v3beta1.yaml", -# deps = [ -# ":cx_csharp_grpc", -# ":cx_csharp_proto", -# ], -# ) +csharp_gapic_library( + name = "cx_csharp_gapic", + srcs = [":cx_proto_with_info"], + common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", + grpc_service_config = "dialogflow_grpc_service_config.json", + deps = [ + ":cx_csharp_grpc", + ":cx_csharp_proto", + ], +) -# # Open Source Packages -# csharp_gapic_assembly_pkg( -# name = "google-cloud-dialogflow-cx-v3beta1-csharp", -# deps = [ -# ":cx_csharp_gapic", -# ":cx_csharp_grpc", -# ":cx_csharp_proto", -# ], -# ) +# Open Source Packages +csharp_gapic_assembly_pkg( + name = "google-cloud-dialogflow-cx-v3beta1-csharp", + deps = [ + ":cx_csharp_gapic", + ":cx_csharp_grpc", + ":cx_csharp_proto", + ], +) ############################################################################## # C++ diff --git a/google/cloud/dialogflow/cx/v3beta1/agent.proto b/google/cloud/dialogflow/cx/v3beta1/agent.proto index e0bf899a..c6ffbca7 100644 --- a/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -82,7 +82,7 @@ service Agents { option (google.api.method_signature) = "name"; } - // Exports the specified agent to a ZIP file. + // Exports the specified agent to a binary file. rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{name=projects/*/locations/*/agents/*}:export" @@ -94,10 +94,10 @@ service Agents { }; } - // Restores the specified agent from a ZIP file. + // Restores the specified agent from a binary file. // - // Note that all existing intents, intent routes, entity types, pages and - // webhooks in the agent will be deleted. + // Replaces the current agent with a new one. Note that all existing resources + // in agent (e.g. intents, entity types, flows) will be removed. rpc RestoreAgent(RestoreAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3beta1/{name=projects/*/locations/*/agents/*}:restore" diff --git a/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json b/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json index 2b574a08..d2828f5b 100644 --- a/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json +++ b/google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json @@ -11,6 +11,9 @@ { "service": "google.cloud.dialogflow.cx.v3beta1.Environments" }, + { + "service": "google.cloud.dialogflow.cx.v3beta1.Experiments" + }, { "service": "google.cloud.dialogflow.cx.v3beta1.Flows" }, diff --git a/google/cloud/dialogflow/cx/v3beta1/flow.proto b/google/cloud/dialogflow/cx/v3beta1/flow.proto index 313055f4..fefd0abe 100644 --- a/google/cloud/dialogflow/cx/v3beta1/flow.proto +++ b/google/cloud/dialogflow/cx/v3beta1/flow.proto @@ -24,6 +24,7 @@ import "google/cloud/dialogflow/cx/v3beta1/page.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; diff --git a/google/cloud/dialogflow/cx/v3beta1/session.proto b/google/cloud/dialogflow/cx/v3beta1/session.proto index e3de731c..27fdeb15 100644 --- a/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -376,11 +376,16 @@ message QueryParameters { bool analyze_query_text_sentiment = 8; } -// Represents the query input. It can contain either: +// Represents the query input. It can contain one of: // // 1. A conversational query in the form of text. // // 2. An intent query that specifies which intent to trigger. +// +// 3. Natural language speech audio to be processed. +// +// 4. An event to be triggered. +// message QueryInput { // Required. The input specification. oneof input {