Skip to content

Commit 2bf9d8d

Browse files
Google APIscopybara-github
authored andcommitted
feat: deprecated the filter field and add resource_definition
docs: add more meaningful comments PiperOrigin-RevId: 458520697
1 parent b574c0b commit 2bf9d8d

6 files changed

Lines changed: 25 additions & 6 deletions

File tree

google/cloud/dialogflow/v2/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ proto_library_with_info(
6666
deps = [
6767
":dialogflow_proto",
6868
"//google/cloud:common_resources_proto",
69+
"//google/cloud/location:location_proto",
6970
],
7071
)
7172

@@ -100,11 +101,13 @@ java_gapic_library(
100101
service_yaml = "dialogflow_v2.yaml",
101102
test_deps = [
102103
":dialogflow_java_grpc",
104+
"//google/cloud/location:location_java_grpc",
103105
],
104106
transport = "grpc+rest",
105107
deps = [
106108
":dialogflow_java_proto",
107109
"//google/api:api_java_proto",
110+
"//google/cloud/location:location_java_proto",
108111
],
109112
)
110113

@@ -196,6 +199,7 @@ go_gapic_library(
196199
transport = "grpc+rest",
197200
deps = [
198201
":dialogflow_go_proto",
202+
"//google/cloud/location:location_go_proto",
199203
"//google/longrunning:longrunning_go_proto",
200204
"@com_google_cloud_go//longrunning:go_default_library",
201205
"@com_google_cloud_go//longrunning/autogen:go_default_library",
@@ -353,6 +357,7 @@ ruby_cloud_gapic_library(
353357
grpc_service_config = "dialogflow_grpc_service_config.json",
354358
ruby_cloud_description = "Dialogflow is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. This client is for Dialogflow ES, providing the standard agent type suitable for small and simple agents.",
355359
ruby_cloud_title = "Dialogflow V2",
360+
service_yaml = "dialogflow_v2.yaml",
356361
deps = [
357362
":dialogflow_ruby_grpc",
358363
":dialogflow_ruby_proto",

google/cloud/dialogflow/v2/answer_record.proto

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,16 @@ message ListAnswerRecordsRequest {
127127
}
128128
];
129129

130-
// Required. Filters to restrict results to specific answer records.
131-
// Filter on answer record type. Currently predicates on `type` is supported,
132-
// valid values are `ARTICLE_ANSWER`, `FAQ_ANSWER`.
130+
// Optional. Filters to restrict results to specific answer records.
131+
//
132+
// Marked deprecated as it hasn't been, and isn't currently, supported.
133133
//
134134
// For more information about filtering, see
135135
// [API Filtering](https://aip.dev/160).
136-
string filter = 2 [(google.api.field_behavior) = REQUIRED];
136+
string filter = 2 [
137+
deprecated = true,
138+
(google.api.field_behavior) = OPTIONAL
139+
];
137140

138141
// Optional. The maximum number of records to return in a single page.
139142
// The server may return fewer records than this. If unspecified, we use 10.

google/cloud/dialogflow/v2/audio_config.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ option (google.api.resource_definition) = {
3131
type: "automl.googleapis.com/Model"
3232
pattern: "projects/{project}/locations/{location}/models/{model}"
3333
};
34+
option (google.api.resource_definition) = {
35+
type: "speech.googleapis.com/PhraseSet"
36+
pattern: "projects/{project}/locations/{location}/phraseSets/{phrase_set}"
37+
};
3438

3539
// Audio encoding of the audio content sent in the conversational query request.
3640
// Refer to the

google/cloud/dialogflow/v2/conversation_profile.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ message HumanAgentAssistantConfig {
515515

516516
// Custom conversation models used in agent assist feature.
517517
//
518-
// Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
518+
// Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
519+
// CONVERSATION_SUMMARIZATION.
519520
message ConversationModelConfig {
520521
// Conversation model resource name. Format: `projects/<Project
521522
// ID>/conversationModels/<Model ID>`.

google/cloud/dialogflow/v2/dialogflow_v2.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ apis:
2121
- name: google.cloud.dialogflow.v2.SessionEntityTypes
2222
- name: google.cloud.dialogflow.v2.Sessions
2323
- name: google.cloud.dialogflow.v2.Versions
24+
- name: google.cloud.location.Locations
25+
- name: google.longrunning.Operations
2426

2527
types:
2628
- name: google.cloud.dialogflow.v2.BatchUpdateEntityTypesResponse

google/cloud/dialogflow/v2/session.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ message QueryResult {
324324
bool all_required_params_present = 5;
325325

326326
// Indicates whether the conversational query triggers a cancellation for slot
327-
// filling.
327+
// filling. For more information, see the [cancel slot filling
328+
// documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
328329
bool cancels_slot_filling = 21;
329330

330331
// The text to be pronounced to the user or shown on the screen.
@@ -608,6 +609,9 @@ message StreamingRecognitionResult {
608609
string language_code = 10;
609610
}
610611

612+
// ============================================================================
613+
// Auxiliary proto messages.
614+
//
611615
// Represents the natural language text to be processed.
612616
message TextInput {
613617
// Required. The UTF-8 encoded natural language text to be processed.

0 commit comments

Comments
 (0)