Skip to content

Commit

Permalink
feat: added webhook_config
Browse files Browse the repository at this point in the history
The webhook_config field was added to the Environment resource to support environment-level webhook overrides as a preview feature.

Support for the Google Cloud Locations API has also been added.

PiperOrigin-RevId: 454733966
  • Loading branch information
Google APIs authored and Copybara-Service committed Jun 14, 2022
1 parent 585fa8c commit d5d0f8d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
7 changes: 6 additions & 1 deletion google/cloud/dialogflow/cx/v3/BUILD.bazel
Expand Up @@ -64,6 +64,7 @@ proto_library_with_info(
deps = [
":cx_proto",
"//google/cloud:common_resources_proto",
"//google/cloud/location:location_proto",
],
)

Expand Down Expand Up @@ -98,10 +99,12 @@ java_gapic_library(
service_yaml = "dialogflow_v3.yaml",
test_deps = [
":cx_java_grpc",
"//google/cloud/location:location_java_grpc",
],
deps = [
":cx_java_proto",
"//google/api:api_java_proto",
"//google/cloud/location:location_java_proto",
],
)

Expand Down Expand Up @@ -131,13 +134,13 @@ java_gapic_test(
# Open Source Packages
java_gapic_assembly_gradle_pkg(
name = "google-cloud-dialogflow-cx-v3-java",
include_samples = True,
deps = [
":cx_java_gapic",
":cx_java_grpc",
":cx_java_proto",
":cx_proto",
],
include_samples = True,
)

##############################################################################
Expand Down Expand Up @@ -173,6 +176,7 @@ go_gapic_library(
service_yaml = "dialogflow_v3.yaml",
deps = [
":cx_go_proto",
"//google/cloud/location:location_go_proto",
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go//longrunning:go_default_library",
"@com_google_cloud_go//longrunning/autogen:go_default_library",
Expand Down Expand Up @@ -334,6 +338,7 @@ ruby_cloud_gapic_library(
grpc_service_config = "dialogflow_grpc_service_config.json",
ruby_cloud_description = "Dialogflow is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. This client is for Dialogflow CX, providing an advanced agent type suitable for large or very complex agents.",
ruby_cloud_title = "Dialogflow CX V3",
service_yaml = "dialogflow_v3.yaml",
deps = [
":cx_ruby_grpc",
":cx_ruby_proto",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dialogflow/cx/v3/agent.proto
Expand Up @@ -249,7 +249,7 @@ message Agent {
// requests.
bool enable_spell_correction = 20;

// Indiciates whether the agent is locked for changes. If the agent is locked,
// Indicates whether the agent is locked for changes. If the agent is locked,
// modifications to the agent will be rejected except for [RestoreAgent][].
bool locked = 27;

Expand Down
2 changes: 2 additions & 0 deletions google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml
Expand Up @@ -20,6 +20,8 @@ apis:
- name: google.cloud.dialogflow.cx.v3.TransitionRouteGroups
- name: google.cloud.dialogflow.cx.v3.Versions
- name: google.cloud.dialogflow.cx.v3.Webhooks
- name: google.cloud.location.Locations
- name: google.longrunning.Operations

types:
- name: google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata
Expand Down
13 changes: 13 additions & 0 deletions google/cloud/dialogflow/cx/v3/environment.proto
Expand Up @@ -21,6 +21,7 @@ import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/dialogflow/cx/v3/test_case.proto";
import "google/cloud/dialogflow/cx/v3/webhook.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
Expand Down Expand Up @@ -207,6 +208,15 @@ message Environment {
bool enable_predeployment_run = 3;
}

// Configuration for webhooks.
message WebhookConfig {
// The list of webhooks to override for the agent environment. The webhook
// must exist in the agent. You can override fields in
// [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
// [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
repeated Webhook webhook_overrides = 1;
}

// The name of the environment.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/environments/<Environment ID>`.
Expand All @@ -231,6 +241,9 @@ message Environment {

// The test cases config for continuous tests of this environment.
TestCasesConfig test_cases_config = 7;

// The webhook configuration for this environment.
WebhookConfig webhook_config = 10;
}

// The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
Expand Down

0 comments on commit d5d0f8d

Please sign in to comment.