@aldiokta/protocgen 1.1.22 → 1.1.24

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.
@@ -28,6 +28,10 @@ goog.exportSymbol('proto.ActivityRequest', null, global);
28
28
  goog.exportSymbol('proto.ActivityResponse', null, global);
29
29
  goog.exportSymbol('proto.DocumentRequest', null, global);
30
30
  goog.exportSymbol('proto.LineOfActivity', null, global);
31
+ goog.exportSymbol('proto.ProcessFlow', null, global);
32
+ goog.exportSymbol('proto.ProcessFlowDetail', null, global);
33
+ goog.exportSymbol('proto.ProcessFlowRequest', null, global);
34
+ goog.exportSymbol('proto.ProcessFlowResponse', null, global);
31
35
  /**
32
36
  * Generated by JsPbCodeGenerator.
33
37
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -133,6 +137,90 @@ if (goog.DEBUG && !COMPILED) {
133
137
  */
134
138
  proto.ActivityResponse.displayName = 'proto.ActivityResponse';
135
139
  }
140
+ /**
141
+ * Generated by JsPbCodeGenerator.
142
+ * @param {Array=} opt_data Optional initial data array, typically from a
143
+ * server response, or constructed directly in Javascript. The array is used
144
+ * in place and becomes part of the constructed object. It is not cloned.
145
+ * If no data is provided, the constructed object will be empty, but still
146
+ * valid.
147
+ * @extends {jspb.Message}
148
+ * @constructor
149
+ */
150
+ proto.ProcessFlowRequest = function(opt_data) {
151
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
152
+ };
153
+ goog.inherits(proto.ProcessFlowRequest, jspb.Message);
154
+ if (goog.DEBUG && !COMPILED) {
155
+ /**
156
+ * @public
157
+ * @override
158
+ */
159
+ proto.ProcessFlowRequest.displayName = 'proto.ProcessFlowRequest';
160
+ }
161
+ /**
162
+ * Generated by JsPbCodeGenerator.
163
+ * @param {Array=} opt_data Optional initial data array, typically from a
164
+ * server response, or constructed directly in Javascript. The array is used
165
+ * in place and becomes part of the constructed object. It is not cloned.
166
+ * If no data is provided, the constructed object will be empty, but still
167
+ * valid.
168
+ * @extends {jspb.Message}
169
+ * @constructor
170
+ */
171
+ proto.ProcessFlowResponse = function(opt_data) {
172
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ProcessFlowResponse.repeatedFields_, null);
173
+ };
174
+ goog.inherits(proto.ProcessFlowResponse, jspb.Message);
175
+ if (goog.DEBUG && !COMPILED) {
176
+ /**
177
+ * @public
178
+ * @override
179
+ */
180
+ proto.ProcessFlowResponse.displayName = 'proto.ProcessFlowResponse';
181
+ }
182
+ /**
183
+ * Generated by JsPbCodeGenerator.
184
+ * @param {Array=} opt_data Optional initial data array, typically from a
185
+ * server response, or constructed directly in Javascript. The array is used
186
+ * in place and becomes part of the constructed object. It is not cloned.
187
+ * If no data is provided, the constructed object will be empty, but still
188
+ * valid.
189
+ * @extends {jspb.Message}
190
+ * @constructor
191
+ */
192
+ proto.ProcessFlow = function(opt_data) {
193
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ProcessFlow.repeatedFields_, null);
194
+ };
195
+ goog.inherits(proto.ProcessFlow, jspb.Message);
196
+ if (goog.DEBUG && !COMPILED) {
197
+ /**
198
+ * @public
199
+ * @override
200
+ */
201
+ proto.ProcessFlow.displayName = 'proto.ProcessFlow';
202
+ }
203
+ /**
204
+ * Generated by JsPbCodeGenerator.
205
+ * @param {Array=} opt_data Optional initial data array, typically from a
206
+ * server response, or constructed directly in Javascript. The array is used
207
+ * in place and becomes part of the constructed object. It is not cloned.
208
+ * If no data is provided, the constructed object will be empty, but still
209
+ * valid.
210
+ * @extends {jspb.Message}
211
+ * @constructor
212
+ */
213
+ proto.ProcessFlowDetail = function(opt_data) {
214
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
215
+ };
216
+ goog.inherits(proto.ProcessFlowDetail, jspb.Message);
217
+ if (goog.DEBUG && !COMPILED) {
218
+ /**
219
+ * @public
220
+ * @override
221
+ */
222
+ proto.ProcessFlowDetail.displayName = 'proto.ProcessFlowDetail';
223
+ }
136
224
 
