Skip to content

Commit 81936f2

Browse files
fix: make request optional in all cases (#139)
... 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 a2d4450 commit 81936f2

28 files changed

+360
-360
lines changed

packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts

+18-18
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export class AgentsClient {
412412
// -- Service calls --
413413
// -------------------
414414
getAgent(
415-
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
415+
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
416416
options?: CallOptions
417417
): Promise<
418418
[
@@ -457,7 +457,7 @@ export class AgentsClient {
457457
* const [response] = await client.getAgent(request);
458458
*/
459459
getAgent(
460-
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
460+
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentRequest,
461461
optionsOrCallback?:
462462
| CallOptions
463463
| Callback<
@@ -498,7 +498,7 @@ export class AgentsClient {
498498
return this.innerApiCalls.getAgent(request, options, callback);
499499
}
500500
createAgent(
501-
request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
501+
request?: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
502502
options?: CallOptions
503503
): Promise<
504504
[
@@ -549,7 +549,7 @@ export class AgentsClient {
549549
* const [response] = await client.createAgent(request);
550550
*/
551551
createAgent(
552-
request: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
552+
request?: protos.google.cloud.dialogflow.cx.v3.ICreateAgentRequest,
553553
optionsOrCallback?:
554554
| CallOptions
555555
| Callback<
@@ -592,7 +592,7 @@ export class AgentsClient {
592592
return this.innerApiCalls.createAgent(request, options, callback);
593593
}
594594
updateAgent(
595-
request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
595+
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
596596
options?: CallOptions
597597
): Promise<
598598
[
@@ -643,7 +643,7 @@ export class AgentsClient {
643643
* const [response] = await client.updateAgent(request);
644644
*/
645645
updateAgent(
646-
request: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
646+
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateAgentRequest,
647647
optionsOrCallback?:
648648
| CallOptions
649649
| Callback<
@@ -686,7 +686,7 @@ export class AgentsClient {
686686
return this.innerApiCalls.updateAgent(request, options, callback);
687687
}
688688
deleteAgent(
689-
request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
689+
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
690690
options?: CallOptions
691691
): Promise<
692692
[
@@ -735,7 +735,7 @@ export class AgentsClient {
735735
* const [response] = await client.deleteAgent(request);
736736
*/
737737
deleteAgent(
738-
request: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
738+
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteAgentRequest,
739739
optionsOrCallback?:
740740
| CallOptions
741741
| Callback<
@@ -778,7 +778,7 @@ export class AgentsClient {
778778
return this.innerApiCalls.deleteAgent(request, options, callback);
779779
}
780780
validateAgent(
781-
request: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
781+
request?: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
782782
options?: CallOptions
783783
): Promise<
784784
[
@@ -831,7 +831,7 @@ export class AgentsClient {
831831
* const [response] = await client.validateAgent(request);
832832
*/
833833
validateAgent(
834-
request: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
834+
request?: protos.google.cloud.dialogflow.cx.v3.IValidateAgentRequest,
835835
optionsOrCallback?:
836836
| CallOptions
837837
| Callback<
@@ -874,7 +874,7 @@ export class AgentsClient {
874874
return this.innerApiCalls.validateAgent(request, options, callback);
875875
}
876876
getAgentValidationResult(
877-
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
877+
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
878878
options?: CallOptions
879879
): Promise<
880880
[
@@ -930,7 +930,7 @@ export class AgentsClient {
930930
* const [response] = await client.getAgentValidationResult(request);
931931
*/
932932
getAgentValidationResult(
933-
request: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
933+
request?: protos.google.cloud.dialogflow.cx.v3.IGetAgentValidationResultRequest,
934934
optionsOrCallback?:
935935
| CallOptions
936936
| Callback<
@@ -981,7 +981,7 @@ export class AgentsClient {
981981
}
982982

983983
exportAgent(
984-
request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
984+
request?: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
985985
options?: CallOptions
986986
): Promise<
987987
[
@@ -1047,7 +1047,7 @@ export class AgentsClient {
10471047
* const [response] = await operation.promise();
10481048
*/
10491049
exportAgent(
1050-
request: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
1050+
request?: protos.google.cloud.dialogflow.cx.v3.IExportAgentRequest,
10511051
optionsOrCallback?:
10521052
| CallOptions
10531053
| Callback<
@@ -1132,7 +1132,7 @@ export class AgentsClient {
11321132
>;
11331133
}
11341134
restoreAgent(
1135-
request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
1135+
request?: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
11361136
options?: CallOptions
11371137
): Promise<
11381138
[
@@ -1200,7 +1200,7 @@ export class AgentsClient {
12001200
* const [response] = await operation.promise();
12011201
*/
12021202
restoreAgent(
1203-
request: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
1203+
request?: protos.google.cloud.dialogflow.cx.v3.IRestoreAgentRequest,
12041204
optionsOrCallback?:
12051205
| CallOptions
12061206
| Callback<
@@ -1282,7 +1282,7 @@ export class AgentsClient {
12821282
>;
12831283
}
12841284
listAgents(
1285-
request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
1285+
request?: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
12861286
options?: CallOptions
12871287
): Promise<
12881288
[
@@ -1339,7 +1339,7 @@ export class AgentsClient {
13391339
* for more details and examples.
13401340
*/
13411341
listAgents(
1342-
request: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
1342+
request?: protos.google.cloud.dialogflow.cx.v3.IListAgentsRequest,
13431343
optionsOrCallback?:
13441344
| CallOptions
13451345
| PaginationCallback<

packages/google-cloud-dialogflow-cx/src/v3/entity_types_client.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export class EntityTypesClient {
365365
// -- Service calls --
366366
// -------------------
367367
getEntityType(
368-
request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
368+
request?: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
369369
options?: CallOptions
370370
): Promise<
371371
[
@@ -428,7 +428,7 @@ export class EntityTypesClient {
428428
* const [response] = await client.getEntityType(request);
429429
*/
430430
getEntityType(
431-
request: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
431+
request?: protos.google.cloud.dialogflow.cx.v3.IGetEntityTypeRequest,
432432
optionsOrCallback?:
433433
| CallOptions
434434
| Callback<
@@ -471,7 +471,7 @@ export class EntityTypesClient {
471471
return this.innerApiCalls.getEntityType(request, options, callback);
472472
}
473473
createEntityType(
474-
request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
474+
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
475475
options?: CallOptions
476476
): Promise<
477477
[
@@ -534,7 +534,7 @@ export class EntityTypesClient {
534534
* const [response] = await client.createEntityType(request);
535535
*/
536536
createEntityType(
537-
request: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
537+
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEntityTypeRequest,
538538
optionsOrCallback?:
539539
| CallOptions
540540
| Callback<
@@ -577,7 +577,7 @@ export class EntityTypesClient {
577577
return this.innerApiCalls.createEntityType(request, options, callback);
578578
}
579579
updateEntityType(
580-
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
580+
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
581581
options?: CallOptions
582582
): Promise<
583583
[
@@ -639,7 +639,7 @@ export class EntityTypesClient {
639639
* const [response] = await client.updateEntityType(request);
640640
*/
641641
updateEntityType(
642-
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
642+
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEntityTypeRequest,
643643
optionsOrCallback?:
644644
| CallOptions
645645
| Callback<
@@ -682,7 +682,7 @@ export class EntityTypesClient {
682682
return this.innerApiCalls.updateEntityType(request, options, callback);
683683
}
684684
deleteEntityType(
685-
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
685+
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
686686
options?: CallOptions
687687
): Promise<
688688
[
@@ -743,7 +743,7 @@ export class EntityTypesClient {
743743
* const [response] = await client.deleteEntityType(request);
744744
*/
745745
deleteEntityType(
746-
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
746+
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEntityTypeRequest,
747747
optionsOrCallback?:
748748
| CallOptions
749749
| Callback<
@@ -787,7 +787,7 @@ export class EntityTypesClient {
787787
}
788788

789789
listEntityTypes(
790-
request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
790+
request?: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
791791
options?: CallOptions
792792
): Promise<
793793
[
@@ -857,7 +857,7 @@ export class EntityTypesClient {
857857
* for more details and examples.
858858
*/
859859
listEntityTypes(
860-
request: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
860+
request?: protos.google.cloud.dialogflow.cx.v3.IListEntityTypesRequest,
861861
optionsOrCallback?:
862862
| CallOptions
863863
| PaginationCallback<

packages/google-cloud-dialogflow-cx/src/v3/environments_client.ts

+16-16
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ export class EnvironmentsClient {
432432
// -- Service calls --
433433
// -------------------
434434
getEnvironment(
435-
request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
435+
request?: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
436436
options?: CallOptions
437437
): Promise<
438438
[
@@ -482,7 +482,7 @@ export class EnvironmentsClient {
482482
* const [response] = await client.getEnvironment(request);
483483
*/
484484
getEnvironment(
485-
request: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
485+
request?: protos.google.cloud.dialogflow.cx.v3.IGetEnvironmentRequest,
486486
optionsOrCallback?:
487487
| CallOptions
488488
| Callback<
@@ -525,7 +525,7 @@ export class EnvironmentsClient {
525525
return this.innerApiCalls.getEnvironment(request, options, callback);
526526
}
527527
deleteEnvironment(
528-
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
528+
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
529529
options?: CallOptions
530530
): Promise<
531531
[
@@ -578,7 +578,7 @@ export class EnvironmentsClient {
578578
* const [response] = await client.deleteEnvironment(request);
579579
*/
580580
deleteEnvironment(
581-
request: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
581+
request?: protos.google.cloud.dialogflow.cx.v3.IDeleteEnvironmentRequest,
582582
optionsOrCallback?:
583583
| CallOptions
584584
| Callback<
@@ -625,7 +625,7 @@ export class EnvironmentsClient {
625625
}
626626

627627
createEnvironment(
628-
request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
628+
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
629629
options?: CallOptions
630630
): Promise<
631631
[
@@ -684,7 +684,7 @@ export class EnvironmentsClient {
684684
* const [response] = await operation.promise();
685685
*/
686686
createEnvironment(
687-
request: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
687+
request?: protos.google.cloud.dialogflow.cx.v3.ICreateEnvironmentRequest,
688688
optionsOrCallback?:
689689
| CallOptions
690690
| Callback<
@@ -769,7 +769,7 @@ export class EnvironmentsClient {
769769
>;
770770
}
771771
updateEnvironment(
772-
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
772+
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
773773
options?: CallOptions
774774
): Promise<
775775
[
@@ -827,7 +827,7 @@ export class EnvironmentsClient {
827827
* const [response] = await operation.promise();
828828
*/
829829
updateEnvironment(
830-
request: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
830+
request?: protos.google.cloud.dialogflow.cx.v3.IUpdateEnvironmentRequest,
831831
optionsOrCallback?:
832832
| CallOptions
833833
| Callback<
@@ -912,7 +912,7 @@ export class EnvironmentsClient {
912912
>;
913913
}
914914
runContinuousTest(
915-
request: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
915+
request?: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
916916
options?: CallOptions
917917
): Promise<
918918
[
@@ -969,7 +969,7 @@ export class EnvironmentsClient {
969969
* const [response] = await operation.promise();
970970
*/
971971
runContinuousTest(
972-
request: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
972+
request?: protos.google.cloud.dialogflow.cx.v3.IRunContinuousTestRequest,
973973
optionsOrCallback?:
974974
| CallOptions
975975
| Callback<
@@ -1054,7 +1054,7 @@ export class EnvironmentsClient {
10541054
>;
10551055
}
10561056
listEnvironments(
1057-
request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
1057+
request?: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
10581058
options?: CallOptions
10591059
): Promise<
10601060
[
@@ -1111,7 +1111,7 @@ export class EnvironmentsClient {
11111111
* for more details and examples.
11121112
*/
11131113
listEnvironments(
1114-
request: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
1114+
request?: protos.google.cloud.dialogflow.cx.v3.IListEnvironmentsRequest,
11151115
optionsOrCallback?:
11161116
| CallOptions
11171117
| PaginationCallback<
@@ -1251,7 +1251,7 @@ export class EnvironmentsClient {
12511251
) as AsyncIterable<protos.google.cloud.dialogflow.cx.v3.IEnvironment>;
12521252
}
12531253
lookupEnvironmentHistory(
1254-
request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
1254+
request?: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
12551255
options?: CallOptions
12561256
): Promise<
12571257
[
@@ -1309,7 +1309,7 @@ export class EnvironmentsClient {
13091309
* for more details and examples.
13101310
*/
13111311
lookupEnvironmentHistory(
1312-
request: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
1312+
request?: protos.google.cloud.dialogflow.cx.v3.ILookupEnvironmentHistoryRequest,
13131313
optionsOrCallback?:
13141314
| CallOptions
13151315
| PaginationCallback<
@@ -1455,7 +1455,7 @@ export class EnvironmentsClient {
14551455
) as AsyncIterable<protos.google.cloud.dialogflow.cx.v3.IEnvironment>;
14561456
}
14571457
listContinuousTestResults(
1458-
request: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
1458+
request?: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
14591459
options?: CallOptions
14601460
): Promise<
14611461
[
@@ -1513,7 +1513,7 @@ export class EnvironmentsClient {
15131513
* for more details and examples.
15141514
*/
15151515
listContinuousTestResults(
1516-
request: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
1516+
request?: protos.google.cloud.dialogflow.cx.v3.IListContinuousTestResultsRequest,
15171517
optionsOrCallback?:
15181518
| CallOptions
15191519
| PaginationCallback<

0 commit comments

Comments
 (0)