Skip to content

Commit f2cee57

Browse files
Google APIscopybara-github
authored andcommitted
feat: updated v2beta1 dialogflow client libraries
PiperOrigin-RevId: 888757094
1 parent bd731a5 commit f2cee57

36 files changed

Lines changed: 650 additions & 40 deletions

google/cloud/dialogflow/v2beta1/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ proto_library(
2828
"agent_coaching_instruction.proto",
2929
"answer_record.proto",
3030
"audio_config.proto",
31+
"ces_app.proto",
32+
"ces_tool.proto",
3133
"context.proto",
3234
"conversation.proto",
3335
"conversation_event.proto",
@@ -51,6 +53,7 @@ proto_library(
5153
"sip_trunk.proto",
5254
"tool.proto",
5355
"tool_call.proto",
56+
"toolset.proto",
5457
"validation_result.proto",
5558
"version.proto",
5659
"webhook.proto",
@@ -420,6 +423,7 @@ load(
420423

421424
csharp_proto_library(
422425
name = "dialogflow_csharp_proto",
426+
extra_opts = [],
423427
deps = [":dialogflow_proto"],
424428
)
425429

google/cloud/dialogflow/v2beta1/agent.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/v2beta1/agent_coaching_instruction.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/v2beta1/answer_record.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/v2beta1/audio_config.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: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.v2beta1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/dialogflow/v2beta1/tool.proto";
22+
23+
option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1";
24+
option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "CesAppProto";
27+
option java_package = "com.google.cloud.dialogflow.v2beta1";
28+
option objc_class_prefix = "DF";
29+
option (google.api.resource_definition) = {
30+
type: "ces.googleapis.com/App"
31+
pattern: "projects/{project}/locations/{location}/apps/{app}"
32+
};
33+
34+
// Spec of CES app that the generator can choose from.
35+
message CesAppSpec {
36+
// Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
37+
// ID>`.
38+
string ces_app = 1 [
39+
(google.api.field_behavior) = OPTIONAL,
40+
(google.api.resource_reference) = { type: "ces.googleapis.com/App" }
41+
];
42+
43+
// Optional. Indicates whether the app requires human confirmation.
44+
Tool.ConfirmationRequirement confirmation_requirement = 2
45+
[(google.api.field_behavior) = OPTIONAL];
46+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.v2beta1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/api/resource.proto";
21+
import "google/cloud/dialogflow/v2beta1/tool.proto";
22+
23+
option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1";
24+
option go_package = "cloud.google.com/go/dialogflow/apiv2beta1/dialogflowpb;dialogflowpb";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "CesToolProto";
27+
option java_package = "com.google.cloud.dialogflow.v2beta1";
28+
option objc_class_prefix = "DF";
29+
30+
// Spec of CES tool that the generator can choose from.
31+
message CesToolSpec {
32+
// Optional. Format: `projects/<Project ID>/locations/<Location ID>/apps/<app
33+
// ID>/tools/<tool ID>`.
34+
string ces_tool = 1 [
35+
(google.api.field_behavior) = OPTIONAL,
36+
(google.api.resource_reference) = { type: "ces.googleapis.com/Tool" }
37+
];
38+
39+
// Optional. Indicates whether the tool requires human confirmation.
40+
Tool.ConfirmationRequirement confirmation_requirement = 2
41+
[(google.api.field_behavior) = OPTIONAL];
42+
}

google/cloud/dialogflow/v2beta1/context.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/v2beta1/conversation.proto

Lines changed: 91 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.
@@ -382,6 +382,37 @@ message Conversation {
382382
[(google.api.field_behavior) = OUTPUT_ONLY];
383383
}
384384

385+
// Represents the context of a generator.
386+
message GeneratorContext {
387+
// The available generator types.
388+
enum GeneratorType {
389+
// Unspecified generator type.
390+
GENERATOR_TYPE_UNSPECIFIED = 0;
391+
392+
// Free form generator type.
393+
FREE_FORM = 1;
394+
395+
// Agent coaching generator type.
396+
AGENT_COACHING = 2;
397+
398+
// Summarization generator type.
399+
SUMMARIZATION = 3;
400+
401+
// Translation generator type.
402+
TRANSLATION = 4;
403+
404+
// Agent feedback generator type.
405+
AGENT_FEEDBACK = 5;
406+
407+
// Customer message generation generator type.
408+
CUSTOMER_MESSAGE_GENERATION = 6;
409+
}
410+
411+
// Output only. The type of the generator.
412+
GeneratorType generator_type = 1
413+
[(google.api.field_behavior) = OUTPUT_ONLY];
414+
}
415+
385416
// Output only. Identifier. The unique identifier of this conversation.
386417
// Format: `projects/<Project ID>/locations/<Location
387418
// ID>/conversations/<Conversation ID>`.
@@ -441,9 +472,22 @@ message Conversation {
441472
TelephonyConnectionInfo telephony_connection_info = 10
442473
[(google.api.field_behavior) = OUTPUT_ONLY];
443474

475+
// Optional. Output only. The initial conversation profile to be used to
476+
// configure this conversation, which is a copy of the conversation profile
477+
// config read at conversation creation time.
478+
ConversationProfile initial_conversation_profile = 15 [
479+
(google.api.field_behavior) = OPTIONAL,
480+
(google.api.field_behavior) = OUTPUT_ONLY
481+
];
482+
444483
// Output only. The context reference updates provided by external systems.
445484
map<string, ContextReference> ingested_context_references = 17
446485
[(google.api.field_behavior) = OUTPUT_ONLY];
486+
487+
// Output only. A map with generator name as key and generator context as
488+
// value.
489+
map<string, GeneratorContext> initial_generator_contexts = 18
490+
[(google.api.field_behavior) = OUTPUT_ONLY];
447491
}
448492

449493
// Represents a phone number for telephony integration. It allows for connecting
@@ -711,6 +755,15 @@ message SuggestConversationSummaryRequest {
711755
message SuggestConversationSummaryResponse {
712756
// Generated summary for a conversation.
713757
message Summary {
758+
// A component of the generated summary.
759+
message SummarySection {
760+
// Output only. Name of the section.
761+
string section = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
762+
763+
// Output only. Summary text for the section.
764+
string summary = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
765+
}
766+
714767
// The summary content that is concatenated into one string.
715768
string text = 1;
716769

@@ -719,6 +772,10 @@ message SuggestConversationSummaryResponse {
719772
// specific format for the key or value.
720773
map<string, string> text_sections = 4;
721774

775+
// Same as text_sections, but in an order that is consistent with the order
776+
// of the sections in the generator.
777+
repeated SummarySection sorted_text_sections = 6;
778+
722779
// The name of the answer record. Format:
723780
// "projects/<Project ID>/answerRecords/<Answer Record ID>"
724781
string answer_record = 3 [(google.api.resource_reference) = {
@@ -1173,6 +1230,36 @@ message SearchKnowledgeRequest {
11731230
bool exact_search = 14 [(google.api.field_behavior) = OPTIONAL];
11741231
}
11751232

1233+
// Debug information related to SearchKnowledge feature.
1234+
message SearchKnowledgeDebugInfo {
1235+
// Configured behaviors for SearchKnowledge.
1236+
message SearchKnowledgeBehavior {
1237+
// Whether data store agent rewriter was turned on for the request.
1238+
bool answer_generation_rewriter_on = 1;
1239+
1240+
// Whether end_user_metadata is included in the data store agent call.
1241+
bool end_user_metadata_included = 2;
1242+
1243+
// This field indicates whether third party connectors are enabled for the
1244+
// project. Note that this field only indicates if the project is
1245+
// allowlisted for connectors.
1246+
bool third_party_connector_allowed = 4;
1247+
}
1248+
1249+
// Response reason from datastore which indicates data serving status or
1250+
// answer quality degradation.
1251+
DatastoreResponseReason datastore_response_reason = 1;
1252+
1253+
// Configured behaviors for SearchKnowledge.
1254+
SearchKnowledgeBehavior search_knowledge_behavior = 2;
1255+
1256+
// Information about parameters ingested for search knowledge.
1257+
IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 3;
1258+
1259+
// The latency of the service.
1260+
ServiceLatency service_latency = 4;
1261+
}
1262+
11761263
// The response message for
11771264
// [Conversations.SearchKnowledge][google.cloud.dialogflow.v2beta1.Conversations.SearchKnowledge].
11781265
message SearchKnowledgeResponse {
@@ -1182,6 +1269,9 @@ message SearchKnowledgeResponse {
11821269

11831270
// The rewritten query used to search knowledge.
11841271
string rewritten_query = 3;
1272+
1273+
// Debug info for SearchKnowledge.
1274+
SearchKnowledgeDebugInfo search_knowledge_debug_info = 4;
11851275
}
11861276

11871277
// Represents a SearchKnowledge answer.

google/cloud/dialogflow/v2beta1/conversation_event.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.

0 commit comments

Comments
 (0)