Skip to content

Commit 802bb2c

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field opt_out_conformer_model_migration is added to message .google.cloud.dialogflow.cx.v3.InputAudioConfig
feat: A new field `language_code` is added to message `.google.cloud.dialogflow.cx.v3.Changelog` feat: A new method `ExportEntityTypes` is added to service `EntityTypes` feat: A new method `ImportEntityTypes` is added to service `EntityTypes` feat: A new message `ExportEntityTypesRequest` is added feat: A new message `ExportEntityTypesResponse` is added feat: A new message `ExportEntityTypesMetadata` is added feat: A new message `ImportEntityTypesRequest` is added feat: A new message `ImportEntityTypesResponse` is added feat: A new message `ImportEntityTypesMetadata` is added feat: A new field `disable_data_store_fallback` is added to message `.google.cloud.dialogflow.cx.v3.GenerativeSettings` feat: A new field `description` is added to message `.google.cloud.dialogflow.cx.v3.Page` feat: A new method `ServerStreamingDetectIntent` is added to service `Sessions` feat: A new field `webhook_ids` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult` feat: A new field `webhook_display_names` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult` feat: A new field `webhook_latencies` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult` feat: A new field `webhook_tags` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult` feat: A new field `current_flow` is added to message `.google.cloud.dialogflow.cx.v3.QueryResult` docs: A comment for field `start_flow` in message `.google.cloud.dialogflow.cx.v3.Agent` is changed docs: A comment for enum value `USE_BEST_AVAILABLE` in enum `SpeechModelVariant` is changed docs: A comment for enum value `USE_ENHANCED` in enum `SpeechModelVariant` is changed docs: A comment for field `model` in message `.google.cloud.dialogflow.cx.v3.InputAudioConfig` is changed docs: A comment for enum value `END_OF_SINGLE_UTTERANCE` in enum `MessageType` is changed docs: A comment for field `session_ttl` in message `.google.cloud.dialogflow.cx.v3.QueryParameters` is changed docs: A comment for message `QueryInput` is changed docs: A comment for field `text` in message `.google.cloud.dialogflow.cx.v3.TextInput` is changed PiperOrigin-RevId: 605402250
1 parent fbcfef0 commit 802bb2c

10 files changed

Lines changed: 306 additions & 39 deletions

