From 0d68bbb80a7620b69aff5ab0b497c8a396e73558 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 14 May 2021 17:14:27 -0700 Subject: [PATCH] feat: added location-aware HTTP path binding for ListIntents PiperOrigin-RevId: 373895026 --- google/cloud/dialogflow/v2/intent.proto | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/google/cloud/dialogflow/v2/intent.proto b/google/cloud/dialogflow/v2/intent.proto index fbed819d9a311..1e75f9baaabc7 100644 --- a/google/cloud/dialogflow/v2/intent.proto +++ b/google/cloud/dialogflow/v2/intent.proto @@ -53,6 +53,9 @@ service Intents { additional_bindings { get: "/v2/{parent=projects/*/agent/environments/*}/intents" } + additional_bindings { + get: "/v2/{parent=projects/*/locations/*/agent/environments/*}/intents" + } }; option (google.api.method_signature) = "parent"; option (google.api.method_signature) = "parent,language_code"; @@ -877,7 +880,15 @@ message Intent { // The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents]. message ListIntentsRequest { // Required. The agent to list all intents from. - // Format: `projects//agent`. + // Format: `projects//agent` or `projects//locations//agent`. + // + // Alternatively, you can specify the environment to list intents for. + // Format: `projects//agent/environments/` + // or `projects//locations//agent/environments/`. + // Note: training phrases of the intents will not be returned for non-draft + // environment. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = {