Skip to content

Commit

Permalink
feat: [dialogflow-cx] add options of client_certificate_settings, big…
Browse files Browse the repository at this point in the history
…query_export_settings, bearer_token_config and boost_control_spec; add support of ALAW encoding (#5787)

* feat: add options of client_certificate_settings, bigquery_export_settings, bearer_token_config and boost_control_spec; add support of ALAW encoding

PiperOrigin-RevId: 693462707

Source-Link: googleapis/googleapis@dc21975

Source-Link: googleapis/googleapis-gen@4ff8e5c
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6IjRmZjhlNWM0NjE0YTc3YjcyZDQzZjViNjRiNzFkOTE3MWVhNzgyNTkifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add options of client_certificate_settings, bigquery_export_settings, bearer_token_config and boost_control_spec; add support of ALAW encoding

PiperOrigin-RevId: 693477602

Source-Link: googleapis/googleapis@5e306b9

Source-Link: googleapis/googleapis-gen@1b7949c
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6IjFiNzk0OWNiZjExZGUyMjFjMjFiM2QzZTU0ZDA4NTcxN2RkZjk4ZDQifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 13, 2024
1 parent 65a900b commit 49e8cd1
Show file tree
Hide file tree
Showing 330 changed files with 7,226 additions and 2,005 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
import "google/cloud/dialogflow/cx/v3/gcs.proto";
import "google/protobuf/duration.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
Expand Down Expand Up @@ -87,7 +86,7 @@ message AdvancedSettings {

// Define behaviors on logging.
message LoggingSettings {
// Enables StackDriver logging.
// Enables Google Cloud Logging.
bool enable_stackdriver_logging = 2;

// Enables DF Interaction logging.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/struct.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
option java_outer_classname = "AgentProto";
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: "secretmanager.googleapis.com/SecretVersion"
pattern: "projects/{project}/secrets/{secret}/versions/{version}"
};

// Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
service Agents {
Expand Down Expand Up @@ -268,13 +271,41 @@ message Agent {
[(google.api.field_behavior) = OPTIONAL];
}

// Settings for custom client certificates.
message ClientCertificateSettings {
// Required. The ssl certificate encoded in PEM format. This string must
// include the begin header and end footer lines.
string ssl_certificate = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The name of the SecretManager secret version resource storing
// the private key encoded in PEM format. Format:
// `projects/{project}/secrets/{secret}/versions/{version}`
string private_key = 2 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "secretmanager.googleapis.com/SecretVersion"
}
];

// Optional. The name of the SecretManager secret version resource storing
// the passphrase. 'passphrase' should be left unset if the private key is
// not encrypted.
// Format: `projects/{project}/secrets/{secret}/versions/{version}`
string passphrase = 3 [
(google.api.field_behavior) = OPTIONAL,
(google.api.resource_reference) = {
type: "secretmanager.googleapis.com/SecretVersion"
}
];
}

// The unique identifier of the agent.
// Required for the
// [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
// method.
// [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
// populates the name automatically.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string name = 1;

// Required. The human-readable name of the agent, unique within the location.
Expand Down Expand Up @@ -316,17 +347,17 @@ message Agent {

// Immutable. Name of the start flow in this agent. A start flow will be
// automatically created when the agent is created, and can only be deleted by
// deleting the agent. Format: `projects/<Project ID>/locations/<Location
// ID>/agents/<Agent ID>/flows/<Flow ID>`.
// deleting the agent. Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
string start_flow = 16 [
(google.api.field_behavior) = IMMUTABLE,
(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }
];

// Name of the
// [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
// reference for the agent. Format: `projects/<Project ID>/locations/<Location
// ID>/securitySettings/<Security Settings ID>`.
// reference for the agent. Format:
// `projects/<ProjectID>/locations/<LocationID>/securitySettings/<SecuritySettingsID>`.
string security_settings = 17 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/SecuritySettings"
}];
Expand Down Expand Up @@ -371,13 +402,17 @@ message Agent {
// Optional. Settings for end user personalization.
PersonalizationSettings personalization_settings = 42
[(google.api.field_behavior) = OPTIONAL];

// Optional. Settings for custom client certificates.
ClientCertificateSettings client_certificate_settings = 43
[(google.api.field_behavior) = OPTIONAL];
}

