@@ -479,7 +479,7 @@ export class PublisherClient {
479479 ] = this . _gaxModule . routingHeader . fromParams ( {
480480 'name' : request . name ?? '' ,
481481 } ) ;
482- this . initialize ( ) ;
482+ this . initialize ( ) . catch ( err => { throw err } ) ;
483483 this . _log . info ( 'createTopic request %j' , request ) ;
484484 const wrappedCallback : Callback <
485485 protos . google . pubsub . v1 . ITopic ,
@@ -572,7 +572,7 @@ export class PublisherClient {
572572 ] = this . _gaxModule . routingHeader . fromParams ( {
573573 'topic.name' : request . topic ! . name ?? '' ,
574574 } ) ;
575- this . initialize ( ) ;
575+ this . initialize ( ) . catch ( err => { throw err } ) ;
576576 this . _log . info ( 'updateTopic request %j' , request ) ;
577577 const wrappedCallback : Callback <
578578 protos . google . pubsub . v1 . ITopic ,
@@ -662,7 +662,7 @@ export class PublisherClient {
662662 ] = this . _gaxModule . routingHeader . fromParams ( {
663663 'topic' : request . topic ?? '' ,
664664 } ) ;
665- this . initialize ( ) ;
665+ this . initialize ( ) . catch ( err => { throw err } ) ;
666666 this . _log . info ( 'publish request %j' , request ) ;
667667 const wrappedCallback : Callback <
668668 protos . google . pubsub . v1 . IPublishResponse ,
@@ -749,7 +749,7 @@ export class PublisherClient {
749749 ] = this . _gaxModule . routingHeader . fromParams ( {
750750 'topic' : request . topic ?? '' ,
751751 } ) ;
752- this . initialize ( ) ;
752+ this . initialize ( ) . catch ( err => { throw err } ) ;
753753 this . _log . info ( 'getTopic request %j' , request ) ;
754754 const wrappedCallback : Callback <
755755 protos . google . pubsub . v1 . ITopic ,
@@ -840,7 +840,7 @@ export class PublisherClient {
840840 ] = this . _gaxModule . routingHeader . fromParams ( {
841841 'topic' : request . topic ?? '' ,
842842 } ) ;
843- this . initialize ( ) ;
843+ this . initialize ( ) . catch ( err => { throw err } ) ;
844844 this . _log . info ( 'deleteTopic request %j' , request ) ;
845845 const wrappedCallback : Callback <
846846 protos . google . protobuf . IEmpty ,
@@ -930,7 +930,7 @@ export class PublisherClient {
930930 ] = this . _gaxModule . routingHeader . fromParams ( {
931931 'subscription' : request . subscription ?? '' ,
932932 } ) ;
933- this . initialize ( ) ;
933+ this . initialize ( ) . catch ( err => { throw err } ) ;
934934 this . _log . info ( 'detachSubscription request %j' , request ) ;
935935 const wrappedCallback : Callback <
936936 protos . google . pubsub . v1 . IDetachSubscriptionResponse ,
@@ -1031,7 +1031,7 @@ export class PublisherClient {
10311031 ] = this . _gaxModule . routingHeader . fromParams ( {
10321032 'project' : request . project ?? '' ,
10331033 } ) ;
1034- this . initialize ( ) ;
1034+ this . initialize ( ) . catch ( err => { throw err } ) ;
10351035 const wrappedCallback : PaginationCallback <
10361036 protos . google . pubsub . v1 . IListTopicsRequest ,
10371037 protos . google . pubsub . v1 . IListTopicsResponse | null | undefined ,
@@ -1093,7 +1093,7 @@ export class PublisherClient {
10931093 } ) ;
10941094 const defaultCallSettings = this . _defaults [ 'listTopics' ] ;
10951095 const callSettings = defaultCallSettings . merge ( options ) ;
1096- this . initialize ( ) ;
1096+ this . initialize ( ) . catch ( err => { throw err } ) ;
10971097 this . _log . info ( 'listTopics stream %j' , request ) ;
10981098 return this . descriptors . page . listTopics . createStream (
10991099 this . innerApiCalls . listTopics as GaxCall ,
@@ -1142,7 +1142,7 @@ export class PublisherClient {
11421142 } ) ;
11431143 const defaultCallSettings = this . _defaults [ 'listTopics' ] ;
11441144 const callSettings = defaultCallSettings . merge ( options ) ;
1145- this . initialize ( ) ;
1145+ this . initialize ( ) . catch ( err => { throw err } ) ;
11461146 this . _log . info ( 'listTopics iterate %j' , request ) ;
11471147 return this . descriptors . page . listTopics . asyncIterate (
11481148 this . innerApiCalls [ 'listTopics' ] as GaxCall ,
@@ -1229,7 +1229,7 @@ export class PublisherClient {
12291229 ] = this . _gaxModule . routingHeader . fromParams ( {
12301230 'topic' : request . topic ?? '' ,
12311231 } ) ;
1232- this . initialize ( ) ;
1232+ this . initialize ( ) . catch ( err => { throw err } ) ;
12331233 const wrappedCallback : PaginationCallback <
12341234 protos . google . pubsub . v1 . IListTopicSubscriptionsRequest ,
12351235 protos . google . pubsub . v1 . IListTopicSubscriptionsResponse | null | undefined ,
@@ -1291,7 +1291,7 @@ export class PublisherClient {
12911291 } ) ;
12921292 const defaultCallSettings = this . _defaults [ 'listTopicSubscriptions' ] ;
12931293 const callSettings = defaultCallSettings . merge ( options ) ;
1294- this . initialize ( ) ;
1294+ this . initialize ( ) . catch ( err => { throw err } ) ;
12951295 this . _log . info ( 'listTopicSubscriptions stream %j' , request ) ;
12961296 return this . descriptors . page . listTopicSubscriptions . createStream (
12971297 this . innerApiCalls . listTopicSubscriptions as GaxCall ,
@@ -1340,7 +1340,7 @@ export class PublisherClient {
13401340 } ) ;
13411341 const defaultCallSettings = this . _defaults [ 'listTopicSubscriptions' ] ;
13421342 const callSettings = defaultCallSettings . merge ( options ) ;
1343- this . initialize ( ) ;
1343+ this . initialize ( ) . catch ( err => { throw err } ) ;
13441344 this . _log . info ( 'listTopicSubscriptions iterate %j' , request ) ;
13451345 return this . descriptors . page . listTopicSubscriptions . asyncIterate (
13461346 this . innerApiCalls [ 'listTopicSubscriptions' ] as GaxCall ,
@@ -1431,7 +1431,7 @@ export class PublisherClient {
14311431 ] = this . _gaxModule . routingHeader . fromParams ( {
14321432 'topic' : request . topic ?? '' ,
14331433 } ) ;
1434- this . initialize ( ) ;
1434+ this . initialize ( ) . catch ( err => { throw err } ) ;
14351435 const wrappedCallback : PaginationCallback <
14361436 protos . google . pubsub . v1 . IListTopicSnapshotsRequest ,
14371437 protos . google . pubsub . v1 . IListTopicSnapshotsResponse | null | undefined ,
@@ -1493,7 +1493,7 @@ export class PublisherClient {
14931493 } ) ;
14941494 const defaultCallSettings = this . _defaults [ 'listTopicSnapshots' ] ;
14951495 const callSettings = defaultCallSettings . merge ( options ) ;
1496- this . initialize ( ) ;
1496+ this . initialize ( ) . catch ( err => { throw err } ) ;
14971497 this . _log . info ( 'listTopicSnapshots stream %j' , request ) ;
14981498 return this . descriptors . page . listTopicSnapshots . createStream (
14991499 this . innerApiCalls . listTopicSnapshots as GaxCall ,
@@ -1542,7 +1542,7 @@ export class PublisherClient {
15421542 } ) ;
15431543 const defaultCallSettings = this . _defaults [ 'listTopicSnapshots' ] ;
15441544 const callSettings = defaultCallSettings . merge ( options ) ;
1545- this . initialize ( ) ;
1545+ this . initialize ( ) . catch ( err => { throw err } ) ;
15461546 this . _log . info ( 'listTopicSnapshots iterate %j' , request ) ;
15471547 return this . descriptors . page . listTopicSnapshots . asyncIterate (
15481548 this . innerApiCalls [ 'listTopicSnapshots' ] as GaxCall ,
0 commit comments