Skip to content

Commit 8b23161

Browse files
fix: publish missing client config annotations (#653)
PiperOrigin-RevId: 322420178 Source-Author: Google APIs <[email protected]> Source-Date: Tue Jul 21 12:43:47 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: be0c5a9b1b88ca3bb8ad993ae7b2e6affde7fee2 Source-Link: googleapis/googleapis@be0c5a9 Co-authored-by: sofisl <[email protected]>
1 parent f5e864b commit 8b23161

File tree

11 files changed

+95
-36
lines changed

11 files changed

+95
-36
lines changed

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/agent.proto

+7-2
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ message GetAgentRequest {
332332
// The request message for [Agents.SetAgent][google.cloud.dialogflow.v2beta1.Agents.SetAgent].
333333
message SetAgentRequest {
334334
// Required. The agent to update.
335-
Agent agent = 1;
335+
Agent agent = 1 [(google.api.field_behavior) = REQUIRED];
336336

337337
// Optional. The mask to control which fields get updated.
338338
google.protobuf.FieldMask update_mask = 2;
@@ -408,7 +408,12 @@ message TrainAgentRequest {
408408
message ExportAgentRequest {
409409
// Required. The project that the agent to export is associated with.
410410
// Format: `projects/<Project ID>`.
411-
string parent = 1;
411+
string parent = 1 [
412+
(google.api.field_behavior) = REQUIRED,
413+
(google.api.resource_reference) = {
414+
child_type: "dialogflow.googleapis.com/Agent"
415+
}
416+
];
412417

413418
// Optional. The
414419
// [Google Cloud Storage](https://cloud.google.com/storage/docs/)

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/context.proto

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ service Contexts {
115115
}
116116
};
117117
option (google.api.method_signature) = "context,update_mask";
118+
option (google.api.method_signature) = "context";
118119
}
119120

120121
// Deletes the specified context.

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/document.proto

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ service Documents {
122122
}
123123
};
124124
option (google.api.method_signature) = "document,update_mask";
125+
option (google.api.method_signature) = "document";
125126
option (google.longrunning.operation_info) = {
126127
response_type: "Document"
127128
metadata_type: "KnowledgeOperationMetadata"

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/entity_type.proto

+5-3
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ service EntityTypes {
150150
body: "*"
151151
}
152152
};
153+
option (google.api.method_signature) = "parent,entities";
154+
option (google.api.method_signature) = "parent,entities,language_code";
153155
option (google.longrunning.operation_info) = {
154156
response_type: "google.protobuf.Empty"
155157
metadata_type: "google.protobuf.Struct"
@@ -477,7 +479,7 @@ message BatchCreateEntitiesRequest {
477479
];
478480

479481
// Required. The entities to create.
480-
repeated EntityType.Entity entities = 2;
482+
repeated EntityType.Entity entities = 2 [(google.api.field_behavior) = REQUIRED];
481483

482484
// Optional. The language used to access language-specific data.
483485
// If not specified, the agent's default language is used.
@@ -499,7 +501,7 @@ message BatchUpdateEntitiesRequest {
499501
];
500502

501503
// Required. The entities to update or create.
502-
repeated EntityType.Entity entities = 2;
504+
repeated EntityType.Entity entities = 2 [(google.api.field_behavior) = REQUIRED];
503505

504506
// Optional. The language used to access language-specific data.
505507
// If not specified, the agent's default language is used.
@@ -526,7 +528,7 @@ message BatchDeleteEntitiesRequest {
526528
// Required. The reference `values` of the entities to delete. Note that
527529
// these are not fully-qualified names, i.e. they don't start with
528530
// `projects/<Project ID>`.
529-
repeated string entity_values = 2;
531+
repeated string entity_values = 2 [(google.api.field_behavior) = REQUIRED];
530532

531533
// Optional. The language used to access language-specific data.
532534
// If not specified, the agent's default language is used.

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/environment.proto

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ syntax = "proto3";
1717
package google.cloud.dialogflow.v2beta1;
1818

1919
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
2021
import "google/api/field_behavior.proto";
2122
import "google/api/resource.proto";
2223
import "google/cloud/dialogflow/v2beta1/audio_config.proto";
2324
import "google/protobuf/empty.proto";
2425
import "google/protobuf/field_mask.proto";
2526
import "google/protobuf/timestamp.proto";
26-
import "google/api/client.proto";
2727

2828
option cc_enable_arenas = true;
2929
option csharp_namespace = "Google.Cloud.Dialogflow.V2beta1";
@@ -48,6 +48,7 @@ service Environments {
4848
get: "/v2beta1/{parent=projects/*/locations/*/agent}/environments"
4949
}
5050
};
51+
option (google.api.method_signature) = "parent";
5152
}
5253
}
5354

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto

+4-3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ service Intents {
138138
body: "*"
139139
}
140140
};
141+
option (google.api.method_signature) = "parent,intents";
141142
option (google.longrunning.operation_info) = {
142143
response_type: "google.protobuf.Empty"
143144
metadata_type: "google.protobuf.Struct"
@@ -1249,7 +1250,7 @@ message CreateIntentRequest {
12491250
];
12501251

12511252
// Required. The intent to create.
1252-
Intent intent = 2;
1253+
Intent intent = 2 [(google.api.field_behavior) = REQUIRED];
12531254

12541255
// Optional. The language used to access language-specific data.
12551256
// If not specified, the agent's default language is used.
@@ -1265,7 +1266,7 @@ message CreateIntentRequest {
12651266
// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent].
12661267
message UpdateIntentRequest {
12671268
// Required. The intent to update.
1268-
Intent intent = 1;
1269+
Intent intent = 1 [(google.api.field_behavior) = REQUIRED];
12691270

12701271
// Optional. The language used to access language-specific data.
12711272
// If not specified, the agent's default language is used.
@@ -1355,7 +1356,7 @@ message BatchDeleteIntentsRequest {
13551356

13561357
// Required. The collection of intents to delete. Only intent `name` must be
13571358
// filled in.
1358-
repeated Intent intents = 2;
1359+
repeated Intent intents = 2 [(google.api.field_behavior) = REQUIRED];
13591360
}
13601361

13611362
// This message is a wrapper around a collection of intents.

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ service KnowledgeBases {
110110
}
111111
};
112112
option (google.api.method_signature) = "knowledge_base,update_mask";
113+
option (google.api.method_signature) = "knowledge_base";
113114
}
114115
}
115116

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto

