Skip to content

Commit

Permalink
feat: expose Locations service to get/list avaliable locations of D…
Browse files Browse the repository at this point in the history
…ialogflow products; fixed some API annotations

PiperOrigin-RevId: 389905442
  • Loading branch information
Google APIs authored and Copybara-Service committed Aug 10, 2021
1 parent 7b6a2ce commit 4c984f3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
24 changes: 24 additions & 0 deletions google/cloud/dialogflow/v2/dialogflow_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ documentation:
For more information, see the
[Dialogflow documentation](https://cloud.google.com/dialogflow/docs).
rules:
- selector: google.cloud.location.Locations.GetLocation
description: Gets information about a location.

- selector: google.cloud.location.Locations.ListLocations
description: Lists information about the supported locations for this service.

backend:
rules:
Expand Down Expand Up @@ -91,11 +97,19 @@ backend:
deadline: 220.0
- selector: 'google.cloud.dialogflow.v2.Versions.*'
deadline: 60.0
- selector: google.cloud.location.Locations.GetLocation
deadline: 60.0
- selector: google.cloud.location.Locations.ListLocations
deadline: 60.0
- selector: 'google.longrunning.Operations.*'
deadline: 60.0

http:
rules:
- selector: google.cloud.location.Locations.GetLocation
get: '/v2/{name=projects/*/locations/*}'
- selector: google.cloud.location.Locations.ListLocations
get: '/v2/{name=projects/*}/locations'
- selector: google.longrunning.Operations.CancelOperation
post: '/v2/{name=projects/*/operations/*}:cancel'
additional_bindings:
Expand Down Expand Up @@ -201,6 +215,16 @@ authentication:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/dialogflow
- selector: google.cloud.location.Locations.GetLocation
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/dialogflow
- selector: google.cloud.location.Locations.ListLocations
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/dialogflow
- selector: 'google.longrunning.Operations.*'
oauth:
canonical_scopes: |-
Expand Down
7 changes: 4 additions & 3 deletions google/cloud/dialogflow/v2/intent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -873,12 +873,13 @@ message Intent {
// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
repeated Message.Platform default_response_platforms = 15 [(google.api.field_behavior) = OPTIONAL];

// Output only.
// Read-only. The unique identifier of the root intent in the chain of
// followup intents. It identifies the correct followup intents chain for
// this intent. We populate this field only in the output.
//
// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string root_followup_intent_name = 16;
string root_followup_intent_name = 16 [(google.api.field_behavior) = OUTPUT_ONLY];

// Read-only after creation. The unique identifier of the parent intent in the
// chain of followup intents. You can set this field when creating an intent,
Expand All @@ -890,9 +891,9 @@ message Intent {
// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
string parent_followup_intent_name = 17;

// Read-only. Information about all followup intents that have this intent as
// Output only. Read-only. Information about all followup intents that have this intent as
// a direct or indirect parent. We populate this field only in the output.
repeated FollowupIntentInfo followup_intent_info = 18;
repeated FollowupIntentInfo followup_intent_info = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// The request message for [Intents.ListIntents][google.cloud.dialogflow.v2.Intents.ListIntents].
Expand Down

0 comments on commit 4c984f3

Please sign in to comment.