@@ -591,7 +591,7 @@ export class TranslationServiceClient {
591
591
options . otherArgs . headers = options . otherArgs . headers || { } ;
592
592
options . otherArgs . headers [ 'x-goog-request-params' ] =
593
593
this . _gaxModule . routingHeader . fromParams ( {
594
- parent : request . parent || '' ,
594
+ parent : request . parent ?? '' ,
595
595
} ) ;
596
596
this . initialize ( ) ;
597
597
return this . innerApiCalls . translateText ( request , options , callback ) ;
@@ -722,7 +722,7 @@ export class TranslationServiceClient {
722
722
options . otherArgs . headers = options . otherArgs . headers || { } ;
723
723
options . otherArgs . headers [ 'x-goog-request-params' ] =
724
724
this . _gaxModule . routingHeader . fromParams ( {
725
- parent : request . parent || '' ,
725
+ parent : request . parent ?? '' ,
726
726
} ) ;
727
727
this . initialize ( ) ;
728
728
return this . innerApiCalls . detectLanguage ( request , options , callback ) ;
@@ -849,7 +849,7 @@ export class TranslationServiceClient {
849
849
options . otherArgs . headers = options . otherArgs . headers || { } ;
850
850
options . otherArgs . headers [ 'x-goog-request-params' ] =
851
851
this . _gaxModule . routingHeader . fromParams ( {
852
- parent : request . parent || '' ,
852
+ parent : request . parent ?? '' ,
853
853
} ) ;
854
854
this . initialize ( ) ;
855
855
return this . innerApiCalls . getSupportedLanguages ( request , options , callback ) ;
@@ -1002,7 +1002,7 @@ export class TranslationServiceClient {
1002
1002
options . otherArgs . headers = options . otherArgs . headers || { } ;
1003
1003
options . otherArgs . headers [ 'x-goog-request-params' ] =
1004
1004
this . _gaxModule . routingHeader . fromParams ( {
1005
- parent : request . parent || '' ,
1005
+ parent : request . parent ?? '' ,
1006
1006
} ) ;
1007
1007
this . initialize ( ) ;
1008
1008
return this . innerApiCalls . translateDocument ( request , options , callback ) ;
@@ -1094,7 +1094,7 @@ export class TranslationServiceClient {
1094
1094
options . otherArgs . headers = options . otherArgs . headers || { } ;
1095
1095
options . otherArgs . headers [ 'x-goog-request-params' ] =
1096
1096
this . _gaxModule . routingHeader . fromParams ( {
1097
- name : request . name || '' ,
1097
+ name : request . name ?? '' ,
1098
1098
} ) ;
1099
1099
this . initialize ( ) ;
1100
1100
return this . innerApiCalls . getGlossary ( request , options , callback ) ;
@@ -1253,7 +1253,7 @@ export class TranslationServiceClient {
1253
1253
options . otherArgs . headers = options . otherArgs . headers || { } ;
1254
1254
options . otherArgs . headers [ 'x-goog-request-params' ] =
1255
1255
this . _gaxModule . routingHeader . fromParams ( {
1256
- parent : request . parent || '' ,
1256
+ parent : request . parent ?? '' ,
1257
1257
} ) ;
1258
1258
this . initialize ( ) ;
1259
1259
return this . innerApiCalls . batchTranslateText ( request , options , callback ) ;
@@ -1450,7 +1450,7 @@ export class TranslationServiceClient {
1450
1450
options . otherArgs . headers = options . otherArgs . headers || { } ;
1451
1451
options . otherArgs . headers [ 'x-goog-request-params' ] =
1452
1452
this . _gaxModule . routingHeader . fromParams ( {
1453
- parent : request . parent || '' ,
1453
+ parent : request . parent ?? '' ,
1454
1454
} ) ;
1455
1455
this . initialize ( ) ;
1456
1456
return this . innerApiCalls . batchTranslateDocument (
@@ -1595,7 +1595,7 @@ export class TranslationServiceClient {
1595
1595
options . otherArgs . headers = options . otherArgs . headers || { } ;
1596
1596
options . otherArgs . headers [ 'x-goog-request-params' ] =
1597
1597
this . _gaxModule . routingHeader . fromParams ( {
1598
- parent : request . parent || '' ,
1598
+ parent : request . parent ?? '' ,
1599
1599
} ) ;
1600
1600
this . initialize ( ) ;
1601
1601
return this . innerApiCalls . createGlossary ( request , options , callback ) ;
@@ -1735,7 +1735,7 @@ export class TranslationServiceClient {
1735
1735
options . otherArgs . headers = options . otherArgs . headers || { } ;
1736
1736
options . otherArgs . headers [ 'x-goog-request-params' ] =
1737
1737
this . _gaxModule . routingHeader . fromParams ( {
1738
- name : request . name || '' ,
1738
+ name : request . name ?? '' ,
1739
1739
} ) ;
1740
1740
this . initialize ( ) ;
1741
1741
return this . innerApiCalls . deleteGlossary ( request , options , callback ) ;
@@ -1890,7 +1890,7 @@ export class TranslationServiceClient {
1890
1890
options . otherArgs . headers = options . otherArgs . headers || { } ;
1891
1891
options . otherArgs . headers [ 'x-goog-request-params' ] =
1892
1892
this . _gaxModule . routingHeader . fromParams ( {
1893
- parent : request . parent || '' ,
1893
+ parent : request . parent ?? '' ,
1894
1894
} ) ;
1895
1895
this . initialize ( ) ;
1896
1896
return this . innerApiCalls . listGlossaries ( request , options , callback ) ;
@@ -1949,7 +1949,7 @@ export class TranslationServiceClient {
1949
1949
options . otherArgs . headers = options . otherArgs . headers || { } ;
1950
1950
options . otherArgs . headers [ 'x-goog-request-params' ] =
1951
1951
this . _gaxModule . routingHeader . fromParams ( {
1952
- parent : request . parent || '' ,
1952
+ parent : request . parent ?? '' ,
1953
1953
} ) ;
1954
1954
const defaultCallSettings = this . _defaults [ 'listGlossaries' ] ;
1955
1955
const callSettings = defaultCallSettings . merge ( options ) ;
@@ -2017,7 +2017,7 @@ export class TranslationServiceClient {
2017
2017
options . otherArgs . headers = options . otherArgs . headers || { } ;
2018
2018
options . otherArgs . headers [ 'x-goog-request-params' ] =
2019
2019
this . _gaxModule . routingHeader . fromParams ( {
2020
- parent : request . parent || '' ,
2020
+ parent : request . parent ?? '' ,
2021
2021
} ) ;
2022
2022
const defaultCallSettings = this . _defaults [ 'listGlossaries' ] ;
2023
2023
const callSettings = defaultCallSettings . merge ( options ) ;
0 commit comments