+9-6
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,12 @@ message DetectIntentRequest {
100100
//
101101
// For more information, see the [API interactions
102102
// guide](https://cloud.google.com/dialogflow/docs/api-overview).
103-
string session = 1 [(google.api.resource_reference) = {
104-
type: "dialogflow.googleapis.com/Session"
105-
}];
103+
string session = 1 [
104+
(google.api.field_behavior) = REQUIRED,
105+
(google.api.resource_reference) = {
106+
type: "dialogflow.googleapis.com/Session"
107+
}
108+
];
106109

107110
// The parameters of this query.
108111
QueryParameters query_params = 2;
@@ -115,7 +118,7 @@ message DetectIntentRequest {
115118
// 2. a conversational query in the form of text, or
116119
//
117120
// 3. an event that specifies which intent to trigger.
118-
QueryInput query_input = 3;
121+
QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED];
119122

120123
// Instructs the speech synthesizer how to generate the output
121124
// audio. If this field is not set and agent-level speech synthesizer is not
@@ -470,7 +473,7 @@ message StreamingDetectIntentRequest {
470473
//
471474
// For more information, see the [API interactions
472475
// guide](https://cloud.google.com/dialogflow/docs/api-overview).
473-
string session = 1;
476+
string session = 1 [(google.api.field_behavior) = REQUIRED];
474477

475478
// The parameters of this query.
476479
QueryParameters query_params = 2;
@@ -483,7 +486,7 @@ message StreamingDetectIntentRequest {
483486
// 2. a conversational query in the form of text, or
484487
//
485488
// 3. an event that specifies which intent to trigger.
486-
QueryInput query_input = 3;
489+
QueryInput query_input = 3 [(google.api.field_behavior) = REQUIRED];
487490

488491
// DEPRECATED. Please use [InputAudioConfig.single_utterance][google.cloud.dialogflow.v2beta1.InputAudioConfig.single_utterance] instead.
489492
// If `false` (default), recognition does not cease until the

packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session_entity_type.proto

+2-2
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ message CreateSessionEntityTypeRequest {
281281
];
282282

283283
// Required. The session entity type to create.
284-
SessionEntityType session_entity_type = 2;
284+
SessionEntityType session_entity_type = 2 [(google.api.field_behavior) = REQUIRED];
285285
}
286286

287287
// The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.v2beta1.SessionEntityTypes.UpdateSessionEntityType].
288288
message UpdateSessionEntityTypeRequest {
289289
// Required. The session entity type to update.
290-
SessionEntityType session_entity_type = 1;
290+
SessionEntityType session_entity_type = 1 [(google.api.field_behavior) = REQUIRED];
291291

292292
// Optional. The mask to control which fields get updated.
293293
google.protobuf.FieldMask update_mask = 2;

0 commit comments

Comments
 (0)