Content-Length: 396363 | pFad | https://github.com/googleapis/googleapis/commit/daffb064bf5d35b76de530a9c9de6e0728c35afd

A6 feat: added support for locking an agent for changes · googleapis/googleapis@daffb06 · GitHub
Skip to content

Commit daffb06

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: 437848093
1 parent 9346947 commit daffb06

File tree

2 files changed

+34
-17
lines changed

2 files changed

+34
-17
lines changed

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

Lines changed: 16 additions & 0 deletions
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.v3beta1.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>`.

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

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -198,26 +198,27 @@ message DetectIntentResponse {
198198
//
199199
// Multiple request messages should be sent in order:
200200
//
201-
// 1. The first message must contain
202-
// [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
203-
// [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] plus optionally
204-
// [query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params]. If the client
205-
// wants to receive an audio response, it should also contain
206-
// [output_audio_config][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.output_audio_config].
201+
// 1. The first message must contain
202+
// [session][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.session],
203+
// [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] plus optionally
204+
// [query_params][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_params]. If the client
205+
// wants to receive an audio response, it should also contain
206+
// [output_audio_config][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.output_audio_config].
207207
//
208208
// 2. If [query_input][google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest.query_input] was set to
209-
// [query_input.audio.config][google.cloud.dialogflow.cx.v3beta1.AudioInput.config], all subsequent messages
210-
// must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3beta1.AudioInput.audio] to continue with
211-
// Speech recognition.
212-
// If you decide to rather detect an intent from text
213-
// input after you already started Speech recognition, please send a message
214-
// with [query_input.text][google.cloud.dialogflow.cx.v3beta1.QueryInput.text].
209+
// [query_input.audio.config][google.cloud.dialogflow.cx.v3beta1.AudioInput.config], all subsequent messages
210+
// must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3beta1.AudioInput.audio] to continue with
211+
// Speech recognition.
212+
// If you decide to rather detect an intent from text
213+
// input after you already started Speech recognition, please send a message
214+
// with [query_input.text][google.cloud.dialogflow.cx.v3beta1.QueryInput.text].
215215
//
216-
// However, note that:
217-
// * Dialogflow will bill you for the audio duration so far.
218-
// * Dialogflow discards all Speech recognition results in favor of the input
219-
// text.
220-
// * Dialogflow will use the language code from the first message.
216+
// However, note that:
217+
//
218+
// * Dialogflow will bill you for the audio duration so far.
219+
// * Dialogflow discards all Speech recognition results in favor of the
220+
// input text.
221+
// * Dialogflow will use the language code from the first message.
221222
//
222223
// After you sent all input, you must half-close or abort the request stream.
223224
message StreamingDetectIntentRequest {

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/daffb064bf5d35b76de530a9c9de6e0728c35afd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy