Skip to content

Commit 57673de

Browse files
Google APIscopybara-github
authored andcommitted
feat: added gcs.proto. added support for GcsDestination and TextToSpeechSettings
feat!: Remove [REQUIRED] for VersionConfig docs: add more meaningful comments PiperOrigin-RevId: 511306725
1 parent 68bcf7a commit 57673de

8 files changed

Lines changed: 69 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ proto_library(
3131
"experiment.proto",
3232
"flow.proto",
3333
"fulfillment.proto",
34+
"gcs.proto",
3435
"intent.proto",
3536
"page.proto",
3637
"response_message.proto",
@@ -191,8 +192,8 @@ go_gapic_library(
191192
srcs = [":cx_proto_with_info"],
192193
grpc_service_config = "dialogflow_grpc_service_config.json",
193194
importpath = "cloud.google.com/go/dialogflow/cx/apiv3;cx",
194-
release_level = "ga",
195195
metadata = True,
196+
release_level = "ga",
196197
rest_numeric_enums = True,
197198
service_yaml = "dialogflow_v3.yaml",
198199
transport = "grpc+rest",

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/cloud/dialogflow/cx/v3/gcs.proto";
2021

2122
option cc_enable_arenas = true;
2223
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
@@ -48,6 +49,13 @@ message AdvancedSettings {
4849
bool enable_interaction_logging = 3;
4950
}
5051

52+
// If present, incoming audio is exported by Dialogflow to the configured
53+
// Google Cloud Storage destination.
54+
// Exposed at the following levels:
55+
// - Agent level
56+
// - Flow level
57+
GcsDestination audio_export_gcs_destination = 2;
58+
5159
// Settings for logging.
5260
// Settings for Dialogflow History, Contact Center messages, StackDriver logs,
5361
// and speech logging.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/cloud/dialogflow/cx/v3/advanced_settings.proto";
24+
import "google/cloud/dialogflow/cx/v3/audio_config.proto";
2425
import "google/cloud/dialogflow/cx/v3/flow.proto";
2526
import "google/longrunning/operations.proto";
2627
import "google/protobuf/empty.proto";
2728
import "google/protobuf/field_mask.proto";
29+
import "google/protobuf/struct.proto";
2830

2931
option cc_enable_arenas = true;
3032
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
@@ -266,6 +268,10 @@ message Agent {
266268
// Hierarchical advanced settings for this agent. The settings exposed at the
267269
// lower level overrides the settings exposed at the higher level.
268270
AdvancedSettings advanced_settings = 22;
271+
272+
// Settings on instructing the speech synthesizer on how to generate the
273+
// output audio content.
274+
TextToSpeechSettings text_to_speech_settings = 31;
269275
}
270276

271277
// The request message for

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,11 @@ message OutputAudioConfig {
316316
// Optional. Configuration of how speech should be synthesized.
317317
SynthesizeSpeechConfig synthesize_speech_config = 3;
318318
}
319+
320+
// Settings related to speech generating.
321+
message TextToSpeechSettings {
322+
// Configuration of how speech should be synthesized, mapping from
323+
// language (https://dialogflow.com/docs/reference/language) to
324+
// SynthesizeSpeechConfig.
325+
map<string, SynthesizeSpeechConfig> synthesize_speech_configs = 1;
326+
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import "google/cloud/dialogflow/cx/v3/webhook.proto";
2525
import "google/longrunning/operations.proto";
2626
import "google/protobuf/empty.proto";
2727
import "google/protobuf/field_mask.proto";
28+
import "google/protobuf/struct.proto";
2829
import "google/protobuf/timestamp.proto";
2930

3031
option cc_enable_arenas = true;
@@ -253,12 +254,11 @@ message Environment {
253254
// 500 characters. If exceeded, the request is rejected.
254255
string description = 3;
255256

256-
// Required. A list of configurations for flow versions. You should include
257-
// version configs for all flows that are reachable from [`Start
257+
// A list of configurations for flow versions. You should include version
258+
// configs for all flows that are reachable from [`Start
258259
// Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
259260
// returned.
260-
repeated VersionConfig version_configs = 6
261-
[(google.api.field_behavior) = REQUIRED];
261+
repeated VersionConfig version_configs = 6;
262262

263263
// Output only. Update time of this environment.
264264
google.protobuf.Timestamp update_time = 5

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import "google/cloud/dialogflow/cx/v3/validation_message.proto";
2525
import "google/longrunning/operations.proto";
2626
import "google/protobuf/empty.proto";
2727
import "google/protobuf/field_mask.proto";
28+
import "google/protobuf/struct.proto";
2829
import "google/protobuf/timestamp.proto";
2930

3031
option cc_enable_arenas = true;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Copyright 2022 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.dialogflow.cx.v3;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option cc_enable_arenas = true;
22+
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
23+
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "GcsProto";
26+
option java_package = "com.google.cloud.dialogflow.cx.v3";
27+
option objc_class_prefix = "DF";
28+
option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
29+
30+
// Google Cloud Storage location for a Dialogflow operation that writes or
31+
// exports objects (e.g. exported agent or transcripts) outside of Dialogflow.
32+
message GcsDestination {
33+
// Required. The Google Cloud Storage URI for the exported objects. A URI is
34+
// of the form:
35+
// gs://bucket/object-name-or-prefix
36+
// Whether a full object name, or just a prefix, its usage depends on the
37+
// Dialogflow operation.
38+
string uri = 1 [(google.api.field_behavior) = REQUIRED];
39+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import "google/cloud/dialogflow/cx/v3/flow.proto";
2424
import "google/longrunning/operations.proto";
2525
import "google/protobuf/empty.proto";
2626
import "google/protobuf/field_mask.proto";
27+
import "google/protobuf/struct.proto";
2728
import "google/protobuf/timestamp.proto";
2829

2930
option cc_enable_arenas = true;

0 commit comments

Comments
 (0)