// The request message for
// [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
message ListAgentsRequest {
// Required. The location to list all agents for.
// Format: `projects/<Project ID>/locations/<Location ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -409,7 +444,7 @@ message ListAgentsResponse {
// [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
message GetAgentRequest {
// Required. The name of the agent.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -422,7 +457,7 @@ message GetAgentRequest {
// [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
message CreateAgentRequest {
// Required. The location to create a agent for.
// Format: `projects/<Project ID>/locations/<Location ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -449,7 +484,7 @@ message UpdateAgentRequest {
// [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
message DeleteAgentRequest {
// Required. The name of the agent to delete.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -483,7 +518,7 @@ message ExportAgentRequest {
}

// Required. The name of the agent to export.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -508,8 +543,8 @@ message ExportAgentRequest {
DataFormat data_format = 3 [(google.api.field_behavior) = OPTIONAL];

// Optional. Environment name. If not set, draft environment is assumed.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/environments/<Environment ID>`.
// Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string environment = 5 [
(google.api.field_behavior) = OPTIONAL,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -572,7 +607,7 @@ message RestoreAgentRequest {
}

// Required. The name of the agent to restore into.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -608,7 +643,7 @@ message RestoreAgentRequest {
// [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
message ValidateAgentRequest {
// Required. The agent to validate.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -624,8 +659,8 @@ message ValidateAgentRequest {
// [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
message GetAgentValidationResultRequest {
// Required. The agent name.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/validationResult`.
// Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/validationResult`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -646,8 +681,8 @@ message AgentValidationResult {
};

// The unique identifier of the agent validation result.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/validationResult`.
// Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/validationResult`.
string name = 1;

// Contains all flow validation results.
Expand All @@ -658,8 +693,8 @@ message AgentValidationResult {
// [GetGenerativeSettings][google.cloud.dialogflow.cx.v3.Agents.GetGenerativeSettings]
// RPC.
message GetGenerativeSettingsRequest {
// Required. Format: `projects/<Project ID>/locations/<Location
// ID>/agents/<Agent ID>/generativeSettings`.
// Required. Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generativeSettings`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ enum AudioEncoding {
// is replaced with a single byte containing the block length. Only Speex
// wideband is supported. `sample_rate_hertz` must be 16000.
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;

// 8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
AUDIO_ENCODING_ALAW = 8;
}

// Variant of the specified [Speech
Expand Down Expand Up @@ -324,6 +327,9 @@ enum OutputAudioEncoding {

// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
OUTPUT_AUDIO_ENCODING_MULAW = 5;

// 8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law.
OUTPUT_AUDIO_ENCODING_ALAW = 6;
}

// Instructs the speech synthesizer how to generate the output audio content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/protobuf/timestamp.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
Expand Down Expand Up @@ -59,7 +58,7 @@ service Changelogs {
// [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
message ListChangelogsRequest {
// Required. The agent containing the changelogs.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
// Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -114,8 +113,8 @@ message ListChangelogsResponse {
// [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
message GetChangelogRequest {
// Required. The name of the changelog to get.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/changelogs/<Changelog ID>`.
// Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/changelogs/<ChangelogID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -132,8 +131,8 @@ message Changelog {
};

// The unique identifier of the changelog.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/changelogs/<Changelog ID>`.
// Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/changelogs/<ChangelogID>`.
string name = 1;

// Email address of the authenticated user.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ 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 = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
option java_multiple_files = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,29 +86,29 @@ message Deployment {
// Result of the deployment.
message Result {
// Results of test cases running before the deployment.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/testCases/<TestCase ID>/results/<TestCaseResult ID>`.
// Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
repeated string deployment_test_results = 1
[(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/TestCaseResult"
}];

// The name of the experiment triggered by this deployment.
// Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/environments/<Environment ID>/experiments/<Experiment ID>.
// Format:
// projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/experiments/<ExperimentID>.
string experiment = 2 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/Experiment"
}];
}

// The name of the deployment.
// Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/environments/<Environment ID>/deployments/<Deployment ID>.
// Format:
// projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>.
string name = 1;

// The name of the flow version for this deployment.
// Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/flows/<Flow ID>/versions/<Verion ID>.
// Format:
// projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VerionID>.
string flow_version = 2 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/Version"
}];
Expand All @@ -130,9 +130,8 @@ message Deployment {
// [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
message ListDeploymentsRequest {
// Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
// list all environments for. Format: `projects/<Project
// ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
// ID>`.
// list all environments for. Format:
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -167,8 +166,7 @@ message ListDeploymentsResponse {
message GetDeploymentRequest {
// Required. The name of the
// [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
// `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/deployments/<DeploymentID>`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
Loading

0 comments on commit 49e8cd1

Please sign in to comment.