137
225
  /**
138
226
  * List of repeated fields within this message type.
@@ -1185,4 +1273,815 @@ proto.ActivityResponse.prototype.hasMeta = function() {
1185
1273
  };
1186
1274
 
1187
1275
 
1276
+
1277
+
1278
+
1279
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1280
+ /**
1281
+ * Creates an object representation of this proto.
1282
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1283
+ * Optional fields that are not set will be set to undefined.
1284
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1285
+ * For the list of reserved names please see:
1286
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1287
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1288
+ * JSPB instance for transitional soy proto support:
1289
+ * http://goto/soy-param-migration
1290
+ * @return {!Object}
1291
+ */
1292
+ proto.ProcessFlowRequest.prototype.toObject = function(opt_includeInstance) {
1293
+ return proto.ProcessFlowRequest.toObject(opt_includeInstance, this);
1294
+ };
1295
+
1296
+
1297
+ /**
1298
+ * Static version of the {@see toObject} method.
1299
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1300
+ * the JSPB instance for transitional soy proto support:
1301
+ * http://goto/soy-param-migration
1302
+ * @param {!proto.ProcessFlowRequest} msg The msg instance to transform.
1303
+ * @return {!Object}
1304
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1305
+ */
1306
+ proto.ProcessFlowRequest.toObject = function(includeInstance, msg) {
1307
+ var f, obj = {
1308
+ referenceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1309
+ transactionType: jspb.Message.getFieldWithDefault(msg, 2, "")
1310
+ };
1311
+
1312
+ if (includeInstance) {
1313
+ obj.$jspbMessageInstance = msg;
1314
+ }
1315
+ return obj;
1316
+ };
1317
+ }
1318
+
1319
+
1320
+ /**
1321
+ * Deserializes binary data (in protobuf wire format).
1322
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1323
+ * @return {!proto.ProcessFlowRequest}
1324
+ */
1325
+ proto.ProcessFlowRequest.deserializeBinary = function(bytes) {
1326
+ var reader = new jspb.BinaryReader(bytes);
1327
+ var msg = new proto.ProcessFlowRequest;
1328
+ return proto.ProcessFlowRequest.deserializeBinaryFromReader(msg, reader);
1329
+ };
1330
+
1331
+
1332
+ /**
1333
+ * Deserializes binary data (in protobuf wire format) from the
1334
+ * given reader into the given message object.
1335
+ * @param {!proto.ProcessFlowRequest} msg The message object to deserialize into.
1336
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1337
+ * @return {!proto.ProcessFlowRequest}
1338
+ */
1339
+ proto.ProcessFlowRequest.deserializeBinaryFromReader = function(msg, reader) {
1340
+ while (reader.nextField()) {
1341
+ if (reader.isEndGroup()) {
1342
+ break;
1343
+ }
1344
+ var field = reader.getFieldNumber();
1345
+ switch (field) {
1346
+ case 1:
1347
+ var value = /** @type {string} */ (reader.readString());
1348
+ msg.setReferenceId(value);
1349
+ break;
1350
+ case 2:
1351
+ var value = /** @type {string} */ (reader.readString());
1352
+ msg.setTransactionType(value);
1353
+ break;
1354
+ default:
1355
+ reader.skipField();
1356
+ break;
1357
+ }
1358
+ }
1359
+ return msg;
1360
+ };
1361
+
1362
+
1363
+ /**
1364
+ * Serializes the message to binary data (in protobuf wire format).
1365
+ * @return {!Uint8Array}
1366
+ */
1367
+ proto.ProcessFlowRequest.prototype.serializeBinary = function() {
1368
+ var writer = new jspb.BinaryWriter();
1369
+ proto.ProcessFlowRequest.serializeBinaryToWriter(this, writer);
1370
+ return writer.getResultBuffer();
1371
+ };
1372
+
1373
+
1374
+ /**
1375
+ * Serializes the given message to binary data (in protobuf wire
1376
+ * format), writing to the given BinaryWriter.
1377
+ * @param {!proto.ProcessFlowRequest} message
1378
+ * @param {!jspb.BinaryWriter} writer
1379
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1380
+ */
1381
+ proto.ProcessFlowRequest.serializeBinaryToWriter = function(message, writer) {
1382
+ var f = undefined;
1383
+ f = message.getReferenceId();
1384
+ if (f.length > 0) {
1385
+ writer.writeString(
1386
+ 1,
1387
+ f
1388
+ );
1389
+ }
1390
+ f = message.getTransactionType();
1391
+ if (f.length > 0) {
1392
+ writer.writeString(
1393
+ 2,
1394
+ f
1395
+ );
1396
+ }
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * optional string reference_id = 1;
1402
+ * @return {string}
1403
+ */
1404
+ proto.ProcessFlowRequest.prototype.getReferenceId = function() {
1405
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * @param {string} value
1411
+ * @return {!proto.ProcessFlowRequest} returns this
1412
+ */
1413
+ proto.ProcessFlowRequest.prototype.setReferenceId = function(value) {
1414
+ return jspb.Message.setProto3StringField(this, 1, value);
1415
+ };
1416
+
1417
+
1418
+ /**
1419
+ * optional string transaction_type = 2;
1420
+ * @return {string}
1421
+ */
1422
+ proto.ProcessFlowRequest.prototype.getTransactionType = function() {
1423
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * @param {string} value
1429
+ * @return {!proto.ProcessFlowRequest} returns this
1430
+ */
1431
+ proto.ProcessFlowRequest.prototype.setTransactionType = function(value) {
1432
+ return jspb.Message.setProto3StringField(this, 2, value);
1433
+ };
1434
+
1435
+
1436
+
1437
+ /**
1438
+ * List of repeated fields within this message type.
1439
+ * @private {!Array<number>}
1440
+ * @const
1441
+ */
1442
+ proto.ProcessFlowResponse.repeatedFields_ = [1];
1443
+
1444
+
1445
+
1446
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1447
+ /**
1448
+ * Creates an object representation of this proto.
1449
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1450
+ * Optional fields that are not set will be set to undefined.
1451
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1452
+ * For the list of reserved names please see:
1453
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1454
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1455
+ * JSPB instance for transitional soy proto support:
1456
+ * http://goto/soy-param-migration
1457
+ * @return {!Object}
1458
+ */
1459
+ proto.ProcessFlowResponse.prototype.toObject = function(opt_includeInstance) {
1460
+ return proto.ProcessFlowResponse.toObject(opt_includeInstance, this);
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * Static version of the {@see toObject} method.
1466
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1467
+ * the JSPB instance for transitional soy proto support:
1468
+ * http://goto/soy-param-migration
1469
+ * @param {!proto.ProcessFlowResponse} msg The msg instance to transform.
1470
+ * @return {!Object}
1471
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1472
+ */
1473
+ proto.ProcessFlowResponse.toObject = function(includeInstance, msg) {
1474
+ var f, obj = {
1475
+ processFlowList: jspb.Message.toObjectList(msg.getProcessFlowList(),
1476
+ proto.ProcessFlow.toObject, includeInstance),
1477
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1478
+ };
1479
+
1480
+ if (includeInstance) {
1481
+ obj.$jspbMessageInstance = msg;
1482
+ }
1483
+ return obj;
1484
+ };
1485
+ }
1486
+
1487
+
1488
+ /**
1489
+ * Deserializes binary data (in protobuf wire format).
1490
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1491
+ * @return {!proto.ProcessFlowResponse}
1492
+ */
1493
+ proto.ProcessFlowResponse.deserializeBinary = function(bytes) {
1494
+ var reader = new jspb.BinaryReader(bytes);
1495
+ var msg = new proto.ProcessFlowResponse;
1496
+ return proto.ProcessFlowResponse.deserializeBinaryFromReader(msg, reader);
1497
+ };
1498
+
1499
+
1500
+ /**
1501
+ * Deserializes binary data (in protobuf wire format) from the
1502
+ * given reader into the given message object.
1503
+ * @param {!proto.ProcessFlowResponse} msg The message object to deserialize into.
1504
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1505
+ * @return {!proto.ProcessFlowResponse}
1506
+ */
1507
+ proto.ProcessFlowResponse.deserializeBinaryFromReader = function(msg, reader) {
1508
+ while (reader.nextField()) {
1509
+ if (reader.isEndGroup()) {
1510
+ break;
1511
+ }
1512
+ var field = reader.getFieldNumber();
1513
+ switch (field) {
1514
+ case 1:
1515
+ var value = new proto.ProcessFlow;
1516
+ reader.readMessage(value,proto.ProcessFlow.deserializeBinaryFromReader);
1517
+ msg.addProcessFlow(value);
1518
+ break;
1519
+ case 2:
1520
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1521
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1522
+ msg.setMeta(value);
1523
+ break;
1524
+ default:
1525
+ reader.skipField();
1526
+ break;
1527
+ }
1528
+ }
1529
+ return msg;
1530
+ };
1531
+
1532
+
1533
+ /**
1534
+ * Serializes the message to binary data (in protobuf wire format).
1535
+ * @return {!Uint8Array}
1536
+ */
1537
+ proto.ProcessFlowResponse.prototype.serializeBinary = function() {
1538
+ var writer = new jspb.BinaryWriter();
1539
+ proto.ProcessFlowResponse.serializeBinaryToWriter(this, writer);
1540
+ return writer.getResultBuffer();
1541
+ };
1542
+
1543
+
1544
+ /**
1545
+ * Serializes the given message to binary data (in protobuf wire
1546
+ * format), writing to the given BinaryWriter.
1547
+ * @param {!proto.ProcessFlowResponse} message
1548
+ * @param {!jspb.BinaryWriter} writer
1549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1550
+ */
1551
+ proto.ProcessFlowResponse.serializeBinaryToWriter = function(message, writer) {
1552
+ var f = undefined;
1553
+ f = message.getProcessFlowList();
1554
+ if (f.length > 0) {
1555
+ writer.writeRepeatedMessage(
1556
+ 1,
1557
+ f,
1558
+ proto.ProcessFlow.serializeBinaryToWriter
1559
+ );
1560
+ }
1561
+ f = message.getMeta();
1562
+ if (f != null) {
1563
+ writer.writeMessage(
1564
+ 2,
1565
+ f,
1566
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1567
+ );
1568
+ }
1569
+ };
1570
+
1571
+
1572
+ /**
1573
+ * repeated ProcessFlow process_flow = 1;
1574
+ * @return {!Array<!proto.ProcessFlow>}
1575
+ */
1576
+ proto.ProcessFlowResponse.prototype.getProcessFlowList = function() {
1577
+ return /** @type{!Array<!proto.ProcessFlow>} */ (
1578
+ jspb.Message.getRepeatedWrapperField(this, proto.ProcessFlow, 1));
1579
+ };
1580
+
1581
+
1582
+ /**
1583
+ * @param {!Array<!proto.ProcessFlow>} value
1584
+ * @return {!proto.ProcessFlowResponse} returns this
1585
+ */
1586
+ proto.ProcessFlowResponse.prototype.setProcessFlowList = function(value) {
1587
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1588
+ };
1589
+
1590
+
1591
+ /**
1592
+ * @param {!proto.ProcessFlow=} opt_value
1593
+ * @param {number=} opt_index
1594
+ * @return {!proto.ProcessFlow}
1595
+ */
1596
+ proto.ProcessFlowResponse.prototype.addProcessFlow = function(opt_value, opt_index) {
1597
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ProcessFlow, opt_index);
1598
+ };
1599
+
1600
+
1601
+ /**
1602
+ * Clears the list making it empty but non-null.
1603
+ * @return {!proto.ProcessFlowResponse} returns this
1604
+ */
1605
+ proto.ProcessFlowResponse.prototype.clearProcessFlowList = function() {
1606
+ return this.setProcessFlowList([]);
1607
+ };
1608
+
1609
+
1610
+ /**
1611
+ * optional prisca.v1.global.meta.Meta meta = 2;
1612
+ * @return {?proto.prisca.v1.global.meta.Meta}
1613
+ */
1614
+ proto.ProcessFlowResponse.prototype.getMeta = function() {
1615
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1616
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1617
+ };
1618
+
1619
+
1620
+ /**
1621
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1622
+ * @return {!proto.ProcessFlowResponse} returns this
1623
+ */
1624
+ proto.ProcessFlowResponse.prototype.setMeta = function(value) {
1625
+ return jspb.Message.setWrapperField(this, 2, value);
1626
+ };
1627
+
1628
+
1629
+ /**
1630
+ * Clears the message field making it undefined.
1631
+ * @return {!proto.ProcessFlowResponse} returns this
1632
+ */
1633
+ proto.ProcessFlowResponse.prototype.clearMeta = function() {
1634
+ return this.setMeta(undefined);
1635
+ };
1636
+
1637
+
1638
+ /**
1639
+ * Returns whether this field is set.
1640
+ * @return {boolean}
1641
+ */
1642
+ proto.ProcessFlowResponse.prototype.hasMeta = function() {
1643
+ return jspb.Message.getField(this, 2) != null;
1644
+ };
1645
+
1646
+
1647
+
1648
+ /**
1649
+ * List of repeated fields within this message type.
1650
+ * @private {!Array<number>}
1651
+ * @const
1652
+ */
1653
+ proto.ProcessFlow.repeatedFields_ = [2];
1654
+
1655
+
1656
+
1657
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1658
+ /**
1659
+ * Creates an object representation of this proto.
1660
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1661
+ * Optional fields that are not set will be set to undefined.
1662
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1663
+ * For the list of reserved names please see:
1664
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1665
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1666
+ * JSPB instance for transitional soy proto support:
1667
+ * http://goto/soy-param-migration
1668
+ * @return {!Object}
1669
+ */
1670
+ proto.ProcessFlow.prototype.toObject = function(opt_includeInstance) {
1671
+ return proto.ProcessFlow.toObject(opt_includeInstance, this);
1672
+ };
1673
+
1674
+
1675
+ /**
1676
+ * Static version of the {@see toObject} method.
1677
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1678
+ * the JSPB instance for transitional soy proto support:
1679
+ * http://goto/soy-param-migration
1680
+ * @param {!proto.ProcessFlow} msg The msg instance to transform.
1681
+ * @return {!Object}
1682
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1683
+ */
1684
+ proto.ProcessFlow.toObject = function(includeInstance, msg) {
1685
+ var f, obj = {
1686
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1687
+ detailsList: jspb.Message.toObjectList(msg.getDetailsList(),
1688
+ proto.ProcessFlowDetail.toObject, includeInstance)
1689
+ };
1690
+
1691
+ if (includeInstance) {
1692
+ obj.$jspbMessageInstance = msg;
1693
+ }
1694
+ return obj;
1695
+ };
1696
+ }
1697
+
1698
+
1699
+ /**
1700
+ * Deserializes binary data (in protobuf wire format).
1701
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1702
+ * @return {!proto.ProcessFlow}
1703
+ */
1704
+ proto.ProcessFlow.deserializeBinary = function(bytes) {
1705
+ var reader = new jspb.BinaryReader(bytes);
1706
+ var msg = new proto.ProcessFlow;
1707
+ return proto.ProcessFlow.deserializeBinaryFromReader(msg, reader);
1708
+ };
1709
+
1710
+
1711
+ /**
1712
+ * Deserializes binary data (in protobuf wire format) from the
1713
+ * given reader into the given message object.
1714
+ * @param {!proto.ProcessFlow} msg The message object to deserialize into.
1715
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1716
+ * @return {!proto.ProcessFlow}
1717
+ */
1718
+ proto.ProcessFlow.deserializeBinaryFromReader = function(msg, reader) {
1719
+ while (reader.nextField()) {
1720
+ if (reader.isEndGroup()) {
1721
+ break;
1722
+ }
1723
+ var field = reader.getFieldNumber();
1724
+ switch (field) {
1725
+ case 1:
1726
+ var value = /** @type {string} */ (reader.readString());
1727
+ msg.setName(value);
1728
+ break;
1729
+ case 2:
1730
+ var value = new proto.ProcessFlowDetail;
1731
+ reader.readMessage(value,proto.ProcessFlowDetail.deserializeBinaryFromReader);
1732
+ msg.addDetails(value);
1733
+ break;
1734
+ default:
1735
+ reader.skipField();
1736
+ break;
1737
+ }
1738
+ }
1739
+ return msg;
1740
+ };
1741
+
1742
+
1743
+ /**
1744
+ * Serializes the message to binary data (in protobuf wire format).
1745
+ * @return {!Uint8Array}
1746
+ */
1747
+ proto.ProcessFlow.prototype.serializeBinary = function() {
1748
+ var writer = new jspb.BinaryWriter();
1749
+ proto.ProcessFlow.serializeBinaryToWriter(this, writer);
1750
+ return writer.getResultBuffer();
1751
+ };
1752
+
1753
+
1754
+ /**
1755
+ * Serializes the given message to binary data (in protobuf wire
1756
+ * format), writing to the given BinaryWriter.
1757
+ * @param {!proto.ProcessFlow} message
1758
+ * @param {!jspb.BinaryWriter} writer
1759
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1760
+ */
1761
+ proto.ProcessFlow.serializeBinaryToWriter = function(message, writer) {
1762
+ var f = undefined;
1763
+ f = message.getName();
1764
+ if (f.length > 0) {
1765
+ writer.writeString(
1766
+ 1,
1767
+ f
1768
+ );
1769
+ }
1770
+ f = message.getDetailsList();
1771
+ if (f.length > 0) {
1772
+ writer.writeRepeatedMessage(
1773
+ 2,
1774
+ f,
1775
+ proto.ProcessFlowDetail.serializeBinaryToWriter
1776
+ );
1777
+ }
1778
+ };
1779
+
1780
+
1781
+ /**
1782
+ * optional string name = 1;
1783
+ * @return {string}
1784
+ */
1785
+ proto.ProcessFlow.prototype.getName = function() {
1786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1787
+ };
1788
+
1789
+
1790
+ /**
1791
+ * @param {string} value
1792
+ * @return {!proto.ProcessFlow} returns this
1793
+ */
1794
+ proto.ProcessFlow.prototype.setName = function(value) {
1795
+ return jspb.Message.setProto3StringField(this, 1, value);
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * repeated ProcessFlowDetail details = 2;
1801
+ * @return {!Array<!proto.ProcessFlowDetail>}
1802
+ */
1803
+ proto.ProcessFlow.prototype.getDetailsList = function() {
1804
+ return /** @type{!Array<!proto.ProcessFlowDetail>} */ (
1805
+ jspb.Message.getRepeatedWrapperField(this, proto.ProcessFlowDetail, 2));
1806
+ };
1807
+
1808
+
1809
+ /**
1810
+ * @param {!Array<!proto.ProcessFlowDetail>} value
1811
+ * @return {!proto.ProcessFlow} returns this
1812
+ */
1813
+ proto.ProcessFlow.prototype.setDetailsList = function(value) {
1814
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
1815
+ };
1816
+
1817
+
1818
+ /**
1819
+ * @param {!proto.ProcessFlowDetail=} opt_value
1820
+ * @param {number=} opt_index
1821
+ * @return {!proto.ProcessFlowDetail}
1822
+ */
1823
+ proto.ProcessFlow.prototype.addDetails = function(opt_value, opt_index) {
1824
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.ProcessFlowDetail, opt_index);
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * Clears the list making it empty but non-null.
1830
+ * @return {!proto.ProcessFlow} returns this
1831
+ */
1832
+ proto.ProcessFlow.prototype.clearDetailsList = function() {
1833
+ return this.setDetailsList([]);
1834
+ };
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1841
+ /**
1842
+ * Creates an object representation of this proto.
1843
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1844
+ * Optional fields that are not set will be set to undefined.
1845
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1846
+ * For the list of reserved names please see:
1847
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1848
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1849
+ * JSPB instance for transitional soy proto support:
1850
+ * http://goto/soy-param-migration
1851
+ * @return {!Object}
1852
+ */
1853
+ proto.ProcessFlowDetail.prototype.toObject = function(opt_includeInstance) {
1854
+ return proto.ProcessFlowDetail.toObject(opt_includeInstance, this);
1855
+ };
1856
+
1857
+
1858
+ /**
1859
+ * Static version of the {@see toObject} method.
1860
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1861
+ * the JSPB instance for transitional soy proto support:
1862
+ * http://goto/soy-param-migration
1863
+ * @param {!proto.ProcessFlowDetail} msg The msg instance to transform.
1864
+ * @return {!Object}
1865
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1866
+ */
1867
+ proto.ProcessFlowDetail.toObject = function(includeInstance, msg) {
1868
+ var f, obj = {
1869
+ transactionNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
1870
+ transactionType: jspb.Message.getFieldWithDefault(msg, 2, ""),
1871
+ transactionStatus: jspb.Message.getFieldWithDefault(msg, 3, ""),
1872
+ transactionReferenceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
1873
+ previousTransactionReferenceId: jspb.Message.getFieldWithDefault(msg, 5, "")
1874
+ };
1875
+
1876
+ if (includeInstance) {
1877
+ obj.$jspbMessageInstance = msg;
1878
+ }
1879
+ return obj;
1880
+ };
1881
+ }
1882
+
1883
+
1884
+ /**
1885
+ * Deserializes binary data (in protobuf wire format).
1886
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1887
+ * @return {!proto.ProcessFlowDetail}
1888
+ */
1889
+ proto.ProcessFlowDetail.deserializeBinary = function(bytes) {
1890
+ var reader = new jspb.BinaryReader(bytes);
1891
+ var msg = new proto.ProcessFlowDetail;
1892
+ return proto.ProcessFlowDetail.deserializeBinaryFromReader(msg, reader);
1893
+ };
1894
+
1895
+
1896
+ /**
1897
+ * Deserializes binary data (in protobuf wire format) from the
1898
+ * given reader into the given message object.
1899
+ * @param {!proto.ProcessFlowDetail} msg The message object to deserialize into.
1900
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1901
+ * @return {!proto.ProcessFlowDetail}
1902
+ */
1903
+ proto.ProcessFlowDetail.deserializeBinaryFromReader = function(msg, reader) {
1904
+ while (reader.nextField()) {
1905
+ if (reader.isEndGroup()) {
1906
+ break;
1907
+ }
1908
+ var field = reader.getFieldNumber();
1909
+ switch (field) {
1910
+ case 1:
1911
+ var value = /** @type {string} */ (reader.readString());
1912
+ msg.setTransactionNumber(value);
1913
+ break;
1914
+ case 2:
1915
+ var value = /** @type {string} */ (reader.readString());
1916
+ msg.setTransactionType(value);
1917
+ break;
1918
+ case 3:
1919
+ var value = /** @type {string} */ (reader.readString());
1920
+ msg.setTransactionStatus(value);
1921
+ break;
1922
+ case 4:
1923
+ var value = /** @type {string} */ (reader.readString());
1924
+ msg.setTransactionReferenceId(value);
1925
+ break;
1926
+ case 5:
1927
+ var value = /** @type {string} */ (reader.readString());
1928
+ msg.setPreviousTransactionReferenceId(value);
1929
+ break;
1930
+ default:
1931
+ reader.skipField();
1932
+ break;
1933
+ }
1934
+ }
1935
+ return msg;
1936
+ };
1937
+
1938
+
1939
+ /**
1940
+ * Serializes the message to binary data (in protobuf wire format).
1941
+ * @return {!Uint8Array}
1942
+ */
1943
+ proto.ProcessFlowDetail.prototype.serializeBinary = function() {
1944
+ var writer = new jspb.BinaryWriter();
1945
+ proto.ProcessFlowDetail.serializeBinaryToWriter(this, writer);
1946
+ return writer.getResultBuffer();
1947
+ };
1948
+
1949
+
1950
+ /**
1951
+ * Serializes the given message to binary data (in protobuf wire
1952
+ * format), writing to the given BinaryWriter.
1953
+ * @param {!proto.ProcessFlowDetail} message
1954
+ * @param {!jspb.BinaryWriter} writer
1955
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1956
+ */
1957
+ proto.ProcessFlowDetail.serializeBinaryToWriter = function(message, writer) {
1958
+ var f = undefined;
1959
+ f = message.getTransactionNumber();
1960
+ if (f.length > 0) {
1961
+ writer.writeString(
1962
+ 1,
1963
+ f
1964
+ );
1965
+ }
1966
+ f = message.getTransactionType();
1967
+ if (f.length > 0) {
1968
+ writer.writeString(
1969
+ 2,
1970
+ f
1971
+ );
1972
+ }
1973
+ f = message.getTransactionStatus();
1974
+ if (f.length > 0) {
1975
+ writer.writeString(
1976
+ 3,
1977
+ f
1978
+ );
1979
+ }
1980
+ f = message.getTransactionReferenceId();
1981
+ if (f.length > 0) {
1982
+ writer.writeString(
1983
+ 4,
1984
+ f
1985
+ );
1986
+ }
1987
+ f = message.getPreviousTransactionReferenceId();
1988
+ if (f.length > 0) {
1989
+ writer.writeString(
1990
+ 5,
1991
+ f
1992
+ );
1993
+ }
1994
+ };
1995
+
1996
+
1997
+ /**
1998
+ * optional string transaction_number = 1;
1999
+ * @return {string}
2000
+ */
2001
+ proto.ProcessFlowDetail.prototype.getTransactionNumber = function() {
2002
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2003
+ };
2004
+
2005
+
2006
+ /**
2007
+ * @param {string} value
2008
+ * @return {!proto.ProcessFlowDetail} returns this
2009
+ */
2010
+ proto.ProcessFlowDetail.prototype.setTransactionNumber = function(value) {
2011
+ return jspb.Message.setProto3StringField(this, 1, value);
2012
+ };
2013
+
2014
+
2015
+ /**
2016
+ * optional string transaction_type = 2;
2017
+ * @return {string}
2018
+ */
2019
+ proto.ProcessFlowDetail.prototype.getTransactionType = function() {
2020
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2021
+ };
2022
+
2023
+
2024
+ /**
2025
+ * @param {string} value
2026
+ * @return {!proto.ProcessFlowDetail} returns this
2027
+ */
2028
+ proto.ProcessFlowDetail.prototype.setTransactionType = function(value) {
2029
+ return jspb.Message.setProto3StringField(this, 2, value);
2030
+ };
2031
+
2032
+
2033
+ /**
2034
+ * optional string transaction_status = 3;
2035
+ * @return {string}
2036
+ */
2037
+ proto.ProcessFlowDetail.prototype.getTransactionStatus = function() {
2038
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2039
+ };
2040
+
2041
+
2042
+ /**
2043
+ * @param {string} value
2044
+ * @return {!proto.ProcessFlowDetail} returns this
2045
+ */
2046
+ proto.ProcessFlowDetail.prototype.setTransactionStatus = function(value) {
2047
+ return jspb.Message.setProto3StringField(this, 3, value);
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * optional string transaction_reference_id = 4;
2053
+ * @return {string}
2054
+ */
2055
+ proto.ProcessFlowDetail.prototype.getTransactionReferenceId = function() {
2056
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * @param {string} value
2062
+ * @return {!proto.ProcessFlowDetail} returns this
2063
+ */
2064
+ proto.ProcessFlowDetail.prototype.setTransactionReferenceId = function(value) {
2065
+ return jspb.Message.setProto3StringField(this, 4, value);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * optional string previous_transaction_reference_id = 5;
2071
+ * @return {string}
2072
+ */
2073
+ proto.ProcessFlowDetail.prototype.getPreviousTransactionReferenceId = function() {
2074
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * @param {string} value
2080
+ * @return {!proto.ProcessFlowDetail} returns this
2081
+ */
2082
+ proto.ProcessFlowDetail.prototype.setPreviousTransactionReferenceId = function(value) {
2083
+ return jspb.Message.setProto3StringField(this, 5, value);
2084
+ };
2085
+
2086
+
1188
2087
  goog.object.extend(exports, proto);