Skip to content

Commit

Permalink
feat: added support for locking an agent for changes
Browse files Browse the repository at this point in the history
feat: added data format specification for export agent

PiperOrigin-RevId: 437338899
  • Loading branch information
Google APIs authored and copybara-github committed Mar 25, 2022
1 parent 651416f commit 94287f4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions google/cloud/dialogflow/cx/v3/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ message Agent {
// requests.
bool enable_spell_correction = 20;

// Indiciates whether the agent is locked for changes. If the agent is locked,
// modifications to the agent will be rejected except for [RestoreAgent][].
bool locked = 27;

// Hierarchical advanced settings for this agent. The settings exposed at the
// lower level overrides the settings exposed at the higher level.
AdvancedSettings advanced_settings = 22;
Expand Down Expand Up @@ -335,6 +339,15 @@ message DeleteAgentRequest {

// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
message ExportAgentRequest {
// Data format of the exported agent.
enum DataFormat {
// Unspecified format.
DATA_FORMAT_UNSPECIFIED = 0;

// Agent content will be exported as raw bytes.
BLOB = 1;
}

// Required. The name of the agent to export.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
string name = 1 [
Expand All @@ -356,6 +369,9 @@ message ExportAgentRequest {
// control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL];

// Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
DataFormat data_format = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. Environment name. If not set, draft environment is assumed.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/environments/<Environment ID>`.
Expand Down

0 comments on commit 94287f4

Please sign in to comment.