Skip to content

Commit

Permalink
feat: added GitIntegrationSettings to the Agent
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 546355900
  • Loading branch information
Google APIs authored and copybara-github committed Jul 7, 2023
1 parent a7fc34f commit dc3d3a2
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/cloud/dialogflow/cx/v3beta1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ load(

csharp_proto_library(
name = "cx_csharp_proto",
extra_opts = [],
extra_opts = [""],
deps = [":cx_proto"],
)

Expand Down
61 changes: 60 additions & 1 deletion google/cloud/dialogflow/cx/v3beta1/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,34 @@ message Agent {
pattern: "projects/{project}/locations/{location}/agents/{agent}"
};

// Settings for connecting to Git repository for an agent.
message GitIntegrationSettings {
// Settings of integration with GitHub.
message GithubSettings {
// The unique repository display name for the GitHub repository.
string display_name = 1;

// The GitHub repository URI related to the agent.
string repository_uri = 2;

// The branch of the GitHub repository tracked for this agent.
string tracking_branch = 3;

// The access token used to authenticate the access to the GitHub
// repository.
string access_token = 4;

// A list of branches configured to be used from Dialogflow.
repeated string branches = 5;
}

// The git settings to specific systems.
oneof git_settings {
// GitHub settings.
GithubSettings github_settings = 1;
}
}

// The unique identifier of the agent.
// Required for the
// [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.UpdateAgent]
Expand Down Expand Up @@ -269,6 +297,9 @@ message Agent {
// lower level overrides the settings exposed at the higher level.
AdvancedSettings advanced_settings = 22;

// Git integration settings for this agent.
GitIntegrationSettings git_integration_settings = 30;

// Settings on instructing the speech synthesizer on how to generate the
// output audio content.
TextToSpeechSettings text_to_speech_settings = 31;
Expand Down Expand Up @@ -374,6 +405,15 @@ message ExportAgentRequest {
JSON_PACKAGE = 4;
}

// Settings for exporting to a git branch.
message GitDestination {
// Tracking branch for the git push.
string tracking_branch = 1;

// Commit message for the git push.
string commit_message = 2;
}

// Required. The name of the agent to export.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
string name = 1 [
Expand Down Expand Up @@ -409,6 +449,9 @@ message ExportAgentRequest {
}
];

// Optional. The Git branch to export the agent to.
GitDestination git_destination = 6 [(google.api.field_behavior) = OPTIONAL];

// Optional. Whether to include BigQuery Export setting.
bool include_bigquery_export_settings = 7
[(google.api.field_behavior) = OPTIONAL];
Expand All @@ -424,14 +467,27 @@ message ExportAgentResponse {
// [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
string agent_uri = 1;

// Uncompressed raw byte content for agent.
// Uncompressed raw byte content for agent. This field is populated
// if none of `agent_uri` and `git_destination` are specified in
// [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
bytes agent_content = 2;

// Commit SHA of the git push. This field is populated if
// `git_destination` is specified in
// [ExportAgentRequest][google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest].
string commit_sha = 3;
}
}

// The request message for
// [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent].
message RestoreAgentRequest {
// Settings for restoring from a git branch
message GitSource {
// tracking branch for the git pull
string tracking_branch = 1;
}

// Restore option.
enum RestoreOption {
// Unspecified. Treated as KEEP.
Expand Down Expand Up @@ -471,6 +527,9 @@ message RestoreAgentRequest {

// Uncompressed raw byte content for agent.
bytes agent_content = 3;

// Setting for restoring from a git branch
GitSource git_source = 6;
}

// Agent restore mode. If not specified, `KEEP` is assumed.
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/dialogflow/cx/v3beta1/test_case.proto
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ service TestCases {
};
}

// Fetches a list of results for a given test case.
// Fetches the list of run results for the given test case. A maximum of 100
// results are kept for each test case.
rpc ListTestCaseResults(ListTestCaseResultsRequest)
returns (ListTestCaseResultsResponse) {
option (google.api.http) = {
Expand Down

0 comments on commit dc3d3a2

Please sign in to comment.