protobuf-platform 1.0.249 → 1.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/config.proto +12 -0
- package/config/config_grpc_pb.js +34 -0
- package/config/config_pb.js +394 -0
- package/package.json +1 -1
package/config/config.proto
CHANGED
@@ -12,6 +12,8 @@ service Config {
|
|
12
12
|
//Global settings
|
13
13
|
rpc addError(ErrorRequest) returns (ErrorStatusResponse);
|
14
14
|
rpc changeGlobalData(GlobalDataRequest) returns (ConfigStatusResponse);
|
15
|
+
//Currency Rates
|
16
|
+
rpc getCurrencyRate(CurrencyRateRequest) returns (CurrencyRateResponse);
|
15
17
|
}
|
16
18
|
|
17
19
|
message PingRequest { string ping = 1; }
|
@@ -57,4 +59,14 @@ message GlobalDataRequest {
|
|
57
59
|
string key = 3;
|
58
60
|
repeated string string_values = 4;
|
59
61
|
repeated int32 integer_values = 5;
|
62
|
+
}
|
63
|
+
//Currency Rate
|
64
|
+
message CurrencyRateRequest {
|
65
|
+
string environment = 1;
|
66
|
+
string customer = 2;
|
67
|
+
string currency_from = 3;
|
68
|
+
string currency_to = 4;
|
69
|
+
}
|
70
|
+
message CurrencyRateResponse {
|
71
|
+
float rate = 1;
|
60
72
|
}
|
package/config/config_grpc_pb.js
CHANGED
@@ -37,6 +37,28 @@ function deserialize_config_ConfigStatusResponse(buffer_arg) {
|
|
37
37
|
return config_pb.ConfigStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
38
38
|
}
|
39
39
|
|
40
|
+
function serialize_config_CurrencyRateRequest(arg) {
|
41
|
+
if (!(arg instanceof config_pb.CurrencyRateRequest)) {
|
42
|
+
throw new Error('Expected argument of type config.CurrencyRateRequest');
|
43
|
+
}
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
45
|
+
}
|
46
|
+
|
47
|
+
function deserialize_config_CurrencyRateRequest(buffer_arg) {
|
48
|
+
return config_pb.CurrencyRateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
49
|
+
}
|
50
|
+
|
51
|
+
function serialize_config_CurrencyRateResponse(arg) {
|
52
|
+
if (!(arg instanceof config_pb.CurrencyRateResponse)) {
|
53
|
+
throw new Error('Expected argument of type config.CurrencyRateResponse');
|
54
|
+
}
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
56
|
+
}
|
57
|
+
|
58
|
+
function deserialize_config_CurrencyRateResponse(buffer_arg) {
|
59
|
+
return config_pb.CurrencyRateResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
60
|
+
}
|
61
|
+
|
40
62
|
function serialize_config_ErrorRequest(arg) {
|
41
63
|
if (!(arg instanceof config_pb.ErrorRequest)) {
|
42
64
|
throw new Error('Expected argument of type config.ErrorRequest');
|
@@ -185,6 +207,18 @@ addError: {
|
|
185
207
|
responseSerialize: serialize_config_ConfigStatusResponse,
|
186
208
|
responseDeserialize: deserialize_config_ConfigStatusResponse,
|
187
209
|
},
|
210
|
+
// Currency Rates
|
211
|
+
getCurrencyRate: {
|
212
|
+
path: '/config.Config/getCurrencyRate',
|
213
|
+
requestStream: false,
|
214
|
+
responseStream: false,
|
215
|
+
requestType: config_pb.CurrencyRateRequest,
|
216
|
+
responseType: config_pb.CurrencyRateResponse,
|
217
|
+
requestSerialize: serialize_config_CurrencyRateRequest,
|
218
|
+
requestDeserialize: deserialize_config_CurrencyRateRequest,
|
219
|
+
responseSerialize: serialize_config_CurrencyRateResponse,
|
220
|
+
responseDeserialize: deserialize_config_CurrencyRateResponse,
|
221
|
+
},
|
188
222
|
};
|
189
223
|
|
190
224
|
exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService);
|
package/config/config_pb.js
CHANGED
@@ -24,6 +24,8 @@ var global = (function() {
|
|
24
24
|
goog.exportSymbol('proto.config.ConfigDataResponse', null, global);
|
25
25
|
goog.exportSymbol('proto.config.ConfigRequest', null, global);
|
26
26
|
goog.exportSymbol('proto.config.ConfigStatusResponse', null, global);
|
27
|
+
goog.exportSymbol('proto.config.CurrencyRateRequest', null, global);
|
28
|
+
goog.exportSymbol('proto.config.CurrencyRateResponse', null, global);
|
27
29
|
goog.exportSymbol('proto.config.ErrorRequest', null, global);
|
28
30
|
goog.exportSymbol('proto.config.ErrorStatusResponse', null, global);
|
29
31
|
goog.exportSymbol('proto.config.GlobalDataRequest', null, global);
|
@@ -241,6 +243,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
241
243
|
*/
|
242
244
|
proto.config.GlobalDataRequest.displayName = 'proto.config.GlobalDataRequest';
|
243
245
|
}
|
246
|
+
/**
|
247
|
+
* Generated by JsPbCodeGenerator.
|
248
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
249
|
+
* server response, or constructed directly in Javascript. The array is used
|
250
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
251
|
+
* If no data is provided, the constructed object will be empty, but still
|
252
|
+
* valid.
|
253
|
+
* @extends {jspb.Message}
|
254
|
+
* @constructor
|
255
|
+
*/
|
256
|
+
proto.config.CurrencyRateRequest = function(opt_data) {
|
257
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
258
|
+
};
|
259
|
+
goog.inherits(proto.config.CurrencyRateRequest, jspb.Message);
|
260
|
+
if (goog.DEBUG && !COMPILED) {
|
261
|
+
/**
|
262
|
+
* @public
|
263
|
+
* @override
|
264
|
+
*/
|
265
|
+
proto.config.CurrencyRateRequest.displayName = 'proto.config.CurrencyRateRequest';
|
266
|
+
}
|
267
|
+
/**
|
268
|
+
* Generated by JsPbCodeGenerator.
|
269
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
270
|
+
* server response, or constructed directly in Javascript. The array is used
|
271
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
272
|
+
* If no data is provided, the constructed object will be empty, but still
|
273
|
+
* valid.
|
274
|
+
* @extends {jspb.Message}
|
275
|
+
* @constructor
|
276
|
+
*/
|
277
|
+
proto.config.CurrencyRateResponse = function(opt_data) {
|
278
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
279
|
+
};
|
280
|
+
goog.inherits(proto.config.CurrencyRateResponse, jspb.Message);
|
281
|
+
if (goog.DEBUG && !COMPILED) {
|
282
|
+
/**
|
283
|
+
* @public
|
284
|
+
* @override
|
285
|
+
*/
|
286
|
+
proto.config.CurrencyRateResponse.displayName = 'proto.config.CurrencyRateResponse';
|
287
|
+
}
|
244
288
|
|
245
289
|
|
246
290
|
|
@@ -2116,4 +2160,354 @@ proto.config.GlobalDataRequest.prototype.clearIntegerValuesList = function() {
|
|
2116
2160
|
};
|
2117
2161
|
|
2118
2162
|
|
2163
|
+
|
2164
|
+
|
2165
|
+
|
2166
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2167
|
+
/**
|
2168
|
+
* Creates an object representation of this proto.
|
2169
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2170
|
+
* Optional fields that are not set will be set to undefined.
|
2171
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2172
|
+
* For the list of reserved names please see:
|
2173
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2174
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2175
|
+
* JSPB instance for transitional soy proto support:
|
2176
|
+
* http://goto/soy-param-migration
|
2177
|
+
* @return {!Object}
|
2178
|
+
*/
|
2179
|
+
proto.config.CurrencyRateRequest.prototype.toObject = function(opt_includeInstance) {
|
2180
|
+
return proto.config.CurrencyRateRequest.toObject(opt_includeInstance, this);
|
2181
|
+
};
|
2182
|
+
|
2183
|
+
|
2184
|
+
/**
|
2185
|
+
* Static version of the {@see toObject} method.
|
2186
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2187
|
+
* the JSPB instance for transitional soy proto support:
|
2188
|
+
* http://goto/soy-param-migration
|
2189
|
+
* @param {!proto.config.CurrencyRateRequest} msg The msg instance to transform.
|
2190
|
+
* @return {!Object}
|
2191
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2192
|
+
*/
|
2193
|
+
proto.config.CurrencyRateRequest.toObject = function(includeInstance, msg) {
|
2194
|
+
var f, obj = {
|
2195
|
+
environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
2196
|
+
customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
2197
|
+
currencyFrom: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
2198
|
+
currencyTo: jspb.Message.getFieldWithDefault(msg, 4, "")
|
2199
|
+
};
|
2200
|
+
|
2201
|
+
if (includeInstance) {
|
2202
|
+
obj.$jspbMessageInstance = msg;
|
2203
|
+
}
|
2204
|
+
return obj;
|
2205
|
+
};
|
2206
|
+
}
|
2207
|
+
|
2208
|
+
|
2209
|
+
/**
|
2210
|
+
* Deserializes binary data (in protobuf wire format).
|
2211
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2212
|
+
* @return {!proto.config.CurrencyRateRequest}
|
2213
|
+
*/
|
2214
|
+
proto.config.CurrencyRateRequest.deserializeBinary = function(bytes) {
|
2215
|
+
var reader = new jspb.BinaryReader(bytes);
|
2216
|
+
var msg = new proto.config.CurrencyRateRequest;
|
2217
|
+
return proto.config.CurrencyRateRequest.deserializeBinaryFromReader(msg, reader);
|
2218
|
+
};
|
2219
|
+
|
2220
|
+
|
2221
|
+
/**
|
2222
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2223
|
+
* given reader into the given message object.
|
2224
|
+
* @param {!proto.config.CurrencyRateRequest} msg The message object to deserialize into.
|
2225
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2226
|
+
* @return {!proto.config.CurrencyRateRequest}
|
2227
|
+
*/
|
2228
|
+
proto.config.CurrencyRateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
2229
|
+
while (reader.nextField()) {
|
2230
|
+
if (reader.isEndGroup()) {
|
2231
|
+
break;
|
2232
|
+
}
|
2233
|
+
var field = reader.getFieldNumber();
|
2234
|
+
switch (field) {
|
2235
|
+
case 1:
|
2236
|
+
var value = /** @type {string} */ (reader.readString());
|
2237
|
+
msg.setEnvironment(value);
|
2238
|
+
break;
|
2239
|
+
case 2:
|
2240
|
+
var value = /** @type {string} */ (reader.readString());
|
2241
|
+
msg.setCustomer(value);
|
2242
|
+
break;
|
2243
|
+
case 3:
|
2244
|
+
var value = /** @type {string} */ (reader.readString());
|
2245
|
+
msg.setCurrencyFrom(value);
|
2246
|
+
break;
|
2247
|
+
case 4:
|
2248
|
+
var value = /** @type {string} */ (reader.readString());
|
2249
|
+
msg.setCurrencyTo(value);
|
2250
|
+
break;
|
2251
|
+
default:
|
2252
|
+
reader.skipField();
|
2253
|
+
break;
|
2254
|
+
}
|
2255
|
+
}
|
2256
|
+
return msg;
|
2257
|
+
};
|
2258
|
+
|
2259
|
+
|
2260
|
+
/**
|
2261
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2262
|
+
* @return {!Uint8Array}
|
2263
|
+
*/
|
2264
|
+
proto.config.CurrencyRateRequest.prototype.serializeBinary = function() {
|
2265
|
+
var writer = new jspb.BinaryWriter();
|
2266
|
+
proto.config.CurrencyRateRequest.serializeBinaryToWriter(this, writer);
|
2267
|
+
return writer.getResultBuffer();
|
2268
|
+
};
|
2269
|
+
|
2270
|
+
|
2271
|
+
/**
|
2272
|
+
* Serializes the given message to binary data (in protobuf wire
|
2273
|
+
* format), writing to the given BinaryWriter.
|
2274
|
+
* @param {!proto.config.CurrencyRateRequest} message
|
2275
|
+
* @param {!jspb.BinaryWriter} writer
|
2276
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2277
|
+
*/
|
2278
|
+
proto.config.CurrencyRateRequest.serializeBinaryToWriter = function(message, writer) {
|
2279
|
+
var f = undefined;
|
2280
|
+
f = message.getEnvironment();
|
2281
|
+
if (f.length > 0) {
|
2282
|
+
writer.writeString(
|
2283
|
+
1,
|
2284
|
+
f
|
2285
|
+
);
|
2286
|
+
}
|
2287
|
+
f = message.getCustomer();
|
2288
|
+
if (f.length > 0) {
|
2289
|
+
writer.writeString(
|
2290
|
+
2,
|
2291
|
+
f
|
2292
|
+
);
|
2293
|
+
}
|
2294
|
+
f = message.getCurrencyFrom();
|
2295
|
+
if (f.length > 0) {
|
2296
|
+
writer.writeString(
|
2297
|
+
3,
|
2298
|
+
f
|
2299
|
+
);
|
2300
|
+
}
|
2301
|
+
f = message.getCurrencyTo();
|
2302
|
+
if (f.length > 0) {
|
2303
|
+
writer.writeString(
|
2304
|
+
4,
|
2305
|
+
f
|
2306
|
+
);
|
2307
|
+
}
|
2308
|
+
};
|
2309
|
+
|
2310
|
+
|
2311
|
+
/**
|
2312
|
+
* optional string environment = 1;
|
2313
|
+
* @return {string}
|
2314
|
+
*/
|
2315
|
+
proto.config.CurrencyRateRequest.prototype.getEnvironment = function() {
|
2316
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2317
|
+
};
|
2318
|
+
|
2319
|
+
|
2320
|
+
/**
|
2321
|
+
* @param {string} value
|
2322
|
+
* @return {!proto.config.CurrencyRateRequest} returns this
|
2323
|
+
*/
|
2324
|
+
proto.config.CurrencyRateRequest.prototype.setEnvironment = function(value) {
|
2325
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
2326
|
+
};
|
2327
|
+
|
2328
|
+
|
2329
|
+
/**
|
2330
|
+
* optional string customer = 2;
|
2331
|
+
* @return {string}
|
2332
|
+
*/
|
2333
|
+
proto.config.CurrencyRateRequest.prototype.getCustomer = function() {
|
2334
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2335
|
+
};
|
2336
|
+
|
2337
|
+
|
2338
|
+
/**
|
2339
|
+
* @param {string} value
|
2340
|
+
* @return {!proto.config.CurrencyRateRequest} returns this
|
2341
|
+
*/
|
2342
|
+
proto.config.CurrencyRateRequest.prototype.setCustomer = function(value) {
|
2343
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
2344
|
+
};
|
2345
|
+
|
2346
|
+
|
2347
|
+
/**
|
2348
|
+
* optional string currency_from = 3;
|
2349
|
+
* @return {string}
|
2350
|
+
*/
|
2351
|
+
proto.config.CurrencyRateRequest.prototype.getCurrencyFrom = function() {
|
2352
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2353
|
+
};
|
2354
|
+
|
2355
|
+
|
2356
|
+
/**
|
2357
|
+
* @param {string} value
|
2358
|
+
* @return {!proto.config.CurrencyRateRequest} returns this
|
2359
|
+
*/
|
2360
|
+
proto.config.CurrencyRateRequest.prototype.setCurrencyFrom = function(value) {
|
2361
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
2362
|
+
};
|
2363
|
+
|
2364
|
+
|
2365
|
+
/**
|
2366
|
+
* optional string currency_to = 4;
|
2367
|
+
* @return {string}
|
2368
|
+
*/
|
2369
|
+
proto.config.CurrencyRateRequest.prototype.getCurrencyTo = function() {
|
2370
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
2371
|
+
};
|
2372
|
+
|
2373
|
+
|
2374
|
+
/**
|
2375
|
+
* @param {string} value
|
2376
|
+
* @return {!proto.config.CurrencyRateRequest} returns this
|
2377
|
+
*/
|
2378
|
+
proto.config.CurrencyRateRequest.prototype.setCurrencyTo = function(value) {
|
2379
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
2380
|
+
};
|
2381
|
+
|
2382
|
+
|
2383
|
+
|
2384
|
+
|
2385
|
+
|
2386
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
2387
|
+
/**
|
2388
|
+
* Creates an object representation of this proto.
|
2389
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
2390
|
+
* Optional fields that are not set will be set to undefined.
|
2391
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
2392
|
+
* For the list of reserved names please see:
|
2393
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
2394
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
2395
|
+
* JSPB instance for transitional soy proto support:
|
2396
|
+
* http://goto/soy-param-migration
|
2397
|
+
* @return {!Object}
|
2398
|
+
*/
|
2399
|
+
proto.config.CurrencyRateResponse.prototype.toObject = function(opt_includeInstance) {
|
2400
|
+
return proto.config.CurrencyRateResponse.toObject(opt_includeInstance, this);
|
2401
|
+
};
|
2402
|
+
|
2403
|
+
|
2404
|
+
/**
|
2405
|
+
* Static version of the {@see toObject} method.
|
2406
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
2407
|
+
* the JSPB instance for transitional soy proto support:
|
2408
|
+
* http://goto/soy-param-migration
|
2409
|
+
* @param {!proto.config.CurrencyRateResponse} msg The msg instance to transform.
|
2410
|
+
* @return {!Object}
|
2411
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2412
|
+
*/
|
2413
|
+
proto.config.CurrencyRateResponse.toObject = function(includeInstance, msg) {
|
2414
|
+
var f, obj = {
|
2415
|
+
rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0)
|
2416
|
+
};
|
2417
|
+
|
2418
|
+
if (includeInstance) {
|
2419
|
+
obj.$jspbMessageInstance = msg;
|
2420
|
+
}
|
2421
|
+
return obj;
|
2422
|
+
};
|
2423
|
+
}
|
2424
|
+
|
2425
|
+
|
2426
|
+
/**
|
2427
|
+
* Deserializes binary data (in protobuf wire format).
|
2428
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
2429
|
+
* @return {!proto.config.CurrencyRateResponse}
|
2430
|
+
*/
|
2431
|
+
proto.config.CurrencyRateResponse.deserializeBinary = function(bytes) {
|
2432
|
+
var reader = new jspb.BinaryReader(bytes);
|
2433
|
+
var msg = new proto.config.CurrencyRateResponse;
|
2434
|
+
return proto.config.CurrencyRateResponse.deserializeBinaryFromReader(msg, reader);
|
2435
|
+
};
|
2436
|
+
|
2437
|
+
|
2438
|
+
/**
|
2439
|
+
* Deserializes binary data (in protobuf wire format) from the
|
2440
|
+
* given reader into the given message object.
|
2441
|
+
* @param {!proto.config.CurrencyRateResponse} msg The message object to deserialize into.
|
2442
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
2443
|
+
* @return {!proto.config.CurrencyRateResponse}
|
2444
|
+
*/
|
2445
|
+
proto.config.CurrencyRateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
2446
|
+
while (reader.nextField()) {
|
2447
|
+
if (reader.isEndGroup()) {
|
2448
|
+
break;
|
2449
|
+
}
|
2450
|
+
var field = reader.getFieldNumber();
|
2451
|
+
switch (field) {
|
2452
|
+
case 1:
|
2453
|
+
var value = /** @type {number} */ (reader.readFloat());
|
2454
|
+
msg.setRate(value);
|
2455
|
+
break;
|
2456
|
+
default:
|
2457
|
+
reader.skipField();
|
2458
|
+
break;
|
2459
|
+
}
|
2460
|
+
}
|
2461
|
+
return msg;
|
2462
|
+
};
|
2463
|
+
|
2464
|
+
|
2465
|
+
/**
|
2466
|
+
* Serializes the message to binary data (in protobuf wire format).
|
2467
|
+
* @return {!Uint8Array}
|
2468
|
+
*/
|
2469
|
+
proto.config.CurrencyRateResponse.prototype.serializeBinary = function() {
|
2470
|
+
var writer = new jspb.BinaryWriter();
|
2471
|
+
proto.config.CurrencyRateResponse.serializeBinaryToWriter(this, writer);
|
2472
|
+
return writer.getResultBuffer();
|
2473
|
+
};
|
2474
|
+
|
2475
|
+
|
2476
|
+
/**
|
2477
|
+
* Serializes the given message to binary data (in protobuf wire
|
2478
|
+
* format), writing to the given BinaryWriter.
|
2479
|
+
* @param {!proto.config.CurrencyRateResponse} message
|
2480
|
+
* @param {!jspb.BinaryWriter} writer
|
2481
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
2482
|
+
*/
|
2483
|
+
proto.config.CurrencyRateResponse.serializeBinaryToWriter = function(message, writer) {
|
2484
|
+
var f = undefined;
|
2485
|
+
f = message.getRate();
|
2486
|
+
if (f !== 0.0) {
|
2487
|
+
writer.writeFloat(
|
2488
|
+
1,
|
2489
|
+
f
|
2490
|
+
);
|
2491
|
+
}
|
2492
|
+
};
|
2493
|
+
|
2494
|
+
|
2495
|
+
/**
|
2496
|
+
* optional float rate = 1;
|
2497
|
+
* @return {number}
|
2498
|
+
*/
|
2499
|
+
proto.config.CurrencyRateResponse.prototype.getRate = function() {
|
2500
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
2501
|
+
};
|
2502
|
+
|
2503
|
+
|
2504
|
+
/**
|
2505
|
+
* @param {number} value
|
2506
|
+
* @return {!proto.config.CurrencyRateResponse} returns this
|
2507
|
+
*/
|
2508
|
+
proto.config.CurrencyRateResponse.prototype.setRate = function(value) {
|
2509
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
2510
|
+
};
|
2511
|
+
|
2512
|
+
|
2119
2513
|
goog.object.extend(exports, proto.config);
|