protobuf-platform 1.0.16 → 1.0.17
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 +2 -2
- package/config/config_pb.js +18 -18
- package/package.json +1 -1
package/config/config.proto
CHANGED
@@ -42,8 +42,8 @@ message ConfigDataResponse {
|
|
42
42
|
}
|
43
43
|
message ErrorRequest {
|
44
44
|
string error_key = 1;
|
45
|
-
|
46
|
-
|
45
|
+
int32 error_code = 2;
|
46
|
+
int32 http_code = 3;
|
47
47
|
optional string description = 4;
|
48
48
|
}
|
49
49
|
message ErrorStatusResponse {
|
package/config/config_pb.js
CHANGED
@@ -1462,8 +1462,8 @@ proto.config.ErrorRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1462
1462
|
proto.config.ErrorRequest.toObject = function(includeInstance, msg) {
|
1463
1463
|
var f, obj = {
|
1464
1464
|
errorKey: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1465
|
-
errorCode: jspb.Message.getFieldWithDefault(msg, 2,
|
1466
|
-
httpCode: jspb.Message.getFieldWithDefault(msg, 3,
|
1465
|
+
errorCode: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1466
|
+
httpCode: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
1467
1467
|
description: jspb.Message.getFieldWithDefault(msg, 4, "")
|
1468
1468
|
};
|
1469
1469
|
|
@@ -1506,11 +1506,11 @@ proto.config.ErrorRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1506
1506
|
msg.setErrorKey(value);
|
1507
1507
|
break;
|
1508
1508
|
case 2:
|
1509
|
-
var value = /** @type {
|
1509
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1510
1510
|
msg.setErrorCode(value);
|
1511
1511
|
break;
|
1512
1512
|
case 3:
|
1513
|
-
var value = /** @type {
|
1513
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1514
1514
|
msg.setHttpCode(value);
|
1515
1515
|
break;
|
1516
1516
|
case 4:
|
@@ -1554,15 +1554,15 @@ proto.config.ErrorRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1554
1554
|
);
|
1555
1555
|
}
|
1556
1556
|
f = message.getErrorCode();
|
1557
|
-
if (f
|
1558
|
-
writer.
|
1557
|
+
if (f !== 0) {
|
1558
|
+
writer.writeInt32(
|
1559
1559
|
2,
|
1560
1560
|
f
|
1561
1561
|
);
|
1562
1562
|
}
|
1563
1563
|
f = message.getHttpCode();
|
1564
|
-
if (f
|
1565
|
-
writer.
|
1564
|
+
if (f !== 0) {
|
1565
|
+
writer.writeInt32(
|
1566
1566
|
3,
|
1567
1567
|
f
|
1568
1568
|
);
|
@@ -1596,38 +1596,38 @@ proto.config.ErrorRequest.prototype.setErrorKey = function(value) {
|
|
1596
1596
|
|
1597
1597
|
|
1598
1598
|
/**
|
1599
|
-
* optional
|
1600
|
-
* @return {
|
1599
|
+
* optional int32 error_code = 2;
|
1600
|
+
* @return {number}
|
1601
1601
|
*/
|
1602
1602
|
proto.config.ErrorRequest.prototype.getErrorCode = function() {
|
1603
|
-
return /** @type {
|
1603
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1604
1604
|
};
|
1605
1605
|
|
1606
1606
|
|
1607
1607
|
/**
|
1608
|
-
* @param {
|
1608
|
+
* @param {number} value
|
1609
1609
|
* @return {!proto.config.ErrorRequest} returns this
|
1610
1610
|
*/
|
1611
1611
|
proto.config.ErrorRequest.prototype.setErrorCode = function(value) {
|
1612
|
-
return jspb.Message.
|
1612
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
1613
1613
|
};
|
1614
1614
|
|
1615
1615
|
|
1616
1616
|
/**
|
1617
|
-
* optional
|
1618
|
-
* @return {
|
1617
|
+
* optional int32 http_code = 3;
|
1618
|
+
* @return {number}
|
1619
1619
|
*/
|
1620
1620
|
proto.config.ErrorRequest.prototype.getHttpCode = function() {
|
1621
|
-
return /** @type {
|
1621
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
1622
1622
|
};
|
1623
1623
|
|
1624
1624
|
|
1625
1625
|
/**
|
1626
|
-
* @param {
|
1626
|
+
* @param {number} value
|
1627
1627
|
* @return {!proto.config.ErrorRequest} returns this
|
1628
1628
|
*/
|
1629
1629
|
proto.config.ErrorRequest.prototype.setHttpCode = function(value) {
|
1630
|
-
return jspb.Message.
|
1630
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
1631
1631
|
};
|
1632
1632
|
|
1633
1633
|
|