Skip to content

Commit b8d1491

Browse files
Google APIscopybara-github
authored andcommitted
feat: updated v3 dialogflow client libraries
docs: updated v3 dialogflow client libraries fix!: An existing field `start_flow` is moved in to oneof in message `.google.cloud.dialogflow.cx.v3.Agent` fix!: An existing field `webhook_ids` is removed from message `.google.cloud.dialogflow.cx.v3.QueryResult` fix!: An existing field `webhook_display_names` is removed from message `.google.cloud.dialogflow.cx.v3.QueryResult` fix!: An existing field `webhook_latencies` is removed from message `.google.cloud.dialogflow.cx.v3.QueryResult` fix!: An existing field `webhook_tags` is removed from message `.google.cloud.dialogflow.cx.v3.QueryResult` PiperOrigin-RevId: 856725401
1 parent 615bb9a commit b8d1491

38 files changed

+2434
-62
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ proto_library(
2828
"agent.proto",
2929
"audio_config.proto",
3030
"changelog.proto",
31+
"code_block.proto",
3132
"data_store_connection.proto",
3233
"deployment.proto",
3334
"entity_type.proto",
3435
"environment.proto",
36+
"example.proto",
3537
"experiment.proto",
3638
"flow.proto",
3739
"fulfillment.proto",
@@ -42,12 +44,17 @@ proto_library(
4244
"inline.proto",
4345
"intent.proto",
4446
"page.proto",
47+
"parameter_definition.proto",
48+
"playbook.proto",
4549
"response_message.proto",
4650
"safety_settings.proto",
4751
"security_settings.proto",
4852
"session.proto",
4953
"session_entity_type.proto",
5054
"test_case.proto",
55+
"tool.proto",
56+
"tool_call.proto",
57+
"trace.proto",
5158
"transition_route_group.proto",
5259
"validation_message.proto",
5360
"version.proto",
@@ -134,6 +141,8 @@ java_gapic_test(
134141
"com.google.cloud.dialogflow.cx.v3.EntityTypesClientTest",
135142
"com.google.cloud.dialogflow.cx.v3.EnvironmentsClientHttpJsonTest",
136143
"com.google.cloud.dialogflow.cx.v3.EnvironmentsClientTest",
144+
"com.google.cloud.dialogflow.cx.v3.ExamplesClientHttpJsonTest",
145+
"com.google.cloud.dialogflow.cx.v3.ExamplesClientTest",
137146
"com.google.cloud.dialogflow.cx.v3.ExperimentsClientHttpJsonTest",
138147
"com.google.cloud.dialogflow.cx.v3.ExperimentsClientTest",
139148
"com.google.cloud.dialogflow.cx.v3.FlowsClientHttpJsonTest",
@@ -144,6 +153,8 @@ java_gapic_test(
144153
"com.google.cloud.dialogflow.cx.v3.IntentsClientTest",
145154
"com.google.cloud.dialogflow.cx.v3.PagesClientHttpJsonTest",
146155
"com.google.cloud.dialogflow.cx.v3.PagesClientTest",
156+
"com.google.cloud.dialogflow.cx.v3.PlaybooksClientHttpJsonTest",
157+
"com.google.cloud.dialogflow.cx.v3.PlaybooksClientTest",
147158
"com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClientHttpJsonTest",
148159
"com.google.cloud.dialogflow.cx.v3.SecuritySettingsServiceClientTest",
149160
"com.google.cloud.dialogflow.cx.v3.SessionEntityTypesClientHttpJsonTest",
@@ -152,6 +163,8 @@ java_gapic_test(
152163
"com.google.cloud.dialogflow.cx.v3.SessionsClientTest",
153164
"com.google.cloud.dialogflow.cx.v3.TestCasesClientHttpJsonTest",
154165
"com.google.cloud.dialogflow.cx.v3.TestCasesClientTest",
166+
"com.google.cloud.dialogflow.cx.v3.ToolsClientHttpJsonTest",
167+
"com.google.cloud.dialogflow.cx.v3.ToolsClientTest",
155168
"com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClientHttpJsonTest",
156169
"com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupsClientTest",
157170
"com.google.cloud.dialogflow.cx.v3.VersionsClientHttpJsonTest",
@@ -416,6 +429,7 @@ load(
416429

417430
csharp_proto_library(
418431
name = "cx_csharp_proto",
432+
extra_opts = [],
419433
deps = [":cx_proto"],
420434
)
421435

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

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

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -345,14 +345,31 @@ message Agent {
345345
// Speech recognition related settings.
346346
SpeechToTextSettings speech_to_text_settings = 13;
347347

348-
// Immutable. Name of the start flow in this agent. A start flow will be
349-
// automatically created when the agent is created, and can only be deleted by
350-
// deleting the agent. Format:
351-
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
352-
string start_flow = 16 [
353-
(google.api.field_behavior) = IMMUTABLE,
354-
(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }
355-
];
348+
// The resource to start the conversations with for the agent.
349+
oneof session_entry_resource {
350+
// Name of the start flow in this agent. A start flow will be automatically
351+
// created when the agent is created, and can only be deleted by deleting
352+
// the agent.
353+
// Format:
354+
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
355+
// Currently only the default start flow with id
356+
// "00000000-0000-0000-0000-000000000000" is allowed.
357+
string start_flow = 16 [(google.api.resource_reference) = {
358+
type: "dialogflow.googleapis.com/Flow"
359+
}];
360+
361+
// Name of the start playbook in this agent. A start playbook will be
362+
// automatically created when the agent is created, and can only be deleted
363+
// by deleting the agent.
364+
// Format:
365+
// `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
366+
// Currently only the
367+
// default playbook with id
368+
// "00000000-0000-0000-0000-000000000000" is allowed.
369+
string start_playbook = 39 [(google.api.resource_reference) = {
370+
type: "dialogflow.googleapis.com/Playbook"
371+
}];
372+
}
356373

357374
// Name of the
358375
// [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -42,6 +42,7 @@ enum AudioEncoding {
4242
AUDIO_ENCODING_UNSPECIFIED = 0;
4343

4444
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
45+
// LINT: LEGACY_NAMES
4546
AUDIO_ENCODING_LINEAR_16 = 1;
4647

4748
// [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio
@@ -310,12 +311,14 @@ enum OutputAudioEncoding {
310311

311312
// Uncompressed 16-bit signed little-endian samples (Linear PCM).
312313
// Audio content returned as LINEAR16 also contains a WAV header.
314+
// LINT: LEGACY_NAMES
313315
OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1;
314316

315317
// MP3 audio at 32kbps.
316318
OUTPUT_AUDIO_ENCODING_MP3 = 2;
317319

318320
// MP3 audio at 64kbps.
321+
// LINT: LEGACY_NAMES
319322
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4;
320323

321324
// Opus encoded audio wrapped in an ogg container. The result will be a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Copyright 2026 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 csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
22+
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "CodeBlockProto";
25+
option java_package = "com.google.cloud.dialogflow.cx.v3";
26+
option objc_class_prefix = "DF";
27+
28+
// Represents a code block.
29+
message CodeBlock {
30+
// Optional. Source code of the block in Python.
31+
string code = 1 [(google.api.field_behavior) = OPTIONAL];
32+
}

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/field_behavior.proto";
20+
import "google/protobuf/struct.proto";
2021

2122
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
2223
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
@@ -89,6 +90,9 @@ message DataStoreConnectionSignals {
8990

9091
// Text included in the prompt.
9192
string text = 3;
93+
94+
// Metadata associated with the document.
95+
google.protobuf.Struct metadata = 5;
9296
}
9397

9498
// Diagnostic info related to the answer generation model call.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@
3838
{
3939
"service": "google.cloud.dialogflow.cx.v3.Pages"
4040
},
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+
},
4150
{
4251
"service": "google.cloud.dialogflow.cx.v3.SecuritySettingsService"
4352
},

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

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ apis:
99
- name: google.cloud.dialogflow.cx.v3.Deployments
1010
- name: google.cloud.dialogflow.cx.v3.EntityTypes
1111
- name: google.cloud.dialogflow.cx.v3.Environments
12+
- name: google.cloud.dialogflow.cx.v3.Examples
1213
- name: google.cloud.dialogflow.cx.v3.Experiments
1314
- name: google.cloud.dialogflow.cx.v3.Flows
1415
- name: google.cloud.dialogflow.cx.v3.Generators
1516
- name: google.cloud.dialogflow.cx.v3.Intents
1617
- name: google.cloud.dialogflow.cx.v3.Pages
18+
- name: google.cloud.dialogflow.cx.v3.Playbooks
1719
- name: google.cloud.dialogflow.cx.v3.SecuritySettingsService
1820
- name: google.cloud.dialogflow.cx.v3.SessionEntityTypes
1921
- name: google.cloud.dialogflow.cx.v3.Sessions
2022
- name: google.cloud.dialogflow.cx.v3.TestCases
23+
- name: google.cloud.dialogflow.cx.v3.Tools
2124
- name: google.cloud.dialogflow.cx.v3.TransitionRouteGroups
2225
- name: google.cloud.dialogflow.cx.v3.Versions
2326
- name: google.cloud.dialogflow.cx.v3.Webhooks
@@ -57,20 +60,16 @@ documentation:
5760
Builds conversational interfaces (for example, chatbots, and voice-powered
5861
apps and devices).
5962
overview: |-
60-
<!-- mdformat off(presubmit failing, mdformat is as well) --> Dialogflow is
61-
a natural language understanding platform that makes it easy
63+
Dialogflow is a natural language understanding platform that makes it easy
6264
to design and integrate a conversational user interface into your mobile
6365
app, web application, device, bot, interactive voice response system, and
64-
so on. Using Dialogflow, you can provide new and engaging ways for
65-
users to interact with your product.
66-
67-
Dialogflow can analyze multiple types of input from your customers,
68-
including text or audio inputs (like from a phone or voice recording).
69-
It can also respond to your customers in a couple of ways, either through
70-
text or with synthetic speech.
71-
72-
For more information, see the
73-
[Dialogflow documentation](https://cloud.google.com/dialogflow/docs).
66+
so on. Using Dialogflow, you can provide new and engaging ways for users
67+
to interact with your product. Dialogflow can analyze multiple types of
68+
input from your customers, including text or audio inputs (like from a
69+
phone or voice recording). It can also respond to your customers in a
70+
couple of ways, either through text or with synthetic speech. For more
71+
information, see the [Dialogflow
72+
documentation](https://cloud.google.com/dialogflow/docs).
7473
rules:
7574
- selector: google.cloud.location.Locations.GetLocation
7675
description: Gets information about a location.
@@ -134,6 +133,11 @@ authentication:
134133
canonical_scopes: |-
135134
https://www.googleapis.com/auth/cloud-platform,
136135
https://www.googleapis.com/auth/dialogflow
136+
- selector: 'google.cloud.dialogflow.cx.v3.Examples.*'
137+
oauth:
138+
canonical_scopes: |-
139+
https://www.googleapis.com/auth/cloud-platform,
140+
https://www.googleapis.com/auth/dialogflow
137141
- selector: 'google.cloud.dialogflow.cx.v3.Experiments.*'
138142
oauth:
139143
canonical_scopes: |-
@@ -159,6 +163,11 @@ authentication:
159163
canonical_scopes: |-
160164
https://www.googleapis.com/auth/cloud-platform,
161165
https://www.googleapis.com/auth/dialogflow
166+
- selector: 'google.cloud.dialogflow.cx.v3.Playbooks.*'
167+
oauth:
168+
canonical_scopes: |-
169+
https://www.googleapis.com/auth/cloud-platform,
170+
https://www.googleapis.com/auth/dialogflow
162171
- selector: 'google.cloud.dialogflow.cx.v3.SecuritySettingsService.*'
163172
oauth:
164173
canonical_scopes: |-
@@ -179,6 +188,11 @@ authentication:
179188
canonical_scopes: |-
180189
https://www.googleapis.com/auth/cloud-platform,
181190
https://www.googleapis.com/auth/dialogflow
191+
- selector: 'google.cloud.dialogflow.cx.v3.Tools.*'
192+
oauth:
193+
canonical_scopes: |-
194+
https://www.googleapis.com/auth/cloud-platform,
195+
https://www.googleapis.com/auth/dialogflow
182196
- selector: 'google.cloud.dialogflow.cx.v3.TransitionRouteGroups.*'
183197
oauth:
184198
canonical_scopes: |-

0 commit comments

Comments
 (0)