File tree 5 files changed +18
-4
lines changed
packages/google-cloud-redis
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_redis_2_0_0_protos || ($protobuf.roots._google_cloud_redis_2_0_0_protos = {});
31
+ var $root = $protobuf.roots._google_cloud_redis_protos || ($protobuf.roots._google_cloud_redis_protos = {});
32
32
33
33
$root.google = (function() {
34
34
Original file line number Diff line number Diff line change @@ -115,6 +115,13 @@ export class CloudRedisClient {
115
115
}
116
116
opts . servicePath = opts . servicePath || servicePath ;
117
117
opts . port = opts . port || port ;
118
+
119
+ // users can override the config from client side, like retry codes name.
120
+ // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
121
+ // The way to override client config for Showcase API:
122
+ //
123
+ // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
124
+ // const showcaseClient = new showcaseClient({ projectId, customConfig });
118
125
opts . clientConfig = opts . clientConfig || { } ;
119
126
120
127
const isBrowser = typeof window !== 'undefined' ;
Original file line number Diff line number Diff line change @@ -115,6 +115,13 @@ export class CloudRedisClient {
115
115
}
116
116
opts . servicePath = opts . servicePath || servicePath ;
117
117
opts . port = opts . port || port ;
118
+
119
+ // users can override the config from client side, like retry codes name.
120
+ // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546
121
+ // The way to override client config for Showcase API:
122
+ //
123
+ // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}}
124
+ // const showcaseClient = new showcaseClient({ projectId, customConfig });
118
125
opts . clientConfig = opts . clientConfig || { } ;
119
126
120
127
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-redis.git",
7
- "sha": "c86656138bf13cfd56a218fb54dbcb25cb4ab1e8 "
7
+ "sha": "4855114e325b8f2650ac5eff13778c5220aae42e "
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