Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Commit 2c5ce79

Browse files
fix: make request optional in all cases (#117)
Committer: @miraleung PiperOrigin-RevId: 380641501
1 parent 1877f04 commit 2c5ce79

2 files changed

Lines changed: 24 additions & 24 deletions

File tree

src/v1alpha/alpha_analytics_data_client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export class AlphaAnalyticsDataClient {
288288
// -- Service calls --
289289
// -------------------
290290
runReport(
291-
request: protos.google.analytics.data.v1alpha.IRunReportRequest,
291+
request?: protos.google.analytics.data.v1alpha.IRunReportRequest,
292292
options?: CallOptions
293293
): Promise<
294294
[
@@ -385,7 +385,7 @@ export class AlphaAnalyticsDataClient {
385385
* const [response] = await client.runReport(request);
386386
*/
387387
runReport(
388-
request: protos.google.analytics.data.v1alpha.IRunReportRequest,
388+
request?: protos.google.analytics.data.v1alpha.IRunReportRequest,
389389
optionsOrCallback?:
390390
| CallOptions
391391
| Callback<
@@ -420,7 +420,7 @@ export class AlphaAnalyticsDataClient {
420420
return this.innerApiCalls.runReport(request, options, callback);
421421
}
422422
runPivotReport(
423-
request: protos.google.analytics.data.v1alpha.IRunPivotReportRequest,
423+
request?: protos.google.analytics.data.v1alpha.IRunPivotReportRequest,
424424
options?: CallOptions
425425
): Promise<
426426
[
@@ -511,7 +511,7 @@ export class AlphaAnalyticsDataClient {
511511
* const [response] = await client.runPivotReport(request);
512512
*/
513513
runPivotReport(
514-
request: protos.google.analytics.data.v1alpha.IRunPivotReportRequest,
514+
request?: protos.google.analytics.data.v1alpha.IRunPivotReportRequest,
515515
optionsOrCallback?:
516516
| CallOptions
517517
| Callback<
@@ -548,7 +548,7 @@ export class AlphaAnalyticsDataClient {
548548
return this.innerApiCalls.runPivotReport(request, options, callback);
549549
}
550550
batchRunReports(
551-
request: protos.google.analytics.data.v1alpha.IBatchRunReportsRequest,
551+
request?: protos.google.analytics.data.v1alpha.IBatchRunReportsRequest,
552552
options?: CallOptions
553553
): Promise<
554554
[
@@ -602,7 +602,7 @@ export class AlphaAnalyticsDataClient {
602602
* const [response] = await client.batchRunReports(request);
603603
*/
604604
batchRunReports(
605-
request: protos.google.analytics.data.v1alpha.IBatchRunReportsRequest,
605+
request?: protos.google.analytics.data.v1alpha.IBatchRunReportsRequest,
606606
optionsOrCallback?:
607607
| CallOptions
608608
| Callback<
@@ -639,7 +639,7 @@ export class AlphaAnalyticsDataClient {
639639
return this.innerApiCalls.batchRunReports(request, options, callback);
640640
}
641641
batchRunPivotReports(
642-
request: protos.google.analytics.data.v1alpha.IBatchRunPivotReportsRequest,
642+
request?: protos.google.analytics.data.v1alpha.IBatchRunPivotReportsRequest,
643643
options?: CallOptions
644644
): Promise<
645645
[
@@ -696,7 +696,7 @@ export class AlphaAnalyticsDataClient {
696696
* const [response] = await client.batchRunPivotReports(request);
697697
*/
698698
batchRunPivotReports(
699-
request: protos.google.analytics.data.v1alpha.IBatchRunPivotReportsRequest,
699+
request?: protos.google.analytics.data.v1alpha.IBatchRunPivotReportsRequest,
700700
optionsOrCallback?:
701701
| CallOptions
702702
| Callback<
@@ -736,7 +736,7 @@ export class AlphaAnalyticsDataClient {
736736
return this.innerApiCalls.batchRunPivotReports(request, options, callback);
737737
}
738738
getMetadata(
739-
request: protos.google.analytics.data.v1alpha.IGetMetadataRequest,
739+
request?: protos.google.analytics.data.v1alpha.IGetMetadataRequest,
740740
options?: CallOptions
741741
): Promise<
742742
[
@@ -803,7 +803,7 @@ export class AlphaAnalyticsDataClient {
803803
* const [response] = await client.getMetadata(request);
804804
*/
805805
getMetadata(
806-
request: protos.google.analytics.data.v1alpha.IGetMetadataRequest,
806+
request?: protos.google.analytics.data.v1alpha.IGetMetadataRequest,
807807
optionsOrCallback?:
808808
| CallOptions
809809
| Callback<
@@ -846,7 +846,7 @@ export class AlphaAnalyticsDataClient {
846846
return this.innerApiCalls.getMetadata(request, options, callback);
847847
}
848848
runRealtimeReport(
849-
request: protos.google.analytics.data.v1alpha.IRunRealtimeReportRequest,
849+
request?: protos.google.analytics.data.v1alpha.IRunRealtimeReportRequest,
850850
options?: CallOptions
851851
): Promise<
852852
[
@@ -926,7 +926,7 @@ export class AlphaAnalyticsDataClient {
926926
* const [response] = await client.runRealtimeReport(request);
927927
*/
928928
runRealtimeReport(
929-
request: protos.google.analytics.data.v1alpha.IRunRealtimeReportRequest,
929+
request?: protos.google.analytics.data.v1alpha.IRunRealtimeReportRequest,
930930
optionsOrCallback?:
931931
| CallOptions
932932
| Callback<

src/v1beta/beta_analytics_data_client.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export class BetaAnalyticsDataClient {
287287
// -- Service calls --
288288
// -------------------
289289
runReport(
290-
request: protos.google.analytics.data.v1beta.IRunReportRequest,
290+
request?: protos.google.analytics.data.v1beta.IRunReportRequest,
291291
options?: CallOptions
292292
): Promise<
293293
[
@@ -402,7 +402,7 @@ export class BetaAnalyticsDataClient {
402402
* const [response] = await client.runReport(request);
403403
*/
404404
runReport(
405-
request: protos.google.analytics.data.v1beta.IRunReportRequest,
405+
request?: protos.google.analytics.data.v1beta.IRunReportRequest,
406406
optionsOrCallback?:
407407
| CallOptions
408408
| Callback<
@@ -443,7 +443,7 @@ export class BetaAnalyticsDataClient {
443443
return this.innerApiCalls.runReport(request, options, callback);
444444
}
445445
runPivotReport(
446-
request: protos.google.analytics.data.v1beta.IRunPivotReportRequest,
446+
request?: protos.google.analytics.data.v1beta.IRunPivotReportRequest,
447447
options?: CallOptions
448448
): Promise<
449449
[
@@ -540,7 +540,7 @@ export class BetaAnalyticsDataClient {
540540
* const [response] = await client.runPivotReport(request);
541541
*/
542542
runPivotReport(
543-
request: protos.google.analytics.data.v1beta.IRunPivotReportRequest,
543+
request?: protos.google.analytics.data.v1beta.IRunPivotReportRequest,
544544
optionsOrCallback?:
545545
| CallOptions
546546
| Callback<
@@ -583,7 +583,7 @@ export class BetaAnalyticsDataClient {
583583
return this.innerApiCalls.runPivotReport(request, options, callback);
584584
}
585585
batchRunReports(
586-
request: protos.google.analytics.data.v1beta.IBatchRunReportsRequest,
586+
request?: protos.google.analytics.data.v1beta.IBatchRunReportsRequest,
587587
options?: CallOptions
588588
): Promise<
589589
[
@@ -643,7 +643,7 @@ export class BetaAnalyticsDataClient {
643643
* const [response] = await client.batchRunReports(request);
644644
*/
645645
batchRunReports(
646-
request: protos.google.analytics.data.v1beta.IBatchRunReportsRequest,
646+
request?: protos.google.analytics.data.v1beta.IBatchRunReportsRequest,
647647
optionsOrCallback?:
648648
| CallOptions
649649
| Callback<
@@ -686,7 +686,7 @@ export class BetaAnalyticsDataClient {
686686
return this.innerApiCalls.batchRunReports(request, options, callback);
687687
}
688688
batchRunPivotReports(
689-
request: protos.google.analytics.data.v1beta.IBatchRunPivotReportsRequest,
689+
request?: protos.google.analytics.data.v1beta.IBatchRunPivotReportsRequest,
690690
options?: CallOptions
691691
): Promise<
692692
[
@@ -749,7 +749,7 @@ export class BetaAnalyticsDataClient {
749749
* const [response] = await client.batchRunPivotReports(request);
750750
*/
751751
batchRunPivotReports(
752-
request: protos.google.analytics.data.v1beta.IBatchRunPivotReportsRequest,
752+
request?: protos.google.analytics.data.v1beta.IBatchRunPivotReportsRequest,
753753
optionsOrCallback?:
754754
| CallOptions
755755
| Callback<
@@ -795,7 +795,7 @@ export class BetaAnalyticsDataClient {
795795
return this.innerApiCalls.batchRunPivotReports(request, options, callback);
796796
}
797797
getMetadata(
798-
request: protos.google.analytics.data.v1beta.IGetMetadataRequest,
798+
request?: protos.google.analytics.data.v1beta.IGetMetadataRequest,
799799
options?: CallOptions
800800
): Promise<
801801
[
@@ -862,7 +862,7 @@ export class BetaAnalyticsDataClient {
862862
* const [response] = await client.getMetadata(request);
863863
*/
864864
getMetadata(
865-
request: protos.google.analytics.data.v1beta.IGetMetadataRequest,
865+
request?: protos.google.analytics.data.v1beta.IGetMetadataRequest,
866866
optionsOrCallback?:
867867
| CallOptions
868868
| Callback<
@@ -905,7 +905,7 @@ export class BetaAnalyticsDataClient {
905905
return this.innerApiCalls.getMetadata(request, options, callback);
906906
}
907907
runRealtimeReport(
908-
request: protos.google.analytics.data.v1beta.IRunRealtimeReportRequest,
908+
request?: protos.google.analytics.data.v1beta.IRunRealtimeReportRequest,
909909
options?: CallOptions
910910
): Promise<
911911
[
@@ -989,7 +989,7 @@ export class BetaAnalyticsDataClient {
989989
* const [response] = await client.runRealtimeReport(request);
990990
*/
991991
runRealtimeReport(
992-
request: protos.google.analytics.data.v1beta.IRunRealtimeReportRequest,
992+
request?: protos.google.analytics.data.v1beta.IRunRealtimeReportRequest,
993993
optionsOrCallback?:
994994
| CallOptions
995995
| Callback<

0 commit comments

Comments
 (0)