Skip to content

Commit

Permalink
feat: added location-aware HTTP path binding for ListIntents
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373895026
  • Loading branch information
Google APIs authored and Copybara-Service committed May 15, 2021
1 parent 863f81b commit 0d68bbb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion google/cloud/dialogflow/v2/intent.proto
Expand Up @@ -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";
Expand Down Expand Up @@ -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/<Project ID>/agent`.
// Format: `projects/<Project ID>/agent` or `projects/<Project
// ID>/locations/<Location ID>/agent`.
//
// Alternatively, you can specify the environment to list intents for.
// Format: `projects/<Project ID>/agent/environments/<Environment ID>`
// or `projects/<Project ID>/locations/<Location
// ID>/agent/environments/<Environment ID>`.
// 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) = {
Expand Down

0 comments on commit 0d68bbb

Please sign in to comment.