Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 361e7d9

Browse files
chore: remove unused imports (#246)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 439948451 Source-Link: googleapis/googleapis@1a8770e Source-Link: https://github.com/googleapis/googleapis-gen/commit/d1f308e5391f1ac1ad9b7886b1102b7655b43e96 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDFmMzA4ZTUzOTFmMWFjMWFkOWI3ODg2YjExMDJiNzY1NWI0M2U5NiJ9 feat: added support for locking an agent for changes feat: added data format specification for export agent PiperOrigin-RevId: 437848093 Source-Link: googleapis/googleapis@daffb06 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b851ca5cc592a5b9c865cbe67736d67205072dce Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjg1MWNhNWNjNTkyYTViOWM4NjVjYmU2NzczNmQ2NzIwNTA3MmRjZSJ9 feat: added support for locking an agent for changes feat: added data format specification for export agent PiperOrigin-RevId: 437338899 Source-Link: googleapis/googleapis@94287f4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c0bb2ea072245b0731a9f208ae64082de073f238 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzBiYjJlYTA3MjI0NWIwNzMxYTlmMjA4YWU2NDA4MmRlMDczZjIzOCJ9
1 parent ee346b8 commit 361e7d9

14 files changed

+350
-78
lines changed

protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ syntax = "proto3";
1616

1717
package google.cloud.dialogflow.cx.v3;
1818

19-
import "google/api/field_behavior.proto";
20-
2119
option cc_enable_arenas = true;
2220
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
2321
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";

protos/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>`.

protos/google/cloud/dialogflow/cx/v3/audio_config.proto

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ syntax = "proto3";
1717
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/field_behavior.proto";
20-
import "google/api/resource.proto";
2120
import "google/protobuf/duration.proto";
2221

2322
option cc_enable_arenas = true;

protos/google/cloud/dialogflow/cx/v3beta1/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.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>`.

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

+18-17
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 {

protos/protos.d.ts

+54-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)