Skip to content

Commit 8e2e3b5

Browse files
fix: preserve default values in x-goog-request-params header (#32)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 474338479 Source-Link: googleapis/googleapis@d5d35e0 Source-Link: googleapis/googleapis-gen@efcd3f9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9
1 parent f4687e0 commit 8e2e3b5

File tree

2 files changed

+1097
-1033
lines changed

2 files changed

+1097
-1033
lines changed

packages/google-cloud-video-stitcher/src/v1/video_stitcher_service_client.ts

+30-30
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export class VideoStitcherServiceClient {
489489
options.otherArgs.headers = options.otherArgs.headers || {};
490490
options.otherArgs.headers['x-goog-request-params'] =
491491
this._gaxModule.routingHeader.fromParams({
492-
parent: request.parent || '',
492+
parent: request.parent ?? '',
493493
});
494494
this.initialize();
495495
return this.innerApiCalls.createCdnKey(request, options, callback);
@@ -581,7 +581,7 @@ export class VideoStitcherServiceClient {
581581
options.otherArgs.headers = options.otherArgs.headers || {};
582582
options.otherArgs.headers['x-goog-request-params'] =
583583
this._gaxModule.routingHeader.fromParams({
584-
name: request.name || '',
584+
name: request.name ?? '',
585585
});
586586
this.initialize();
587587
return this.innerApiCalls.getCdnKey(request, options, callback);
@@ -673,7 +673,7 @@ export class VideoStitcherServiceClient {
673673
options.otherArgs.headers = options.otherArgs.headers || {};
674674
options.otherArgs.headers['x-goog-request-params'] =
675675
this._gaxModule.routingHeader.fromParams({
676-
name: request.name || '',
676+
name: request.name ?? '',
677677
});
678678
this.initialize();
679679
return this.innerApiCalls.deleteCdnKey(request, options, callback);
@@ -769,7 +769,7 @@ export class VideoStitcherServiceClient {
769769
options.otherArgs.headers = options.otherArgs.headers || {};
770770
options.otherArgs.headers['x-goog-request-params'] =
771771
this._gaxModule.routingHeader.fromParams({
772-
'cdn_key.name': request.cdnKey!.name || '',
772+
'cdn_key.name': request.cdnKey!.name ?? '',
773773
});
774774
this.initialize();
775775
return this.innerApiCalls.updateCdnKey(request, options, callback);
@@ -870,7 +870,7 @@ export class VideoStitcherServiceClient {
870870
options.otherArgs.headers = options.otherArgs.headers || {};
871871
options.otherArgs.headers['x-goog-request-params'] =
872872
this._gaxModule.routingHeader.fromParams({
873-
parent: request.parent || '',
873+
parent: request.parent ?? '',
874874
});
875875
this.initialize();
876876
return this.innerApiCalls.createVodSession(request, options, callback);
@@ -963,7 +963,7 @@ export class VideoStitcherServiceClient {
963963
options.otherArgs.headers = options.otherArgs.headers || {};
964964
options.otherArgs.headers['x-goog-request-params'] =
965965
this._gaxModule.routingHeader.fromParams({
966-
name: request.name || '',
966+
name: request.name ?? '',
967967
});
968968
this.initialize();
969969
return this.innerApiCalls.getVodSession(request, options, callback);
@@ -1061,7 +1061,7 @@ export class VideoStitcherServiceClient {
10611061
options.otherArgs.headers = options.otherArgs.headers || {};
10621062
options.otherArgs.headers['x-goog-request-params'] =
10631063
this._gaxModule.routingHeader.fromParams({
1064-
name: request.name || '',
1064+
name: request.name ?? '',
10651065
});
10661066
this.initialize();
10671067
return this.innerApiCalls.getVodStitchDetail(request, options, callback);
@@ -1159,7 +1159,7 @@ export class VideoStitcherServiceClient {
11591159
options.otherArgs.headers = options.otherArgs.headers || {};
11601160
options.otherArgs.headers['x-goog-request-params'] =
11611161
this._gaxModule.routingHeader.fromParams({
1162-
name: request.name || '',
1162+
name: request.name ?? '',
11631163
});
11641164
this.initialize();
11651165
return this.innerApiCalls.getVodAdTagDetail(request, options, callback);
@@ -1257,7 +1257,7 @@ export class VideoStitcherServiceClient {
12571257
options.otherArgs.headers = options.otherArgs.headers || {};
12581258
options.otherArgs.headers['x-goog-request-params'] =
12591259
this._gaxModule.routingHeader.fromParams({
1260-
name: request.name || '',
1260+
name: request.name ?? '',
12611261
});
12621262
this.initialize();
12631263
return this.innerApiCalls.getLiveAdTagDetail(request, options, callback);
@@ -1356,7 +1356,7 @@ export class VideoStitcherServiceClient {
13561356
options.otherArgs.headers = options.otherArgs.headers || {};
13571357
options.otherArgs.headers['x-goog-request-params'] =
13581358
this._gaxModule.routingHeader.fromParams({
1359-
parent: request.parent || '',
1359+
parent: request.parent ?? '',
13601360
});
13611361
this.initialize();
13621362
return this.innerApiCalls.createSlate(request, options, callback);
@@ -1442,7 +1442,7 @@ export class VideoStitcherServiceClient {
14421442
options.otherArgs.headers = options.otherArgs.headers || {};
14431443
options.otherArgs.headers['x-goog-request-params'] =
14441444
this._gaxModule.routingHeader.fromParams({
1445-
name: request.name || '',
1445+
name: request.name ?? '',
14461446
});
14471447
this.initialize();
14481448
return this.innerApiCalls.getSlate(request, options, callback);
@@ -1535,7 +1535,7 @@ export class VideoStitcherServiceClient {
15351535
options.otherArgs.headers = options.otherArgs.headers || {};
15361536
options.otherArgs.headers['x-goog-request-params'] =
15371537
this._gaxModule.routingHeader.fromParams({
1538-
'slate.name': request.slate!.name || '',
1538+
'slate.name': request.slate!.name ?? '',
15391539
});
15401540
this.initialize();
15411541
return this.innerApiCalls.updateSlate(request, options, callback);
@@ -1627,7 +1627,7 @@ export class VideoStitcherServiceClient {
16271627
options.otherArgs.headers = options.otherArgs.headers || {};
16281628
options.otherArgs.headers['x-goog-request-params'] =
16291629
this._gaxModule.routingHeader.fromParams({
1630-
name: request.name || '',
1630+
name: request.name ?? '',
16311631
});
16321632
this.initialize();
16331633
return this.innerApiCalls.deleteSlate(request, options, callback);
@@ -1727,7 +1727,7 @@ export class VideoStitcherServiceClient {
17271727
options.otherArgs.headers = options.otherArgs.headers || {};
17281728
options.otherArgs.headers['x-goog-request-params'] =
17291729
this._gaxModule.routingHeader.fromParams({
1730-
parent: request.parent || '',
1730+
parent: request.parent ?? '',
17311731
});
17321732
this.initialize();
17331733
return this.innerApiCalls.createLiveSession(request, options, callback);
@@ -1819,7 +1819,7 @@ export class VideoStitcherServiceClient {
18191819
options.otherArgs.headers = options.otherArgs.headers || {};
18201820
options.otherArgs.headers['x-goog-request-params'] =
18211821
this._gaxModule.routingHeader.fromParams({
1822-
name: request.name || '',
1822+
name: request.name ?? '',
18231823
});
18241824
this.initialize();
18251825
return this.innerApiCalls.getLiveSession(request, options, callback);
@@ -1924,7 +1924,7 @@ export class VideoStitcherServiceClient {
19241924
options.otherArgs.headers = options.otherArgs.headers || {};
19251925
options.otherArgs.headers['x-goog-request-params'] =
19261926
this._gaxModule.routingHeader.fromParams({
1927-
parent: request.parent || '',
1927+
parent: request.parent ?? '',
19281928
});
19291929
this.initialize();
19301930
return this.innerApiCalls.listCdnKeys(request, options, callback);
@@ -1968,7 +1968,7 @@ export class VideoStitcherServiceClient {
19681968
options.otherArgs.headers = options.otherArgs.headers || {};
19691969
options.otherArgs.headers['x-goog-request-params'] =
19701970
this._gaxModule.routingHeader.fromParams({
1971-
parent: request.parent || '',
1971+
parent: request.parent ?? '',
19721972
});
19731973
const defaultCallSettings = this._defaults['listCdnKeys'];
19741974
const callSettings = defaultCallSettings.merge(options);
@@ -2021,7 +2021,7 @@ export class VideoStitcherServiceClient {
20212021
options.otherArgs.headers = options.otherArgs.headers || {};
20222022
options.otherArgs.headers['x-goog-request-params'] =
20232023
this._gaxModule.routingHeader.fromParams({
2024-
parent: request.parent || '',
2024+
parent: request.parent ?? '',
20252025
});
20262026
const defaultCallSettings = this._defaults['listCdnKeys'];
20272027
const callSettings = defaultCallSettings.merge(options);
@@ -2127,7 +2127,7 @@ export class VideoStitcherServiceClient {
21272127
options.otherArgs.headers = options.otherArgs.headers || {};
21282128
options.otherArgs.headers['x-goog-request-params'] =
21292129
this._gaxModule.routingHeader.fromParams({
2130-
parent: request.parent || '',
2130+
parent: request.parent ?? '',
21312131
});
21322132
this.initialize();
21332133
return this.innerApiCalls.listVodStitchDetails(request, options, callback);
@@ -2166,7 +2166,7 @@ export class VideoStitcherServiceClient {
21662166
options.otherArgs.headers = options.otherArgs.headers || {};
21672167
options.otherArgs.headers['x-goog-request-params'] =
21682168
this._gaxModule.routingHeader.fromParams({
2169-
parent: request.parent || '',
2169+
parent: request.parent ?? '',
21702170
});
21712171
const defaultCallSettings = this._defaults['listVodStitchDetails'];
21722172
const callSettings = defaultCallSettings.merge(options);
@@ -2214,7 +2214,7 @@ export class VideoStitcherServiceClient {
22142214
options.otherArgs.headers = options.otherArgs.headers || {};
22152215
options.otherArgs.headers['x-goog-request-params'] =
22162216
this._gaxModule.routingHeader.fromParams({
2217-
parent: request.parent || '',
2217+
parent: request.parent ?? '',
22182218
});
22192219
const defaultCallSettings = this._defaults['listVodStitchDetails'];
22202220
const callSettings = defaultCallSettings.merge(options);
@@ -2319,7 +2319,7 @@ export class VideoStitcherServiceClient {
23192319
options.otherArgs.headers = options.otherArgs.headers || {};
23202320
options.otherArgs.headers['x-goog-request-params'] =
23212321
this._gaxModule.routingHeader.fromParams({
2322-
parent: request.parent || '',
2322+
parent: request.parent ?? '',
23232323
});
23242324
this.initialize();
23252325
return this.innerApiCalls.listVodAdTagDetails(request, options, callback);
@@ -2358,7 +2358,7 @@ export class VideoStitcherServiceClient {
23582358
options.otherArgs.headers = options.otherArgs.headers || {};
23592359
options.otherArgs.headers['x-goog-request-params'] =
23602360
this._gaxModule.routingHeader.fromParams({
2361-
parent: request.parent || '',
2361+
parent: request.parent ?? '',
23622362
});
23632363
const defaultCallSettings = this._defaults['listVodAdTagDetails'];
23642364
const callSettings = defaultCallSettings.merge(options);
@@ -2406,7 +2406,7 @@ export class VideoStitcherServiceClient {
24062406
options.otherArgs.headers = options.otherArgs.headers || {};
24072407
options.otherArgs.headers['x-goog-request-params'] =
24082408
this._gaxModule.routingHeader.fromParams({
2409-
parent: request.parent || '',
2409+
parent: request.parent ?? '',
24102410
});
24112411
const defaultCallSettings = this._defaults['listVodAdTagDetails'];
24122412
const callSettings = defaultCallSettings.merge(options);
@@ -2511,7 +2511,7 @@ export class VideoStitcherServiceClient {
25112511
options.otherArgs.headers = options.otherArgs.headers || {};
25122512
options.otherArgs.headers['x-goog-request-params'] =
25132513
this._gaxModule.routingHeader.fromParams({
2514-
parent: request.parent || '',
2514+
parent: request.parent ?? '',
25152515
});
25162516
this.initialize();
25172517
return this.innerApiCalls.listLiveAdTagDetails(request, options, callback);
@@ -2550,7 +2550,7 @@ export class VideoStitcherServiceClient {
25502550
options.otherArgs.headers = options.otherArgs.headers || {};
25512551
options.otherArgs.headers['x-goog-request-params'] =
25522552
this._gaxModule.routingHeader.fromParams({
2553-
parent: request.parent || '',
2553+
parent: request.parent ?? '',
25542554
});
25552555
const defaultCallSettings = this._defaults['listLiveAdTagDetails'];
25562556
const callSettings = defaultCallSettings.merge(options);
@@ -2598,7 +2598,7 @@ export class VideoStitcherServiceClient {
25982598
options.otherArgs.headers = options.otherArgs.headers || {};
25992599
options.otherArgs.headers['x-goog-request-params'] =
26002600
this._gaxModule.routingHeader.fromParams({
2601-
parent: request.parent || '',
2601+
parent: request.parent ?? '',
26022602
});
26032603
const defaultCallSettings = this._defaults['listLiveAdTagDetails'];
26042604
const callSettings = defaultCallSettings.merge(options);
@@ -2707,7 +2707,7 @@ export class VideoStitcherServiceClient {
27072707
options.otherArgs.headers = options.otherArgs.headers || {};
27082708
options.otherArgs.headers['x-goog-request-params'] =
27092709
this._gaxModule.routingHeader.fromParams({
2710-
parent: request.parent || '',
2710+
parent: request.parent ?? '',
27112711
});
27122712
this.initialize();
27132713
return this.innerApiCalls.listSlates(request, options, callback);
@@ -2750,7 +2750,7 @@ export class VideoStitcherServiceClient {
27502750
options.otherArgs.headers = options.otherArgs.headers || {};
27512751
options.otherArgs.headers['x-goog-request-params'] =
27522752
this._gaxModule.routingHeader.fromParams({
2753-
parent: request.parent || '',
2753+
parent: request.parent ?? '',
27542754
});
27552755
const defaultCallSettings = this._defaults['listSlates'];
27562756
const callSettings = defaultCallSettings.merge(options);
@@ -2802,7 +2802,7 @@ export class VideoStitcherServiceClient {
28022802
options.otherArgs.headers = options.otherArgs.headers || {};
28032803
options.otherArgs.headers['x-goog-request-params'] =
28042804
this._gaxModule.routingHeader.fromParams({
2805-
parent: request.parent || '',
2805+
parent: request.parent ?? '',
28062806
});
28072807
const defaultCallSettings = this._defaults['listSlates'];
28082808
const callSettings = defaultCallSettings.merge(options);

0 commit comments

Comments
 (0)