@@ -27,7 +27,7 @@ import "google/protobuf/field_mask.proto";
2727
2828option cc_enable_arenas = true ;
2929option csharp_namespace = "Google.Cloud.Dialogflow.V2" ;
30- option go_package = "google.golang.org/genproto/googleapis/cloud/ dialogflow/v2;dialogflow " ;
30+ option go_package = "cloud. google.com/go/ dialogflow/apiv2/dialogflowpb;dialogflowpb " ;
3131option java_multiple_files = true ;
3232option java_outer_classname = "AgentProto" ;
3333option java_package = "com.google.cloud.dialogflow.v2" ;
@@ -44,9 +44,7 @@ service Agents {
4444 rpc GetAgent (GetAgentRequest ) returns (Agent ) {
4545 option (google.api.http ) = {
4646 get : "/v2/{parent=projects/*}/agent"
47- additional_bindings {
48- get : "/v2/{parent=projects/*/locations/*}/agent"
49- }
47+ additional_bindings { get : "/v2/{parent=projects/*/locations/*}/agent" }
5048 };
5149 option (google.api.method_signature ) = "parent" ;
5250 }
@@ -134,7 +132,8 @@ service Agents {
134132 //
135133 // - `metadata`: An empty [Struct
136134 // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
137- // - `response`: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
135+ // - `response`:
136+ // [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse]
138137 rpc ExportAgent (ExportAgentRequest ) returns (google.longrunning.Operation ) {
139138 option (google.api.http ) = {
140139 post : "/v2/{parent=projects/*}/agent:export"
@@ -155,11 +154,13 @@ service Agents {
155154 //
156155 // Uploads new intents and entity types without deleting the existing ones.
157156 // Intents and entity types with the same name are replaced with the new
158- // versions from [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After the import, the imported draft
159- // agent will be trained automatically (unless disabled in agent settings).
160- // However, once the import is done, training may not be completed yet. Please
161- // call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it returns in order to train
162- // explicitly.
157+ // versions from
158+ // [ImportAgentRequest][google.cloud.dialogflow.v2.ImportAgentRequest]. After
159+ // the import, the imported draft agent will be trained automatically (unless
160+ // disabled in agent settings). However, once the import is done, training may
161+ // not be completed yet. Please call
162+ // [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the
163+ // operation it returns in order to train explicitly.
163164 //
164165 // This method is a [long-running
165166 // operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
@@ -197,8 +198,9 @@ service Agents {
197198 // entity types in the older version are deleted. After the restore, the
198199 // restored draft agent will be trained automatically (unless disabled in
199200 // agent settings). However, once the restore is done, training may not be
200- // completed yet. Please call [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the operation it
201- // returns in order to train explicitly.
201+ // completed yet. Please call
202+ // [TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent] and wait for the
203+ // operation it returns in order to train explicitly.
202204 //
203205 // This method is a [long-running
204206 // operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
@@ -232,7 +234,8 @@ service Agents {
232234
233235 // Gets agent validation result. Agent validation is performed during
234236 // training time and is updated automatically when training is completed.
235- rpc GetValidationResult (GetValidationResultRequest ) returns (ValidationResult ) {
237+ rpc GetValidationResult (GetValidationResultRequest )
238+ returns (ValidationResult ) {
236239 option (google.api.http ) = {
237240 get : "/v2/{parent=projects/*}/agent/validationResult"
238241 additional_bindings {
@@ -325,7 +328,8 @@ message Agent {
325328
326329 // Optional. The list of all languages supported by this agent (except for the
327330 // `default_language_code`).
328- repeated string supported_language_codes = 4 [(google.api.field_behavior ) = OPTIONAL ];
331+ repeated string supported_language_codes = 4
332+ [(google.api.field_behavior ) = OPTIONAL ];
329333
330334 // Required. The time zone of this agent from the
331335 // [time zone database](https://www.iana.org/time-zones), e.g.,
@@ -347,10 +351,8 @@ message Agent {
347351 bool enable_logging = 8 [(google.api.field_behavior ) = OPTIONAL ];
348352
349353 // Optional. Determines how intents are detected from user queries.
350- MatchMode match_mode = 9 [
351- deprecated = true ,
352- (google.api.field_behavior ) = OPTIONAL
353- ];
354+ MatchMode match_mode = 9
355+ [deprecated = true , (google.api.field_behavior ) = OPTIONAL ];
354356
355357 // Optional. To filter out false positive results and still get variety in
356358 // matched natural language inputs for your agent, you can tune the machine
@@ -371,7 +373,8 @@ message Agent {
371373 Tier tier = 15 [(google.api.field_behavior ) = OPTIONAL ];
372374}
373375
374- // The request message for [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
376+ // The request message for
377+ // [Agents.GetAgent][google.cloud.dialogflow.v2.Agents.GetAgent].
375378message GetAgentRequest {
376379 // Required. The project that the agent to fetch is associated with.
377380 // Format: `projects/<Project ID>`.
@@ -383,16 +386,19 @@ message GetAgentRequest {
383386 ];
384387}
385388
386- // The request message for [Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent].
389+ // The request message for
390+ // [Agents.SetAgent][google.cloud.dialogflow.v2.Agents.SetAgent].
387391message SetAgentRequest {
388392 // Required. The agent to update.
389393 Agent agent = 1 [(google.api.field_behavior ) = REQUIRED ];
390394
391395 // Optional. The mask to control which fields get updated.
392- google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior ) = OPTIONAL ];
396+ google.protobuf.FieldMask update_mask = 2
397+ [(google.api.field_behavior ) = OPTIONAL ];
393398}
394399
395- // The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
400+ // The request message for
401+ // [Agents.DeleteAgent][google.cloud.dialogflow.v2.Agents.DeleteAgent].
396402message DeleteAgentRequest {
397403 // Required. The project that the agent to delete is associated with.
398404 // Format: `projects/<Project ID>`.
@@ -404,7 +410,8 @@ message DeleteAgentRequest {
404410 ];
405411}
406412
407- // The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
413+ // The request message for
414+ // [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
408415message SearchAgentsRequest {
409416 // Required. The project to list agents from.
410417 // Format: `projects/<Project ID or '-'>`.
@@ -423,7 +430,8 @@ message SearchAgentsRequest {
423430 string page_token = 3 ;
424431}
425432
426- // The response message for [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
433+ // The response message for
434+ // [Agents.SearchAgents][google.cloud.dialogflow.v2.Agents.SearchAgents].
427435message SearchAgentsResponse {
428436 // The list of agents. There will be a maximum number of items returned based
429437 // on the page_size field in the request.
@@ -434,7 +442,8 @@ message SearchAgentsResponse {
434442 string next_page_token = 2 ;
435443}
436444
437- // The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
445+ // The request message for
446+ // [Agents.TrainAgent][google.cloud.dialogflow.v2.Agents.TrainAgent].
438447message TrainAgentRequest {
439448 // Required. The project that the agent to train is associated with.
440449 // Format: `projects/<Project ID>`.
@@ -446,7 +455,8 @@ message TrainAgentRequest {
446455 ];
447456}
448457
449- // The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
458+ // The request message for
459+ // [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
450460message ExportAgentRequest {
451461 // Required. The project that the agent to export is associated with.
452462 // Format: `projects/<Project ID>`.
@@ -457,10 +467,10 @@ message ExportAgentRequest {
457467 }
458468 ];
459469
460- // Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
461- // URI to export the agent to.
462- // The format of this URI must be `gs://<bucket-name>/<object-name>`.
463- // If left unspecified, the serialized agent is returned inline.
470+ // Required. The [Google Cloud
471+ // Storage](https://cloud.google.com/storage/docs/) URI to export the agent
472+ // to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
473+ // left unspecified, the serialized agent is returned inline.
464474 //
465475 // Dialogflow performs a write operation for the Cloud Storage object
466476 // on the caller's behalf, so your request authentication must
@@ -470,7 +480,8 @@ message ExportAgentRequest {
470480 string agent_uri = 2 [(google.api.field_behavior ) = REQUIRED ];
471481}
472482
473- // The response message for [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
483+ // The response message for
484+ // [Agents.ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent].
474485message ExportAgentResponse {
475486 // The exported agent.
476487 oneof agent {
@@ -483,7 +494,8 @@ message ExportAgentResponse {
483494 }
484495}
485496
486- // The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
497+ // The request message for
498+ // [Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
487499message ImportAgentRequest {
488500 // Required. The project that the agent to import is associated with.
489501 // Format: `projects/<Project ID>`.
@@ -511,7 +523,8 @@ message ImportAgentRequest {
511523 }
512524}
513525
514- // The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
526+ // The request message for
527+ // [Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
515528message RestoreAgentRequest {
516529 // Required. The project that the agent to restore is associated with.
517530 // Format: `projects/<Project ID>`.
@@ -539,7 +552,8 @@ message RestoreAgentRequest {
539552 }
540553}
541554
542- // The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
555+ // The request message for
556+ // [Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
543557message GetValidationResultRequest {
544558 // Required. The project that the agent is associated with.
545559 // Format: `projects/<Project ID>`.
0 commit comments