@@ -142,12 +142,75 @@ class Agent(proto.Message):
142
142
agent. The settings exposed at the lower level
143
143
overrides the settings exposed at the higher
144
144
level.
145
+ git_integration_settings (google.cloud.dialogflowcx_v3beta1.types.Agent.GitIntegrationSettings):
146
+ Git integration settings for this agent.
145
147
text_to_speech_settings (google.cloud.dialogflowcx_v3beta1.types.TextToSpeechSettings):
146
148
Settings on instructing the speech
147
149
synthesizer on how to generate the output audio
148
150
content.
149
151
"""
150
152
153
+ class GitIntegrationSettings (proto .Message ):
154
+ r"""Settings for connecting to Git repository for an agent.
155
+
156
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
157
+
158
+ Attributes:
159
+ github_settings (google.cloud.dialogflowcx_v3beta1.types.Agent.GitIntegrationSettings.GithubSettings):
160
+ GitHub settings.
161
+
162
+ This field is a member of `oneof`_ ``git_settings``.
163
+ """
164
+
165
+ class GithubSettings (proto .Message ):
166
+ r"""Settings of integration with GitHub.
167
+
168
+ Attributes:
169
+ display_name (str):
170
+ The unique repository display name for the
171
+ GitHub repository.
172
+ repository_uri (str):
173
+ The GitHub repository URI related to the
174
+ agent.
175
+ tracking_branch (str):
176
+ The branch of the GitHub repository tracked
177
+ for this agent.
178
+ access_token (str):
179
+ The access token used to authenticate the
180
+ access to the GitHub repository.
181
+ branches (MutableSequence[str]):
182
+ A list of branches configured to be used from
183
+ Dialogflow.
184
+ """
185
+
186
+ display_name : str = proto .Field (
187
+ proto .STRING ,
188
+ number = 1 ,
189
+ )
190
+ repository_uri : str = proto .Field (
191
+ proto .STRING ,
192
+ number = 2 ,
193
+ )
194
+ tracking_branch : str = proto .Field (
195
+ proto .STRING ,
196
+ number = 3 ,
197
+ )
198
+ access_token : str = proto .Field (
199
+ proto .STRING ,
200
+ number = 4 ,
201
+ )
202
+ branches : MutableSequence [str ] = proto .RepeatedField (
203
+ proto .STRING ,
204
+ number = 5 ,
205
+ )
206
+
207
+ github_settings : "Agent.GitIntegrationSettings.GithubSettings" = proto .Field (
208
+ proto .MESSAGE ,
209
+ number = 1 ,
210
+ oneof = "git_settings" ,
211
+ message = "Agent.GitIntegrationSettings.GithubSettings" ,
212
+ )
213
+
151
214
name : str = proto .Field (
152
215
proto .STRING ,
153
216
number = 1 ,
@@ -206,6 +269,11 @@ class Agent(proto.Message):
206
269
number = 22 ,
207
270
message = gcdc_advanced_settings .AdvancedSettings ,
208
271
)
272
+ git_integration_settings : GitIntegrationSettings = proto .Field (
273
+ proto .MESSAGE ,
274
+ number = 30 ,
275
+ message = GitIntegrationSettings ,
276
+ )
209
277
text_to_speech_settings : audio_config .TextToSpeechSettings = proto .Field (
210
278
proto .MESSAGE ,
211
279
number = 31 ,
@@ -379,6 +447,9 @@ class ExportAgentRequest(proto.Message):
379
447
Optional. Environment name. If not set, draft environment is
380
448
assumed. Format:
381
449
``projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>``.
450
+ git_destination (google.cloud.dialogflowcx_v3beta1.types.ExportAgentRequest.GitDestination):
451
+ Optional. The Git branch to export the agent
452
+ to.
382
453
include_bigquery_export_settings (bool):
383
454
Optional. Whether to include BigQuery Export
384
455
setting.
@@ -400,6 +471,25 @@ class DataFormat(proto.Enum):
400
471
BLOB = 1
401
472
JSON_PACKAGE = 4
402
473
474
+ class GitDestination (proto .Message ):
475
+ r"""Settings for exporting to a git branch.
476
+
477
+ Attributes:
478
+ tracking_branch (str):
479
+ Tracking branch for the git push.
480
+ commit_message (str):
481
+ Commit message for the git push.
482
+ """
483
+
484
+ tracking_branch : str = proto .Field (
485
+ proto .STRING ,
486
+ number = 1 ,
487
+ )
488
+ commit_message : str = proto .Field (
489
+ proto .STRING ,
490
+ number = 2 ,
491
+ )
492
+
403
493
name : str = proto .Field (
404
494
proto .STRING ,
405
495
number = 1 ,
@@ -417,6 +507,11 @@ class DataFormat(proto.Enum):
417
507
proto .STRING ,
418
508
number = 5 ,
419
509
)
510
+ git_destination : GitDestination = proto .Field (
511
+ proto .MESSAGE ,
512
+ number = 6 ,
513
+ message = GitDestination ,
514
+ )
420
515
include_bigquery_export_settings : bool = proto .Field (
421
516
proto .BOOL ,
422
517
number = 7 ,
@@ -442,7 +537,16 @@ class ExportAgentResponse(proto.Message):
442
537
443
538
This field is a member of `oneof`_ ``agent``.
444
539
agent_content (bytes):
445
- Uncompressed raw byte content for agent.
540
+ Uncompressed raw byte content for agent. This field is
541
+ populated if none of ``agent_uri`` and ``git_destination``
542
+ are specified in
543
+ [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
544
+
545
+ This field is a member of `oneof`_ ``agent``.
546
+ commit_sha (str):
547
+ Commit SHA of the git push. This field is populated if
548
+ ``git_destination`` is specified in
549
+ [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
446
550
447
551
This field is a member of `oneof`_ ``agent``.
448
552
"""
@@ -457,6 +561,11 @@ class ExportAgentResponse(proto.Message):
457
561
number = 2 ,
458
562
oneof = "agent" ,
459
563
)
564
+ commit_sha : str = proto .Field (
565
+ proto .STRING ,
566
+ number = 3 ,
567
+ oneof = "agent" ,
568
+ )
460
569
461
570
462
571
class RestoreAgentRequest (proto .Message ):
@@ -490,6 +599,10 @@ class RestoreAgentRequest(proto.Message):
490
599
agent_content (bytes):
491
600
Uncompressed raw byte content for agent.
492
601
602
+ This field is a member of `oneof`_ ``agent``.
603
+ git_source (google.cloud.dialogflowcx_v3beta1.types.RestoreAgentRequest.GitSource):
604
+ Setting for restoring from a git branch
605
+
493
606
This field is a member of `oneof`_ ``agent``.
494
607
restore_option (google.cloud.dialogflowcx_v3beta1.types.RestoreAgentRequest.RestoreOption):
495
608
Agent restore mode. If not specified, ``KEEP`` is assumed.
@@ -514,6 +627,19 @@ class RestoreOption(proto.Enum):
514
627
KEEP = 1
515
628
FALLBACK = 2
516
629
630
+ class GitSource (proto .Message ):
631
+ r"""Settings for restoring from a git branch
632
+
633
+ Attributes:
634
+ tracking_branch (str):
635
+ tracking branch for the git pull
636
+ """
637
+
638
+ tracking_branch : str = proto .Field (
639
+ proto .STRING ,
640
+ number = 1 ,
641
+ )
642
+
517
643
name : str = proto .Field (
518
644
proto .STRING ,
519
645
number = 1 ,
@@ -528,6 +654,12 @@ class RestoreOption(proto.Enum):
528
654
number = 3 ,
529
655
oneof = "agent" ,
530
656
)
657
+ git_source : GitSource = proto .Field (
658
+ proto .MESSAGE ,
659
+ number = 6 ,
660
+ oneof = "agent" ,
661
+ message = GitSource ,
662
+ )
531
663
restore_option : RestoreOption = proto .Field (
532
664
proto .ENUM ,
533
665
number = 5 ,
0 commit comments