File tree 5 files changed +18
-4
lines changed
packages/google-cloud-node
5 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 28
28
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
29
29
30
30
// Exported root namespace
31
- var $root = $protobuf.roots._google_cloud_speech_4_0_0_protos || ($protobuf.roots._google_cloud_speech_4_0_0_protos = {});
31
+ var $root = $protobuf.roots._google_cloud_speech_protos || ($protobuf.roots._google_cloud_speech_protos = {});
32
32
33
33
$root.google = (function() {
34
34
Original file line number Diff line number Diff line change @@ -96,6 +96,13 @@ export class SpeechClient {
96
96
}
97
97
opts . servicePath = opts . servicePath || servicePath ;
98
98
opts . port = opts . port || port ;
99
+
100
+ // users can override the config from client side, like retry codes name.
101
+ // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
102
+ // The way to override client config for Showcase API:
103
+ //
104
+ // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
105
+ // const showcaseClient = new showcaseClient({ projectId, customConfig });
99
106
opts . clientConfig = opts . clientConfig || { } ;
100
107
101
108
const isBrowser = typeof window !== 'undefined' ;
Original file line number Diff line number Diff line change @@ -97,6 +97,13 @@ export class SpeechClient {
97
97
}
98
98
opts . servicePath = opts . servicePath || servicePath ;
99
99
opts . port = opts . port || port ;
100
+
101
+ // users can override the config from client side, like retry codes name.
102
+ // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
103
+ // The way to override client config for Showcase API:
104
+ //
105
+ // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
106
+ // const showcaseClient = new showcaseClient({ projectId, customConfig });
100
107
opts . clientConfig = opts . clientConfig || { } ;
101
108
102
109
const isBrowser = typeof window !== 'undefined' ;
Original file line number Diff line number Diff line change 4
4
"git": {
5
5
"name": ".",
6
6
"remote": "https://github.com/googleapis/nodejs-speech.git",
7
- "sha": "e16ec91a8e58e9347d881bda1a101fd080cc5f6b "
7
+ "sha": "3af749c8f705d92dba12169ba97c176ff3006a31 "
8
8
}
9
9
},
10
10
{
19
19
"git": {
20
20
"name": "synthtool",
21
21
"remote": "https://github.com/googleapis/synthtool.git",
22
- "sha": "be74d3e532faa47eb59f1a0eaebde0860d1d8ab4 "
22
+ "sha": "1c92077459db3dc50741e878f98b08c6261181e0 "
23
23
}
24
24
}
25
25
],
Original file line number Diff line number Diff line change 5
5
"outDir" : " build" ,
6
6
"resolveJsonModule" : true ,
7
7
"lib" : [
8
- " es2016 " ,
8
+ " es2018 " ,
9
9
" dom"
10
10
]
11
11
},
You can’t perform that action at this time.
0 commit comments