Skip to content

Commit 94287f4

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: added support for locking an agent for changes
feat: added data format specification for export agent PiperOrigin-RevId: 437338899
1 parent 651416f commit 94287f4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

+16
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ message Agent {
249249
// requests.
250250
bool enable_spell_correction = 20;
251251

252+
// Indiciates whether the agent is locked for changes. If the agent is locked,
253+
// modifications to the agent will be rejected except for [RestoreAgent][].
254+
bool locked = 27;
255+
252256
// Hierarchical advanced settings for this agent. The settings exposed at the
253257
// lower level overrides the settings exposed at the higher level.
254258
AdvancedSettings advanced_settings = 22;
@@ -335,6 +339,15 @@ message DeleteAgentRequest {
335339

336340
// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
337341
message ExportAgentRequest {
342+
// Data format of the exported agent.
343+
enum DataFormat {
344+
// Unspecified format.
345+
DATA_FORMAT_UNSPECIFIED = 0;
346+
347+
// Agent content will be exported as raw bytes.
348+
BLOB = 1;
349+
}
350+
338351
// Required. The name of the agent to export.
339352
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
340353
string name = 1 [
@@ -356,6 +369,9 @@ message ExportAgentRequest {
356369
// control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
357370
string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL];
358371

372+
// Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
373+
DataFormat data_format = 3 [(google.api.field_behavior) = OPTIONAL];
374+
359375
// Optional. Environment name. If not set, draft environment is assumed.
360376
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
361377
// ID>/environments/<Environment ID>`.

0 commit comments

Comments
 (0)