File tree 3 files changed +6
-0
lines changed
packages/google-cloud-speech/src
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ export class SpeechClient {
137
137
}
138
138
if ( ! opts . fallback ) {
139
139
clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion } ` ) ;
140
+ } else if ( opts . fallback === 'rest' ) {
141
+ clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion } ` ) ;
140
142
}
141
143
if ( opts . libName && opts . libVersion ) {
142
144
clientHeader . push ( `${ opts . libName } /${ opts . libVersion } ` ) ;
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ export class AdaptationClient {
140
140
}
141
141
if ( ! opts . fallback ) {
142
142
clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion } ` ) ;
143
+ } else if ( opts . fallback === 'rest' ) {
144
+ clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion } ` ) ;
143
145
}
144
146
if ( opts . libName && opts . libVersion ) {
145
147
clientHeader . push ( `${ opts . libName } /${ opts . libVersion } ` ) ;
Original file line number Diff line number Diff line change @@ -138,6 +138,8 @@ export class SpeechClient {
138
138
}
139
139
if ( ! opts . fallback ) {
140
140
clientHeader . push ( `grpc/${ this . _gaxGrpc . grpcVersion } ` ) ;
141
+ } else if ( opts . fallback === 'rest' ) {
142
+ clientHeader . push ( `rest/${ this . _gaxGrpc . grpcVersion } ` ) ;
141
143
}
142
144
if ( opts . libName && opts . libVersion ) {
143
145
clientHeader . push ( `${ opts . libName } /${ opts . libVersion } ` ) ;
You can’t perform that action at this time.
0 commit comments