Content-Length: 482109 | pFad | https://github.com/googleapis/googleapis/commit/dc3d3a2bf6b082b22fefa27119caaaf74e2fce8e

2A feat: added GitIntegrationSettings to the Agent · googleapis/googleapis@dc3d3a2 · GitHub
Skip to content

Commit dc3d3a2

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: added GitIntegrationSettings to the Agent
PiperOrigin-RevId: 546355900
1 parent a7fc34f commit dc3d3a2

File tree

3 files changed

+63
-3
lines changed

3 files changed

+63
-3
lines changed

google/cloud/dialogflow/cx/v3beta1/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ load(
399399

400400
csharp_proto_library(
401401
name = "cx_csharp_proto",
402-
extra_opts = [],
402+
extra_opts = [""],
403403
deps = [":cx_proto"],
404404
)
405405

google/cloud/dialogflow/cx/v3beta1/agent.proto

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,34 @@ message Agent {
188188
pattern: "projects/{project}/locations/{location}/agents/{agent}"
189189
};
190190

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+
191219
// The unique identifier of the agent.
192220
// Required for the
193221
// [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent]
@@ -269,6 +297,9 @@ message Agent {
269297
// lower level overrides the settings exposed at the higher level.
270298
AdvancedSettings advanced_settings = 22;
271299

300+
// Git integration settings for this agent.
301+
GitIntegrationSettings git_integration_settings = 30;
302+
272303
// Settings on instructing the speech synthesizer on how to generate the
273304
// output audio content.
274305
TextToSpeechSettings text_to_speech_settings = 31;
@@ -374,6 +405,15 @@ message ExportAgentRequest {
374405
JSON_PACKAGE = 4;
375406
}
376407

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+
377417
// Required. The name of the agent to export.
378418
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
379419
string name = 1 [
@@ -409,6 +449,9 @@ message ExportAgentRequest {
409449
}
410450
];
411451

452+
// Optional. The Git branch to export the agent to.
453+
GitDestination git_destination = 6 [(google.api.field_behavior) = OPTIONAL];
454+
412455
// Optional. Whether to include BigQuery Export setting.
413456
bool include_bigquery_export_settings = 7
414457
[(google.api.field_behavior) = OPTIONAL];
@@ -424,14 +467,27 @@ message ExportAgentResponse {
424467
// [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
425468
string agent_uri = 1;
426469

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].
428473
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;
429479
}
430480
}
431481

432482
// The request message for
433483
// [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent].
434484
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+
435491
// Restore option.
436492
enum RestoreOption {
437493
// Unspecified. Treated as KEEP.
@@ -471,6 +527,9 @@ message RestoreAgentRequest {
471527

472528
// Uncompressed raw byte content for agent.
473529
bytes agent_content = 3;
530+
531+
// Setting for restoring from a git branch
532+
GitSource git_source = 6;
474533
}
475534

476535
// Agent restore mode. If not specified, `KEEP` is assumed.

google/cloud/dialogflow/cx/v3beta1/test_case.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ service TestCases {
193193
};
194194
}
195195

196-
// Fetches a list of results for a given test case.
196+
// Fetches the list of run results for the given test case. A maximum of 100
197+
// results are kept for each test case.
197198
rpc ListTestCaseResults(ListTestCaseResultsRequest)
198199
returns (ListTestCaseResultsResponse) {
199200
option (google.api.http) = {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/googleapis/commit/dc3d3a2bf6b082b22fefa27119caaaf74e2fce8e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy