@aldiokta/protocgen 1.0.5 → 1.0.7
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.
|
@@ -297,6 +297,7 @@ proto.WorkLocation.prototype.toObject = function(opt_includeInstance) {
|
|
|
297
297
|
*/
|
|
298
298
|
proto.WorkLocation.toObject = function(includeInstance, msg) {
|
|
299
299
|
var f, obj = {
|
|
300
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
300
301
|
companiesRefId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
301
302
|
code: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
302
303
|
locationName: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
@@ -355,6 +356,10 @@ proto.WorkLocation.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
355
356
|
}
|
|
356
357
|
var field = reader.getFieldNumber();
|
|
357
358
|
switch (field) {
|
|
359
|
+
case 1:
|
|
360
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
361
|
+
msg.setId(value);
|
|
362
|
+
break;
|
|
358
363
|
case 2:
|
|
359
364
|
var value = /** @type {number} */ (reader.readInt64());
|
|
360
365
|
msg.setCompaniesRefId(value);
|
|
@@ -472,6 +477,13 @@ proto.WorkLocation.prototype.serializeBinary = function() {
|
|
|
472
477
|
*/
|
|
473
478
|
proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
|
|
474
479
|
var f = undefined;
|
|
480
|
+
f = message.getId();
|
|
481
|
+
if (f !== 0) {
|
|
482
|
+
writer.writeInt64(
|
|
483
|
+
1,
|
|
484
|
+
f
|
|
485
|
+
);
|
|
486
|
+
}
|
|
475
487
|
f = message.getCompaniesRefId();
|
|
476
488
|
if (f !== 0) {
|
|
477
489
|
writer.writeInt64(
|
|
@@ -629,6 +641,24 @@ proto.WorkLocation.serializeBinaryToWriter = function(message, writer) {
|
|
|
629
641
|
};
|
|
630
642
|
|
|
631
643
|
|
|
644
|
+
/**
|
|
645
|
+
* optional int64 id = 1;
|
|
646
|
+
* @return {number}
|
|
647
|
+
*/
|
|
648
|
+
proto.WorkLocation.prototype.getId = function() {
|
|
649
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
650
|
+
};
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* @param {number} value
|
|
655
|
+
* @return {!proto.WorkLocation} returns this
|
|
656
|
+
*/
|
|
657
|
+
proto.WorkLocation.prototype.setId = function(value) {
|
|
658
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
|
|
632
662
|
/**
|
|
633
663
|
* optional int64 companies_ref_id = 2;
|
|
634
664
|
* @return {number}
|