Skip to content

Commit 4c984f3

Browse files
Google APIscopybara-github
authored andcommitted
feat: expose Locations service to get/list avaliable locations of Dialogflow products; fixed some API annotations
PiperOrigin-RevId: 389905442
1 parent 7b6a2ce commit 4c984f3

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

google/cloud/dialogflow/v2/dialogflow_v2.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ documentation:
5050
5151
For more information, see the
5252
[Dialogflow documentation](https://cloud.google.com/dialogflow/docs).
53+
rules:
54+
- selector: google.cloud.location.Locations.GetLocation
55+
description: Gets information about a location.
56+
57+
- selector: google.cloud.location.Locations.ListLocations
58+
description: Lists information about the supported locations for this service.
5359

5460
backend:
5561
rules:
@@ -91,11 +97,19 @@ backend:
9197
deadline: 220.0
9298
- selector: 'google.cloud.dialogflow.v2.Versions.*'
9399
deadline: 60.0
100+
- selector: google.cloud.location.Locations.GetLocation
101+
deadline: 60.0
102+
- selector: google.cloud.location.Locations.ListLocations
103+
deadline: 60.0
94104
- selector: 'google.longrunning.Operations.*'
95105
deadline: 60.0
96106

97107
http:
98108
rules:
109+
- selector: google.cloud.location.Locations.GetLocation
110+
get: '/v2/{name=projects/*/locations/*}'
111+
- selector: google.cloud.location.Locations.ListLocations
112+
get: '/v2/{name=projects/*}/locations'
99113
- selector: google.longrunning.Operations.CancelOperation
100114
post: '/v2/{name=projects/*/operations/*}:cancel'
101115
additional_bindings:
@@ -201,6 +215,16 @@ authentication:
201215
canonical_scopes: |-
202216
https://www.googleapis.com/auth/cloud-platform,
203217
https://www.googleapis.com/auth/dialogflow
218+
- selector: google.cloud.location.Locations.GetLocation
219+
oauth:
220+
canonical_scopes: |-
221+
https://www.googleapis.com/auth/cloud-platform,
222+
https://www.googleapis.com/auth/dialogflow
223+
- selector: google.cloud.location.Locations.ListLocations
224+
oauth:
225+
canonical_scopes: |-
226+
https://www.googleapis.com/auth/cloud-platform,
227+
https://www.googleapis.com/auth/dialogflow
204228
- selector: 'google.longrunning.Operations.*'
205229
oauth:
206230
canonical_scopes: |-

google/cloud/dialogflow/v2/intent.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -873,12 +873,13 @@ message Intent {
873873
// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
874874
repeated Message.Platform default_response_platforms = 15 [(google.api.field_behavior) = OPTIONAL];
875875

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

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

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

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

0 commit comments

Comments
 (0)