Skip to content

Commit 63b465b

Browse files
fix: make request optional in all cases (#830)
... chore: update gapic-generator-ruby to the latest commit chore: release gapic-generator-typescript 1.5.0 Committer: @miraleung PiperOrigin-RevId: 380641501 Source-Link: googleapis/googleapis@076f7e9 Source-Link: googleapis/googleapis-gen@27e4c88
1 parent aeba59e commit 63b465b

30 files changed

+366
-336
lines changed

packages/google-cloud-dialogflow/src/v2/agents_client.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ export class AgentsClient {
494494
// -- Service calls --
495495
// -------------------
496496
getAgent(
497-
request: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
497+
request?: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
498498
options?: CallOptions
499499
): Promise<
500500
[
@@ -539,7 +539,7 @@ export class AgentsClient {
539539
* const [response] = await client.getAgent(request);
540540
*/
541541
getAgent(
542-
request: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
542+
request?: protos.google.cloud.dialogflow.v2.IGetAgentRequest,
543543
optionsOrCallback?:
544544
| CallOptions
545545
| Callback<
@@ -578,7 +578,7 @@ export class AgentsClient {
578578
return this.innerApiCalls.getAgent(request, options, callback);
579579
}
580580
setAgent(
581-
request: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
581+
request?: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
582582
options?: CallOptions
583583
): Promise<
584584
[
@@ -628,7 +628,7 @@ export class AgentsClient {
628628
* const [response] = await client.setAgent(request);
629629
*/
630630
setAgent(
631-
request: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
631+
request?: protos.google.cloud.dialogflow.v2.ISetAgentRequest,
632632
optionsOrCallback?:
633633
| CallOptions
634634
| Callback<
@@ -667,7 +667,7 @@ export class AgentsClient {
667667
return this.innerApiCalls.setAgent(request, options, callback);
668668
}
669669
deleteAgent(
670-
request: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
670+
request?: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
671671
options?: CallOptions
672672
): Promise<
673673
[
@@ -712,7 +712,7 @@ export class AgentsClient {
712712
* const [response] = await client.deleteAgent(request);
713713
*/
714714
deleteAgent(
715-
request: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
715+
request?: protos.google.cloud.dialogflow.v2.IDeleteAgentRequest,
716716
optionsOrCallback?:
717717
| CallOptions
718718
| Callback<
@@ -753,7 +753,7 @@ export class AgentsClient {
753753
return this.innerApiCalls.deleteAgent(request, options, callback);
754754
}
755755
getValidationResult(
756-
request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
756+
request?: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
757757
options?: CallOptions
758758
): Promise<
759759
[
@@ -809,7 +809,7 @@ export class AgentsClient {
809809
* const [response] = await client.getValidationResult(request);
810810
*/
811811
getValidationResult(
812-
request: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
812+
request?: protos.google.cloud.dialogflow.v2.IGetValidationResultRequest,
813813
optionsOrCallback?:
814814
| CallOptions
815815
| Callback<
@@ -853,7 +853,7 @@ export class AgentsClient {
853853
}
854854

855855
trainAgent(
856-
request: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
856+
request?: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
857857
options?: CallOptions
858858
): Promise<
859859
[
@@ -915,7 +915,7 @@ export class AgentsClient {
915915
* const [response] = await operation.promise();
916916
*/
917917
trainAgent(
918-
request: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
918+
request?: protos.google.cloud.dialogflow.v2.ITrainAgentRequest,
919919
optionsOrCallback?:
920920
| CallOptions
921921
| Callback<
@@ -997,7 +997,7 @@ export class AgentsClient {
997997
>;
998998
}
999999
exportAgent(
1000-
request: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
1000+
request?: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
10011001
options?: CallOptions
10021002
): Promise<
10031003
[
@@ -1059,7 +1059,7 @@ export class AgentsClient {
10591059
* const [response] = await operation.promise();
10601060
*/
10611061
exportAgent(
1062-
request: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
1062+
request?: protos.google.cloud.dialogflow.v2.IExportAgentRequest,
10631063
optionsOrCallback?:
10641064
| CallOptions
10651065
| Callback<
@@ -1144,7 +1144,7 @@ export class AgentsClient {
11441144
>;
11451145
}
11461146
importAgent(
1147-
request: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
1147+
request?: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
11481148
options?: CallOptions
11491149
): Promise<
11501150
[
@@ -1221,7 +1221,7 @@ export class AgentsClient {
12211221
* const [response] = await operation.promise();
12221222
*/
12231223
importAgent(
1224-
request: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
1224+
request?: protos.google.cloud.dialogflow.v2.IImportAgentRequest,
12251225
optionsOrCallback?:
12261226
| CallOptions
12271227
| Callback<
@@ -1303,7 +1303,7 @@ export class AgentsClient {
13031303
>;
13041304
}
13051305
restoreAgent(
1306-
request: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
1306+
request?: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
13071307
options?: CallOptions
13081308
): Promise<
13091309
[
@@ -1379,7 +1379,7 @@ export class AgentsClient {
13791379
* const [response] = await operation.promise();
13801380
*/
13811381
restoreAgent(
1382-
request: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
1382+
request?: protos.google.cloud.dialogflow.v2.IRestoreAgentRequest,
13831383
optionsOrCallback?:
13841384
| CallOptions
13851385
| Callback<
@@ -1461,7 +1461,7 @@ export class AgentsClient {
14611461
>;
14621462
}
14631463
searchAgents(
1464-
request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
1464+
request?: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
14651465
options?: CallOptions
14661466
): Promise<
14671467
[
@@ -1524,7 +1524,7 @@ export class AgentsClient {
15241524
* for more details and examples.
15251525
*/
15261526
searchAgents(
1527-
request: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
1527+
request?: protos.google.cloud.dialogflow.v2.ISearchAgentsRequest,
15281528
optionsOrCallback?:
15291529
| CallOptions
15301530
| PaginationCallback<

packages/google-cloud-dialogflow/src/v2/answer_records_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export class AnswerRecordsClient {
422422
// -- Service calls --
423423
// -------------------
424424
updateAnswerRecord(
425-
request: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
425+
request?: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
426426
options?: CallOptions
427427
): Promise<
428428
[
@@ -472,7 +472,7 @@ export class AnswerRecordsClient {
472472
* const [response] = await client.updateAnswerRecord(request);
473473
*/
474474
updateAnswerRecord(
475-
request: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
475+
request?: protos.google.cloud.dialogflow.v2.IUpdateAnswerRecordRequest,
476476
optionsOrCallback?:
477477
| CallOptions
478478
| Callback<
@@ -516,7 +516,7 @@ export class AnswerRecordsClient {
516516
}
517517

518518
listAnswerRecords(
519-
request: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
519+
request?: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
520520
options?: CallOptions
521521
): Promise<
522522
[
@@ -586,7 +586,7 @@ export class AnswerRecordsClient {
586586
* for more details and examples.
587587
*/
588588
listAnswerRecords(
589-
request: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
589+
request?: protos.google.cloud.dialogflow.v2.IListAnswerRecordsRequest,
590590
optionsOrCallback?:
591591
| CallOptions
592592
| PaginationCallback<

packages/google-cloud-dialogflow/src/v2/contexts_client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export class ContextsClient {
429429
// -- Service calls --
430430
// -------------------
431431
getContext(
432-
request: protos.google.cloud.dialogflow.v2.IGetContextRequest,
432+
request?: protos.google.cloud.dialogflow.v2.IGetContextRequest,
433433
options?: CallOptions
434434
): Promise<
435435
[
@@ -478,7 +478,7 @@ export class ContextsClient {
478478
* const [response] = await client.getContext(request);
479479
*/
480480
getContext(
481-
request: protos.google.cloud.dialogflow.v2.IGetContextRequest,
481+
request?: protos.google.cloud.dialogflow.v2.IGetContextRequest,
482482
optionsOrCallback?:
483483
| CallOptions
484484
| Callback<
@@ -519,7 +519,7 @@ export class ContextsClient {
519519
return this.innerApiCalls.getContext(request, options, callback);
520520
}
521521
createContext(
522-
request: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
522+
request?: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
523523
options?: CallOptions
524524
): Promise<
525525
[
@@ -576,7 +576,7 @@ export class ContextsClient {
576576
* const [response] = await client.createContext(request);
577577
*/
578578
createContext(
579-
request: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
579+
request?: protos.google.cloud.dialogflow.v2.ICreateContextRequest,
580580
optionsOrCallback?:
581581
| CallOptions
582582
| Callback<
@@ -619,7 +619,7 @@ export class ContextsClient {
619619
return this.innerApiCalls.createContext(request, options, callback);
620620
}
621621
updateContext(
622-
request: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
622+
request?: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
623623
options?: CallOptions
624624
): Promise<
625625
[
@@ -669,7 +669,7 @@ export class ContextsClient {
669669
* const [response] = await client.updateContext(request);
670670
*/
671671
updateContext(
672-
request: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
672+
request?: protos.google.cloud.dialogflow.v2.IUpdateContextRequest,
673673
optionsOrCallback?:
674674
| CallOptions
675675
| Callback<
@@ -712,7 +712,7 @@ export class ContextsClient {
712712
return this.innerApiCalls.updateContext(request, options, callback);
713713
}
714714
deleteContext(
715-
request: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
715+
request?: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
716716
options?: CallOptions
717717
): Promise<
718718
[
@@ -765,7 +765,7 @@ export class ContextsClient {
765765
* const [response] = await client.deleteContext(request);
766766
*/
767767
deleteContext(
768-
request: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
768+
request?: protos.google.cloud.dialogflow.v2.IDeleteContextRequest,
769769
optionsOrCallback?:
770770
| CallOptions
771771
| Callback<
@@ -808,7 +808,7 @@ export class ContextsClient {
808808
return this.innerApiCalls.deleteContext(request, options, callback);
809809
}
810810
deleteAllContexts(
811-
request: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
811+
request?: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
812812
options?: CallOptions
813813
): Promise<
814814
[
@@ -861,7 +861,7 @@ export class ContextsClient {
861861
* const [response] = await client.deleteAllContexts(request);
862862
*/
863863
deleteAllContexts(
864-
request: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
864+
request?: protos.google.cloud.dialogflow.v2.IDeleteAllContextsRequest,
865865
optionsOrCallback?:
866866
| CallOptions
867867
| Callback<
@@ -905,7 +905,7 @@ export class ContextsClient {
905905
}
906906

907907
listContexts(
908-
request: protos.google.cloud.dialogflow.v2.IListContextsRequest,
908+
request?: protos.google.cloud.dialogflow.v2.IListContextsRequest,
909909
options?: CallOptions
910910
): Promise<
911911
[
@@ -966,7 +966,7 @@ export class ContextsClient {
966966
* for more details and examples.
967967
*/
968968
listContexts(
969-
request: protos.google.cloud.dialogflow.v2.IListContextsRequest,
969+
request?: protos.google.cloud.dialogflow.v2.IListContextsRequest,
970970
optionsOrCallback?:
971971
| CallOptions
972972
| PaginationCallback<

packages/google-cloud-dialogflow/src/v2/conversation_profiles_client.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export class ConversationProfilesClient {
425425
// -- Service calls --
426426
// -------------------
427427
getConversationProfile(
428-
request: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
428+
request?: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
429429
options?: CallOptions
430430
): Promise<
431431
[
@@ -478,7 +478,7 @@ export class ConversationProfilesClient {
478478
* const [response] = await client.getConversationProfile(request);
479479
*/
480480
getConversationProfile(
481-
request: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
481+
request?: protos.google.cloud.dialogflow.v2.IGetConversationProfileRequest,
482482
optionsOrCallback?:
483483
| CallOptions
484484
| Callback<
@@ -528,7 +528,7 @@ export class ConversationProfilesClient {
528528
);
529529
}
530530
createConversationProfile(
531-
request: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
531+
request?: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
532532
options?: CallOptions
533533
): Promise<
534534
[
@@ -586,7 +586,7 @@ export class ConversationProfilesClient {
586586
* const [response] = await client.createConversationProfile(request);
587587
*/
588588
createConversationProfile(
589-
request: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
589+
request?: protos.google.cloud.dialogflow.v2.ICreateConversationProfileRequest,
590590
optionsOrCallback?:
591591
| CallOptions
592592
| Callback<
@@ -636,7 +636,7 @@ export class ConversationProfilesClient {
636636
);
637637
}
638638
updateConversationProfile(
639-
request: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
639+
request?: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
640640
options?: CallOptions
641641
): Promise<
642642
[
@@ -693,7 +693,7 @@ export class ConversationProfilesClient {
693693
* const [response] = await client.updateConversationProfile(request);
694694
*/
695695
updateConversationProfile(
696-
request: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
696+
request?: protos.google.cloud.dialogflow.v2.IUpdateConversationProfileRequest,
697697
optionsOrCallback?:
698698
| CallOptions
699699
| Callback<
@@ -743,7 +743,7 @@ export class ConversationProfilesClient {
743743
);
744744
}
745745
deleteConversationProfile(
746-
request: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
746+
request?: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
747747
options?: CallOptions
748748
): Promise<
749749
[
@@ -796,7 +796,7 @@ export class ConversationProfilesClient {
796796
* const [response] = await client.deleteConversationProfile(request);
797797
*/
798798
deleteConversationProfile(
799-
request: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
799+
request?: protos.google.cloud.dialogflow.v2.IDeleteConversationProfileRequest,
800800
optionsOrCallback?:
801801
| CallOptions
802802
| Callback<
@@ -847,7 +847,7 @@ export class ConversationProfilesClient {
847847
}
848848

849849
listConversationProfiles(
850-
request: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
850+
request?: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
851851
options?: CallOptions
852852
): Promise<
853853
[
@@ -904,7 +904,7 @@ export class ConversationProfilesClient {
904904
* for more details and examples.
905905
*/
906906
listConversationProfiles(
907-
request: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
907+
request?: protos.google.cloud.dialogflow.v2.IListConversationProfilesRequest,
908908
optionsOrCallback?:
909909
| CallOptions
910910
| PaginationCallback<

0 commit comments

Comments
 (0)