Skip to content

Commit 3e9b231

Browse files
Google APIscopybara-github
authored andcommitted
feat: added fallback option when restoring an agent
docs: clarified experiment length PiperOrigin-RevId: 362453138
1 parent b6ebac1 commit 3e9b231

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,21 @@ message ExportAgentResponse {
323323

324324
// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3beta1.Agents.RestoreAgent].
325325
message RestoreAgentRequest {
326+
// Restore option.
327+
enum RestoreOption {
328+
// Unspecified. Treated as KEEP.
329+
RESTORE_OPTION_UNSPECIFIED = 0;
330+
331+
// Always respect the settings from the exported agent file. It may cause
332+
// a restoration failure if some settings (e.g. model type) are not
333+
// supported in the target agent.
334+
KEEP = 1;
335+
336+
// Fallback to default settings if some settings are not supported in the
337+
// target agent.
338+
FALLBACK = 2;
339+
}
340+
326341
// Required. The name of the agent to restore into.
327342
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
328343
string name = 1 [
@@ -342,6 +357,9 @@ message RestoreAgentRequest {
342357
// Uncompressed raw byte content for agent.
343358
bytes agent_content = 3;
344359
}
360+
361+
// Agent restore mode. If not specified, `KEEP` is assumed.
362+
RestoreOption restore_option = 5;
345363
}
346364

347365
// The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ValidateAgent].

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
23+
import "google/cloud/dialogflow/cx/v3beta1/test_case.proto";
2324
import "google/longrunning/operations.proto";
2425
import "google/protobuf/empty.proto";
2526
import "google/protobuf/field_mask.proto";

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ message Experiment {
284284
// Last update time of this experiment.
285285
google.protobuf.Timestamp last_update_time = 10;
286286

287-
// Maximum number of days to run the experiment.
287+
// Maximum number of days to run the experiment. If auto-rollout is
288+
// not enabled, default value and maximum will be 30 days. If auto-rollout is
289+
// enabled, default value and maximum will be 6 days.
288290
google.protobuf.Duration experiment_length = 11;
289291

290292
// The history of updates to the experiment variants.

0 commit comments

Comments
 (0)