@aldiokta/protocgen 1.0.91 → 1.0.93

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.91",
3
+ "version": "1.0.93",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -67,6 +67,7 @@ goog.exportSymbol('proto.UpdatePolicyRequest', null, global);
67
67
  goog.exportSymbol('proto.UpdatePolicyResponse', null, global);
68
68
  goog.exportSymbol('proto.UpdateRoleRequest', null, global);
69
69
  goog.exportSymbol('proto.UpdateRoleResponse', null, global);
70
+ goog.exportSymbol('proto.UsersRole', null, global);
70
71
  /**
71
72
  * Generated by JsPbCodeGenerator.
72
73
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -130,6 +131,27 @@ if (goog.DEBUG && !COMPILED) {
130
131
  */
131
132
  proto.BasePolicy.displayName = 'proto.BasePolicy';
132
133
  }
134
+ /**
135
+ * Generated by JsPbCodeGenerator.
136
+ * @param {Array=} opt_data Optional initial data array, typically from a
137
+ * server response, or constructed directly in Javascript. The array is used
138
+ * in place and becomes part of the constructed object. It is not cloned.
139
+ * If no data is provided, the constructed object will be empty, but still
140
+ * valid.
141
+ * @extends {jspb.Message}
142
+ * @constructor
143
+ */
144
+ proto.UsersRole = function(opt_data) {
145
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
146
+ };
147
+ goog.inherits(proto.UsersRole, jspb.Message);
148
+ if (goog.DEBUG && !COMPILED) {
149
+ /**
150
+ * @public
151
+ * @override
152
+ */
153
+ proto.UsersRole.displayName = 'proto.UsersRole';
154
+ }
133
155
  /**
134
156
  * Generated by JsPbCodeGenerator.
135
157
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1666,6 +1688,247 @@ proto.BasePolicy.prototype.setReferencesId = function(value) {
1666
1688
 
1667
1689
 
1668
1690
 
1691
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1692
+ /**
1693
+ * Creates an object representation of this proto.
1694
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1695
+ * Optional fields that are not set will be set to undefined.
1696
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1697
+ * For the list of reserved names please see:
1698
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1699
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1700
+ * JSPB instance for transitional soy proto support:
1701
+ * http://goto/soy-param-migration
1702
+ * @return {!Object}
1703
+ */
1704
+ proto.UsersRole.prototype.toObject = function(opt_includeInstance) {
1705
+ return proto.UsersRole.toObject(opt_includeInstance, this);
1706
+ };
1707
+
1708
+
1709
+ /**
1710
+ * Static version of the {@see toObject} method.
1711
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1712
+ * the JSPB instance for transitional soy proto support:
1713
+ * http://goto/soy-param-migration
1714
+ * @param {!proto.UsersRole} msg The msg instance to transform.
1715
+ * @return {!Object}
1716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1717
+ */
1718
+ proto.UsersRole.toObject = function(includeInstance, msg) {
1719
+ var f, obj = {
1720
+ roleReferencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1721
+ userReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1722
+ referencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
1723
+ roles: (f = msg.getRoles()) && proto.Role.toObject(includeInstance, f)
1724
+ };
1725
+
1726
+ if (includeInstance) {
1727
+ obj.$jspbMessageInstance = msg;
1728
+ }
1729
+ return obj;
1730
+ };
1731
+ }
1732
+
1733
+
1734
+ /**
1735
+ * Deserializes binary data (in protobuf wire format).
1736
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1737
+ * @return {!proto.UsersRole}
1738
+ */
1739
+ proto.UsersRole.deserializeBinary = function(bytes) {
1740
+ var reader = new jspb.BinaryReader(bytes);
1741
+ var msg = new proto.UsersRole;
1742
+ return proto.UsersRole.deserializeBinaryFromReader(msg, reader);
1743
+ };
1744
+
1745
+
1746
+ /**
1747
+ * Deserializes binary data (in protobuf wire format) from the
1748
+ * given reader into the given message object.
1749
+ * @param {!proto.UsersRole} msg The message object to deserialize into.
1750
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1751
+ * @return {!proto.UsersRole}
1752
+ */
1753
+ proto.UsersRole.deserializeBinaryFromReader = function(msg, reader) {
1754
+ while (reader.nextField()) {
1755
+ if (reader.isEndGroup()) {
1756
+ break;
1757
+ }
1758
+ var field = reader.getFieldNumber();
1759
+ switch (field) {
1760
+ case 1:
1761
+ var value = /** @type {string} */ (reader.readString());
1762
+ msg.setRoleReferencesId(value);
1763
+ break;
1764
+ case 2:
1765
+ var value = /** @type {string} */ (reader.readString());
1766
+ msg.setUserReferencesId(value);
1767
+ break;
1768
+ case 3:
1769
+ var value = /** @type {string} */ (reader.readString());
1770
+ msg.setReferencesId(value);
1771
+ break;
1772
+ case 4:
1773
+ var value = new proto.Role;
1774
+ reader.readMessage(value,proto.Role.deserializeBinaryFromReader);
1775
+ msg.setRoles(value);
1776
+ break;
1777
+ default:
1778
+ reader.skipField();
1779
+ break;
1780
+ }
1781
+ }
1782
+ return msg;
1783
+ };
1784
+
1785
+
1786
+ /**
1787
+ * Serializes the message to binary data (in protobuf wire format).
1788
+ * @return {!Uint8Array}
1789
+ */
1790
+ proto.UsersRole.prototype.serializeBinary = function() {
1791
+ var writer = new jspb.BinaryWriter();
1792
+ proto.UsersRole.serializeBinaryToWriter(this, writer);
1793
+ return writer.getResultBuffer();
1794
+ };
1795
+
1796
+
1797
+ /**
1798
+ * Serializes the given message to binary data (in protobuf wire
1799
+ * format), writing to the given BinaryWriter.
1800
+ * @param {!proto.UsersRole} message
1801
+ * @param {!jspb.BinaryWriter} writer
1802
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1803
+ */
1804
+ proto.UsersRole.serializeBinaryToWriter = function(message, writer) {
1805
+ var f = undefined;
1806
+ f = message.getRoleReferencesId();
1807
+ if (f.length > 0) {
1808
+ writer.writeString(
1809
+ 1,
1810
+ f
1811
+ );
1812
+ }
1813
+ f = message.getUserReferencesId();
1814
+ if (f.length > 0) {
1815
+ writer.writeString(
1816
+ 2,
1817
+ f
1818
+ );
1819
+ }
1820
+ f = message.getReferencesId();
1821
+ if (f.length > 0) {
1822
+ writer.writeString(
1823
+ 3,
1824
+ f
1825
+ );
1826
+ }
1827
+ f = message.getRoles();
1828
+ if (f != null) {
1829
+ writer.writeMessage(
1830
+ 4,
1831
+ f,
1832
+ proto.Role.serializeBinaryToWriter
1833
+ );
1834
+ }
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * optional string role_references_id = 1;
1840
+ * @return {string}
1841
+ */
1842
+ proto.UsersRole.prototype.getRoleReferencesId = function() {
1843
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1844
+ };
1845
+
1846
+
1847
+ /**
1848
+ * @param {string} value
1849
+ * @return {!proto.UsersRole} returns this
1850
+ */
1851
+ proto.UsersRole.prototype.setRoleReferencesId = function(value) {
1852
+ return jspb.Message.setProto3StringField(this, 1, value);
1853
+ };
1854
+
1855
+
1856
+ /**
1857
+ * optional string user_references_id = 2;
1858
+ * @return {string}
1859
+ */
1860
+ proto.UsersRole.prototype.getUserReferencesId = function() {
1861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1862
+ };
1863
+
1864
+
1865
+ /**
1866
+ * @param {string} value
1867
+ * @return {!proto.UsersRole} returns this
1868
+ */
1869
+ proto.UsersRole.prototype.setUserReferencesId = function(value) {
1870
+ return jspb.Message.setProto3StringField(this, 2, value);
1871
+ };
1872
+
1873
+
1874
+ /**
1875
+ * optional string references_id = 3;
1876
+ * @return {string}
1877
+ */
1878
+ proto.UsersRole.prototype.getReferencesId = function() {
1879
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1880
+ };
1881
+
1882
+
1883
+ /**
1884
+ * @param {string} value
1885
+ * @return {!proto.UsersRole} returns this
1886
+ */
1887
+ proto.UsersRole.prototype.setReferencesId = function(value) {
1888
+ return jspb.Message.setProto3StringField(this, 3, value);
1889
+ };
1890
+
1891
+
1892
+ /**
1893
+ * optional Role roles = 4;
1894
+ * @return {?proto.Role}
1895
+ */
1896
+ proto.UsersRole.prototype.getRoles = function() {
1897
+ return /** @type{?proto.Role} */ (
1898
+ jspb.Message.getWrapperField(this, proto.Role, 4));
1899
+ };
1900
+
1901
+
1902
+ /**
1903
+ * @param {?proto.Role|undefined} value
1904
+ * @return {!proto.UsersRole} returns this
1905
+ */
1906
+ proto.UsersRole.prototype.setRoles = function(value) {
1907
+ return jspb.Message.setWrapperField(this, 4, value);
1908
+ };
1909
+
1910
+
1911
+ /**
1912
+ * Clears the message field making it undefined.
1913
+ * @return {!proto.UsersRole} returns this
1914
+ */
1915
+ proto.UsersRole.prototype.clearRoles = function() {
1916
+ return this.setRoles(undefined);
1917
+ };
1918
+
1919
+
1920
+ /**
1921
+ * Returns whether this field is set.
1922
+ * @return {boolean}
1923
+ */
1924
+ proto.UsersRole.prototype.hasRoles = function() {
1925
+ return jspb.Message.getField(this, 4) != null;
1926
+ };
1927
+
1928
+
1929
+
1930
+
1931
+
1669
1932
  if (jspb.Message.GENERATE_TO_OBJECT) {
1670
1933
  /**
1671
1934
  * Creates an object representation of this proto.
@@ -7,6 +7,7 @@
7
7
  var grpc = require('@grpc/grpc-js');
8
8
  var prisca_v1_core_auth_auth_pb = require('../../../../prisca/v1/core/auth/auth_pb.js');
9
9
  var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
10
+ var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
10
11
 
11
12
  function serialize_AccessApiCredential(arg) {
12
13
  if (!(arg instanceof prisca_v1_core_auth_auth_pb.AccessApiCredential)) {
@@ -23,6 +23,8 @@ var global =
23
23
 
24
24
  var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
25
  goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ var prisca_v1_core_access_manager_access_manager_pb = require('../../../../prisca/v1/core/access_manager/access_manager_pb.js');
27
+ goog.object.extend(proto, prisca_v1_core_access_manager_access_manager_pb);
26
28
  goog.exportSymbol('proto.AccessApiCredential', null, global);
27
29
  goog.exportSymbol('proto.AccessApiManagersResponse', null, global);
28
30
  goog.exportSymbol('proto.AccessCreateRequest', null, global);
@@ -349,7 +351,7 @@ if (goog.DEBUG && !COMPILED) {
349
351
  * @constructor
350
352
  */
351
353
  proto.UserResponse = function(opt_data) {
352
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
354
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.UserResponse.repeatedFields_, null);
353
355
  };
354
356
  goog.inherits(proto.UserResponse, jspb.Message);
355
357
  if (goog.DEBUG && !COMPILED) {
@@ -2657,6 +2659,13 @@ proto.ChangePasswordRequest.prototype.setNewPassword = function(value) {
2657
2659
 
2658
2660
 
2659
2661
 
2662
+ /**
2663
+ * List of repeated fields within this message type.
2664
+ * @private {!Array<number>}
2665
+ * @const
2666
+ */
2667
+ proto.UserResponse.repeatedFields_ = [6];
2668
+
2660
2669
 
2661
2670
 
2662
2671
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2691,9 +2700,10 @@ proto.UserResponse.toObject = function(includeInstance, msg) {
2691
2700
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2692
2701
  name: jspb.Message.getFieldWithDefault(msg, 2, ""),
2693
2702
  email: jspb.Message.getFieldWithDefault(msg, 3, ""),
2694
- role: jspb.Message.getFieldWithDefault(msg, 4, ""),
2695
- token: jspb.Message.getFieldWithDefault(msg, 5, ""),
2696
- referencesId: jspb.Message.getFieldWithDefault(msg, 6, "")
2703
+ token: jspb.Message.getFieldWithDefault(msg, 4, ""),
2704
+ referencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
2705
+ usersRoleList: jspb.Message.toObjectList(msg.getUsersRoleList(),
2706
+ prisca_v1_core_access_manager_access_manager_pb.UsersRole.toObject, includeInstance)
2697
2707
  };
2698
2708
 
2699
2709
  if (includeInstance) {
@@ -2744,15 +2754,16 @@ proto.UserResponse.deserializeBinaryFromReader = function(msg, reader) {
2744
2754
  break;
2745
2755
  case 4:
2746
2756
  var value = /** @type {string} */ (reader.readString());
2747
- msg.setRole(value);
2757
+ msg.setToken(value);
2748
2758
  break;
2749
2759
  case 5:
2750
2760
  var value = /** @type {string} */ (reader.readString());
2751
- msg.setToken(value);
2761
+ msg.setReferencesId(value);
2752
2762
  break;
2753
2763
  case 6:
2754
- var value = /** @type {string} */ (reader.readString());
2755
- msg.setReferencesId(value);
2764
+ var value = new prisca_v1_core_access_manager_access_manager_pb.UsersRole;
2765
+ reader.readMessage(value,prisca_v1_core_access_manager_access_manager_pb.UsersRole.deserializeBinaryFromReader);
2766
+ msg.addUsersRole(value);
2756
2767
  break;
2757
2768
  default:
2758
2769
  reader.skipField();
@@ -2804,25 +2815,26 @@ proto.UserResponse.serializeBinaryToWriter = function(message, writer) {
2804
2815
  f
2805
2816
  );
2806
2817
  }
2807
- f = message.getRole();
2818
+ f = message.getToken();
2808
2819
  if (f.length > 0) {
2809
2820
  writer.writeString(
2810
2821
  4,
2811
2822
  f
2812
2823
  );
2813
2824
  }
2814
- f = message.getToken();
2825
+ f = message.getReferencesId();
2815
2826
  if (f.length > 0) {
2816
2827
  writer.writeString(
2817
2828
  5,
2818
2829
  f
2819
2830
  );
2820
2831
  }
2821
- f = message.getReferencesId();
2832
+ f = message.getUsersRoleList();
2822
2833
  if (f.length > 0) {
2823
- writer.writeString(
2834
+ writer.writeRepeatedMessage(
2824
2835
  6,
2825
- f
2836
+ f,
2837
+ prisca_v1_core_access_manager_access_manager_pb.UsersRole.serializeBinaryToWriter
2826
2838
  );
2827
2839
  }
2828
2840
  };
@@ -2883,10 +2895,10 @@ proto.UserResponse.prototype.setEmail = function(value) {
2883
2895
 
2884
2896
 
2885
2897
  /**
2886
- * optional string role = 4;
2898
+ * optional string token = 4;
2887
2899
  * @return {string}
2888
2900
  */
2889
- proto.UserResponse.prototype.getRole = function() {
2901
+ proto.UserResponse.prototype.getToken = function() {
2890
2902
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2891
2903
  };
2892
2904
 
@@ -2895,16 +2907,16 @@ proto.UserResponse.prototype.getRole = function() {
2895
2907
  * @param {string} value
2896
2908
  * @return {!proto.UserResponse} returns this
2897
2909
  */
2898
- proto.UserResponse.prototype.setRole = function(value) {
2910
+ proto.UserResponse.prototype.setToken = function(value) {
2899
2911
  return jspb.Message.setProto3StringField(this, 4, value);
2900
2912
  };
2901
2913
 
2902
2914
 
2903
2915
  /**
2904
- * optional string token = 5;
2916
+ * optional string references_id = 5;
2905
2917
  * @return {string}
2906
2918
  */
2907
- proto.UserResponse.prototype.getToken = function() {
2919
+ proto.UserResponse.prototype.getReferencesId = function() {
2908
2920
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2909
2921
  };
2910
2922
 
@@ -2913,26 +2925,46 @@ proto.UserResponse.prototype.getToken = function() {
2913
2925
  * @param {string} value
2914
2926
  * @return {!proto.UserResponse} returns this
2915
2927
  */
2916
- proto.UserResponse.prototype.setToken = function(value) {
2928
+ proto.UserResponse.prototype.setReferencesId = function(value) {
2917
2929
  return jspb.Message.setProto3StringField(this, 5, value);
2918
2930
  };
2919
2931
 
2920
2932
 
2921
2933
  /**
2922
- * optional string references_id = 6;
2923
- * @return {string}
2934
+ * repeated UsersRole users_role = 6;
2935
+ * @return {!Array<!proto.UsersRole>}
2924
2936
  */
2925
- proto.UserResponse.prototype.getReferencesId = function() {
2926
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2937
+ proto.UserResponse.prototype.getUsersRoleList = function() {
2938
+ return /** @type{!Array<!proto.UsersRole>} */ (
2939
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_access_manager_access_manager_pb.UsersRole, 6));
2927
2940
  };
2928
2941
 
2929
2942
 
2930
2943
  /**
2931
- * @param {string} value
2944
+ * @param {!Array<!proto.UsersRole>} value
2945
+ * @return {!proto.UserResponse} returns this
2946
+ */
2947
+ proto.UserResponse.prototype.setUsersRoleList = function(value) {
2948
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
2949
+ };
2950
+
2951
+
2952
+ /**
2953
+ * @param {!proto.UsersRole=} opt_value
2954
+ * @param {number=} opt_index
2955
+ * @return {!proto.UsersRole}
2956
+ */
2957
+ proto.UserResponse.prototype.addUsersRole = function(opt_value, opt_index) {
2958
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.UsersRole, opt_index);
2959
+ };
2960
+
2961
+
2962
+ /**
2963
+ * Clears the list making it empty but non-null.
2932
2964
  * @return {!proto.UserResponse} returns this
2933
2965
  */
2934
- proto.UserResponse.prototype.setReferencesId = function(value) {
2935
- return jspb.Message.setProto3StringField(this, 6, value);
2966
+ proto.UserResponse.prototype.clearUsersRoleList = function() {
2967
+ return this.setUsersRoleList([]);
2936
2968
  };
2937
2969
 
2938
2970
 
@@ -295,6 +295,17 @@ function deserialize_UpdatePurchaseRequisitionTrxResponse(buffer_arg) {
295
295
  return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxResponse.deserializeBinary(new Uint8Array(buffer_arg));
296
296
  }
297
297
 
298
+ function serialize_UpdatePurchaseRequisitionTrxStatusRequest(arg) {
299
+ if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxStatusRequest)) {
300
+ throw new Error('Expected argument of type UpdatePurchaseRequisitionTrxStatusRequest');
301
+ }
302
+ return Buffer.from(arg.serializeBinary());
303
+ }
304
+
305
+ function deserialize_UpdatePurchaseRequisitionTrxStatusRequest(buffer_arg) {
306
+ return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxStatusRequest.deserializeBinary(new Uint8Array(buffer_arg));
307
+ }
308
+
298
309
 
299
310
  var PurchaseRequisitionTrxServiceService = exports.PurchaseRequisitionTrxServiceService = {
300
311
  createPurchaseRequisitionTrx: {
@@ -319,6 +330,17 @@ var PurchaseRequisitionTrxServiceService = exports.PurchaseRequisitionTrxService
319
330
  responseSerialize: serialize_UpdatePurchaseRequisitionTrxResponse,
320
331
  responseDeserialize: deserialize_UpdatePurchaseRequisitionTrxResponse,
321
332
  },
333
+ updatePurchaseRequisitionStatusTrx: {
334
+ path: '/PurchaseRequisitionTrxService/UpdatePurchaseRequisitionStatusTrx',
335
+ requestStream: false,
336
+ responseStream: false,
337
+ requestType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxStatusRequest,
338
+ responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxResponse,
339
+ requestSerialize: serialize_UpdatePurchaseRequisitionTrxStatusRequest,
340
+ requestDeserialize: deserialize_UpdatePurchaseRequisitionTrxStatusRequest,
341
+ responseSerialize: serialize_UpdatePurchaseRequisitionTrxResponse,
342
+ responseDeserialize: deserialize_UpdatePurchaseRequisitionTrxResponse,
343
+ },
322
344
  getPurchaseRequisitionTrxById: {
323
345
  path: '/PurchaseRequisitionTrxService/GetPurchaseRequisitionTrxById',
324
346
  requestStream: false,
@@ -71,6 +71,7 @@ goog.exportSymbol('proto.UpdatePurchaseRequisitionTemplateRequest', null, global
71
71
  goog.exportSymbol('proto.UpdatePurchaseRequisitionTemplateResponse', null, global);
72
72
  goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxRequest', null, global);
73
73
  goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxResponse', null, global);
74
+ goog.exportSymbol('proto.UpdatePurchaseRequisitionTrxStatusRequest', null, global);
74
75
  /**
75
76
  * Generated by JsPbCodeGenerator.
76
77
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -260,6 +261,27 @@ if (goog.DEBUG && !COMPILED) {
260
261
  */
261
262
  proto.UpdatePurchaseRequisitionTrxRequest.displayName = 'proto.UpdatePurchaseRequisitionTrxRequest';
262
263
  }
264
+ /**
265
+ * Generated by JsPbCodeGenerator.
266
+ * @param {Array=} opt_data Optional initial data array, typically from a
267
+ * server response, or constructed directly in Javascript. The array is used
268
+ * in place and becomes part of the constructed object. It is not cloned.
269
+ * If no data is provided, the constructed object will be empty, but still
270
+ * valid.
271
+ * @extends {jspb.Message}
272
+ * @constructor
273
+ */
274
+ proto.UpdatePurchaseRequisitionTrxStatusRequest = function(opt_data) {
275
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
276
+ };
277
+ goog.inherits(proto.UpdatePurchaseRequisitionTrxStatusRequest, jspb.Message);
278
+ if (goog.DEBUG && !COMPILED) {
279
+ /**
280
+ * @public
281
+ * @override
282
+ */
283
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.displayName = 'proto.UpdatePurchaseRequisitionTrxStatusRequest';
284
+ }
263
285
  /**
264
286
  * Generated by JsPbCodeGenerator.
265
287
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3865,7 +3887,8 @@ documentTypeRef: jspb.Message.getFieldWithDefault(msg, 14, ""),
3865
3887
  status: jspb.Message.getFieldWithDefault(msg, 15, ""),
3866
3888
  groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
3867
3889
  referencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
3868
- numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 18, "")
3890
+ numberRangeSequence: jspb.Message.getFieldWithDefault(msg, 18, ""),
3891
+ justification: jspb.Message.getFieldWithDefault(msg, 19, "")
3869
3892
  };
3870
3893
 
3871
3894
  if (includeInstance) {
@@ -3975,6 +3998,10 @@ proto.BaseUpdatePurchaseRequisitionTrx.deserializeBinaryFromReader = function(ms
3975
3998
  var value = /** @type {string} */ (reader.readString());
3976
3999
  msg.setNumberRangeSequence(value);
3977
4000
  break;
4001
+ case 19:
4002
+ var value = /** @type {string} */ (reader.readString());
4003
+ msg.setJustification(value);
4004
+ break;
3978
4005
  default:
3979
4006
  reader.skipField();
3980
4007
  break;
@@ -4131,6 +4158,13 @@ proto.BaseUpdatePurchaseRequisitionTrx.serializeBinaryToWriter = function(messag
4131
4158
  f
4132
4159
  );
4133
4160
  }
4161
+ f = message.getJustification();
4162
+ if (f.length > 0) {
4163
+ writer.writeString(
4164
+ 19,
4165
+ f
4166
+ );
4167
+ }
4134
4168
  };
4135
4169
 
4136
4170
 
@@ -4478,6 +4512,24 @@ proto.BaseUpdatePurchaseRequisitionTrx.prototype.setNumberRangeSequence = functi
4478
4512
  };
4479
4513
 
4480
4514
 
4515
+ /**
4516
+ * optional string justification = 19;
4517
+ * @return {string}
4518
+ */
4519
+ proto.BaseUpdatePurchaseRequisitionTrx.prototype.getJustification = function() {
4520
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
4521
+ };
4522
+
4523
+
4524
+ /**
4525
+ * @param {string} value
4526
+ * @return {!proto.BaseUpdatePurchaseRequisitionTrx} returns this
4527
+ */
4528
+ proto.BaseUpdatePurchaseRequisitionTrx.prototype.setJustification = function(value) {
4529
+ return jspb.Message.setProto3StringField(this, 19, value);
4530
+ };
4531
+
4532
+
4481
4533
 
4482
4534
  /**
4483
4535
  * List of repeated fields within this message type.
@@ -5005,7 +5057,10 @@ glAccountDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
5005
5057
  unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 3, ""),
5006
5058
  valuationPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
5007
5059
  requisitioner: jspb.Message.getFieldWithDefault(msg, 5, ""),
5008
- customTransaction: jspb.Message.getFieldWithDefault(msg, 6, "")
5060
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 6, ""),
5061
+ distribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
5062
+ quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
5063
+ assetNo: jspb.Message.getFieldWithDefault(msg, 9, "")
5009
5064
  };
5010
5065
 
5011
5066
  if (includeInstance) {
@@ -5066,6 +5121,18 @@ proto.BasePurchaseRequisitionItemDetail.deserializeBinaryFromReader = function(m
5066
5121
  var value = /** @type {string} */ (reader.readString());
5067
5122
  msg.setCustomTransaction(value);
5068
5123
  break;
5124
+ case 7:
5125
+ var value = /** @type {number} */ (reader.readFloat());
5126
+ msg.setDistribution(value);
5127
+ break;
5128
+ case 8:
5129
+ var value = /** @type {number} */ (reader.readFloat());
5130
+ msg.setQuantity(value);
5131
+ break;
5132
+ case 9:
5133
+ var value = /** @type {string} */ (reader.readString());
5134
+ msg.setAssetNo(value);
5135
+ break;
5069
5136
  default:
5070
5137
  reader.skipField();
5071
5138
  break;
@@ -5137,6 +5204,27 @@ proto.BasePurchaseRequisitionItemDetail.serializeBinaryToWriter = function(messa
5137
5204
  f
5138
5205
  );
5139
5206
  }
5207
+ f = message.getDistribution();
5208
+ if (f !== 0.0) {
5209
+ writer.writeFloat(
5210
+ 7,
5211
+ f
5212
+ );
5213
+ }
5214
+ f = message.getQuantity();
5215
+ if (f !== 0.0) {
5216
+ writer.writeFloat(
5217
+ 8,
5218
+ f
5219
+ );
5220
+ }
5221
+ f = message.getAssetNo();
5222
+ if (f.length > 0) {
5223
+ writer.writeString(
5224
+ 9,
5225
+ f
5226
+ );
5227
+ }
5140
5228
  };
5141
5229
 
5142
5230
 
@@ -5248,6 +5336,60 @@ proto.BasePurchaseRequisitionItemDetail.prototype.setCustomTransaction = functio
5248
5336
  };
5249
5337
 
5250
5338
 
5339
+ /**
5340
+ * optional float distribution = 7;
5341
+ * @return {number}
5342
+ */
5343
+ proto.BasePurchaseRequisitionItemDetail.prototype.getDistribution = function() {
5344
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
5345
+ };
5346
+
5347
+
5348
+ /**
5349
+ * @param {number} value
5350
+ * @return {!proto.BasePurchaseRequisitionItemDetail} returns this
5351
+ */
5352
+ proto.BasePurchaseRequisitionItemDetail.prototype.setDistribution = function(value) {
5353
+ return jspb.Message.setProto3FloatField(this, 7, value);
5354
+ };
5355
+
5356
+
5357
+ /**
5358
+ * optional float quantity = 8;
5359
+ * @return {number}
5360
+ */
5361
+ proto.BasePurchaseRequisitionItemDetail.prototype.getQuantity = function() {
5362
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
5363
+ };
5364
+
5365
+
5366
+ /**
5367
+ * @param {number} value
5368
+ * @return {!proto.BasePurchaseRequisitionItemDetail} returns this
5369
+ */
5370
+ proto.BasePurchaseRequisitionItemDetail.prototype.setQuantity = function(value) {
5371
+ return jspb.Message.setProto3FloatField(this, 8, value);
5372
+ };
5373
+
5374
+
5375
+ /**
5376
+ * optional string asset_no = 9;
5377
+ * @return {string}
5378
+ */
5379
+ proto.BasePurchaseRequisitionItemDetail.prototype.getAssetNo = function() {
5380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
5381
+ };
5382
+
5383
+
5384
+ /**
5385
+ * @param {string} value
5386
+ * @return {!proto.BasePurchaseRequisitionItemDetail} returns this
5387
+ */
5388
+ proto.BasePurchaseRequisitionItemDetail.prototype.setAssetNo = function(value) {
5389
+ return jspb.Message.setProto3StringField(this, 9, value);
5390
+ };
5391
+
5392
+
5251
5393
 
5252
5394
 
5253
5395
 
@@ -5583,6 +5725,166 @@ proto.UpdatePurchaseRequisitionTrxRequest.prototype.hasPurchaseRequisitionTransa
5583
5725
 
5584
5726
 
5585
5727
 
5728
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5729
+ /**
5730
+ * Creates an object representation of this proto.
5731
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5732
+ * Optional fields that are not set will be set to undefined.
5733
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5734
+ * For the list of reserved names please see:
5735
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5736
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5737
+ * JSPB instance for transitional soy proto support:
5738
+ * http://goto/soy-param-migration
5739
+ * @return {!Object}
5740
+ */
5741
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.prototype.toObject = function(opt_includeInstance) {
5742
+ return proto.UpdatePurchaseRequisitionTrxStatusRequest.toObject(opt_includeInstance, this);
5743
+ };
5744
+
5745
+
5746
+ /**
5747
+ * Static version of the {@see toObject} method.
5748
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5749
+ * the JSPB instance for transitional soy proto support:
5750
+ * http://goto/soy-param-migration
5751
+ * @param {!proto.UpdatePurchaseRequisitionTrxStatusRequest} msg The msg instance to transform.
5752
+ * @return {!Object}
5753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5754
+ */
5755
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.toObject = function(includeInstance, msg) {
5756
+ var f, obj = {
5757
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
5758
+ referencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
5759
+ };
5760
+
5761
+ if (includeInstance) {
5762
+ obj.$jspbMessageInstance = msg;
5763
+ }
5764
+ return obj;
5765
+ };
5766
+ }
5767
+
5768
+
5769
+ /**
5770
+ * Deserializes binary data (in protobuf wire format).
5771
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5772
+ * @return {!proto.UpdatePurchaseRequisitionTrxStatusRequest}
5773
+ */
5774
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.deserializeBinary = function(bytes) {
5775
+ var reader = new jspb.BinaryReader(bytes);
5776
+ var msg = new proto.UpdatePurchaseRequisitionTrxStatusRequest;
5777
+ return proto.UpdatePurchaseRequisitionTrxStatusRequest.deserializeBinaryFromReader(msg, reader);
5778
+ };
5779
+
5780
+
5781
+ /**
5782
+ * Deserializes binary data (in protobuf wire format) from the
5783
+ * given reader into the given message object.
5784
+ * @param {!proto.UpdatePurchaseRequisitionTrxStatusRequest} msg The message object to deserialize into.
5785
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5786
+ * @return {!proto.UpdatePurchaseRequisitionTrxStatusRequest}
5787
+ */
5788
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
5789
+ while (reader.nextField()) {
5790
+ if (reader.isEndGroup()) {
5791
+ break;
5792
+ }
5793
+ var field = reader.getFieldNumber();
5794
+ switch (field) {
5795
+ case 1:
5796
+ var value = /** @type {string} */ (reader.readString());
5797
+ msg.setStatus(value);
5798
+ break;
5799
+ case 2:
5800
+ var value = /** @type {string} */ (reader.readString());
5801
+ msg.setReferencesId(value);
5802
+ break;
5803
+ default:
5804
+ reader.skipField();
5805
+ break;
5806
+ }
5807
+ }
5808
+ return msg;
5809
+ };
5810
+
5811
+
5812
+ /**
5813
+ * Serializes the message to binary data (in protobuf wire format).
5814
+ * @return {!Uint8Array}
5815
+ */
5816
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.prototype.serializeBinary = function() {
5817
+ var writer = new jspb.BinaryWriter();
5818
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.serializeBinaryToWriter(this, writer);
5819
+ return writer.getResultBuffer();
5820
+ };
5821
+
5822
+
5823
+ /**
5824
+ * Serializes the given message to binary data (in protobuf wire
5825
+ * format), writing to the given BinaryWriter.
5826
+ * @param {!proto.UpdatePurchaseRequisitionTrxStatusRequest} message
5827
+ * @param {!jspb.BinaryWriter} writer
5828
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5829
+ */
5830
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.serializeBinaryToWriter = function(message, writer) {
5831
+ var f = undefined;
5832
+ f = message.getStatus();
5833
+ if (f.length > 0) {
5834
+ writer.writeString(
5835
+ 1,
5836
+ f
5837
+ );
5838
+ }
5839
+ f = message.getReferencesId();
5840
+ if (f.length > 0) {
5841
+ writer.writeString(
5842
+ 2,
5843
+ f
5844
+ );
5845
+ }
5846
+ };
5847
+
5848
+
5849
+ /**
5850
+ * optional string status = 1;
5851
+ * @return {string}
5852
+ */
5853
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.prototype.getStatus = function() {
5854
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5855
+ };
5856
+
5857
+
5858
+ /**
5859
+ * @param {string} value
5860
+ * @return {!proto.UpdatePurchaseRequisitionTrxStatusRequest} returns this
5861
+ */
5862
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.prototype.setStatus = function(value) {
5863
+ return jspb.Message.setProto3StringField(this, 1, value);
5864
+ };
5865
+
5866
+
5867
+ /**
5868
+ * optional string references_id = 2;
5869
+ * @return {string}
5870
+ */
5871
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.prototype.getReferencesId = function() {
5872
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5873
+ };
5874
+
5875
+
5876
+ /**
5877
+ * @param {string} value
5878
+ * @return {!proto.UpdatePurchaseRequisitionTrxStatusRequest} returns this
5879
+ */
5880
+ proto.UpdatePurchaseRequisitionTrxStatusRequest.prototype.setReferencesId = function(value) {
5881
+ return jspb.Message.setProto3StringField(this, 2, value);
5882
+ };
5883
+
5884
+
5885
+
5886
+
5887
+
5586
5888
  if (jspb.Message.GENERATE_TO_OBJECT) {
5587
5889
  /**
5588
5890
  * Creates an object representation of this proto.