google/cloud/dialogflow/cx/v3/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ java_gapic_library(
106106
rest_numeric_enums = True,
107107
service_yaml = "dialogflow_v3.yaml",
108108
test_deps = [
109-
"//google/cloud/location:location_java_grpc",
110109
":cx_java_grpc",
110+
"//google/cloud/location:location_java_grpc",
111111
],
112112
transport = "grpc+rest",
113113
deps = [
@@ -407,6 +407,7 @@ load(
407407

408408
csharp_proto_library(
409409
name = "cx_csharp_proto",
410+
extra_opts = [],
410411
deps = [":cx_proto"],
411412
)
412413

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ message Agent {
303303
// Immutable. Name of the start flow in this agent. A start flow will be
304304
// automatically created when the agent is created, and can only be deleted by
305305
// deleting the agent. Format: `projects/<Project ID>/locations/<Location
306-
// ID>/agents/<Agent ID>/flows/<Flow ID>`.
306+
// ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
307+
// flow with id "00000000-0000-0000-0000-000000000000" is allowed.
307308
string start_flow = 16 [
308309
(google.api.field_behavior) = IMMUTABLE,
309310
(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }

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

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ enum SpeechModelVariant {
9797

9898
// Use the best available variant of the [Speech
9999
// model][InputAudioConfig.model] that the caller is eligible for.
100-
//
101-
// Please see the [Dialogflow
102-
// docs](https://cloud.google.com/dialogflow/docs/data-logging) for
103-
// how to make your project eligible for enhanced models.
104100
USE_BEST_AVAILABLE = 1;
105101

106102
// Use standard model variant even if an enhanced model is available. See the
@@ -118,11 +114,6 @@ enum SpeechModelVariant {
118114
// The [Cloud Speech
119115
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
120116
// describes which models have enhanced variants.
121-
//
122-
// * If the API caller isn't eligible for enhanced models, Dialogflow returns
123-
// an error. Please see the [Dialogflow
124-
// docs](https://cloud.google.com/dialogflow/docs/data-logging)
125-
// for how to make your project eligible.
126117
USE_ENHANCED = 3;
127118
}
128119

@@ -212,28 +203,10 @@ message InputAudioConfig {
212203
// for more details.
213204
repeated string phrase_hints = 4;
214205

215-
// Optional. Which Speech model to select for the given request. Select the
216-
// model best suited to your domain to get best results. If a model is not
217-
// explicitly specified, then Dialogflow auto-selects a model based on other
218-
// parameters in the InputAudioConfig and Agent settings.
219-
// If enhanced speech model is enabled for the agent and an enhanced
220-
// version of the specified model for the language does not exist, then the
221-
// speech is recognized using the standard version of the specified model.
222-
// Refer to
223-
// [Cloud Speech API
224-
// documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
225-
// for more details.
226-
// If you specify a model, the following models typically have the best
227-
// performance:
228-
//
229-
// - phone_call (best for Agent Assist and telephony)
230-
// - latest_short (best for Dialogflow non-telephony)
231-
// - command_and_search
232-
//
233-
// Leave this field unspecified to use
234-
// [Agent Speech
235-
// settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
236-
// for model selection.
206+
// Optional. Which Speech model to select for the given request.
207+
// For more information, see
208+
// [Speech
209+
// models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
237210
string model = 7;
238211

239212
// Optional. Which variant of the [Speech
@@ -252,6 +225,12 @@ message InputAudioConfig {
252225

253226
// Configuration of barge-in behavior during the streaming of input audio.
254227
BargeInConfig barge_in_config = 15;
228+
229+
// If `true`, the request will opt out for STT conformer model migration.
230+
// This field will be deprecated once force migration takes place in June
231+
// 2024. Please refer to [Dialogflow CX Speech model
232+
// migration](https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
233+
bool opt_out_conformer_model_migration = 26;
255234
}
256235

257236
// Gender of the voice as described in

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,7 @@ message Changelog {
153153

154154
// The timestamp of the change.
155155
google.protobuf.Timestamp create_time = 4;
156+
157+
// The affected language code of the change.
158+
string language_code = 14;
156159
}

google/cloud/dialogflow/cx/v3/dialogflow_grpc_service_config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
{
1212
"service": "google.cloud.dialogflow.cx.v3.Deployments"
1313
},
14+
{
15+
"service": "google.cloud.dialogflow.cx.v3.EncryptionSpecService"
16+
},
1417
{
1518
"service": "google.cloud.dialogflow.cx.v3.EntityTypes"
1619
},
@@ -35,6 +38,15 @@
3538
{
3639
"service": "google.cloud.dialogflow.cx.v3.Pages"
3740
},
41+
{
42+
"service": "google.cloud.dialogflow.cx.v3.Playbooks"
43+
},
44+
{
45+
"service": "google.cloud.dialogflow.cx.v3.Examples"
46+
},
47+
{
48+
"service": "google.cloud.dialogflow.cx.v3.Tools"
49+
},
3850
{
3951
"service": "google.cloud.dialogflow.cx.v3.SecuritySettingsService"
4052
},

google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@ types:
3131
- name: google.cloud.dialogflow.cx.v3.DeployFlowMetadata
3232
- name: google.cloud.dialogflow.cx.v3.DeployFlowResponse
3333
- name: google.cloud.dialogflow.cx.v3.ExportAgentResponse
34+
- name: google.cloud.dialogflow.cx.v3.ExportEntityTypesMetadata
35+
- name: google.cloud.dialogflow.cx.v3.ExportEntityTypesResponse
3436
- name: google.cloud.dialogflow.cx.v3.ExportFlowResponse
3537
- name: google.cloud.dialogflow.cx.v3.ExportIntentsMetadata
3638
- name: google.cloud.dialogflow.cx.v3.ExportIntentsResponse
3739
- name: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata
3840
- name: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse
41+
- name: google.cloud.dialogflow.cx.v3.ImportEntityTypesMetadata
42+
- name: google.cloud.dialogflow.cx.v3.ImportEntityTypesResponse
3943
- name: google.cloud.dialogflow.cx.v3.ImportFlowResponse
4044
- name: google.cloud.dialogflow.cx.v3.ImportIntentsMetadata
4145
- name: google.cloud.dialogflow.cx.v3.ImportIntentsResponse

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

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ 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/v3/inline.proto";
24+
import "google/longrunning/operations.proto";
2325
import "google/protobuf/empty.proto";
2426
import "google/protobuf/field_mask.proto";
2527

@@ -94,6 +96,32 @@ service EntityTypes {
9496
};
9597
option (google.api.method_signature) = "parent";
9698
}
99+
100+
// Exports the selected entity types.
101+
rpc ExportEntityTypes(ExportEntityTypesRequest)
102+
returns (google.longrunning.Operation) {
103+
option (google.api.http) = {
104+
post: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:export"
105+
body: "*"
106+
};
107+
option (google.longrunning.operation_info) = {
108+
response_type: "ExportEntityTypesResponse"
109+
metadata_type: "ExportEntityTypesMetadata"
110+
};
111+
}
112+
113+
// Imports the specified entitytypes into the agent.
114+
rpc ImportEntityTypes(ImportEntityTypesRequest)
115+
returns (google.longrunning.Operation) {
116+
option (google.api.http) = {
117+
post: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes:import"
118+
body: "*"
119+
};
120+
option (google.longrunning.operation_info) = {
121+
response_type: "ImportEntityTypesResponse"
122+
metadata_type: "ImportEntityTypesMetadata"
123+
};
124+
}
97125
}
98126

99127
// Entities are extracted from user input and represent parameters that are
@@ -230,6 +258,202 @@ message EntityType {
230258
bool redact = 9;
231259
}
232260

261+
// The request message for
262+
// [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes].
263+
message ExportEntityTypesRequest {
264+
// Data format of the exported entity types.
265+
enum DataFormat {
266+
// Unspecified format. Treated as `BLOB`.
267+
DATA_FORMAT_UNSPECIFIED = 0;
268+
269+
// EntityTypes will be exported as raw bytes.
270+
BLOB = 1;
271+
272+
// EntityTypes will be exported in JSON Package format.
273+
JSON_PACKAGE = 5;
274+
}
275+
276+
// Required. The name of the parent agent to export entity types.
277+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
278+
// ID>`.
279+
string parent = 1 [
280+
(google.api.field_behavior) = REQUIRED,
281+
(google.api.resource_reference) = {
282+
child_type: "dialogflow.googleapis.com/EntityType"
283+
}
284+
];
285+
286+
// Required. The name of the entity types to export.
287+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
288+
// ID>/entityTypes/<EntityType ID>`.
289+
repeated string entity_types = 2 [(google.api.field_behavior) = REQUIRED];
290+
291+
// The destination to export.
292+
oneof destination {
293+
// Optional. The [Google Cloud
294+
// Storage](https://cloud.google.com/storage/docs/) URI to export the entity
295+
// types to. The format of this URI must be
296+
// `gs://<bucket-name>/<object-name>`.
297+
//
298+
// Dialogflow performs a write operation for the Cloud Storage object
299+
// on the caller's behalf, so your request authentication must
300+
// have write permissions for the object. For more information, see
301+
// [Dialogflow access
302+
// control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
303+
string entity_types_uri = 3 [(google.api.field_behavior) = OPTIONAL];
304+
305+
// Optional. The option to return the serialized entity types inline.
306+
bool entity_types_content_inline = 4
307+
[(google.api.field_behavior) = OPTIONAL];
308+
}
309+
310+
// Optional. The data format of the exported entity types. If not specified,
311+
// `BLOB` is assumed.
312+
DataFormat data_format = 5 [(google.api.field_behavior) = OPTIONAL];
313+
314+
// Optional. The language to retrieve the entity type for. The following
315+
// fields are language dependent:
316+
//
317+
// * `EntityType.entities.value`
318+
// * `EntityType.entities.synonyms`
319+
// * `EntityType.excluded_phrases.value`
320+
//
321+
// If not specified, all language dependent fields will be retrieved.
322+
// [Many
323+
// languages](https://cloud.google.com/dialogflow/docs/reference/language)
324+
// are supported.
325+
// Note: languages must be enabled in the agent before they can be used.
326+
string language_code = 6 [(google.api.field_behavior) = OPTIONAL];
327+
}
328+
329+
// The response message for
330+
// [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes].
331+
message ExportEntityTypesResponse {
332+
// Exported entity types can be either in cloud storage or local download.
333+
oneof exported_entity_types {
334+
// The URI to a file containing the exported entity types. This field is
335+
// populated only if `entity_types_uri` is specified in
336+
// [ExportEntityTypesRequest][google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest].
337+
string entity_types_uri = 1;
338+
339+
// Uncompressed byte content for entity types. This field is populated only
340+
// if `entity_types_content_inline` is set to true in
341+
// [ExportEntityTypesRequest][google.cloud.dialogflow.cx.v3.ExportEntityTypesRequest].
342+
InlineDestination entity_types_content = 2;
343+
}
344+
}
345+
346+
// Metadata returned for the
347+
// [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ExportEntityTypes]
348+
// long running operation.
349+
message ExportEntityTypesMetadata {}
350+
351+
// The request message for
352+
// [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes].
353+
message ImportEntityTypesRequest {
354+
// Merge option when display name conflicts exist during import.
355+
enum MergeOption {
356+
// Unspecified. If used, system uses REPORT_CONFLICT as default.
357+
MERGE_OPTION_UNSPECIFIED = 0;
358+
359+
// Replace the original entity type in the agent with the new entity type
360+
// when display name conflicts exist.
361+
REPLACE = 1;
362+
363+
// Merge the original entity type with the new entity type when display name
364+
// conflicts exist.
365+
MERGE = 2;
366+
367+
// Create new entity types with new display names to differentiate them from
368+
// the existing entity types when display name conflicts exist.
369+
RENAME = 3;
370+
371+
// Report conflict information if display names conflict is detected.
372+
// Otherwise, import entity types.
373+
REPORT_CONFLICT = 4;
374+
375+
// Keep the original entity type and discard the conflicting new entity type
376+
// when display name conflicts exist.
377+
KEEP = 5;
378+
}
379+
380+
// Required. The agent to import the entity types into.
381+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
382+
string parent = 1 [
383+
(google.api.field_behavior) = REQUIRED,
384+
(google.api.resource_reference) = {
385+
child_type: "dialogflow.googleapis.com/EntityType"
386+
}
387+
];
388+
389+
// Required. The entity types to import.
390+
oneof entity_types {
391+
// The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
392+
// to import entity types from. The format of this URI must be
393+
// `gs://<bucket-name>/<object-name>`.
394+
//
395+
// Dialogflow performs a read operation for the Cloud Storage object
396+
// on the caller's behalf, so your request authentication must
397+
// have read permissions for the object. For more information, see
398+
// [Dialogflow access
399+
// control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
400+
string entity_types_uri = 2;
401+
402+
// Uncompressed byte content of entity types.
403+
InlineSource entity_types_content = 3;
404+
}
405+
406+
// Required. Merge option for importing entity types.
407+
MergeOption merge_option = 4 [(google.api.field_behavior) = REQUIRED];
408+
409+
// Optional. The target entity type to import into.
410+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
411+
// ID>/entity_types/<EntityType ID>`.
412+
// If set, there should be only one entity type included in
413+
// [entity_types][google.cloud.dialogflow.cx.v3.ImportEntityTypesRequest.entity_types],
414+
// of which the type should match the type of the target entity type. All
415+
// [entities][google.cloud.dialogflow.cx.v3.EntityType.entities] in the
416+
// imported entity type will be added to the target entity type.
417+
string target_entity_type = 5 [
418+
(google.api.field_behavior) = OPTIONAL,
419+
(google.api.resource_reference) = {
420+
type: "dialogflow.googleapis.com/EntityType"
421+
}
422+
];
423+
}
424+
425+
// The response message for
426+
// [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes].
427+
message ImportEntityTypesResponse {
428+
// Conflicting resources detected during the import process. Only filled when
429+
// [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] is set in the
430+
// request and there are conflicts in the display names.
431+
message ConflictingResources {
432+
// Display names of conflicting entity types.
433+
repeated string entity_type_display_names = 1;
434+
435+
// Display names of conflicting entities.
436+
repeated string entity_display_names = 2;
437+
}
438+
439+
// The unique identifier of the imported entity types.
440+
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
441+
// ID>/entity_types/<EntityType ID>`.
442+
repeated string entity_types = 1 [(google.api.resource_reference) = {
443+
type: "dialogflow.googleapis.com/EntityType"
444+
}];
445+
446+
// Info which resources have conflicts when
447+
// [REPORT_CONFLICT][ImportEntityTypesResponse.REPORT_CONFLICT] merge_option
448+
// is set in ImportEntityTypesRequest.
449+
ConflictingResources conflicting_resources = 2;
450+
}
451+
452+
// Metadata returned for the
453+
// [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ImportEntityTypes]
454+
// long running operation.
455+
message ImportEntityTypesMetadata {}
456+
233457
// The request message for
234458
// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
235459
message ListEntityTypesRequest {

0 commit comments

Comments
 (0)