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

feat: added audio_export_settings #257

Merged
merged 8 commits into from
Apr 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions protos/google/cloud/dialogflow/cx/v3/advanced_settings.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ syntax = "proto3";

package google.cloud.dialogflow.cx.v3;

import "google/api/field_behavior.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx";
Expand Down
5 changes: 5 additions & 0 deletions protos/google/cloud/dialogflow/cx/v3/audio_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.dialogflow.cx.v3;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/duration.proto";

option cc_enable_arenas = true;
Expand All @@ -27,6 +28,10 @@ option java_outer_classname = "AudioConfigProto";
option java_package = "com.google.cloud.dialogflow.cx.v3";
option objc_class_prefix = "DF";
option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
option (google.api.resource_definition) = {
type: "automl.googleapis.com/Model"
pattern: "projects/{project}/locations/{location}/models/{model}"
};

// Audio encoding of the audio content sent in the conversational query request.
// Refer to the
Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/cx/v3/flow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ message Flow {
//
// TransitionRoutes are evalauted in the following order:
//
// * TransitionRoutes with intent specified..
// * TransitionRoutes with intent specified.
// * TransitionRoutes with only condition specified.
//
// TransitionRoutes with intent specified are inherited by pages in the flow.
Expand Down
6 changes: 5 additions & 1 deletion protos/google/cloud/dialogflow/cx/v3/fulfillment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ message Fulfillment {
// that have slow webhooks.
bool return_partial_responses = 8;

// The tag used by the webhook to identify which fulfillment is being called.
// The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
// called.
// The tag is typically used by the webhook service to identify which
// fulfillment is being called, but it could be used for other purposes.
// This field is required if `webhook` is specified.
string tag = 3;

Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/cx/v3/page.proto
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ message Page {
// ID>/flows/<Flow ID>/pages/<Page ID>`.
string name = 1;

// Required. The human-readable name of the page, unique within the agent.
// Required. The human-readable name of the page, unique within the flow.
string display_name = 2 [(google.api.field_behavior) = REQUIRED];

// The fulfillment to call when the session is entering the page.
Expand Down
50 changes: 50 additions & 0 deletions protos/google/cloud/dialogflow/cx/v3/security_settings.proto
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,41 @@ message SecuritySettings {
DIALOGFLOW_HISTORY = 1;
}

// Settings for exporting audio.
message AudioExportSettings {
// File format for exported audio file. Currently only in telephony
// recordings.
enum AudioFormat {
// Unspecified. Do not use.
AUDIO_FORMAT_UNSPECIFIED = 0;

// G.711 mu-law PCM with 8kHz sample rate.
MULAW = 1;

// MP3 file format.
MP3 = 2;

// OGG Vorbis.
OGG = 3;
}

// Cloud Storage bucket to export audio record to. You need to grant
// `service-<Conversation Project
// Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Storage Object
// Admin` role in this bucket.
string gcs_bucket = 1;

// Filename pattern for exported audio.
string audio_export_pattern = 2;

// Enable audio redaction if it is true.
bool enable_audio_redaction = 3;

// File format for exported audio file. Currently only in telephony
// recordings.
AudioFormat audio_format = 4;
}

// Settings for exporting conversations to
// [Insights](https://cloud.google.com/contact-center/insights/docs).
message InsightsExportSettings {
Expand Down Expand Up @@ -302,6 +337,21 @@ message SecuritySettings {
// List of types of data to remove when retention settings triggers purge.
repeated PurgeDataType purge_data_types = 8;

// Controls audio export settings for post-conversation analytics when
// ingesting audio to conversations via [Participants.AnalyzeContent][] or
// [Participants.StreamingAnalyzeContent][].
//
// If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
// [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
//
// If audio export is enabled, audio is recorded and saved to
// [audio_export_settings.gcs_bucket][], subject to retention policy of
// [audio_export_settings.gcs_bucket][].
//
// This setting won't effect audio input for implicit sessions via
// [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
AudioExportSettings audio_export_settings = 12;

// Controls conversation exporting settings to Insights after conversation is
// completed.
//
Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/cx/v3/test_case.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ service TestCases {
}

// Imports the test cases from a Cloud Storage bucket or a local file. It
// always creates new test cases and won't overwite any existing ones. The
// always creates new test cases and won't overwrite any existing ones. The
// provided ID in the imported test case is neglected.
//
// This method is a [long-running
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ message TransitionRouteGroup {
string name = 1;

// Required. The human-readable name of the transition route group, unique within
// the [Agent][google.cloud.dialogflow.cx.v3.Agent]. The display name can be no longer than 30 characters.
// the flow. The display name can be no longer than 30 characters.
string display_name = 2 [(google.api.field_behavior) = REQUIRED];

// Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
Expand Down
7 changes: 5 additions & 2 deletions protos/google/cloud/dialogflow/cx/v3/webhook.proto
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ message DeleteWebhookRequest {
message WebhookRequest {
// Represents fulfillment information communicated to the webhook.
message FulfillmentInfo {
// Always present. The tag used to identify which fulfillment is being
// called.
// Always present.
// The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
// field by Dialogflow when the associated webhook is called.
// The tag is typically used by the webhook service to identify which
// fulfillment is being called, but it could be used for other purposes.
string tag = 1;
}

Expand Down
4 changes: 4 additions & 0 deletions protos/google/cloud/dialogflow/cx/v3beta1/audio_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ option java_outer_classname = "AudioConfigProto";
option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
option objc_class_prefix = "DF";
option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1";
option (google.api.resource_definition) = {
type: "automl.googleapis.com/Model"
pattern: "projects/{project}/locations/{location}/models/{model}"
};

// Audio encoding of the audio content sent in the conversational query request.
// Refer to the
Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/cx/v3beta1/flow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ message Flow {
//
// TransitionRoutes are evalauted in the following order:
//
// * TransitionRoutes with intent specified..
// * TransitionRoutes with intent specified.
// * TransitionRoutes with only condition specified.
//
// TransitionRoutes with intent specified are inherited by pages in the flow.
Expand Down
6 changes: 5 additions & 1 deletion protos/google/cloud/dialogflow/cx/v3beta1/fulfillment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ message Fulfillment {
// that have slow webhooks.
bool return_partial_responses = 8;

// The tag used by the webhook to identify which fulfillment is being called.
// The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest]
// `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
// called.
// The tag is typically used by the webhook service to identify which
// fulfillment is being called, but it could be used for other purposes.
// This field is required if `webhook` is specified.
string tag = 3;

Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/cx/v3beta1/page.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ message Page {
// ID>/flows/<Flow ID>/pages/<Page ID>`.
string name = 1;

// Required. The human-readable name of the page, unique within the agent.
// Required. The human-readable name of the page, unique within the flow.
string display_name = 2 [(google.api.field_behavior) = REQUIRED];

// The fulfillment to call when the session is entering the page.
Expand Down
2 changes: 1 addition & 1 deletion protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ service TestCases {
}

// Imports the test cases from a Cloud Storage bucket or a local file. It
// always creates new test cases and won't overwite any existing ones. The
// always creates new test cases and won't overwrite any existing ones. The
// provided ID in the imported test case is neglected.
//
// This method is a [long-running
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ message TransitionRouteGroup {
string name = 1;

// Required. The human-readable name of the transition route group, unique within
// the [Agent][google.cloud.dialogflow.cx.v3beta1.Agent]. The display name can be no longer than 30 characters.
// the flow. The display name can be no longer than 30 characters.
string display_name = 2 [(google.api.field_behavior) = REQUIRED];

// Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup].
Expand Down
7 changes: 5 additions & 2 deletions protos/google/cloud/dialogflow/cx/v3beta1/webhook.proto
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,11 @@ message DeleteWebhookRequest {
message WebhookRequest {
// Represents fulfillment information communicated to the webhook.
message FulfillmentInfo {
// Always present. The tag used to identify which fulfillment is being
// called.
// Always present.
// The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3beta1.Fulfillment.tag] field will be populated in this
// field by Dialogflow when the associated webhook is called.
// The tag is typically used by the webhook service to identify which
// fulfillment is being called, but it could be used for other purposes.
string tag = 1;
}

Expand Down
Loading