@@ -17,14 +17,14 @@ syntax = "proto3";
1717package google.cloud.dialogflow.v2beta1 ;
1818
1919import "google/api/annotations.proto" ;
20+ import "google/api/client.proto" ;
2021import "google/api/field_behavior.proto" ;
2122import "google/api/resource.proto" ;
2223import "google/cloud/dialogflow/v2beta1/environment.proto" ;
2324import "google/cloud/dialogflow/v2beta1/validation_result.proto" ;
2425import "google/longrunning/operations.proto" ;
2526import "google/protobuf/empty.proto" ;
2627import "google/protobuf/field_mask.proto" ;
27- import "google/api/client.proto" ;
2828
2929option cc_enable_arenas = true ;
3030option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1" ;
@@ -76,6 +76,7 @@ service Agents {
7676 get : "/v2beta1/{parent=projects/*/locations/*}/agent"
7777 }
7878 };
79+ option (google.api.method_signature ) = "parent" ;
7980 }
8081
8182 // Creates/updates the specified agent.
@@ -88,6 +89,7 @@ service Agents {
8889 body : "agent"
8990 }
9091 };
92+ option (google.api.method_signature ) = "agent" ;
9193 }
9294
9395 // Deletes the specified agent.
@@ -98,10 +100,10 @@ service Agents {
98100 delete : "/v2beta1/{parent=projects/*/locations/*}/agent"
99101 }
100102 };
103+ option (google.api.method_signature ) = "parent" ;
101104 }
102105
103106 // Returns the list of agents.
104- //
105107 // Since there is at most one conversational agent per project, this method is
106108 // useful primarily for listing all agents across projects the caller has
107109 // access to. One can achieve that with a wildcard project collection id "-".
@@ -111,6 +113,7 @@ service Agents {
111113 option (google.api.http ) = {
112114 get : "/v2beta1/{parent=projects/*}/agent:search"
113115 };
116+ option (google.api.method_signature ) = "parent" ;
114117 }
115118
116119 // Trains the specified agent.
@@ -126,6 +129,11 @@ service Agents {
126129 body : "*"
127130 }
128131 };
132+ option (google.api.method_signature ) = "parent" ;
133+ option (google.longrunning.operation_info ) = {
134+ response_type : "google.protobuf.Empty"
135+ metadata_type : "google.protobuf.Struct"
136+ };
129137 }
130138
131139 // Exports the specified agent to a ZIP file.
@@ -141,6 +149,11 @@ service Agents {
141149 body : "*"
142150 }
143151 };
152+ option (google.api.method_signature ) = "parent" ;
153+ option (google.longrunning.operation_info ) = {
154+ response_type : "google.cloud.dialogflow.v2beta1.ExportAgentResponse"
155+ metadata_type : "google.protobuf.Struct"
156+ };
144157 }
145158
146159 // Imports the specified agent from a ZIP file.
@@ -160,6 +173,10 @@ service Agents {
160173 body : "*"
161174 }
162175 };
176+ option (google.longrunning.operation_info ) = {
177+ response_type : "google.protobuf.Empty"
178+ metadata_type : "google.protobuf.Struct"
179+ };
163180 }
164181
165182 // Restores the specified agent from a ZIP file.
@@ -178,6 +195,10 @@ service Agents {
178195 body : "*"
179196 }
180197 };
198+ option (google.longrunning.operation_info ) = {
199+ response_type : "google.protobuf.Empty"
200+ metadata_type : "google.protobuf.Struct"
201+ };
181202 }
182203
183204 // Gets agent validation result. Agent validation is performed during
@@ -304,7 +325,12 @@ message Agent {
304325message GetAgentRequest {
305326 // Required. The project that the agent to fetch is associated with.
306327 // Format: `projects/<Project ID>`.
307- string parent = 1 ;
328+ string parent = 1 [
329+ (google.api.field_behavior ) = REQUIRED ,
330+ (google.api.resource_reference ) = {
331+ child_type : "dialogflow.googleapis.com/Agent"
332+ }
333+ ];
308334}
309335
310336// The request message for [Agents.SetAgent][google.cloud.dialogflow.v2beta1.Agents.SetAgent].
@@ -320,7 +346,12 @@ message SetAgentRequest {
320346message DeleteAgentRequest {
321347 // Required. The project that the agent to delete is associated with.
322348 // Format: `projects/<Project ID>`.
323- string parent = 1 ;
349+ string parent = 1 [
350+ (google.api.field_behavior ) = REQUIRED ,
351+ (google.api.resource_reference ) = {
352+ child_type : "dialogflow.googleapis.com/Agent"
353+ }
354+ ];
324355}
325356
326357// Contains basic configuration for a sub-agent.
@@ -339,7 +370,12 @@ message SubAgent {
339370message SearchAgentsRequest {
340371 // Required. The project to list agents from.
341372 // Format: `projects/<Project ID or '-'>`.
342- string parent = 1 ;
373+ string parent = 1 [
374+ (google.api.field_behavior ) = REQUIRED ,
375+ (google.api.resource_reference ) = {
376+ child_type : "dialogflow.googleapis.com/Agent"
377+ }
378+ ];
343379
344380 // Optional. The maximum number of items to return in a single page. By
345381 // default 100 and at most 1000.
@@ -364,7 +400,12 @@ message SearchAgentsResponse {
364400message TrainAgentRequest {
365401 // Required. The project that the agent to train is associated with.
366402 // Format: `projects/<Project ID>`.
367- string parent = 1 ;
403+ string parent = 1 [
404+ (google.api.field_behavior ) = REQUIRED ,
405+ (google.api.resource_reference ) = {
406+ child_type : "dialogflow.googleapis.com/Agent"
407+ }
408+ ];
368409}
369410
370411// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
@@ -398,7 +439,12 @@ message ExportAgentResponse {
398439message ImportAgentRequest {
399440 // Required. The project that the agent to import is associated with.
400441 // Format: `projects/<Project ID>`.
401- string parent = 1 ;
442+ string parent = 1 [
443+ (google.api.field_behavior ) = REQUIRED ,
444+ (google.api.resource_reference ) = {
445+ child_type : "dialogflow.googleapis.com/Agent"
446+ }
447+ ];
402448
403449 // Required. The agent to import.
404450 oneof agent {
@@ -415,7 +461,12 @@ message ImportAgentRequest {
415461message RestoreAgentRequest {
416462 // Required. The project that the agent to restore is associated with.
417463 // Format: `projects/<Project ID>`.
418- string parent = 1 ;
464+ string parent = 1 [
465+ (google.api.field_behavior ) = REQUIRED ,
466+ (google.api.resource_reference ) = {
467+ child_type : "dialogflow.googleapis.com/Agent"
468+ }
469+ ];
419470
420471 // Required. The agent to restore.
421472 oneof agent {
@@ -432,7 +483,12 @@ message RestoreAgentRequest {
432483message GetValidationResultRequest {
433484 // Required. The project that the agent is associated with.
434485 // Format: `projects/<Project ID>`.
435- string parent = 1 [(google.api.field_behavior ) = REQUIRED ];
486+ string parent = 1 [
487+ (google.api.field_behavior ) = REQUIRED ,
488+ (google.api.resource_reference ) = {
489+ child_type : "dialogflow.googleapis.com/Agent"
490+ }
491+ ];
436492
437493 // Optional. The language for which you want a validation result. If not
438494 // specified, the agent's default language is used. [Many
0 commit comments