@@ -591,7 +591,7 @@ export class TranslationServiceClient {
591591 options . otherArgs . headers = options . otherArgs . headers || { } ;
592592 options . otherArgs . headers [ 'x-goog-request-params' ] =
593593 this . _gaxModule . routingHeader . fromParams ( {
594- parent : request . parent || '' ,
594+ parent : request . parent ?? '' ,
595595 } ) ;
596596 this . initialize ( ) ;
597597 return this . innerApiCalls . translateText ( request , options , callback ) ;
@@ -722,7 +722,7 @@ export class TranslationServiceClient {
722722 options . otherArgs . headers = options . otherArgs . headers || { } ;
723723 options . otherArgs . headers [ 'x-goog-request-params' ] =
724724 this . _gaxModule . routingHeader . fromParams ( {
725- parent : request . parent || '' ,
725+ parent : request . parent ?? '' ,
726726 } ) ;
727727 this . initialize ( ) ;
728728 return this . innerApiCalls . detectLanguage ( request , options , callback ) ;
@@ -849,7 +849,7 @@ export class TranslationServiceClient {
849849 options . otherArgs . headers = options . otherArgs . headers || { } ;
850850 options . otherArgs . headers [ 'x-goog-request-params' ] =
851851 this . _gaxModule . routingHeader . fromParams ( {
852- parent : request . parent || '' ,
852+ parent : request . parent ?? '' ,
853853 } ) ;
854854 this . initialize ( ) ;
855855 return this . innerApiCalls . getSupportedLanguages ( request , options , callback ) ;
@@ -1002,7 +1002,7 @@ export class TranslationServiceClient {
10021002 options . otherArgs . headers = options . otherArgs . headers || { } ;
10031003 options . otherArgs . headers [ 'x-goog-request-params' ] =
10041004 this . _gaxModule . routingHeader . fromParams ( {
1005- parent : request . parent || '' ,
1005+ parent : request . parent ?? '' ,
10061006 } ) ;
10071007 this . initialize ( ) ;
10081008 return this . innerApiCalls . translateDocument ( request , options , callback ) ;
@@ -1094,7 +1094,7 @@ export class TranslationServiceClient {
10941094 options . otherArgs . headers = options . otherArgs . headers || { } ;
10951095 options . otherArgs . headers [ 'x-goog-request-params' ] =
10961096 this . _gaxModule . routingHeader . fromParams ( {
1097- name : request . name || '' ,
1097+ name : request . name ?? '' ,
10981098 } ) ;
10991099 this . initialize ( ) ;
11001100 return this . innerApiCalls . getGlossary ( request , options , callback ) ;
@@ -1253,7 +1253,7 @@ export class TranslationServiceClient {
12531253 options . otherArgs . headers = options . otherArgs . headers || { } ;
12541254 options . otherArgs . headers [ 'x-goog-request-params' ] =
12551255 this . _gaxModule . routingHeader . fromParams ( {
1256- parent : request . parent || '' ,
1256+ parent : request . parent ?? '' ,
12571257 } ) ;
12581258 this . initialize ( ) ;
12591259 return this . innerApiCalls . batchTranslateText ( request , options , callback ) ;
@@ -1450,7 +1450,7 @@ export class TranslationServiceClient {
14501450 options . otherArgs . headers = options . otherArgs . headers || { } ;
14511451 options . otherArgs . headers [ 'x-goog-request-params' ] =
14521452 this . _gaxModule . routingHeader . fromParams ( {
1453- parent : request . parent || '' ,
1453+ parent : request . parent ?? '' ,
14541454 } ) ;
14551455 this . initialize ( ) ;
14561456 return this . innerApiCalls . batchTranslateDocument (
@@ -1595,7 +1595,7 @@ export class TranslationServiceClient {
15951595 options . otherArgs . headers = options . otherArgs . headers || { } ;
15961596 options . otherArgs . headers [ 'x-goog-request-params' ] =
15971597 this . _gaxModule . routingHeader . fromParams ( {
1598- parent : request . parent || '' ,
1598+ parent : request . parent ?? '' ,
15991599 } ) ;
16001600 this . initialize ( ) ;
16011601 return this . innerApiCalls . createGlossary ( request , options , callback ) ;
@@ -1735,7 +1735,7 @@ export class TranslationServiceClient {
17351735 options . otherArgs . headers = options . otherArgs . headers || { } ;
17361736 options . otherArgs . headers [ 'x-goog-request-params' ] =
17371737 this . _gaxModule . routingHeader . fromParams ( {
1738- name : request . name || '' ,
1738+ name : request . name ?? '' ,
17391739 } ) ;
17401740 this . initialize ( ) ;
17411741 return this . innerApiCalls . deleteGlossary ( request , options , callback ) ;
@@ -1890,7 +1890,7 @@ export class TranslationServiceClient {
18901890 options . otherArgs . headers = options . otherArgs . headers || { } ;
18911891 options . otherArgs . headers [ 'x-goog-request-params' ] =
18921892 this . _gaxModule . routingHeader . fromParams ( {
1893- parent : request . parent || '' ,
1893+ parent : request . parent ?? '' ,
18941894 } ) ;
18951895 this . initialize ( ) ;
18961896 return this . innerApiCalls . listGlossaries ( request , options , callback ) ;
@@ -1949,7 +1949,7 @@ export class TranslationServiceClient {
19491949 options . otherArgs . headers = options . otherArgs . headers || { } ;
19501950 options . otherArgs . headers [ 'x-goog-request-params' ] =
19511951 this . _gaxModule . routingHeader . fromParams ( {
1952- parent : request . parent || '' ,
1952+ parent : request . parent ?? '' ,
19531953 } ) ;
19541954 const defaultCallSettings = this . _defaults [ 'listGlossaries' ] ;
19551955 const callSettings = defaultCallSettings . merge ( options ) ;
@@ -2017,7 +2017,7 @@ export class TranslationServiceClient {
20172017 options . otherArgs . headers = options . otherArgs . headers || { } ;
20182018 options . otherArgs . headers [ 'x-goog-request-params' ] =
20192019 this . _gaxModule . routingHeader . fromParams ( {
2020- parent : request . parent || '' ,
2020+ parent : request . parent ?? '' ,
20212021 } ) ;
20222022 const defaultCallSettings = this . _defaults [ 'listGlossaries' ] ;
20232023 const callSettings = defaultCallSettings . merge ( options ) ;
0 commit comments