@@ -188,6 +188,34 @@ message Agent {
188
188
pattern : "projects/{project}/locations/{location}/agents/{agent}"
189
189
};
190
190
191
+ // Settings for connecting to Git repository for an agent.
192
+ message GitIntegrationSettings {
193
+ // Settings of integration with GitHub.
194
+ message GithubSettings {
195
+ // The unique repository display name for the GitHub repository.
196
+ string display_name = 1 ;
197
+
198
+ // The GitHub repository URI related to the agent.
199
+ string repository_uri = 2 ;
200
+
201
+ // The branch of the GitHub repository tracked for this agent.
202
+ string tracking_branch = 3 ;
203
+
204
+ // The access token used to authenticate the access to the GitHub
205
+ // repository.
206
+ string access_token = 4 ;
207
+
208
+ // A list of branches configured to be used from Dialogflow.
209
+ repeated string branches = 5 ;
210
+ }
211
+
212
+ // The git settings to specific systems.
213
+ oneof git_settings {
214
+ // GitHub settings.
215
+ GithubSettings github_settings = 1 ;
216
+ }
217
+ }
218
+
191
219
// The unique identifier of the agent.
192
220
// Required for the
193
221
// [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent]
@@ -269,6 +297,9 @@ message Agent {
269
297
// lower level overrides the settings exposed at the higher level.
270
298
AdvancedSettings advanced_settings = 22 ;
271
299
300
+ // Git integration settings for this agent.
301
+ GitIntegrationSettings git_integration_settings = 30 ;
302
+
272
303
// Settings on instructing the speech synthesizer on how to generate the
273
304
// output audio content.
274
305
TextToSpeechSettings text_to_speech_settings = 31 ;
@@ -374,6 +405,15 @@ message ExportAgentRequest {
374
405
JSON_PACKAGE = 4 ;
375
406
}
376
407
408
+ // Settings for exporting to a git branch.
409
+ message GitDestination {
410
+ // Tracking branch for the git push.
411
+ string tracking_branch = 1 ;
412
+
413
+ // Commit message for the git push.
414
+ string commit_message = 2 ;
415
+ }
416
+
377
417
// Required. The name of the agent to export.
378
418
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
379
419
string name = 1 [
@@ -409,6 +449,9 @@ message ExportAgentRequest {
409
449
}
410
450
];
411
451
452
+ // Optional. The Git branch to export the agent to.
453
+ GitDestination git_destination = 6 [(google.api.field_behavior ) = OPTIONAL ];
454
+
412
455
// Optional. Whether to include BigQuery Export setting.
413
456
bool include_bigquery_export_settings = 7
414
457
[(google.api.field_behavior ) = OPTIONAL ];
@@ -424,14 +467,27 @@ message ExportAgentResponse {
424
467
// [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
425
468
string agent_uri = 1 ;
426
469
427
- // Uncompressed raw byte content for agent.
470
+ // Uncompressed raw byte content for agent. This field is populated
471
+ // if none of `agent_uri` and `git_destination` are specified in
472
+ // [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
428
473
bytes agent_content = 2 ;
474
+
475
+ // Commit SHA of the git push. This field is populated if
476
+ // `git_destination` is specified in
477
+ // [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
478
+ string commit_sha = 3 ;
429
479
}
430
480
}
431
481
432
482
// The request message for
433
483
// [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent].
434
484
message RestoreAgentRequest {
485
+ // Settings for restoring from a git branch
486
+ message GitSource {
487
+ // tracking branch for the git pull
488
+ string tracking_branch = 1 ;
489
+ }
490
+
435
491
// Restore option.
436
492
enum RestoreOption {
437
493
// Unspecified. Treated as KEEP.
@@ -471,6 +527,9 @@ message RestoreAgentRequest {
471
527
472
528
// Uncompressed raw byte content for agent.
473
529
bytes agent_content = 3 ;
530
+
531
+ // Setting for restoring from a git branch
532
+ GitSource git_source = 6 ;
474
533
}
475
534
476
535
// Agent restore mode. If not specified, `KEEP` is assumed.
0 commit comments