protobuf-platform 1.0.251 → 1.0.252

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.
@@ -65,7 +65,7 @@ message CurrencyRateRequest {
65
65
  string environment = 1;
66
66
  string customer = 2;
67
67
  string currency_from = 3;
68
- string currency_to = 4;
68
+ optional string currency_to = 4;
69
69
  }
70
70
  message CurrencyRateResponse {
71
71
  float rate = 1;
@@ -2298,8 +2298,8 @@ proto.config.CurrencyRateRequest.serializeBinaryToWriter = function(message, wri
2298
2298
  f
2299
2299
  );
2300
2300
  }
2301
- f = message.getCurrencyTo();
2302
- if (f.length > 0) {
2301
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
2302
+ if (f != null) {
2303
2303
  writer.writeString(
2304
2304
  4,
2305
2305
  f
@@ -2376,7 +2376,25 @@ proto.config.CurrencyRateRequest.prototype.getCurrencyTo = function() {
2376
2376
  * @return {!proto.config.CurrencyRateRequest} returns this
2377
2377
  */
2378
2378
  proto.config.CurrencyRateRequest.prototype.setCurrencyTo = function(value) {
2379
- return jspb.Message.setProto3StringField(this, 4, value);
2379
+ return jspb.Message.setField(this, 4, value);
2380
+ };
2381
+
2382
+
2383
+ /**
2384
+ * Clears the field making it undefined.
2385
+ * @return {!proto.config.CurrencyRateRequest} returns this
2386
+ */
2387
+ proto.config.CurrencyRateRequest.prototype.clearCurrencyTo = function() {
2388
+ return jspb.Message.setField(this, 4, undefined);
2389
+ };
2390
+
2391
+
2392
+ /**
2393
+ * Returns whether this field is set.
2394
+ * @return {boolean}
2395
+ */
2396
+ proto.config.CurrencyRateRequest.prototype.hasCurrencyTo = function() {
2397
+ return jspb.Message.getField(this, 4) != null;
2380
2398
  };
2381
2399
 
2382
2400
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.251",
3
+ "version": "1.0.252",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {