@aldiokta/protocgen 1.1.43 → 1.1.45

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.
Files changed (178) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10625
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -279
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -1,3801 +0,0 @@
1
- // source: prisca/v1/core/line_of_approval/line_of_approval.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global = globalThis;
17
-
18
- var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
19
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
20
- var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
21
- goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
22
- goog.exportSymbol('proto.BaseLineOfApprovalRequest', null, global);
23
- goog.exportSymbol('proto.BaseListAllLineOfApproval', null, global);
24
- goog.exportSymbol('proto.CreateLineOfApprovalRequest', null, global);
25
- goog.exportSymbol('proto.CreateLineOfApprovalResponse', null, global);
26
- goog.exportSymbol('proto.DeleteLineOfApprovalRequest', null, global);
27
- goog.exportSymbol('proto.DeleteLineOfApprovalResponse', null, global);
28
- goog.exportSymbol('proto.GetLineOfApprovalByIdRequest', null, global);
29
- goog.exportSymbol('proto.GetLineOfApprovalByIdResponse', null, global);
30
- goog.exportSymbol('proto.GetListAllLineOfApprovalResponse', null, global);
31
- goog.exportSymbol('proto.GetListLineOfApprovalRequest', null, global);
32
- goog.exportSymbol('proto.GetListLineOfApprovalResponse', null, global);
33
- goog.exportSymbol('proto.GetVendorLineOfApprovalResponse', null, global);
34
- goog.exportSymbol('proto.LineOfApproval', null, global);
35
- goog.exportSymbol('proto.UpdateLineOfApprovalRequest', null, global);
36
- goog.exportSymbol('proto.UpdateLineOfApprovalResponse', null, global);
37
- goog.exportSymbol('proto.VendorLineOfApproval', null, global);
38
- /**
39
- * Generated by JsPbCodeGenerator.
40
- * @param {Array=} opt_data Optional initial data array, typically from a
41
- * server response, or constructed directly in Javascript. The array is used
42
- * in place and becomes part of the constructed object. It is not cloned.
43
- * If no data is provided, the constructed object will be empty, but still
44
- * valid.
45
- * @extends {jspb.Message}
46
- * @constructor
47
- */
48
- proto.LineOfApproval = function(opt_data) {
49
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
50
- };
51
- goog.inherits(proto.LineOfApproval, jspb.Message);
52
- if (goog.DEBUG && !COMPILED) {
53
- /**
54
- * @public
55
- * @override
56
- */
57
- proto.LineOfApproval.displayName = 'proto.LineOfApproval';
58
- }
59
- /**
60
- * Generated by JsPbCodeGenerator.
61
- * @param {Array=} opt_data Optional initial data array, typically from a
62
- * server response, or constructed directly in Javascript. The array is used
63
- * in place and becomes part of the constructed object. It is not cloned.
64
- * If no data is provided, the constructed object will be empty, but still
65
- * valid.
66
- * @extends {jspb.Message}
67
- * @constructor
68
- */
69
- proto.VendorLineOfApproval = function(opt_data) {
70
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
- };
72
- goog.inherits(proto.VendorLineOfApproval, jspb.Message);
73
- if (goog.DEBUG && !COMPILED) {
74
- /**
75
- * @public
76
- * @override
77
- */
78
- proto.VendorLineOfApproval.displayName = 'proto.VendorLineOfApproval';
79
- }
80
- /**
81
- * Generated by JsPbCodeGenerator.
82
- * @param {Array=} opt_data Optional initial data array, typically from a
83
- * server response, or constructed directly in Javascript. The array is used
84
- * in place and becomes part of the constructed object. It is not cloned.
85
- * If no data is provided, the constructed object will be empty, but still
86
- * valid.
87
- * @extends {jspb.Message}
88
- * @constructor
89
- */
90
- proto.BaseLineOfApprovalRequest = function(opt_data) {
91
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
- };
93
- goog.inherits(proto.BaseLineOfApprovalRequest, jspb.Message);
94
- if (goog.DEBUG && !COMPILED) {
95
- /**
96
- * @public
97
- * @override
98
- */
99
- proto.BaseLineOfApprovalRequest.displayName = 'proto.BaseLineOfApprovalRequest';
100
- }
101
- /**
102
- * Generated by JsPbCodeGenerator.
103
- * @param {Array=} opt_data Optional initial data array, typically from a
104
- * server response, or constructed directly in Javascript. The array is used
105
- * in place and becomes part of the constructed object. It is not cloned.
106
- * If no data is provided, the constructed object will be empty, but still
107
- * valid.
108
- * @extends {jspb.Message}
109
- * @constructor
110
- */
111
- proto.CreateLineOfApprovalRequest = function(opt_data) {
112
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
- };
114
- goog.inherits(proto.CreateLineOfApprovalRequest, jspb.Message);
115
- if (goog.DEBUG && !COMPILED) {
116
- /**
117
- * @public
118
- * @override
119
- */
120
- proto.CreateLineOfApprovalRequest.displayName = 'proto.CreateLineOfApprovalRequest';
121
- }
122
- /**
123
- * Generated by JsPbCodeGenerator.
124
- * @param {Array=} opt_data Optional initial data array, typically from a
125
- * server response, or constructed directly in Javascript. The array is used
126
- * in place and becomes part of the constructed object. It is not cloned.
127
- * If no data is provided, the constructed object will be empty, but still
128
- * valid.
129
- * @extends {jspb.Message}
130
- * @constructor
131
- */
132
- proto.UpdateLineOfApprovalRequest = function(opt_data) {
133
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
134
- };
135
- goog.inherits(proto.UpdateLineOfApprovalRequest, jspb.Message);
136
- if (goog.DEBUG && !COMPILED) {
137
- /**
138
- * @public
139
- * @override
140
- */
141
- proto.UpdateLineOfApprovalRequest.displayName = 'proto.UpdateLineOfApprovalRequest';
142
- }
143
- /**
144
- * Generated by JsPbCodeGenerator.
145
- * @param {Array=} opt_data Optional initial data array, typically from a
146
- * server response, or constructed directly in Javascript. The array is used
147
- * in place and becomes part of the constructed object. It is not cloned.
148
- * If no data is provided, the constructed object will be empty, but still
149
- * valid.
150
- * @extends {jspb.Message}
151
- * @constructor
152
- */
153
- proto.DeleteLineOfApprovalRequest = function(opt_data) {
154
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
155
- };
156
- goog.inherits(proto.DeleteLineOfApprovalRequest, jspb.Message);
157
- if (goog.DEBUG && !COMPILED) {
158
- /**
159
- * @public
160
- * @override
161
- */
162
- proto.DeleteLineOfApprovalRequest.displayName = 'proto.DeleteLineOfApprovalRequest';
163
- }
164
- /**
165
- * Generated by JsPbCodeGenerator.
166
- * @param {Array=} opt_data Optional initial data array, typically from a
167
- * server response, or constructed directly in Javascript. The array is used
168
- * in place and becomes part of the constructed object. It is not cloned.
169
- * If no data is provided, the constructed object will be empty, but still
170
- * valid.
171
- * @extends {jspb.Message}
172
- * @constructor
173
- */
174
- proto.GetLineOfApprovalByIdRequest = function(opt_data) {
175
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
- };
177
- goog.inherits(proto.GetLineOfApprovalByIdRequest, jspb.Message);
178
- if (goog.DEBUG && !COMPILED) {
179
- /**
180
- * @public
181
- * @override
182
- */
183
- proto.GetLineOfApprovalByIdRequest.displayName = 'proto.GetLineOfApprovalByIdRequest';
184
- }
185
- /**
186
- * Generated by JsPbCodeGenerator.
187
- * @param {Array=} opt_data Optional initial data array, typically from a
188
- * server response, or constructed directly in Javascript. The array is used
189
- * in place and becomes part of the constructed object. It is not cloned.
190
- * If no data is provided, the constructed object will be empty, but still
191
- * valid.
192
- * @extends {jspb.Message}
193
- * @constructor
194
- */
195
- proto.GetListLineOfApprovalRequest = function(opt_data) {
196
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
197
- };
198
- goog.inherits(proto.GetListLineOfApprovalRequest, jspb.Message);
199
- if (goog.DEBUG && !COMPILED) {
200
- /**
201
- * @public
202
- * @override
203
- */
204
- proto.GetListLineOfApprovalRequest.displayName = 'proto.GetListLineOfApprovalRequest';
205
- }
206
- /**
207
- * Generated by JsPbCodeGenerator.
208
- * @param {Array=} opt_data Optional initial data array, typically from a
209
- * server response, or constructed directly in Javascript. The array is used
210
- * in place and becomes part of the constructed object. It is not cloned.
211
- * If no data is provided, the constructed object will be empty, but still
212
- * valid.
213
- * @extends {jspb.Message}
214
- * @constructor
215
- */
216
- proto.CreateLineOfApprovalResponse = function(opt_data) {
217
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
218
- };
219
- goog.inherits(proto.CreateLineOfApprovalResponse, jspb.Message);
220
- if (goog.DEBUG && !COMPILED) {
221
- /**
222
- * @public
223
- * @override
224
- */
225
- proto.CreateLineOfApprovalResponse.displayName = 'proto.CreateLineOfApprovalResponse';
226
- }
227
- /**
228
- * Generated by JsPbCodeGenerator.
229
- * @param {Array=} opt_data Optional initial data array, typically from a
230
- * server response, or constructed directly in Javascript. The array is used
231
- * in place and becomes part of the constructed object. It is not cloned.
232
- * If no data is provided, the constructed object will be empty, but still
233
- * valid.
234
- * @extends {jspb.Message}
235
- * @constructor
236
- */
237
- proto.UpdateLineOfApprovalResponse = function(opt_data) {
238
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
- };
240
- goog.inherits(proto.UpdateLineOfApprovalResponse, jspb.Message);
241
- if (goog.DEBUG && !COMPILED) {
242
- /**
243
- * @public
244
- * @override
245
- */
246
- proto.UpdateLineOfApprovalResponse.displayName = 'proto.UpdateLineOfApprovalResponse';
247
- }
248
- /**
249
- * Generated by JsPbCodeGenerator.
250
- * @param {Array=} opt_data Optional initial data array, typically from a
251
- * server response, or constructed directly in Javascript. The array is used
252
- * in place and becomes part of the constructed object. It is not cloned.
253
- * If no data is provided, the constructed object will be empty, but still
254
- * valid.
255
- * @extends {jspb.Message}
256
- * @constructor
257
- */
258
- proto.DeleteLineOfApprovalResponse = function(opt_data) {
259
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
260
- };
261
- goog.inherits(proto.DeleteLineOfApprovalResponse, jspb.Message);
262
- if (goog.DEBUG && !COMPILED) {
263
- /**
264
- * @public
265
- * @override
266
- */
267
- proto.DeleteLineOfApprovalResponse.displayName = 'proto.DeleteLineOfApprovalResponse';
268
- }
269
- /**
270
- * Generated by JsPbCodeGenerator.
271
- * @param {Array=} opt_data Optional initial data array, typically from a
272
- * server response, or constructed directly in Javascript. The array is used
273
- * in place and becomes part of the constructed object. It is not cloned.
274
- * If no data is provided, the constructed object will be empty, but still
275
- * valid.
276
- * @extends {jspb.Message}
277
- * @constructor
278
- */
279
- proto.GetLineOfApprovalByIdResponse = function(opt_data) {
280
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
281
- };
282
- goog.inherits(proto.GetLineOfApprovalByIdResponse, jspb.Message);
283
- if (goog.DEBUG && !COMPILED) {
284
- /**
285
- * @public
286
- * @override
287
- */
288
- proto.GetLineOfApprovalByIdResponse.displayName = 'proto.GetLineOfApprovalByIdResponse';
289
- }
290
- /**
291
- * Generated by JsPbCodeGenerator.
292
- * @param {Array=} opt_data Optional initial data array, typically from a
293
- * server response, or constructed directly in Javascript. The array is used
294
- * in place and becomes part of the constructed object. It is not cloned.
295
- * If no data is provided, the constructed object will be empty, but still
296
- * valid.
297
- * @extends {jspb.Message}
298
- * @constructor
299
- */
300
- proto.GetListLineOfApprovalResponse = function(opt_data) {
301
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListLineOfApprovalResponse.repeatedFields_, null);
302
- };
303
- goog.inherits(proto.GetListLineOfApprovalResponse, jspb.Message);
304
- if (goog.DEBUG && !COMPILED) {
305
- /**
306
- * @public
307
- * @override
308
- */
309
- proto.GetListLineOfApprovalResponse.displayName = 'proto.GetListLineOfApprovalResponse';
310
- }
311
- /**
312
- * Generated by JsPbCodeGenerator.
313
- * @param {Array=} opt_data Optional initial data array, typically from a
314
- * server response, or constructed directly in Javascript. The array is used
315
- * in place and becomes part of the constructed object. It is not cloned.
316
- * If no data is provided, the constructed object will be empty, but still
317
- * valid.
318
- * @extends {jspb.Message}
319
- * @constructor
320
- */
321
- proto.GetVendorLineOfApprovalResponse = function(opt_data) {
322
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
323
- };
324
- goog.inherits(proto.GetVendorLineOfApprovalResponse, jspb.Message);
325
- if (goog.DEBUG && !COMPILED) {
326
- /**
327
- * @public
328
- * @override
329
- */
330
- proto.GetVendorLineOfApprovalResponse.displayName = 'proto.GetVendorLineOfApprovalResponse';
331
- }
332
- /**
333
- * Generated by JsPbCodeGenerator.
334
- * @param {Array=} opt_data Optional initial data array, typically from a
335
- * server response, or constructed directly in Javascript. The array is used
336
- * in place and becomes part of the constructed object. It is not cloned.
337
- * If no data is provided, the constructed object will be empty, but still
338
- * valid.
339
- * @extends {jspb.Message}
340
- * @constructor
341
- */
342
- proto.BaseListAllLineOfApproval = function(opt_data) {
343
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
344
- };
345
- goog.inherits(proto.BaseListAllLineOfApproval, jspb.Message);
346
- if (goog.DEBUG && !COMPILED) {
347
- /**
348
- * @public
349
- * @override
350
- */
351
- proto.BaseListAllLineOfApproval.displayName = 'proto.BaseListAllLineOfApproval';
352
- }
353
- /**
354
- * Generated by JsPbCodeGenerator.
355
- * @param {Array=} opt_data Optional initial data array, typically from a
356
- * server response, or constructed directly in Javascript. The array is used
357
- * in place and becomes part of the constructed object. It is not cloned.
358
- * If no data is provided, the constructed object will be empty, but still
359
- * valid.
360
- * @extends {jspb.Message}
361
- * @constructor
362
- */
363
- proto.GetListAllLineOfApprovalResponse = function(opt_data) {
364
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListAllLineOfApprovalResponse.repeatedFields_, null);
365
- };
366
- goog.inherits(proto.GetListAllLineOfApprovalResponse, jspb.Message);
367
- if (goog.DEBUG && !COMPILED) {
368
- /**
369
- * @public
370
- * @override
371
- */
372
- proto.GetListAllLineOfApprovalResponse.displayName = 'proto.GetListAllLineOfApprovalResponse';
373
- }
374
-
375
-
376
-
377
- if (jspb.Message.GENERATE_TO_OBJECT) {
378
- /**
379
- * Creates an object representation of this proto.
380
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
381
- * Optional fields that are not set will be set to undefined.
382
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
383
- * For the list of reserved names please see:
384
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
385
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
386
- * JSPB instance for transitional soy proto support:
387
- * http://goto/soy-param-migration
388
- * @return {!Object}
389
- */
390
- proto.LineOfApproval.prototype.toObject = function(opt_includeInstance) {
391
- return proto.LineOfApproval.toObject(opt_includeInstance, this);
392
- };
393
-
394
-
395
- /**
396
- * Static version of the {@see toObject} method.
397
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
398
- * the JSPB instance for transitional soy proto support:
399
- * http://goto/soy-param-migration
400
- * @param {!proto.LineOfApproval} msg The msg instance to transform.
401
- * @return {!Object}
402
- * @suppress {unusedLocalVariables} f is only used for nested messages
403
- */
404
- proto.LineOfApproval.toObject = function(includeInstance, msg) {
405
- var f, obj = {
406
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
407
- workflowRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
408
- documentRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
409
- employeesRefId: jspb.Message.getFieldWithDefault(msg, 4, ""),
410
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
411
- referencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
412
- createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
413
- updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
414
- documentType: jspb.Message.getFieldWithDefault(msg, 9, ""),
415
- employees: (f = msg.getEmployees()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
416
- approvalNote: jspb.Message.getFieldWithDefault(msg, 11, ""),
417
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 12, ""),
418
- groupReference: jspb.Message.getFieldWithDefault(msg, 13, ""),
419
- sequence: jspb.Message.getFieldWithDefault(msg, 14, 0),
420
- editAccess: jspb.Message.getFieldWithDefault(msg, 15, "")
421
- };
422
-
423
- if (includeInstance) {
424
- obj.$jspbMessageInstance = msg;
425
- }
426
- return obj;
427
- };
428
- }
429
-
430
-
431
- /**
432
- * Deserializes binary data (in protobuf wire format).
433
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
434
- * @return {!proto.LineOfApproval}
435
- */
436
- proto.LineOfApproval.deserializeBinary = function(bytes) {
437
- var reader = new jspb.BinaryReader(bytes);
438
- var msg = new proto.LineOfApproval;
439
- return proto.LineOfApproval.deserializeBinaryFromReader(msg, reader);
440
- };
441
-
442
-
443
- /**
444
- * Deserializes binary data (in protobuf wire format) from the
445
- * given reader into the given message object.
446
- * @param {!proto.LineOfApproval} msg The message object to deserialize into.
447
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
448
- * @return {!proto.LineOfApproval}
449
- */
450
- proto.LineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
451
- while (reader.nextField()) {
452
- if (reader.isEndGroup()) {
453
- break;
454
- }
455
- var field = reader.getFieldNumber();
456
- switch (field) {
457
- case 1:
458
- var value = /** @type {number} */ (reader.readInt32());
459
- msg.setId(value);
460
- break;
461
- case 2:
462
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
463
- msg.setWorkflowRef(value);
464
- break;
465
- case 3:
466
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
467
- msg.setDocumentRef(value);
468
- break;
469
- case 4:
470
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
471
- msg.setEmployeesRefId(value);
472
- break;
473
- case 5:
474
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
475
- msg.setStatus(value);
476
- break;
477
- case 6:
478
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
479
- msg.setReferencesId(value);
480
- break;
481
- case 7:
482
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
483
- msg.setCreatedAt(value);
484
- break;
485
- case 8:
486
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
487
- msg.setUpdatedAt(value);
488
- break;
489
- case 9:
490
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
491
- msg.setDocumentType(value);
492
- break;
493
- case 10:
494
- var value = new prisca_v1_core_employee_employee_pb.Employee;
495
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
496
- msg.setEmployees(value);
497
- break;
498
- case 11:
499
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
500
- msg.setApprovalNote(value);
501
- break;
502
- case 12:
503
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
504
- msg.setCompaniesReferencesId(value);
505
- break;
506
- case 13:
507
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
508
- msg.setGroupReference(value);
509
- break;
510
- case 14:
511
- var value = /** @type {number} */ (reader.readInt32());
512
- msg.setSequence(value);
513
- break;
514
- case 15:
515
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
516
- msg.setEditAccess(value);
517
- break;
518
- default:
519
- reader.skipField();
520
- break;
521
- }
522
- }
523
- return msg;
524
- };
525
-
526
-
527
- /**
528
- * Serializes the message to binary data (in protobuf wire format).
529
- * @return {!Uint8Array}
530
- */
531
- proto.LineOfApproval.prototype.serializeBinary = function() {
532
- var writer = new jspb.BinaryWriter();
533
- proto.LineOfApproval.serializeBinaryToWriter(this, writer);
534
- return writer.getResultBuffer();
535
- };
536
-
537
-
538
- /**
539
- * Serializes the given message to binary data (in protobuf wire
540
- * format), writing to the given BinaryWriter.
541
- * @param {!proto.LineOfApproval} message
542
- * @param {!jspb.BinaryWriter} writer
543
- * @suppress {unusedLocalVariables} f is only used for nested messages
544
- */
545
- proto.LineOfApproval.serializeBinaryToWriter = function(message, writer) {
546
- var f = undefined;
547
- f = message.getId();
548
- if (f !== 0) {
549
- writer.writeInt32(
550
- 1,
551
- f
552
- );
553
- }
554
- f = message.getWorkflowRef();
555
- if (f.length > 0) {
556
- writer.writeString(
557
- 2,
558
- f
559
- );
560
- }
561
- f = message.getDocumentRef();
562
- if (f.length > 0) {
563
- writer.writeString(
564
- 3,
565
- f
566
- );
567
- }
568
- f = message.getEmployeesRefId();
569
- if (f.length > 0) {
570
- writer.writeString(
571
- 4,
572
- f
573
- );
574
- }
575
- f = message.getStatus();
576
- if (f.length > 0) {
577
- writer.writeString(
578
- 5,
579
- f
580
- );
581
- }
582
- f = message.getReferencesId();
583
- if (f.length > 0) {
584
- writer.writeString(
585
- 6,
586
- f
587
- );
588
- }
589
- f = message.getCreatedAt();
590
- if (f.length > 0) {
591
- writer.writeString(
592
- 7,
593
- f
594
- );
595
- }
596
- f = message.getUpdatedAt();
597
- if (f.length > 0) {
598
- writer.writeString(
599
- 8,
600
- f
601
- );
602
- }
603
- f = message.getDocumentType();
604
- if (f.length > 0) {
605
- writer.writeString(
606
- 9,
607
- f
608
- );
609
- }
610
- f = message.getEmployees();
611
- if (f != null) {
612
- writer.writeMessage(
613
- 10,
614
- f,
615
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
616
- );
617
- }
618
- f = message.getApprovalNote();
619
- if (f.length > 0) {
620
- writer.writeString(
621
- 11,
622
- f
623
- );
624
- }
625
- f = message.getCompaniesReferencesId();
626
- if (f.length > 0) {
627
- writer.writeString(
628
- 12,
629
- f
630
- );
631
- }
632
- f = message.getGroupReference();
633
- if (f.length > 0) {
634
- writer.writeString(
635
- 13,
636
- f
637
- );
638
- }
639
- f = message.getSequence();
640
- if (f !== 0) {
641
- writer.writeInt32(
642
- 14,
643
- f
644
- );
645
- }
646
- f = message.getEditAccess();
647
- if (f.length > 0) {
648
- writer.writeString(
649
- 15,
650
- f
651
- );
652
- }
653
- };
654
-
655
-
656
- /**
657
- * optional int32 id = 1;
658
- * @return {number}
659
- */
660
- proto.LineOfApproval.prototype.getId = function() {
661
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
662
- };
663
-
664
-
665
- /**
666
- * @param {number} value
667
- * @return {!proto.LineOfApproval} returns this
668
- */
669
- proto.LineOfApproval.prototype.setId = function(value) {
670
- return jspb.Message.setProto3IntField(this, 1, value);
671
- };
672
-
673
-
674
- /**
675
- * optional string workflow_ref = 2;
676
- * @return {string}
677
- */
678
- proto.LineOfApproval.prototype.getWorkflowRef = function() {
679
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
680
- };
681
-
682
-
683
- /**
684
- * @param {string} value
685
- * @return {!proto.LineOfApproval} returns this
686
- */
687
- proto.LineOfApproval.prototype.setWorkflowRef = function(value) {
688
- return jspb.Message.setProto3StringField(this, 2, value);
689
- };
690
-
691
-
692
- /**
693
- * optional string document_ref = 3;
694
- * @return {string}
695
- */
696
- proto.LineOfApproval.prototype.getDocumentRef = function() {
697
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
698
- };
699
-
700
-
701
- /**
702
- * @param {string} value
703
- * @return {!proto.LineOfApproval} returns this
704
- */
705
- proto.LineOfApproval.prototype.setDocumentRef = function(value) {
706
- return jspb.Message.setProto3StringField(this, 3, value);
707
- };
708
-
709
-
710
- /**
711
- * optional string employees_ref_id = 4;
712
- * @return {string}
713
- */
714
- proto.LineOfApproval.prototype.getEmployeesRefId = function() {
715
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
716
- };
717
-
718
-
719
- /**
720
- * @param {string} value
721
- * @return {!proto.LineOfApproval} returns this
722
- */
723
- proto.LineOfApproval.prototype.setEmployeesRefId = function(value) {
724
- return jspb.Message.setProto3StringField(this, 4, value);
725
- };
726
-
727
-
728
- /**
729
- * optional string status = 5;
730
- * @return {string}
731
- */
732
- proto.LineOfApproval.prototype.getStatus = function() {
733
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
734
- };
735
-
736
-
737
- /**
738
- * @param {string} value
739
- * @return {!proto.LineOfApproval} returns this
740
- */
741
- proto.LineOfApproval.prototype.setStatus = function(value) {
742
- return jspb.Message.setProto3StringField(this, 5, value);
743
- };
744
-
745
-
746
- /**
747
- * optional string references_id = 6;
748
- * @return {string}
749
- */
750
- proto.LineOfApproval.prototype.getReferencesId = function() {
751
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
752
- };
753
-
754
-
755
- /**
756
- * @param {string} value
757
- * @return {!proto.LineOfApproval} returns this
758
- */
759
- proto.LineOfApproval.prototype.setReferencesId = function(value) {
760
- return jspb.Message.setProto3StringField(this, 6, value);
761
- };
762
-
763
-
764
- /**
765
- * optional string created_at = 7;
766
- * @return {string}
767
- */
768
- proto.LineOfApproval.prototype.getCreatedAt = function() {
769
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
770
- };
771
-
772
-
773
- /**
774
- * @param {string} value
775
- * @return {!proto.LineOfApproval} returns this
776
- */
777
- proto.LineOfApproval.prototype.setCreatedAt = function(value) {
778
- return jspb.Message.setProto3StringField(this, 7, value);
779
- };
780
-
781
-
782
- /**
783
- * optional string updated_at = 8;
784
- * @return {string}
785
- */
786
- proto.LineOfApproval.prototype.getUpdatedAt = function() {
787
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
788
- };
789
-
790
-
791
- /**
792
- * @param {string} value
793
- * @return {!proto.LineOfApproval} returns this
794
- */
795
- proto.LineOfApproval.prototype.setUpdatedAt = function(value) {
796
- return jspb.Message.setProto3StringField(this, 8, value);
797
- };
798
-
799
-
800
- /**
801
- * optional string document_type = 9;
802
- * @return {string}
803
- */
804
- proto.LineOfApproval.prototype.getDocumentType = function() {
805
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
806
- };
807
-
808
-
809
- /**
810
- * @param {string} value
811
- * @return {!proto.LineOfApproval} returns this
812
- */
813
- proto.LineOfApproval.prototype.setDocumentType = function(value) {
814
- return jspb.Message.setProto3StringField(this, 9, value);
815
- };
816
-
817
-
818
- /**
819
- * optional Employee employees = 10;
820
- * @return {?proto.Employee}
821
- */
822
- proto.LineOfApproval.prototype.getEmployees = function() {
823
- return /** @type{?proto.Employee} */ (
824
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 10));
825
- };
826
-
827
-
828
- /**
829
- * @param {?proto.Employee|undefined} value
830
- * @return {!proto.LineOfApproval} returns this
831
- */
832
- proto.LineOfApproval.prototype.setEmployees = function(value) {
833
- return jspb.Message.setWrapperField(this, 10, value);
834
- };
835
-
836
-
837
- /**
838
- * Clears the message field making it undefined.
839
- * @return {!proto.LineOfApproval} returns this
840
- */
841
- proto.LineOfApproval.prototype.clearEmployees = function() {
842
- return this.setEmployees(undefined);
843
- };
844
-
845
-
846
- /**
847
- * Returns whether this field is set.
848
- * @return {boolean}
849
- */
850
- proto.LineOfApproval.prototype.hasEmployees = function() {
851
- return jspb.Message.getField(this, 10) != null;
852
- };
853
-
854
-
855
- /**
856
- * optional string approval_note = 11;
857
- * @return {string}
858
- */
859
- proto.LineOfApproval.prototype.getApprovalNote = function() {
860
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
861
- };
862
-
863
-
864
- /**
865
- * @param {string} value
866
- * @return {!proto.LineOfApproval} returns this
867
- */
868
- proto.LineOfApproval.prototype.setApprovalNote = function(value) {
869
- return jspb.Message.setProto3StringField(this, 11, value);
870
- };
871
-
872
-
873
- /**
874
- * optional string companies_references_id = 12;
875
- * @return {string}
876
- */
877
- proto.LineOfApproval.prototype.getCompaniesReferencesId = function() {
878
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
879
- };
880
-
881
-
882
- /**
883
- * @param {string} value
884
- * @return {!proto.LineOfApproval} returns this
885
- */
886
- proto.LineOfApproval.prototype.setCompaniesReferencesId = function(value) {
887
- return jspb.Message.setProto3StringField(this, 12, value);
888
- };
889
-
890
-
891
- /**
892
- * optional string group_reference = 13;
893
- * @return {string}
894
- */
895
- proto.LineOfApproval.prototype.getGroupReference = function() {
896
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
897
- };
898
-
899
-
900
- /**
901
- * @param {string} value
902
- * @return {!proto.LineOfApproval} returns this
903
- */
904
- proto.LineOfApproval.prototype.setGroupReference = function(value) {
905
- return jspb.Message.setProto3StringField(this, 13, value);
906
- };
907
-
908
-
909
- /**
910
- * optional int32 sequence = 14;
911
- * @return {number}
912
- */
913
- proto.LineOfApproval.prototype.getSequence = function() {
914
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
915
- };
916
-
917
-
918
- /**
919
- * @param {number} value
920
- * @return {!proto.LineOfApproval} returns this
921
- */
922
- proto.LineOfApproval.prototype.setSequence = function(value) {
923
- return jspb.Message.setProto3IntField(this, 14, value);
924
- };
925
-
926
-
927
- /**
928
- * optional string edit_access = 15;
929
- * @return {string}
930
- */
931
- proto.LineOfApproval.prototype.getEditAccess = function() {
932
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
933
- };
934
-
935
-
936
- /**
937
- * @param {string} value
938
- * @return {!proto.LineOfApproval} returns this
939
- */
940
- proto.LineOfApproval.prototype.setEditAccess = function(value) {
941
- return jspb.Message.setProto3StringField(this, 15, value);
942
- };
943
-
944
-
945
-
946
-
947
-
948
- if (jspb.Message.GENERATE_TO_OBJECT) {
949
- /**
950
- * Creates an object representation of this proto.
951
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
952
- * Optional fields that are not set will be set to undefined.
953
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
954
- * For the list of reserved names please see:
955
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
956
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
957
- * JSPB instance for transitional soy proto support:
958
- * http://goto/soy-param-migration
959
- * @return {!Object}
960
- */
961
- proto.VendorLineOfApproval.prototype.toObject = function(opt_includeInstance) {
962
- return proto.VendorLineOfApproval.toObject(opt_includeInstance, this);
963
- };
964
-
965
-
966
- /**
967
- * Static version of the {@see toObject} method.
968
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
969
- * the JSPB instance for transitional soy proto support:
970
- * http://goto/soy-param-migration
971
- * @param {!proto.VendorLineOfApproval} msg The msg instance to transform.
972
- * @return {!Object}
973
- * @suppress {unusedLocalVariables} f is only used for nested messages
974
- */
975
- proto.VendorLineOfApproval.toObject = function(includeInstance, msg) {
976
- var f, obj = {
977
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
978
- vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
979
- isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
980
- };
981
-
982
- if (includeInstance) {
983
- obj.$jspbMessageInstance = msg;
984
- }
985
- return obj;
986
- };
987
- }
988
-
989
-
990
- /**
991
- * Deserializes binary data (in protobuf wire format).
992
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
993
- * @return {!proto.VendorLineOfApproval}
994
- */
995
- proto.VendorLineOfApproval.deserializeBinary = function(bytes) {
996
- var reader = new jspb.BinaryReader(bytes);
997
- var msg = new proto.VendorLineOfApproval;
998
- return proto.VendorLineOfApproval.deserializeBinaryFromReader(msg, reader);
999
- };
1000
-
1001
-
1002
- /**
1003
- * Deserializes binary data (in protobuf wire format) from the
1004
- * given reader into the given message object.
1005
- * @param {!proto.VendorLineOfApproval} msg The message object to deserialize into.
1006
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1007
- * @return {!proto.VendorLineOfApproval}
1008
- */
1009
- proto.VendorLineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
1010
- while (reader.nextField()) {
1011
- if (reader.isEndGroup()) {
1012
- break;
1013
- }
1014
- var field = reader.getFieldNumber();
1015
- switch (field) {
1016
- case 1:
1017
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1018
- msg.setReferencesId(value);
1019
- break;
1020
- case 2:
1021
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1022
- msg.setVendorReferencesId(value);
1023
- break;
1024
- case 3:
1025
- var value = /** @type {boolean} */ (reader.readBool());
1026
- msg.setIsExpired(value);
1027
- break;
1028
- default:
1029
- reader.skipField();
1030
- break;
1031
- }
1032
- }
1033
- return msg;
1034
- };
1035
-
1036
-
1037
- /**
1038
- * Serializes the message to binary data (in protobuf wire format).
1039
- * @return {!Uint8Array}
1040
- */
1041
- proto.VendorLineOfApproval.prototype.serializeBinary = function() {
1042
- var writer = new jspb.BinaryWriter();
1043
- proto.VendorLineOfApproval.serializeBinaryToWriter(this, writer);
1044
- return writer.getResultBuffer();
1045
- };
1046
-
1047
-
1048
- /**
1049
- * Serializes the given message to binary data (in protobuf wire
1050
- * format), writing to the given BinaryWriter.
1051
- * @param {!proto.VendorLineOfApproval} message
1052
- * @param {!jspb.BinaryWriter} writer
1053
- * @suppress {unusedLocalVariables} f is only used for nested messages
1054
- */
1055
- proto.VendorLineOfApproval.serializeBinaryToWriter = function(message, writer) {
1056
- var f = undefined;
1057
- f = message.getReferencesId();
1058
- if (f.length > 0) {
1059
- writer.writeString(
1060
- 1,
1061
- f
1062
- );
1063
- }
1064
- f = message.getVendorReferencesId();
1065
- if (f.length > 0) {
1066
- writer.writeString(
1067
- 2,
1068
- f
1069
- );
1070
- }
1071
- f = message.getIsExpired();
1072
- if (f) {
1073
- writer.writeBool(
1074
- 3,
1075
- f
1076
- );
1077
- }
1078
- };
1079
-
1080
-
1081
- /**
1082
- * optional string references_id = 1;
1083
- * @return {string}
1084
- */
1085
- proto.VendorLineOfApproval.prototype.getReferencesId = function() {
1086
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1087
- };
1088
-
1089
-
1090
- /**
1091
- * @param {string} value
1092
- * @return {!proto.VendorLineOfApproval} returns this
1093
- */
1094
- proto.VendorLineOfApproval.prototype.setReferencesId = function(value) {
1095
- return jspb.Message.setProto3StringField(this, 1, value);
1096
- };
1097
-
1098
-
1099
- /**
1100
- * optional string vendor_references_id = 2;
1101
- * @return {string}
1102
- */
1103
- proto.VendorLineOfApproval.prototype.getVendorReferencesId = function() {
1104
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1105
- };
1106
-
1107
-
1108
- /**
1109
- * @param {string} value
1110
- * @return {!proto.VendorLineOfApproval} returns this
1111
- */
1112
- proto.VendorLineOfApproval.prototype.setVendorReferencesId = function(value) {
1113
- return jspb.Message.setProto3StringField(this, 2, value);
1114
- };
1115
-
1116
-
1117
- /**
1118
- * optional bool is_expired = 3;
1119
- * @return {boolean}
1120
- */
1121
- proto.VendorLineOfApproval.prototype.getIsExpired = function() {
1122
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1123
- };
1124
-
1125
-
1126
- /**
1127
- * @param {boolean} value
1128
- * @return {!proto.VendorLineOfApproval} returns this
1129
- */
1130
- proto.VendorLineOfApproval.prototype.setIsExpired = function(value) {
1131
- return jspb.Message.setProto3BooleanField(this, 3, value);
1132
- };
1133
-
1134
-
1135
-
1136
-
1137
-
1138
- if (jspb.Message.GENERATE_TO_OBJECT) {
1139
- /**
1140
- * Creates an object representation of this proto.
1141
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1142
- * Optional fields that are not set will be set to undefined.
1143
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1144
- * For the list of reserved names please see:
1145
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1146
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1147
- * JSPB instance for transitional soy proto support:
1148
- * http://goto/soy-param-migration
1149
- * @return {!Object}
1150
- */
1151
- proto.BaseLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1152
- return proto.BaseLineOfApprovalRequest.toObject(opt_includeInstance, this);
1153
- };
1154
-
1155
-
1156
- /**
1157
- * Static version of the {@see toObject} method.
1158
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1159
- * the JSPB instance for transitional soy proto support:
1160
- * http://goto/soy-param-migration
1161
- * @param {!proto.BaseLineOfApprovalRequest} msg The msg instance to transform.
1162
- * @return {!Object}
1163
- * @suppress {unusedLocalVariables} f is only used for nested messages
1164
- */
1165
- proto.BaseLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1166
- var f, obj = {
1167
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
1168
- approvalNote: jspb.Message.getFieldWithDefault(msg, 2, "")
1169
- };
1170
-
1171
- if (includeInstance) {
1172
- obj.$jspbMessageInstance = msg;
1173
- }
1174
- return obj;
1175
- };
1176
- }
1177
-
1178
-
1179
- /**
1180
- * Deserializes binary data (in protobuf wire format).
1181
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1182
- * @return {!proto.BaseLineOfApprovalRequest}
1183
- */
1184
- proto.BaseLineOfApprovalRequest.deserializeBinary = function(bytes) {
1185
- var reader = new jspb.BinaryReader(bytes);
1186
- var msg = new proto.BaseLineOfApprovalRequest;
1187
- return proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1188
- };
1189
-
1190
-
1191
- /**
1192
- * Deserializes binary data (in protobuf wire format) from the
1193
- * given reader into the given message object.
1194
- * @param {!proto.BaseLineOfApprovalRequest} msg The message object to deserialize into.
1195
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1196
- * @return {!proto.BaseLineOfApprovalRequest}
1197
- */
1198
- proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1199
- while (reader.nextField()) {
1200
- if (reader.isEndGroup()) {
1201
- break;
1202
- }
1203
- var field = reader.getFieldNumber();
1204
- switch (field) {
1205
- case 1:
1206
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1207
- msg.setStatus(value);
1208
- break;
1209
- case 2:
1210
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1211
- msg.setApprovalNote(value);
1212
- break;
1213
- default:
1214
- reader.skipField();
1215
- break;
1216
- }
1217
- }
1218
- return msg;
1219
- };
1220
-
1221
-
1222
- /**
1223
- * Serializes the message to binary data (in protobuf wire format).
1224
- * @return {!Uint8Array}
1225
- */
1226
- proto.BaseLineOfApprovalRequest.prototype.serializeBinary = function() {
1227
- var writer = new jspb.BinaryWriter();
1228
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1229
- return writer.getResultBuffer();
1230
- };
1231
-
1232
-
1233
- /**
1234
- * Serializes the given message to binary data (in protobuf wire
1235
- * format), writing to the given BinaryWriter.
1236
- * @param {!proto.BaseLineOfApprovalRequest} message
1237
- * @param {!jspb.BinaryWriter} writer
1238
- * @suppress {unusedLocalVariables} f is only used for nested messages
1239
- */
1240
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1241
- var f = undefined;
1242
- f = message.getStatus();
1243
- if (f.length > 0) {
1244
- writer.writeString(
1245
- 1,
1246
- f
1247
- );
1248
- }
1249
- f = message.getApprovalNote();
1250
- if (f.length > 0) {
1251
- writer.writeString(
1252
- 2,
1253
- f
1254
- );
1255
- }
1256
- };
1257
-
1258
-
1259
- /**
1260
- * optional string status = 1;
1261
- * @return {string}
1262
- */
1263
- proto.BaseLineOfApprovalRequest.prototype.getStatus = function() {
1264
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1265
- };
1266
-
1267
-
1268
- /**
1269
- * @param {string} value
1270
- * @return {!proto.BaseLineOfApprovalRequest} returns this
1271
- */
1272
- proto.BaseLineOfApprovalRequest.prototype.setStatus = function(value) {
1273
- return jspb.Message.setProto3StringField(this, 1, value);
1274
- };
1275
-
1276
-
1277
- /**
1278
- * optional string approval_note = 2;
1279
- * @return {string}
1280
- */
1281
- proto.BaseLineOfApprovalRequest.prototype.getApprovalNote = function() {
1282
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1283
- };
1284
-
1285
-
1286
- /**
1287
- * @param {string} value
1288
- * @return {!proto.BaseLineOfApprovalRequest} returns this
1289
- */
1290
- proto.BaseLineOfApprovalRequest.prototype.setApprovalNote = function(value) {
1291
- return jspb.Message.setProto3StringField(this, 2, value);
1292
- };
1293
-
1294
-
1295
-
1296
-
1297
-
1298
- if (jspb.Message.GENERATE_TO_OBJECT) {
1299
- /**
1300
- * Creates an object representation of this proto.
1301
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1302
- * Optional fields that are not set will be set to undefined.
1303
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1304
- * For the list of reserved names please see:
1305
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1306
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1307
- * JSPB instance for transitional soy proto support:
1308
- * http://goto/soy-param-migration
1309
- * @return {!Object}
1310
- */
1311
- proto.CreateLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1312
- return proto.CreateLineOfApprovalRequest.toObject(opt_includeInstance, this);
1313
- };
1314
-
1315
-
1316
- /**
1317
- * Static version of the {@see toObject} method.
1318
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1319
- * the JSPB instance for transitional soy proto support:
1320
- * http://goto/soy-param-migration
1321
- * @param {!proto.CreateLineOfApprovalRequest} msg The msg instance to transform.
1322
- * @return {!Object}
1323
- * @suppress {unusedLocalVariables} f is only used for nested messages
1324
- */
1325
- proto.CreateLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1326
- var f, obj = {
1327
- baseLineOfApproval: (f = msg.getBaseLineOfApproval()) && proto.BaseLineOfApprovalRequest.toObject(includeInstance, f)
1328
- };
1329
-
1330
- if (includeInstance) {
1331
- obj.$jspbMessageInstance = msg;
1332
- }
1333
- return obj;
1334
- };
1335
- }
1336
-
1337
-
1338
- /**
1339
- * Deserializes binary data (in protobuf wire format).
1340
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1341
- * @return {!proto.CreateLineOfApprovalRequest}
1342
- */
1343
- proto.CreateLineOfApprovalRequest.deserializeBinary = function(bytes) {
1344
- var reader = new jspb.BinaryReader(bytes);
1345
- var msg = new proto.CreateLineOfApprovalRequest;
1346
- return proto.CreateLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1347
- };
1348
-
1349
-
1350
- /**
1351
- * Deserializes binary data (in protobuf wire format) from the
1352
- * given reader into the given message object.
1353
- * @param {!proto.CreateLineOfApprovalRequest} msg The message object to deserialize into.
1354
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1355
- * @return {!proto.CreateLineOfApprovalRequest}
1356
- */
1357
- proto.CreateLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1358
- while (reader.nextField()) {
1359
- if (reader.isEndGroup()) {
1360
- break;
1361
- }
1362
- var field = reader.getFieldNumber();
1363
- switch (field) {
1364
- case 1:
1365
- var value = new proto.BaseLineOfApprovalRequest;
1366
- reader.readMessage(value,proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader);
1367
- msg.setBaseLineOfApproval(value);
1368
- break;
1369
- default:
1370
- reader.skipField();
1371
- break;
1372
- }
1373
- }
1374
- return msg;
1375
- };
1376
-
1377
-
1378
- /**
1379
- * Serializes the message to binary data (in protobuf wire format).
1380
- * @return {!Uint8Array}
1381
- */
1382
- proto.CreateLineOfApprovalRequest.prototype.serializeBinary = function() {
1383
- var writer = new jspb.BinaryWriter();
1384
- proto.CreateLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1385
- return writer.getResultBuffer();
1386
- };
1387
-
1388
-
1389
- /**
1390
- * Serializes the given message to binary data (in protobuf wire
1391
- * format), writing to the given BinaryWriter.
1392
- * @param {!proto.CreateLineOfApprovalRequest} message
1393
- * @param {!jspb.BinaryWriter} writer
1394
- * @suppress {unusedLocalVariables} f is only used for nested messages
1395
- */
1396
- proto.CreateLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1397
- var f = undefined;
1398
- f = message.getBaseLineOfApproval();
1399
- if (f != null) {
1400
- writer.writeMessage(
1401
- 1,
1402
- f,
1403
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter
1404
- );
1405
- }
1406
- };
1407
-
1408
-
1409
- /**
1410
- * optional BaseLineOfApprovalRequest base_line_of_approval = 1;
1411
- * @return {?proto.BaseLineOfApprovalRequest}
1412
- */
1413
- proto.CreateLineOfApprovalRequest.prototype.getBaseLineOfApproval = function() {
1414
- return /** @type{?proto.BaseLineOfApprovalRequest} */ (
1415
- jspb.Message.getWrapperField(this, proto.BaseLineOfApprovalRequest, 1));
1416
- };
1417
-
1418
-
1419
- /**
1420
- * @param {?proto.BaseLineOfApprovalRequest|undefined} value
1421
- * @return {!proto.CreateLineOfApprovalRequest} returns this
1422
- */
1423
- proto.CreateLineOfApprovalRequest.prototype.setBaseLineOfApproval = function(value) {
1424
- return jspb.Message.setWrapperField(this, 1, value);
1425
- };
1426
-
1427
-
1428
- /**
1429
- * Clears the message field making it undefined.
1430
- * @return {!proto.CreateLineOfApprovalRequest} returns this
1431
- */
1432
- proto.CreateLineOfApprovalRequest.prototype.clearBaseLineOfApproval = function() {
1433
- return this.setBaseLineOfApproval(undefined);
1434
- };
1435
-
1436
-
1437
- /**
1438
- * Returns whether this field is set.
1439
- * @return {boolean}
1440
- */
1441
- proto.CreateLineOfApprovalRequest.prototype.hasBaseLineOfApproval = function() {
1442
- return jspb.Message.getField(this, 1) != null;
1443
- };
1444
-
1445
-
1446
-
1447
-
1448
-
1449
- if (jspb.Message.GENERATE_TO_OBJECT) {
1450
- /**
1451
- * Creates an object representation of this proto.
1452
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1453
- * Optional fields that are not set will be set to undefined.
1454
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1455
- * For the list of reserved names please see:
1456
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1457
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1458
- * JSPB instance for transitional soy proto support:
1459
- * http://goto/soy-param-migration
1460
- * @return {!Object}
1461
- */
1462
- proto.UpdateLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1463
- return proto.UpdateLineOfApprovalRequest.toObject(opt_includeInstance, this);
1464
- };
1465
-
1466
-
1467
- /**
1468
- * Static version of the {@see toObject} method.
1469
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1470
- * the JSPB instance for transitional soy proto support:
1471
- * http://goto/soy-param-migration
1472
- * @param {!proto.UpdateLineOfApprovalRequest} msg The msg instance to transform.
1473
- * @return {!Object}
1474
- * @suppress {unusedLocalVariables} f is only used for nested messages
1475
- */
1476
- proto.UpdateLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1477
- var f, obj = {
1478
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1479
- baseLineOfApproval: (f = msg.getBaseLineOfApproval()) && proto.BaseLineOfApprovalRequest.toObject(includeInstance, f)
1480
- };
1481
-
1482
- if (includeInstance) {
1483
- obj.$jspbMessageInstance = msg;
1484
- }
1485
- return obj;
1486
- };
1487
- }
1488
-
1489
-
1490
- /**
1491
- * Deserializes binary data (in protobuf wire format).
1492
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1493
- * @return {!proto.UpdateLineOfApprovalRequest}
1494
- */
1495
- proto.UpdateLineOfApprovalRequest.deserializeBinary = function(bytes) {
1496
- var reader = new jspb.BinaryReader(bytes);
1497
- var msg = new proto.UpdateLineOfApprovalRequest;
1498
- return proto.UpdateLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1499
- };
1500
-
1501
-
1502
- /**
1503
- * Deserializes binary data (in protobuf wire format) from the
1504
- * given reader into the given message object.
1505
- * @param {!proto.UpdateLineOfApprovalRequest} msg The message object to deserialize into.
1506
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1507
- * @return {!proto.UpdateLineOfApprovalRequest}
1508
- */
1509
- proto.UpdateLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1510
- while (reader.nextField()) {
1511
- if (reader.isEndGroup()) {
1512
- break;
1513
- }
1514
- var field = reader.getFieldNumber();
1515
- switch (field) {
1516
- case 1:
1517
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1518
- msg.setReferencesId(value);
1519
- break;
1520
- case 2:
1521
- var value = new proto.BaseLineOfApprovalRequest;
1522
- reader.readMessage(value,proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader);
1523
- msg.setBaseLineOfApproval(value);
1524
- break;
1525
- default:
1526
- reader.skipField();
1527
- break;
1528
- }
1529
- }
1530
- return msg;
1531
- };
1532
-
1533
-
1534
- /**
1535
- * Serializes the message to binary data (in protobuf wire format).
1536
- * @return {!Uint8Array}
1537
- */
1538
- proto.UpdateLineOfApprovalRequest.prototype.serializeBinary = function() {
1539
- var writer = new jspb.BinaryWriter();
1540
- proto.UpdateLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1541
- return writer.getResultBuffer();
1542
- };
1543
-
1544
-
1545
- /**
1546
- * Serializes the given message to binary data (in protobuf wire
1547
- * format), writing to the given BinaryWriter.
1548
- * @param {!proto.UpdateLineOfApprovalRequest} message
1549
- * @param {!jspb.BinaryWriter} writer
1550
- * @suppress {unusedLocalVariables} f is only used for nested messages
1551
- */
1552
- proto.UpdateLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1553
- var f = undefined;
1554
- f = message.getReferencesId();
1555
- if (f.length > 0) {
1556
- writer.writeString(
1557
- 1,
1558
- f
1559
- );
1560
- }
1561
- f = message.getBaseLineOfApproval();
1562
- if (f != null) {
1563
- writer.writeMessage(
1564
- 2,
1565
- f,
1566
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter
1567
- );
1568
- }
1569
- };
1570
-
1571
-
1572
- /**
1573
- * optional string references_id = 1;
1574
- * @return {string}
1575
- */
1576
- proto.UpdateLineOfApprovalRequest.prototype.getReferencesId = function() {
1577
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1578
- };
1579
-
1580
-
1581
- /**
1582
- * @param {string} value
1583
- * @return {!proto.UpdateLineOfApprovalRequest} returns this
1584
- */
1585
- proto.UpdateLineOfApprovalRequest.prototype.setReferencesId = function(value) {
1586
- return jspb.Message.setProto3StringField(this, 1, value);
1587
- };
1588
-
1589
-
1590
- /**
1591
- * optional BaseLineOfApprovalRequest base_line_of_approval = 2;
1592
- * @return {?proto.BaseLineOfApprovalRequest}
1593
- */
1594
- proto.UpdateLineOfApprovalRequest.prototype.getBaseLineOfApproval = function() {
1595
- return /** @type{?proto.BaseLineOfApprovalRequest} */ (
1596
- jspb.Message.getWrapperField(this, proto.BaseLineOfApprovalRequest, 2));
1597
- };
1598
-
1599
-
1600
- /**
1601
- * @param {?proto.BaseLineOfApprovalRequest|undefined} value
1602
- * @return {!proto.UpdateLineOfApprovalRequest} returns this
1603
- */
1604
- proto.UpdateLineOfApprovalRequest.prototype.setBaseLineOfApproval = function(value) {
1605
- return jspb.Message.setWrapperField(this, 2, value);
1606
- };
1607
-
1608
-
1609
- /**
1610
- * Clears the message field making it undefined.
1611
- * @return {!proto.UpdateLineOfApprovalRequest} returns this
1612
- */
1613
- proto.UpdateLineOfApprovalRequest.prototype.clearBaseLineOfApproval = function() {
1614
- return this.setBaseLineOfApproval(undefined);
1615
- };
1616
-
1617
-
1618
- /**
1619
- * Returns whether this field is set.
1620
- * @return {boolean}
1621
- */
1622
- proto.UpdateLineOfApprovalRequest.prototype.hasBaseLineOfApproval = function() {
1623
- return jspb.Message.getField(this, 2) != null;
1624
- };
1625
-
1626
-
1627
-
1628
-
1629
-
1630
- if (jspb.Message.GENERATE_TO_OBJECT) {
1631
- /**
1632
- * Creates an object representation of this proto.
1633
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1634
- * Optional fields that are not set will be set to undefined.
1635
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1636
- * For the list of reserved names please see:
1637
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1638
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1639
- * JSPB instance for transitional soy proto support:
1640
- * http://goto/soy-param-migration
1641
- * @return {!Object}
1642
- */
1643
- proto.DeleteLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1644
- return proto.DeleteLineOfApprovalRequest.toObject(opt_includeInstance, this);
1645
- };
1646
-
1647
-
1648
- /**
1649
- * Static version of the {@see toObject} method.
1650
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1651
- * the JSPB instance for transitional soy proto support:
1652
- * http://goto/soy-param-migration
1653
- * @param {!proto.DeleteLineOfApprovalRequest} msg The msg instance to transform.
1654
- * @return {!Object}
1655
- * @suppress {unusedLocalVariables} f is only used for nested messages
1656
- */
1657
- proto.DeleteLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1658
- var f, obj = {
1659
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1660
- };
1661
-
1662
- if (includeInstance) {
1663
- obj.$jspbMessageInstance = msg;
1664
- }
1665
- return obj;
1666
- };
1667
- }
1668
-
1669
-
1670
- /**
1671
- * Deserializes binary data (in protobuf wire format).
1672
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1673
- * @return {!proto.DeleteLineOfApprovalRequest}
1674
- */
1675
- proto.DeleteLineOfApprovalRequest.deserializeBinary = function(bytes) {
1676
- var reader = new jspb.BinaryReader(bytes);
1677
- var msg = new proto.DeleteLineOfApprovalRequest;
1678
- return proto.DeleteLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1679
- };
1680
-
1681
-
1682
- /**
1683
- * Deserializes binary data (in protobuf wire format) from the
1684
- * given reader into the given message object.
1685
- * @param {!proto.DeleteLineOfApprovalRequest} msg The message object to deserialize into.
1686
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1687
- * @return {!proto.DeleteLineOfApprovalRequest}
1688
- */
1689
- proto.DeleteLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1690
- while (reader.nextField()) {
1691
- if (reader.isEndGroup()) {
1692
- break;
1693
- }
1694
- var field = reader.getFieldNumber();
1695
- switch (field) {
1696
- case 1:
1697
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1698
- msg.setReferencesId(value);
1699
- break;
1700
- default:
1701
- reader.skipField();
1702
- break;
1703
- }
1704
- }
1705
- return msg;
1706
- };
1707
-
1708
-
1709
- /**
1710
- * Serializes the message to binary data (in protobuf wire format).
1711
- * @return {!Uint8Array}
1712
- */
1713
- proto.DeleteLineOfApprovalRequest.prototype.serializeBinary = function() {
1714
- var writer = new jspb.BinaryWriter();
1715
- proto.DeleteLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1716
- return writer.getResultBuffer();
1717
- };
1718
-
1719
-
1720
- /**
1721
- * Serializes the given message to binary data (in protobuf wire
1722
- * format), writing to the given BinaryWriter.
1723
- * @param {!proto.DeleteLineOfApprovalRequest} message
1724
- * @param {!jspb.BinaryWriter} writer
1725
- * @suppress {unusedLocalVariables} f is only used for nested messages
1726
- */
1727
- proto.DeleteLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1728
- var f = undefined;
1729
- f = message.getReferencesId();
1730
- if (f.length > 0) {
1731
- writer.writeString(
1732
- 1,
1733
- f
1734
- );
1735
- }
1736
- };
1737
-
1738
-
1739
- /**
1740
- * optional string references_id = 1;
1741
- * @return {string}
1742
- */
1743
- proto.DeleteLineOfApprovalRequest.prototype.getReferencesId = function() {
1744
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1745
- };
1746
-
1747
-
1748
- /**
1749
- * @param {string} value
1750
- * @return {!proto.DeleteLineOfApprovalRequest} returns this
1751
- */
1752
- proto.DeleteLineOfApprovalRequest.prototype.setReferencesId = function(value) {
1753
- return jspb.Message.setProto3StringField(this, 1, value);
1754
- };
1755
-
1756
-
1757
-
1758
-
1759
-
1760
- if (jspb.Message.GENERATE_TO_OBJECT) {
1761
- /**
1762
- * Creates an object representation of this proto.
1763
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1764
- * Optional fields that are not set will be set to undefined.
1765
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1766
- * For the list of reserved names please see:
1767
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1768
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1769
- * JSPB instance for transitional soy proto support:
1770
- * http://goto/soy-param-migration
1771
- * @return {!Object}
1772
- */
1773
- proto.GetLineOfApprovalByIdRequest.prototype.toObject = function(opt_includeInstance) {
1774
- return proto.GetLineOfApprovalByIdRequest.toObject(opt_includeInstance, this);
1775
- };
1776
-
1777
-
1778
- /**
1779
- * Static version of the {@see toObject} method.
1780
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1781
- * the JSPB instance for transitional soy proto support:
1782
- * http://goto/soy-param-migration
1783
- * @param {!proto.GetLineOfApprovalByIdRequest} msg The msg instance to transform.
1784
- * @return {!Object}
1785
- * @suppress {unusedLocalVariables} f is only used for nested messages
1786
- */
1787
- proto.GetLineOfApprovalByIdRequest.toObject = function(includeInstance, msg) {
1788
- var f, obj = {
1789
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1790
- };
1791
-
1792
- if (includeInstance) {
1793
- obj.$jspbMessageInstance = msg;
1794
- }
1795
- return obj;
1796
- };
1797
- }
1798
-
1799
-
1800
- /**
1801
- * Deserializes binary data (in protobuf wire format).
1802
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1803
- * @return {!proto.GetLineOfApprovalByIdRequest}
1804
- */
1805
- proto.GetLineOfApprovalByIdRequest.deserializeBinary = function(bytes) {
1806
- var reader = new jspb.BinaryReader(bytes);
1807
- var msg = new proto.GetLineOfApprovalByIdRequest;
1808
- return proto.GetLineOfApprovalByIdRequest.deserializeBinaryFromReader(msg, reader);
1809
- };
1810
-
1811
-
1812
- /**
1813
- * Deserializes binary data (in protobuf wire format) from the
1814
- * given reader into the given message object.
1815
- * @param {!proto.GetLineOfApprovalByIdRequest} msg The message object to deserialize into.
1816
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1817
- * @return {!proto.GetLineOfApprovalByIdRequest}
1818
- */
1819
- proto.GetLineOfApprovalByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1820
- while (reader.nextField()) {
1821
- if (reader.isEndGroup()) {
1822
- break;
1823
- }
1824
- var field = reader.getFieldNumber();
1825
- switch (field) {
1826
- case 1:
1827
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
1828
- msg.setReferencesId(value);
1829
- break;
1830
- default:
1831
- reader.skipField();
1832
- break;
1833
- }
1834
- }
1835
- return msg;
1836
- };
1837
-
1838
-
1839
- /**
1840
- * Serializes the message to binary data (in protobuf wire format).
1841
- * @return {!Uint8Array}
1842
- */
1843
- proto.GetLineOfApprovalByIdRequest.prototype.serializeBinary = function() {
1844
- var writer = new jspb.BinaryWriter();
1845
- proto.GetLineOfApprovalByIdRequest.serializeBinaryToWriter(this, writer);
1846
- return writer.getResultBuffer();
1847
- };
1848
-
1849
-
1850
- /**
1851
- * Serializes the given message to binary data (in protobuf wire
1852
- * format), writing to the given BinaryWriter.
1853
- * @param {!proto.GetLineOfApprovalByIdRequest} message
1854
- * @param {!jspb.BinaryWriter} writer
1855
- * @suppress {unusedLocalVariables} f is only used for nested messages
1856
- */
1857
- proto.GetLineOfApprovalByIdRequest.serializeBinaryToWriter = function(message, writer) {
1858
- var f = undefined;
1859
- f = message.getReferencesId();
1860
- if (f.length > 0) {
1861
- writer.writeString(
1862
- 1,
1863
- f
1864
- );
1865
- }
1866
- };
1867
-
1868
-
1869
- /**
1870
- * optional string references_id = 1;
1871
- * @return {string}
1872
- */
1873
- proto.GetLineOfApprovalByIdRequest.prototype.getReferencesId = function() {
1874
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1875
- };
1876
-
1877
-
1878
- /**
1879
- * @param {string} value
1880
- * @return {!proto.GetLineOfApprovalByIdRequest} returns this
1881
- */
1882
- proto.GetLineOfApprovalByIdRequest.prototype.setReferencesId = function(value) {
1883
- return jspb.Message.setProto3StringField(this, 1, value);
1884
- };
1885
-
1886
-
1887
-
1888
-
1889
-
1890
- if (jspb.Message.GENERATE_TO_OBJECT) {
1891
- /**
1892
- * Creates an object representation of this proto.
1893
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1894
- * Optional fields that are not set will be set to undefined.
1895
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1896
- * For the list of reserved names please see:
1897
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1898
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1899
- * JSPB instance for transitional soy proto support:
1900
- * http://goto/soy-param-migration
1901
- * @return {!Object}
1902
- */
1903
- proto.GetListLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1904
- return proto.GetListLineOfApprovalRequest.toObject(opt_includeInstance, this);
1905
- };
1906
-
1907
-
1908
- /**
1909
- * Static version of the {@see toObject} method.
1910
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1911
- * the JSPB instance for transitional soy proto support:
1912
- * http://goto/soy-param-migration
1913
- * @param {!proto.GetListLineOfApprovalRequest} msg The msg instance to transform.
1914
- * @return {!Object}
1915
- * @suppress {unusedLocalVariables} f is only used for nested messages
1916
- */
1917
- proto.GetListLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1918
- var f, obj = {
1919
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1920
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1921
- };
1922
-
1923
- if (includeInstance) {
1924
- obj.$jspbMessageInstance = msg;
1925
- }
1926
- return obj;
1927
- };
1928
- }
1929
-
1930
-
1931
- /**
1932
- * Deserializes binary data (in protobuf wire format).
1933
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1934
- * @return {!proto.GetListLineOfApprovalRequest}
1935
- */
1936
- proto.GetListLineOfApprovalRequest.deserializeBinary = function(bytes) {
1937
- var reader = new jspb.BinaryReader(bytes);
1938
- var msg = new proto.GetListLineOfApprovalRequest;
1939
- return proto.GetListLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1940
- };
1941
-
1942
-
1943
- /**
1944
- * Deserializes binary data (in protobuf wire format) from the
1945
- * given reader into the given message object.
1946
- * @param {!proto.GetListLineOfApprovalRequest} msg The message object to deserialize into.
1947
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1948
- * @return {!proto.GetListLineOfApprovalRequest}
1949
- */
1950
- proto.GetListLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1951
- while (reader.nextField()) {
1952
- if (reader.isEndGroup()) {
1953
- break;
1954
- }
1955
- var field = reader.getFieldNumber();
1956
- switch (field) {
1957
- case 1:
1958
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1959
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1960
- msg.setPagination(value);
1961
- break;
1962
- case 2:
1963
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1964
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1965
- msg.setQuery(value);
1966
- break;
1967
- default:
1968
- reader.skipField();
1969
- break;
1970
- }
1971
- }
1972
- return msg;
1973
- };
1974
-
1975
-
1976
- /**
1977
- * Serializes the message to binary data (in protobuf wire format).
1978
- * @return {!Uint8Array}
1979
- */
1980
- proto.GetListLineOfApprovalRequest.prototype.serializeBinary = function() {
1981
- var writer = new jspb.BinaryWriter();
1982
- proto.GetListLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1983
- return writer.getResultBuffer();
1984
- };
1985
-
1986
-
1987
- /**
1988
- * Serializes the given message to binary data (in protobuf wire
1989
- * format), writing to the given BinaryWriter.
1990
- * @param {!proto.GetListLineOfApprovalRequest} message
1991
- * @param {!jspb.BinaryWriter} writer
1992
- * @suppress {unusedLocalVariables} f is only used for nested messages
1993
- */
1994
- proto.GetListLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1995
- var f = undefined;
1996
- f = message.getPagination();
1997
- if (f != null) {
1998
- writer.writeMessage(
1999
- 1,
2000
- f,
2001
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2002
- );
2003
- }
2004
- f = message.getQuery();
2005
- if (f != null) {
2006
- writer.writeMessage(
2007
- 2,
2008
- f,
2009
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2010
- );
2011
- }
2012
- };
2013
-
2014
-
2015
- /**
2016
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2017
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2018
- */
2019
- proto.GetListLineOfApprovalRequest.prototype.getPagination = function() {
2020
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2021
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2022
- };
2023
-
2024
-
2025
- /**
2026
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2027
- * @return {!proto.GetListLineOfApprovalRequest} returns this
2028
- */
2029
- proto.GetListLineOfApprovalRequest.prototype.setPagination = function(value) {
2030
- return jspb.Message.setWrapperField(this, 1, value);
2031
- };
2032
-
2033
-
2034
- /**
2035
- * Clears the message field making it undefined.
2036
- * @return {!proto.GetListLineOfApprovalRequest} returns this
2037
- */
2038
- proto.GetListLineOfApprovalRequest.prototype.clearPagination = function() {
2039
- return this.setPagination(undefined);
2040
- };
2041
-
2042
-
2043
- /**
2044
- * Returns whether this field is set.
2045
- * @return {boolean}
2046
- */
2047
- proto.GetListLineOfApprovalRequest.prototype.hasPagination = function() {
2048
- return jspb.Message.getField(this, 1) != null;
2049
- };
2050
-
2051
-
2052
- /**
2053
- * optional prisca.v1.global.meta.FilterRequest query = 2;
2054
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
2055
- */
2056
- proto.GetListLineOfApprovalRequest.prototype.getQuery = function() {
2057
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2058
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2059
- };
2060
-
2061
-
2062
- /**
2063
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2064
- * @return {!proto.GetListLineOfApprovalRequest} returns this
2065
- */
2066
- proto.GetListLineOfApprovalRequest.prototype.setQuery = function(value) {
2067
- return jspb.Message.setWrapperField(this, 2, value);
2068
- };
2069
-
2070
-
2071
- /**
2072
- * Clears the message field making it undefined.
2073
- * @return {!proto.GetListLineOfApprovalRequest} returns this
2074
- */
2075
- proto.GetListLineOfApprovalRequest.prototype.clearQuery = function() {
2076
- return this.setQuery(undefined);
2077
- };
2078
-
2079
-
2080
- /**
2081
- * Returns whether this field is set.
2082
- * @return {boolean}
2083
- */
2084
- proto.GetListLineOfApprovalRequest.prototype.hasQuery = function() {
2085
- return jspb.Message.getField(this, 2) != null;
2086
- };
2087
-
2088
-
2089
-
2090
-
2091
-
2092
- if (jspb.Message.GENERATE_TO_OBJECT) {
2093
- /**
2094
- * Creates an object representation of this proto.
2095
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2096
- * Optional fields that are not set will be set to undefined.
2097
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2098
- * For the list of reserved names please see:
2099
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2100
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2101
- * JSPB instance for transitional soy proto support:
2102
- * http://goto/soy-param-migration
2103
- * @return {!Object}
2104
- */
2105
- proto.CreateLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
2106
- return proto.CreateLineOfApprovalResponse.toObject(opt_includeInstance, this);
2107
- };
2108
-
2109
-
2110
- /**
2111
- * Static version of the {@see toObject} method.
2112
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2113
- * the JSPB instance for transitional soy proto support:
2114
- * http://goto/soy-param-migration
2115
- * @param {!proto.CreateLineOfApprovalResponse} msg The msg instance to transform.
2116
- * @return {!Object}
2117
- * @suppress {unusedLocalVariables} f is only used for nested messages
2118
- */
2119
- proto.CreateLineOfApprovalResponse.toObject = function(includeInstance, msg) {
2120
- var f, obj = {
2121
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
2122
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2123
- };
2124
-
2125
- if (includeInstance) {
2126
- obj.$jspbMessageInstance = msg;
2127
- }
2128
- return obj;
2129
- };
2130
- }
2131
-
2132
-
2133
- /**
2134
- * Deserializes binary data (in protobuf wire format).
2135
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2136
- * @return {!proto.CreateLineOfApprovalResponse}
2137
- */
2138
- proto.CreateLineOfApprovalResponse.deserializeBinary = function(bytes) {
2139
- var reader = new jspb.BinaryReader(bytes);
2140
- var msg = new proto.CreateLineOfApprovalResponse;
2141
- return proto.CreateLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
2142
- };
2143
-
2144
-
2145
- /**
2146
- * Deserializes binary data (in protobuf wire format) from the
2147
- * given reader into the given message object.
2148
- * @param {!proto.CreateLineOfApprovalResponse} msg The message object to deserialize into.
2149
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2150
- * @return {!proto.CreateLineOfApprovalResponse}
2151
- */
2152
- proto.CreateLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
2153
- while (reader.nextField()) {
2154
- if (reader.isEndGroup()) {
2155
- break;
2156
- }
2157
- var field = reader.getFieldNumber();
2158
- switch (field) {
2159
- case 1:
2160
- var value = new proto.LineOfApproval;
2161
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
2162
- msg.setLineOfApproval(value);
2163
- break;
2164
- case 2:
2165
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2166
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2167
- msg.setMeta(value);
2168
- break;
2169
- default:
2170
- reader.skipField();
2171
- break;
2172
- }
2173
- }
2174
- return msg;
2175
- };
2176
-
2177
-
2178
- /**
2179
- * Serializes the message to binary data (in protobuf wire format).
2180
- * @return {!Uint8Array}
2181
- */
2182
- proto.CreateLineOfApprovalResponse.prototype.serializeBinary = function() {
2183
- var writer = new jspb.BinaryWriter();
2184
- proto.CreateLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
2185
- return writer.getResultBuffer();
2186
- };
2187
-
2188
-
2189
- /**
2190
- * Serializes the given message to binary data (in protobuf wire
2191
- * format), writing to the given BinaryWriter.
2192
- * @param {!proto.CreateLineOfApprovalResponse} message
2193
- * @param {!jspb.BinaryWriter} writer
2194
- * @suppress {unusedLocalVariables} f is only used for nested messages
2195
- */
2196
- proto.CreateLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2197
- var f = undefined;
2198
- f = message.getLineOfApproval();
2199
- if (f != null) {
2200
- writer.writeMessage(
2201
- 1,
2202
- f,
2203
- proto.LineOfApproval.serializeBinaryToWriter
2204
- );
2205
- }
2206
- f = message.getMeta();
2207
- if (f != null) {
2208
- writer.writeMessage(
2209
- 2,
2210
- f,
2211
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2212
- );
2213
- }
2214
- };
2215
-
2216
-
2217
- /**
2218
- * optional LineOfApproval line_of_approval = 1;
2219
- * @return {?proto.LineOfApproval}
2220
- */
2221
- proto.CreateLineOfApprovalResponse.prototype.getLineOfApproval = function() {
2222
- return /** @type{?proto.LineOfApproval} */ (
2223
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
2224
- };
2225
-
2226
-
2227
- /**
2228
- * @param {?proto.LineOfApproval|undefined} value
2229
- * @return {!proto.CreateLineOfApprovalResponse} returns this
2230
- */
2231
- proto.CreateLineOfApprovalResponse.prototype.setLineOfApproval = function(value) {
2232
- return jspb.Message.setWrapperField(this, 1, value);
2233
- };
2234
-
2235
-
2236
- /**
2237
- * Clears the message field making it undefined.
2238
- * @return {!proto.CreateLineOfApprovalResponse} returns this
2239
- */
2240
- proto.CreateLineOfApprovalResponse.prototype.clearLineOfApproval = function() {
2241
- return this.setLineOfApproval(undefined);
2242
- };
2243
-
2244
-
2245
- /**
2246
- * Returns whether this field is set.
2247
- * @return {boolean}
2248
- */
2249
- proto.CreateLineOfApprovalResponse.prototype.hasLineOfApproval = function() {
2250
- return jspb.Message.getField(this, 1) != null;
2251
- };
2252
-
2253
-
2254
- /**
2255
- * optional prisca.v1.global.meta.Meta meta = 2;
2256
- * @return {?proto.prisca.v1.global.meta.Meta}
2257
- */
2258
- proto.CreateLineOfApprovalResponse.prototype.getMeta = function() {
2259
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2260
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2261
- };
2262
-
2263
-
2264
- /**
2265
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2266
- * @return {!proto.CreateLineOfApprovalResponse} returns this
2267
- */
2268
- proto.CreateLineOfApprovalResponse.prototype.setMeta = function(value) {
2269
- return jspb.Message.setWrapperField(this, 2, value);
2270
- };
2271
-
2272
-
2273
- /**
2274
- * Clears the message field making it undefined.
2275
- * @return {!proto.CreateLineOfApprovalResponse} returns this
2276
- */
2277
- proto.CreateLineOfApprovalResponse.prototype.clearMeta = function() {
2278
- return this.setMeta(undefined);
2279
- };
2280
-
2281
-
2282
- /**
2283
- * Returns whether this field is set.
2284
- * @return {boolean}
2285
- */
2286
- proto.CreateLineOfApprovalResponse.prototype.hasMeta = function() {
2287
- return jspb.Message.getField(this, 2) != null;
2288
- };
2289
-
2290
-
2291
-
2292
-
2293
-
2294
- if (jspb.Message.GENERATE_TO_OBJECT) {
2295
- /**
2296
- * Creates an object representation of this proto.
2297
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2298
- * Optional fields that are not set will be set to undefined.
2299
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2300
- * For the list of reserved names please see:
2301
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2302
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2303
- * JSPB instance for transitional soy proto support:
2304
- * http://goto/soy-param-migration
2305
- * @return {!Object}
2306
- */
2307
- proto.UpdateLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
2308
- return proto.UpdateLineOfApprovalResponse.toObject(opt_includeInstance, this);
2309
- };
2310
-
2311
-
2312
- /**
2313
- * Static version of the {@see toObject} method.
2314
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2315
- * the JSPB instance for transitional soy proto support:
2316
- * http://goto/soy-param-migration
2317
- * @param {!proto.UpdateLineOfApprovalResponse} msg The msg instance to transform.
2318
- * @return {!Object}
2319
- * @suppress {unusedLocalVariables} f is only used for nested messages
2320
- */
2321
- proto.UpdateLineOfApprovalResponse.toObject = function(includeInstance, msg) {
2322
- var f, obj = {
2323
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
2324
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2325
- };
2326
-
2327
- if (includeInstance) {
2328
- obj.$jspbMessageInstance = msg;
2329
- }
2330
- return obj;
2331
- };
2332
- }
2333
-
2334
-
2335
- /**
2336
- * Deserializes binary data (in protobuf wire format).
2337
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2338
- * @return {!proto.UpdateLineOfApprovalResponse}
2339
- */
2340
- proto.UpdateLineOfApprovalResponse.deserializeBinary = function(bytes) {
2341
- var reader = new jspb.BinaryReader(bytes);
2342
- var msg = new proto.UpdateLineOfApprovalResponse;
2343
- return proto.UpdateLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
2344
- };
2345
-
2346
-
2347
- /**
2348
- * Deserializes binary data (in protobuf wire format) from the
2349
- * given reader into the given message object.
2350
- * @param {!proto.UpdateLineOfApprovalResponse} msg The message object to deserialize into.
2351
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2352
- * @return {!proto.UpdateLineOfApprovalResponse}
2353
- */
2354
- proto.UpdateLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
2355
- while (reader.nextField()) {
2356
- if (reader.isEndGroup()) {
2357
- break;
2358
- }
2359
- var field = reader.getFieldNumber();
2360
- switch (field) {
2361
- case 1:
2362
- var value = new proto.LineOfApproval;
2363
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
2364
- msg.setLineOfApproval(value);
2365
- break;
2366
- case 2:
2367
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2368
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2369
- msg.setMeta(value);
2370
- break;
2371
- default:
2372
- reader.skipField();
2373
- break;
2374
- }
2375
- }
2376
- return msg;
2377
- };
2378
-
2379
-
2380
- /**
2381
- * Serializes the message to binary data (in protobuf wire format).
2382
- * @return {!Uint8Array}
2383
- */
2384
- proto.UpdateLineOfApprovalResponse.prototype.serializeBinary = function() {
2385
- var writer = new jspb.BinaryWriter();
2386
- proto.UpdateLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
2387
- return writer.getResultBuffer();
2388
- };
2389
-
2390
-
2391
- /**
2392
- * Serializes the given message to binary data (in protobuf wire
2393
- * format), writing to the given BinaryWriter.
2394
- * @param {!proto.UpdateLineOfApprovalResponse} message
2395
- * @param {!jspb.BinaryWriter} writer
2396
- * @suppress {unusedLocalVariables} f is only used for nested messages
2397
- */
2398
- proto.UpdateLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2399
- var f = undefined;
2400
- f = message.getLineOfApproval();
2401
- if (f != null) {
2402
- writer.writeMessage(
2403
- 1,
2404
- f,
2405
- proto.LineOfApproval.serializeBinaryToWriter
2406
- );
2407
- }
2408
- f = message.getMeta();
2409
- if (f != null) {
2410
- writer.writeMessage(
2411
- 2,
2412
- f,
2413
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2414
- );
2415
- }
2416
- };
2417
-
2418
-
2419
- /**
2420
- * optional LineOfApproval line_of_approval = 1;
2421
- * @return {?proto.LineOfApproval}
2422
- */
2423
- proto.UpdateLineOfApprovalResponse.prototype.getLineOfApproval = function() {
2424
- return /** @type{?proto.LineOfApproval} */ (
2425
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
2426
- };
2427
-
2428
-
2429
- /**
2430
- * @param {?proto.LineOfApproval|undefined} value
2431
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2432
- */
2433
- proto.UpdateLineOfApprovalResponse.prototype.setLineOfApproval = function(value) {
2434
- return jspb.Message.setWrapperField(this, 1, value);
2435
- };
2436
-
2437
-
2438
- /**
2439
- * Clears the message field making it undefined.
2440
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2441
- */
2442
- proto.UpdateLineOfApprovalResponse.prototype.clearLineOfApproval = function() {
2443
- return this.setLineOfApproval(undefined);
2444
- };
2445
-
2446
-
2447
- /**
2448
- * Returns whether this field is set.
2449
- * @return {boolean}
2450
- */
2451
- proto.UpdateLineOfApprovalResponse.prototype.hasLineOfApproval = function() {
2452
- return jspb.Message.getField(this, 1) != null;
2453
- };
2454
-
2455
-
2456
- /**
2457
- * optional prisca.v1.global.meta.Meta meta = 2;
2458
- * @return {?proto.prisca.v1.global.meta.Meta}
2459
- */
2460
- proto.UpdateLineOfApprovalResponse.prototype.getMeta = function() {
2461
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2462
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2463
- };
2464
-
2465
-
2466
- /**
2467
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2468
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2469
- */
2470
- proto.UpdateLineOfApprovalResponse.prototype.setMeta = function(value) {
2471
- return jspb.Message.setWrapperField(this, 2, value);
2472
- };
2473
-
2474
-
2475
- /**
2476
- * Clears the message field making it undefined.
2477
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2478
- */
2479
- proto.UpdateLineOfApprovalResponse.prototype.clearMeta = function() {
2480
- return this.setMeta(undefined);
2481
- };
2482
-
2483
-
2484
- /**
2485
- * Returns whether this field is set.
2486
- * @return {boolean}
2487
- */
2488
- proto.UpdateLineOfApprovalResponse.prototype.hasMeta = function() {
2489
- return jspb.Message.getField(this, 2) != null;
2490
- };
2491
-
2492
-
2493
-
2494
-
2495
-
2496
- if (jspb.Message.GENERATE_TO_OBJECT) {
2497
- /**
2498
- * Creates an object representation of this proto.
2499
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2500
- * Optional fields that are not set will be set to undefined.
2501
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2502
- * For the list of reserved names please see:
2503
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2504
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2505
- * JSPB instance for transitional soy proto support:
2506
- * http://goto/soy-param-migration
2507
- * @return {!Object}
2508
- */
2509
- proto.DeleteLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
2510
- return proto.DeleteLineOfApprovalResponse.toObject(opt_includeInstance, this);
2511
- };
2512
-
2513
-
2514
- /**
2515
- * Static version of the {@see toObject} method.
2516
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2517
- * the JSPB instance for transitional soy proto support:
2518
- * http://goto/soy-param-migration
2519
- * @param {!proto.DeleteLineOfApprovalResponse} msg The msg instance to transform.
2520
- * @return {!Object}
2521
- * @suppress {unusedLocalVariables} f is only used for nested messages
2522
- */
2523
- proto.DeleteLineOfApprovalResponse.toObject = function(includeInstance, msg) {
2524
- var f, obj = {
2525
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2526
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2527
- };
2528
-
2529
- if (includeInstance) {
2530
- obj.$jspbMessageInstance = msg;
2531
- }
2532
- return obj;
2533
- };
2534
- }
2535
-
2536
-
2537
- /**
2538
- * Deserializes binary data (in protobuf wire format).
2539
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2540
- * @return {!proto.DeleteLineOfApprovalResponse}
2541
- */
2542
- proto.DeleteLineOfApprovalResponse.deserializeBinary = function(bytes) {
2543
- var reader = new jspb.BinaryReader(bytes);
2544
- var msg = new proto.DeleteLineOfApprovalResponse;
2545
- return proto.DeleteLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
2546
- };
2547
-
2548
-
2549
- /**
2550
- * Deserializes binary data (in protobuf wire format) from the
2551
- * given reader into the given message object.
2552
- * @param {!proto.DeleteLineOfApprovalResponse} msg The message object to deserialize into.
2553
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2554
- * @return {!proto.DeleteLineOfApprovalResponse}
2555
- */
2556
- proto.DeleteLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
2557
- while (reader.nextField()) {
2558
- if (reader.isEndGroup()) {
2559
- break;
2560
- }
2561
- var field = reader.getFieldNumber();
2562
- switch (field) {
2563
- case 1:
2564
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
2565
- msg.setReferencesId(value);
2566
- break;
2567
- case 2:
2568
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2569
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2570
- msg.setMeta(value);
2571
- break;
2572
- default:
2573
- reader.skipField();
2574
- break;
2575
- }
2576
- }
2577
- return msg;
2578
- };
2579
-
2580
-
2581
- /**
2582
- * Serializes the message to binary data (in protobuf wire format).
2583
- * @return {!Uint8Array}
2584
- */
2585
- proto.DeleteLineOfApprovalResponse.prototype.serializeBinary = function() {
2586
- var writer = new jspb.BinaryWriter();
2587
- proto.DeleteLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
2588
- return writer.getResultBuffer();
2589
- };
2590
-
2591
-
2592
- /**
2593
- * Serializes the given message to binary data (in protobuf wire
2594
- * format), writing to the given BinaryWriter.
2595
- * @param {!proto.DeleteLineOfApprovalResponse} message
2596
- * @param {!jspb.BinaryWriter} writer
2597
- * @suppress {unusedLocalVariables} f is only used for nested messages
2598
- */
2599
- proto.DeleteLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2600
- var f = undefined;
2601
- f = message.getReferencesId();
2602
- if (f.length > 0) {
2603
- writer.writeString(
2604
- 1,
2605
- f
2606
- );
2607
- }
2608
- f = message.getMeta();
2609
- if (f != null) {
2610
- writer.writeMessage(
2611
- 2,
2612
- f,
2613
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2614
- );
2615
- }
2616
- };
2617
-
2618
-
2619
- /**
2620
- * optional string references_id = 1;
2621
- * @return {string}
2622
- */
2623
- proto.DeleteLineOfApprovalResponse.prototype.getReferencesId = function() {
2624
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2625
- };
2626
-
2627
-
2628
- /**
2629
- * @param {string} value
2630
- * @return {!proto.DeleteLineOfApprovalResponse} returns this
2631
- */
2632
- proto.DeleteLineOfApprovalResponse.prototype.setReferencesId = function(value) {
2633
- return jspb.Message.setProto3StringField(this, 1, value);
2634
- };
2635
-
2636
-
2637
- /**
2638
- * optional prisca.v1.global.meta.Meta meta = 2;
2639
- * @return {?proto.prisca.v1.global.meta.Meta}
2640
- */
2641
- proto.DeleteLineOfApprovalResponse.prototype.getMeta = function() {
2642
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2643
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2644
- };
2645
-
2646
-
2647
- /**
2648
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2649
- * @return {!proto.DeleteLineOfApprovalResponse} returns this
2650
- */
2651
- proto.DeleteLineOfApprovalResponse.prototype.setMeta = function(value) {
2652
- return jspb.Message.setWrapperField(this, 2, value);
2653
- };
2654
-
2655
-
2656
- /**
2657
- * Clears the message field making it undefined.
2658
- * @return {!proto.DeleteLineOfApprovalResponse} returns this
2659
- */
2660
- proto.DeleteLineOfApprovalResponse.prototype.clearMeta = function() {
2661
- return this.setMeta(undefined);
2662
- };
2663
-
2664
-
2665
- /**
2666
- * Returns whether this field is set.
2667
- * @return {boolean}
2668
- */
2669
- proto.DeleteLineOfApprovalResponse.prototype.hasMeta = function() {
2670
- return jspb.Message.getField(this, 2) != null;
2671
- };
2672
-
2673
-
2674
-
2675
-
2676
-
2677
- if (jspb.Message.GENERATE_TO_OBJECT) {
2678
- /**
2679
- * Creates an object representation of this proto.
2680
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2681
- * Optional fields that are not set will be set to undefined.
2682
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2683
- * For the list of reserved names please see:
2684
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2685
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2686
- * JSPB instance for transitional soy proto support:
2687
- * http://goto/soy-param-migration
2688
- * @return {!Object}
2689
- */
2690
- proto.GetLineOfApprovalByIdResponse.prototype.toObject = function(opt_includeInstance) {
2691
- return proto.GetLineOfApprovalByIdResponse.toObject(opt_includeInstance, this);
2692
- };
2693
-
2694
-
2695
- /**
2696
- * Static version of the {@see toObject} method.
2697
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2698
- * the JSPB instance for transitional soy proto support:
2699
- * http://goto/soy-param-migration
2700
- * @param {!proto.GetLineOfApprovalByIdResponse} msg The msg instance to transform.
2701
- * @return {!Object}
2702
- * @suppress {unusedLocalVariables} f is only used for nested messages
2703
- */
2704
- proto.GetLineOfApprovalByIdResponse.toObject = function(includeInstance, msg) {
2705
- var f, obj = {
2706
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
2707
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2708
- };
2709
-
2710
- if (includeInstance) {
2711
- obj.$jspbMessageInstance = msg;
2712
- }
2713
- return obj;
2714
- };
2715
- }
2716
-
2717
-
2718
- /**
2719
- * Deserializes binary data (in protobuf wire format).
2720
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2721
- * @return {!proto.GetLineOfApprovalByIdResponse}
2722
- */
2723
- proto.GetLineOfApprovalByIdResponse.deserializeBinary = function(bytes) {
2724
- var reader = new jspb.BinaryReader(bytes);
2725
- var msg = new proto.GetLineOfApprovalByIdResponse;
2726
- return proto.GetLineOfApprovalByIdResponse.deserializeBinaryFromReader(msg, reader);
2727
- };
2728
-
2729
-
2730
- /**
2731
- * Deserializes binary data (in protobuf wire format) from the
2732
- * given reader into the given message object.
2733
- * @param {!proto.GetLineOfApprovalByIdResponse} msg The message object to deserialize into.
2734
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2735
- * @return {!proto.GetLineOfApprovalByIdResponse}
2736
- */
2737
- proto.GetLineOfApprovalByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2738
- while (reader.nextField()) {
2739
- if (reader.isEndGroup()) {
2740
- break;
2741
- }
2742
- var field = reader.getFieldNumber();
2743
- switch (field) {
2744
- case 1:
2745
- var value = new proto.LineOfApproval;
2746
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
2747
- msg.setLineOfApproval(value);
2748
- break;
2749
- case 2:
2750
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2751
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2752
- msg.setMeta(value);
2753
- break;
2754
- default:
2755
- reader.skipField();
2756
- break;
2757
- }
2758
- }
2759
- return msg;
2760
- };
2761
-
2762
-
2763
- /**
2764
- * Serializes the message to binary data (in protobuf wire format).
2765
- * @return {!Uint8Array}
2766
- */
2767
- proto.GetLineOfApprovalByIdResponse.prototype.serializeBinary = function() {
2768
- var writer = new jspb.BinaryWriter();
2769
- proto.GetLineOfApprovalByIdResponse.serializeBinaryToWriter(this, writer);
2770
- return writer.getResultBuffer();
2771
- };
2772
-
2773
-
2774
- /**
2775
- * Serializes the given message to binary data (in protobuf wire
2776
- * format), writing to the given BinaryWriter.
2777
- * @param {!proto.GetLineOfApprovalByIdResponse} message
2778
- * @param {!jspb.BinaryWriter} writer
2779
- * @suppress {unusedLocalVariables} f is only used for nested messages
2780
- */
2781
- proto.GetLineOfApprovalByIdResponse.serializeBinaryToWriter = function(message, writer) {
2782
- var f = undefined;
2783
- f = message.getLineOfApproval();
2784
- if (f != null) {
2785
- writer.writeMessage(
2786
- 1,
2787
- f,
2788
- proto.LineOfApproval.serializeBinaryToWriter
2789
- );
2790
- }
2791
- f = message.getMeta();
2792
- if (f != null) {
2793
- writer.writeMessage(
2794
- 2,
2795
- f,
2796
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2797
- );
2798
- }
2799
- };
2800
-
2801
-
2802
- /**
2803
- * optional LineOfApproval line_of_approval = 1;
2804
- * @return {?proto.LineOfApproval}
2805
- */
2806
- proto.GetLineOfApprovalByIdResponse.prototype.getLineOfApproval = function() {
2807
- return /** @type{?proto.LineOfApproval} */ (
2808
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
2809
- };
2810
-
2811
-
2812
- /**
2813
- * @param {?proto.LineOfApproval|undefined} value
2814
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2815
- */
2816
- proto.GetLineOfApprovalByIdResponse.prototype.setLineOfApproval = function(value) {
2817
- return jspb.Message.setWrapperField(this, 1, value);
2818
- };
2819
-
2820
-
2821
- /**
2822
- * Clears the message field making it undefined.
2823
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2824
- */
2825
- proto.GetLineOfApprovalByIdResponse.prototype.clearLineOfApproval = function() {
2826
- return this.setLineOfApproval(undefined);
2827
- };
2828
-
2829
-
2830
- /**
2831
- * Returns whether this field is set.
2832
- * @return {boolean}
2833
- */
2834
- proto.GetLineOfApprovalByIdResponse.prototype.hasLineOfApproval = function() {
2835
- return jspb.Message.getField(this, 1) != null;
2836
- };
2837
-
2838
-
2839
- /**
2840
- * optional prisca.v1.global.meta.Meta meta = 2;
2841
- * @return {?proto.prisca.v1.global.meta.Meta}
2842
- */
2843
- proto.GetLineOfApprovalByIdResponse.prototype.getMeta = function() {
2844
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2845
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2846
- };
2847
-
2848
-
2849
- /**
2850
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2851
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2852
- */
2853
- proto.GetLineOfApprovalByIdResponse.prototype.setMeta = function(value) {
2854
- return jspb.Message.setWrapperField(this, 2, value);
2855
- };
2856
-
2857
-
2858
- /**
2859
- * Clears the message field making it undefined.
2860
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2861
- */
2862
- proto.GetLineOfApprovalByIdResponse.prototype.clearMeta = function() {
2863
- return this.setMeta(undefined);
2864
- };
2865
-
2866
-
2867
- /**
2868
- * Returns whether this field is set.
2869
- * @return {boolean}
2870
- */
2871
- proto.GetLineOfApprovalByIdResponse.prototype.hasMeta = function() {
2872
- return jspb.Message.getField(this, 2) != null;
2873
- };
2874
-
2875
-
2876
-
2877
- /**
2878
- * List of repeated fields within this message type.
2879
- * @private {!Array<number>}
2880
- * @const
2881
- */
2882
- proto.GetListLineOfApprovalResponse.repeatedFields_ = [1];
2883
-
2884
-
2885
-
2886
- if (jspb.Message.GENERATE_TO_OBJECT) {
2887
- /**
2888
- * Creates an object representation of this proto.
2889
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2890
- * Optional fields that are not set will be set to undefined.
2891
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2892
- * For the list of reserved names please see:
2893
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2894
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2895
- * JSPB instance for transitional soy proto support:
2896
- * http://goto/soy-param-migration
2897
- * @return {!Object}
2898
- */
2899
- proto.GetListLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
2900
- return proto.GetListLineOfApprovalResponse.toObject(opt_includeInstance, this);
2901
- };
2902
-
2903
-
2904
- /**
2905
- * Static version of the {@see toObject} method.
2906
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2907
- * the JSPB instance for transitional soy proto support:
2908
- * http://goto/soy-param-migration
2909
- * @param {!proto.GetListLineOfApprovalResponse} msg The msg instance to transform.
2910
- * @return {!Object}
2911
- * @suppress {unusedLocalVariables} f is only used for nested messages
2912
- */
2913
- proto.GetListLineOfApprovalResponse.toObject = function(includeInstance, msg) {
2914
- var f, obj = {
2915
- lineOfApprovalsList: jspb.Message.toObjectList(msg.getLineOfApprovalsList(),
2916
- proto.LineOfApproval.toObject, includeInstance),
2917
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2918
- };
2919
-
2920
- if (includeInstance) {
2921
- obj.$jspbMessageInstance = msg;
2922
- }
2923
- return obj;
2924
- };
2925
- }
2926
-
2927
-
2928
- /**
2929
- * Deserializes binary data (in protobuf wire format).
2930
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2931
- * @return {!proto.GetListLineOfApprovalResponse}
2932
- */
2933
- proto.GetListLineOfApprovalResponse.deserializeBinary = function(bytes) {
2934
- var reader = new jspb.BinaryReader(bytes);
2935
- var msg = new proto.GetListLineOfApprovalResponse;
2936
- return proto.GetListLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
2937
- };
2938
-
2939
-
2940
- /**
2941
- * Deserializes binary data (in protobuf wire format) from the
2942
- * given reader into the given message object.
2943
- * @param {!proto.GetListLineOfApprovalResponse} msg The message object to deserialize into.
2944
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2945
- * @return {!proto.GetListLineOfApprovalResponse}
2946
- */
2947
- proto.GetListLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
2948
- while (reader.nextField()) {
2949
- if (reader.isEndGroup()) {
2950
- break;
2951
- }
2952
- var field = reader.getFieldNumber();
2953
- switch (field) {
2954
- case 1:
2955
- var value = new proto.LineOfApproval;
2956
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
2957
- msg.addLineOfApprovals(value);
2958
- break;
2959
- case 2:
2960
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2961
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2962
- msg.setMeta(value);
2963
- break;
2964
- default:
2965
- reader.skipField();
2966
- break;
2967
- }
2968
- }
2969
- return msg;
2970
- };
2971
-
2972
-
2973
- /**
2974
- * Serializes the message to binary data (in protobuf wire format).
2975
- * @return {!Uint8Array}
2976
- */
2977
- proto.GetListLineOfApprovalResponse.prototype.serializeBinary = function() {
2978
- var writer = new jspb.BinaryWriter();
2979
- proto.GetListLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
2980
- return writer.getResultBuffer();
2981
- };
2982
-
2983
-
2984
- /**
2985
- * Serializes the given message to binary data (in protobuf wire
2986
- * format), writing to the given BinaryWriter.
2987
- * @param {!proto.GetListLineOfApprovalResponse} message
2988
- * @param {!jspb.BinaryWriter} writer
2989
- * @suppress {unusedLocalVariables} f is only used for nested messages
2990
- */
2991
- proto.GetListLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2992
- var f = undefined;
2993
- f = message.getLineOfApprovalsList();
2994
- if (f.length > 0) {
2995
- writer.writeRepeatedMessage(
2996
- 1,
2997
- f,
2998
- proto.LineOfApproval.serializeBinaryToWriter
2999
- );
3000
- }
3001
- f = message.getMeta();
3002
- if (f != null) {
3003
- writer.writeMessage(
3004
- 2,
3005
- f,
3006
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3007
- );
3008
- }
3009
- };
3010
-
3011
-
3012
- /**
3013
- * repeated LineOfApproval line_of_approvals = 1;
3014
- * @return {!Array<!proto.LineOfApproval>}
3015
- */
3016
- proto.GetListLineOfApprovalResponse.prototype.getLineOfApprovalsList = function() {
3017
- return /** @type{!Array<!proto.LineOfApproval>} */ (
3018
- jspb.Message.getRepeatedWrapperField(this, proto.LineOfApproval, 1));
3019
- };
3020
-
3021
-
3022
- /**
3023
- * @param {!Array<!proto.LineOfApproval>} value
3024
- * @return {!proto.GetListLineOfApprovalResponse} returns this
3025
- */
3026
- proto.GetListLineOfApprovalResponse.prototype.setLineOfApprovalsList = function(value) {
3027
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3028
- };
3029
-
3030
-
3031
- /**
3032
- * @param {!proto.LineOfApproval=} opt_value
3033
- * @param {number=} opt_index
3034
- * @return {!proto.LineOfApproval}
3035
- */
3036
- proto.GetListLineOfApprovalResponse.prototype.addLineOfApprovals = function(opt_value, opt_index) {
3037
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.LineOfApproval, opt_index);
3038
- };
3039
-
3040
-
3041
- /**
3042
- * Clears the list making it empty but non-null.
3043
- * @return {!proto.GetListLineOfApprovalResponse} returns this
3044
- */
3045
- proto.GetListLineOfApprovalResponse.prototype.clearLineOfApprovalsList = function() {
3046
- return this.setLineOfApprovalsList([]);
3047
- };
3048
-
3049
-
3050
- /**
3051
- * optional prisca.v1.global.meta.Meta meta = 2;
3052
- * @return {?proto.prisca.v1.global.meta.Meta}
3053
- */
3054
- proto.GetListLineOfApprovalResponse.prototype.getMeta = function() {
3055
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3056
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3057
- };
3058
-
3059
-
3060
- /**
3061
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3062
- * @return {!proto.GetListLineOfApprovalResponse} returns this
3063
- */
3064
- proto.GetListLineOfApprovalResponse.prototype.setMeta = function(value) {
3065
- return jspb.Message.setWrapperField(this, 2, value);
3066
- };
3067
-
3068
-
3069
- /**
3070
- * Clears the message field making it undefined.
3071
- * @return {!proto.GetListLineOfApprovalResponse} returns this
3072
- */
3073
- proto.GetListLineOfApprovalResponse.prototype.clearMeta = function() {
3074
- return this.setMeta(undefined);
3075
- };
3076
-
3077
-
3078
- /**
3079
- * Returns whether this field is set.
3080
- * @return {boolean}
3081
- */
3082
- proto.GetListLineOfApprovalResponse.prototype.hasMeta = function() {
3083
- return jspb.Message.getField(this, 2) != null;
3084
- };
3085
-
3086
-
3087
-
3088
-
3089
-
3090
- if (jspb.Message.GENERATE_TO_OBJECT) {
3091
- /**
3092
- * Creates an object representation of this proto.
3093
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3094
- * Optional fields that are not set will be set to undefined.
3095
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3096
- * For the list of reserved names please see:
3097
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3098
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3099
- * JSPB instance for transitional soy proto support:
3100
- * http://goto/soy-param-migration
3101
- * @return {!Object}
3102
- */
3103
- proto.GetVendorLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
3104
- return proto.GetVendorLineOfApprovalResponse.toObject(opt_includeInstance, this);
3105
- };
3106
-
3107
-
3108
- /**
3109
- * Static version of the {@see toObject} method.
3110
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3111
- * the JSPB instance for transitional soy proto support:
3112
- * http://goto/soy-param-migration
3113
- * @param {!proto.GetVendorLineOfApprovalResponse} msg The msg instance to transform.
3114
- * @return {!Object}
3115
- * @suppress {unusedLocalVariables} f is only used for nested messages
3116
- */
3117
- proto.GetVendorLineOfApprovalResponse.toObject = function(includeInstance, msg) {
3118
- var f, obj = {
3119
- vendorLineOfApproval: (f = msg.getVendorLineOfApproval()) && proto.VendorLineOfApproval.toObject(includeInstance, f),
3120
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3121
- };
3122
-
3123
- if (includeInstance) {
3124
- obj.$jspbMessageInstance = msg;
3125
- }
3126
- return obj;
3127
- };
3128
- }
3129
-
3130
-
3131
- /**
3132
- * Deserializes binary data (in protobuf wire format).
3133
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3134
- * @return {!proto.GetVendorLineOfApprovalResponse}
3135
- */
3136
- proto.GetVendorLineOfApprovalResponse.deserializeBinary = function(bytes) {
3137
- var reader = new jspb.BinaryReader(bytes);
3138
- var msg = new proto.GetVendorLineOfApprovalResponse;
3139
- return proto.GetVendorLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
3140
- };
3141
-
3142
-
3143
- /**
3144
- * Deserializes binary data (in protobuf wire format) from the
3145
- * given reader into the given message object.
3146
- * @param {!proto.GetVendorLineOfApprovalResponse} msg The message object to deserialize into.
3147
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3148
- * @return {!proto.GetVendorLineOfApprovalResponse}
3149
- */
3150
- proto.GetVendorLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
3151
- while (reader.nextField()) {
3152
- if (reader.isEndGroup()) {
3153
- break;
3154
- }
3155
- var field = reader.getFieldNumber();
3156
- switch (field) {
3157
- case 1:
3158
- var value = new proto.VendorLineOfApproval;
3159
- reader.readMessage(value,proto.VendorLineOfApproval.deserializeBinaryFromReader);
3160
- msg.setVendorLineOfApproval(value);
3161
- break;
3162
- case 2:
3163
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3164
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3165
- msg.setMeta(value);
3166
- break;
3167
- default:
3168
- reader.skipField();
3169
- break;
3170
- }
3171
- }
3172
- return msg;
3173
- };
3174
-
3175
-
3176
- /**
3177
- * Serializes the message to binary data (in protobuf wire format).
3178
- * @return {!Uint8Array}
3179
- */
3180
- proto.GetVendorLineOfApprovalResponse.prototype.serializeBinary = function() {
3181
- var writer = new jspb.BinaryWriter();
3182
- proto.GetVendorLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
3183
- return writer.getResultBuffer();
3184
- };
3185
-
3186
-
3187
- /**
3188
- * Serializes the given message to binary data (in protobuf wire
3189
- * format), writing to the given BinaryWriter.
3190
- * @param {!proto.GetVendorLineOfApprovalResponse} message
3191
- * @param {!jspb.BinaryWriter} writer
3192
- * @suppress {unusedLocalVariables} f is only used for nested messages
3193
- */
3194
- proto.GetVendorLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
3195
- var f = undefined;
3196
- f = message.getVendorLineOfApproval();
3197
- if (f != null) {
3198
- writer.writeMessage(
3199
- 1,
3200
- f,
3201
- proto.VendorLineOfApproval.serializeBinaryToWriter
3202
- );
3203
- }
3204
- f = message.getMeta();
3205
- if (f != null) {
3206
- writer.writeMessage(
3207
- 2,
3208
- f,
3209
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3210
- );
3211
- }
3212
- };
3213
-
3214
-
3215
- /**
3216
- * optional VendorLineOfApproval vendor_line_of_approval = 1;
3217
- * @return {?proto.VendorLineOfApproval}
3218
- */
3219
- proto.GetVendorLineOfApprovalResponse.prototype.getVendorLineOfApproval = function() {
3220
- return /** @type{?proto.VendorLineOfApproval} */ (
3221
- jspb.Message.getWrapperField(this, proto.VendorLineOfApproval, 1));
3222
- };
3223
-
3224
-
3225
- /**
3226
- * @param {?proto.VendorLineOfApproval|undefined} value
3227
- * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3228
- */
3229
- proto.GetVendorLineOfApprovalResponse.prototype.setVendorLineOfApproval = function(value) {
3230
- return jspb.Message.setWrapperField(this, 1, value);
3231
- };
3232
-
3233
-
3234
- /**
3235
- * Clears the message field making it undefined.
3236
- * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3237
- */
3238
- proto.GetVendorLineOfApprovalResponse.prototype.clearVendorLineOfApproval = function() {
3239
- return this.setVendorLineOfApproval(undefined);
3240
- };
3241
-
3242
-
3243
- /**
3244
- * Returns whether this field is set.
3245
- * @return {boolean}
3246
- */
3247
- proto.GetVendorLineOfApprovalResponse.prototype.hasVendorLineOfApproval = function() {
3248
- return jspb.Message.getField(this, 1) != null;
3249
- };
3250
-
3251
-
3252
- /**
3253
- * optional prisca.v1.global.meta.Meta meta = 2;
3254
- * @return {?proto.prisca.v1.global.meta.Meta}
3255
- */
3256
- proto.GetVendorLineOfApprovalResponse.prototype.getMeta = function() {
3257
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3258
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3259
- };
3260
-
3261
-
3262
- /**
3263
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3264
- * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3265
- */
3266
- proto.GetVendorLineOfApprovalResponse.prototype.setMeta = function(value) {
3267
- return jspb.Message.setWrapperField(this, 2, value);
3268
- };
3269
-
3270
-
3271
- /**
3272
- * Clears the message field making it undefined.
3273
- * @return {!proto.GetVendorLineOfApprovalResponse} returns this
3274
- */
3275
- proto.GetVendorLineOfApprovalResponse.prototype.clearMeta = function() {
3276
- return this.setMeta(undefined);
3277
- };
3278
-
3279
-
3280
- /**
3281
- * Returns whether this field is set.
3282
- * @return {boolean}
3283
- */
3284
- proto.GetVendorLineOfApprovalResponse.prototype.hasMeta = function() {
3285
- return jspb.Message.getField(this, 2) != null;
3286
- };
3287
-
3288
-
3289
-
3290
-
3291
-
3292
- if (jspb.Message.GENERATE_TO_OBJECT) {
3293
- /**
3294
- * Creates an object representation of this proto.
3295
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3296
- * Optional fields that are not set will be set to undefined.
3297
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3298
- * For the list of reserved names please see:
3299
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3300
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3301
- * JSPB instance for transitional soy proto support:
3302
- * http://goto/soy-param-migration
3303
- * @return {!Object}
3304
- */
3305
- proto.BaseListAllLineOfApproval.prototype.toObject = function(opt_includeInstance) {
3306
- return proto.BaseListAllLineOfApproval.toObject(opt_includeInstance, this);
3307
- };
3308
-
3309
-
3310
- /**
3311
- * Static version of the {@see toObject} method.
3312
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3313
- * the JSPB instance for transitional soy proto support:
3314
- * http://goto/soy-param-migration
3315
- * @param {!proto.BaseListAllLineOfApproval} msg The msg instance to transform.
3316
- * @return {!Object}
3317
- * @suppress {unusedLocalVariables} f is only used for nested messages
3318
- */
3319
- proto.BaseListAllLineOfApproval.toObject = function(includeInstance, msg) {
3320
- var f, obj = {
3321
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
3322
- documentNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
3323
- title: jspb.Message.getFieldWithDefault(msg, 3, ""),
3324
- department: jspb.Message.getFieldWithDefault(msg, 4, ""),
3325
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
3326
- remarks: jspb.Message.getFieldWithDefault(msg, 6, "")
3327
- };
3328
-
3329
- if (includeInstance) {
3330
- obj.$jspbMessageInstance = msg;
3331
- }
3332
- return obj;
3333
- };
3334
- }
3335
-
3336
-
3337
- /**
3338
- * Deserializes binary data (in protobuf wire format).
3339
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3340
- * @return {!proto.BaseListAllLineOfApproval}
3341
- */
3342
- proto.BaseListAllLineOfApproval.deserializeBinary = function(bytes) {
3343
- var reader = new jspb.BinaryReader(bytes);
3344
- var msg = new proto.BaseListAllLineOfApproval;
3345
- return proto.BaseListAllLineOfApproval.deserializeBinaryFromReader(msg, reader);
3346
- };
3347
-
3348
-
3349
- /**
3350
- * Deserializes binary data (in protobuf wire format) from the
3351
- * given reader into the given message object.
3352
- * @param {!proto.BaseListAllLineOfApproval} msg The message object to deserialize into.
3353
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3354
- * @return {!proto.BaseListAllLineOfApproval}
3355
- */
3356
- proto.BaseListAllLineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
3357
- while (reader.nextField()) {
3358
- if (reader.isEndGroup()) {
3359
- break;
3360
- }
3361
- var field = reader.getFieldNumber();
3362
- switch (field) {
3363
- case 1:
3364
- var value = new proto.LineOfApproval;
3365
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
3366
- msg.setLineOfApproval(value);
3367
- break;
3368
- case 2:
3369
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3370
- msg.setDocumentNumber(value);
3371
- break;
3372
- case 3:
3373
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3374
- msg.setTitle(value);
3375
- break;
3376
- case 4:
3377
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3378
- msg.setDepartment(value);
3379
- break;
3380
- case 5:
3381
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3382
- msg.setStatus(value);
3383
- break;
3384
- case 6:
3385
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
3386
- msg.setRemarks(value);
3387
- break;
3388
- default:
3389
- reader.skipField();
3390
- break;
3391
- }
3392
- }
3393
- return msg;
3394
- };
3395
-
3396
-
3397
- /**
3398
- * Serializes the message to binary data (in protobuf wire format).
3399
- * @return {!Uint8Array}
3400
- */
3401
- proto.BaseListAllLineOfApproval.prototype.serializeBinary = function() {
3402
- var writer = new jspb.BinaryWriter();
3403
- proto.BaseListAllLineOfApproval.serializeBinaryToWriter(this, writer);
3404
- return writer.getResultBuffer();
3405
- };
3406
-
3407
-
3408
- /**
3409
- * Serializes the given message to binary data (in protobuf wire
3410
- * format), writing to the given BinaryWriter.
3411
- * @param {!proto.BaseListAllLineOfApproval} message
3412
- * @param {!jspb.BinaryWriter} writer
3413
- * @suppress {unusedLocalVariables} f is only used for nested messages
3414
- */
3415
- proto.BaseListAllLineOfApproval.serializeBinaryToWriter = function(message, writer) {
3416
- var f = undefined;
3417
- f = message.getLineOfApproval();
3418
- if (f != null) {
3419
- writer.writeMessage(
3420
- 1,
3421
- f,
3422
- proto.LineOfApproval.serializeBinaryToWriter
3423
- );
3424
- }
3425
- f = message.getDocumentNumber();
3426
- if (f.length > 0) {
3427
- writer.writeString(
3428
- 2,
3429
- f
3430
- );
3431
- }
3432
- f = message.getTitle();
3433
- if (f.length > 0) {
3434
- writer.writeString(
3435
- 3,
3436
- f
3437
- );
3438
- }
3439
- f = message.getDepartment();
3440
- if (f.length > 0) {
3441
- writer.writeString(
3442
- 4,
3443
- f
3444
- );
3445
- }
3446
- f = message.getStatus();
3447
- if (f.length > 0) {
3448
- writer.writeString(
3449
- 5,
3450
- f
3451
- );
3452
- }
3453
- f = message.getRemarks();
3454
- if (f.length > 0) {
3455
- writer.writeString(
3456
- 6,
3457
- f
3458
- );
3459
- }
3460
- };
3461
-
3462
-
3463
- /**
3464
- * optional LineOfApproval line_of_approval = 1;
3465
- * @return {?proto.LineOfApproval}
3466
- */
3467
- proto.BaseListAllLineOfApproval.prototype.getLineOfApproval = function() {
3468
- return /** @type{?proto.LineOfApproval} */ (
3469
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
3470
- };
3471
-
3472
-
3473
- /**
3474
- * @param {?proto.LineOfApproval|undefined} value
3475
- * @return {!proto.BaseListAllLineOfApproval} returns this
3476
- */
3477
- proto.BaseListAllLineOfApproval.prototype.setLineOfApproval = function(value) {
3478
- return jspb.Message.setWrapperField(this, 1, value);
3479
- };
3480
-
3481
-
3482
- /**
3483
- * Clears the message field making it undefined.
3484
- * @return {!proto.BaseListAllLineOfApproval} returns this
3485
- */
3486
- proto.BaseListAllLineOfApproval.prototype.clearLineOfApproval = function() {
3487
- return this.setLineOfApproval(undefined);
3488
- };
3489
-
3490
-
3491
- /**
3492
- * Returns whether this field is set.
3493
- * @return {boolean}
3494
- */
3495
- proto.BaseListAllLineOfApproval.prototype.hasLineOfApproval = function() {
3496
- return jspb.Message.getField(this, 1) != null;
3497
- };
3498
-
3499
-
3500
- /**
3501
- * optional string document_number = 2;
3502
- * @return {string}
3503
- */
3504
- proto.BaseListAllLineOfApproval.prototype.getDocumentNumber = function() {
3505
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3506
- };
3507
-
3508
-
3509
- /**
3510
- * @param {string} value
3511
- * @return {!proto.BaseListAllLineOfApproval} returns this
3512
- */
3513
- proto.BaseListAllLineOfApproval.prototype.setDocumentNumber = function(value) {
3514
- return jspb.Message.setProto3StringField(this, 2, value);
3515
- };
3516
-
3517
-
3518
- /**
3519
- * optional string title = 3;
3520
- * @return {string}
3521
- */
3522
- proto.BaseListAllLineOfApproval.prototype.getTitle = function() {
3523
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3524
- };
3525
-
3526
-
3527
- /**
3528
- * @param {string} value
3529
- * @return {!proto.BaseListAllLineOfApproval} returns this
3530
- */
3531
- proto.BaseListAllLineOfApproval.prototype.setTitle = function(value) {
3532
- return jspb.Message.setProto3StringField(this, 3, value);
3533
- };
3534
-
3535
-
3536
- /**
3537
- * optional string department = 4;
3538
- * @return {string}
3539
- */
3540
- proto.BaseListAllLineOfApproval.prototype.getDepartment = function() {
3541
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3542
- };
3543
-
3544
-
3545
- /**
3546
- * @param {string} value
3547
- * @return {!proto.BaseListAllLineOfApproval} returns this
3548
- */
3549
- proto.BaseListAllLineOfApproval.prototype.setDepartment = function(value) {
3550
- return jspb.Message.setProto3StringField(this, 4, value);
3551
- };
3552
-
3553
-
3554
- /**
3555
- * optional string status = 5;
3556
- * @return {string}
3557
- */
3558
- proto.BaseListAllLineOfApproval.prototype.getStatus = function() {
3559
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3560
- };
3561
-
3562
-
3563
- /**
3564
- * @param {string} value
3565
- * @return {!proto.BaseListAllLineOfApproval} returns this
3566
- */
3567
- proto.BaseListAllLineOfApproval.prototype.setStatus = function(value) {
3568
- return jspb.Message.setProto3StringField(this, 5, value);
3569
- };
3570
-
3571
-
3572
- /**
3573
- * optional string remarks = 6;
3574
- * @return {string}
3575
- */
3576
- proto.BaseListAllLineOfApproval.prototype.getRemarks = function() {
3577
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3578
- };
3579
-
3580
-
3581
- /**
3582
- * @param {string} value
3583
- * @return {!proto.BaseListAllLineOfApproval} returns this
3584
- */
3585
- proto.BaseListAllLineOfApproval.prototype.setRemarks = function(value) {
3586
- return jspb.Message.setProto3StringField(this, 6, value);
3587
- };
3588
-
3589
-
3590
-
3591
- /**
3592
- * List of repeated fields within this message type.
3593
- * @private {!Array<number>}
3594
- * @const
3595
- */
3596
- proto.GetListAllLineOfApprovalResponse.repeatedFields_ = [1];
3597
-
3598
-
3599
-
3600
- if (jspb.Message.GENERATE_TO_OBJECT) {
3601
- /**
3602
- * Creates an object representation of this proto.
3603
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3604
- * Optional fields that are not set will be set to undefined.
3605
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3606
- * For the list of reserved names please see:
3607
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3608
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3609
- * JSPB instance for transitional soy proto support:
3610
- * http://goto/soy-param-migration
3611
- * @return {!Object}
3612
- */
3613
- proto.GetListAllLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
3614
- return proto.GetListAllLineOfApprovalResponse.toObject(opt_includeInstance, this);
3615
- };
3616
-
3617
-
3618
- /**
3619
- * Static version of the {@see toObject} method.
3620
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3621
- * the JSPB instance for transitional soy proto support:
3622
- * http://goto/soy-param-migration
3623
- * @param {!proto.GetListAllLineOfApprovalResponse} msg The msg instance to transform.
3624
- * @return {!Object}
3625
- * @suppress {unusedLocalVariables} f is only used for nested messages
3626
- */
3627
- proto.GetListAllLineOfApprovalResponse.toObject = function(includeInstance, msg) {
3628
- var f, obj = {
3629
- lineOfApprovalsList: jspb.Message.toObjectList(msg.getLineOfApprovalsList(),
3630
- proto.BaseListAllLineOfApproval.toObject, includeInstance),
3631
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3632
- };
3633
-
3634
- if (includeInstance) {
3635
- obj.$jspbMessageInstance = msg;
3636
- }
3637
- return obj;
3638
- };
3639
- }
3640
-
3641
-
3642
- /**
3643
- * Deserializes binary data (in protobuf wire format).
3644
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3645
- * @return {!proto.GetListAllLineOfApprovalResponse}
3646
- */
3647
- proto.GetListAllLineOfApprovalResponse.deserializeBinary = function(bytes) {
3648
- var reader = new jspb.BinaryReader(bytes);
3649
- var msg = new proto.GetListAllLineOfApprovalResponse;
3650
- return proto.GetListAllLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
3651
- };
3652
-
3653
-
3654
- /**
3655
- * Deserializes binary data (in protobuf wire format) from the
3656
- * given reader into the given message object.
3657
- * @param {!proto.GetListAllLineOfApprovalResponse} msg The message object to deserialize into.
3658
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3659
- * @return {!proto.GetListAllLineOfApprovalResponse}
3660
- */
3661
- proto.GetListAllLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
3662
- while (reader.nextField()) {
3663
- if (reader.isEndGroup()) {
3664
- break;
3665
- }
3666
- var field = reader.getFieldNumber();
3667
- switch (field) {
3668
- case 1:
3669
- var value = new proto.BaseListAllLineOfApproval;
3670
- reader.readMessage(value,proto.BaseListAllLineOfApproval.deserializeBinaryFromReader);
3671
- msg.addLineOfApprovals(value);
3672
- break;
3673
- case 2:
3674
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3675
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3676
- msg.setMeta(value);
3677
- break;
3678
- default:
3679
- reader.skipField();
3680
- break;
3681
- }
3682
- }
3683
- return msg;
3684
- };
3685
-
3686
-
3687
- /**
3688
- * Serializes the message to binary data (in protobuf wire format).
3689
- * @return {!Uint8Array}
3690
- */
3691
- proto.GetListAllLineOfApprovalResponse.prototype.serializeBinary = function() {
3692
- var writer = new jspb.BinaryWriter();
3693
- proto.GetListAllLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
3694
- return writer.getResultBuffer();
3695
- };
3696
-
3697
-
3698
- /**
3699
- * Serializes the given message to binary data (in protobuf wire
3700
- * format), writing to the given BinaryWriter.
3701
- * @param {!proto.GetListAllLineOfApprovalResponse} message
3702
- * @param {!jspb.BinaryWriter} writer
3703
- * @suppress {unusedLocalVariables} f is only used for nested messages
3704
- */
3705
- proto.GetListAllLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
3706
- var f = undefined;
3707
- f = message.getLineOfApprovalsList();
3708
- if (f.length > 0) {
3709
- writer.writeRepeatedMessage(
3710
- 1,
3711
- f,
3712
- proto.BaseListAllLineOfApproval.serializeBinaryToWriter
3713
- );
3714
- }
3715
- f = message.getMeta();
3716
- if (f != null) {
3717
- writer.writeMessage(
3718
- 2,
3719
- f,
3720
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3721
- );
3722
- }
3723
- };
3724
-
3725
-
3726
- /**
3727
- * repeated BaseListAllLineOfApproval line_of_approvals = 1;
3728
- * @return {!Array<!proto.BaseListAllLineOfApproval>}
3729
- */
3730
- proto.GetListAllLineOfApprovalResponse.prototype.getLineOfApprovalsList = function() {
3731
- return /** @type{!Array<!proto.BaseListAllLineOfApproval>} */ (
3732
- jspb.Message.getRepeatedWrapperField(this, proto.BaseListAllLineOfApproval, 1));
3733
- };
3734
-
3735
-
3736
- /**
3737
- * @param {!Array<!proto.BaseListAllLineOfApproval>} value
3738
- * @return {!proto.GetListAllLineOfApprovalResponse} returns this
3739
- */
3740
- proto.GetListAllLineOfApprovalResponse.prototype.setLineOfApprovalsList = function(value) {
3741
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3742
- };
3743
-
3744
-
3745
- /**
3746
- * @param {!proto.BaseListAllLineOfApproval=} opt_value
3747
- * @param {number=} opt_index
3748
- * @return {!proto.BaseListAllLineOfApproval}
3749
- */
3750
- proto.GetListAllLineOfApprovalResponse.prototype.addLineOfApprovals = function(opt_value, opt_index) {
3751
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.BaseListAllLineOfApproval, opt_index);
3752
- };
3753
-
3754
-
3755
- /**
3756
- * Clears the list making it empty but non-null.
3757
- * @return {!proto.GetListAllLineOfApprovalResponse} returns this
3758
- */
3759
- proto.GetListAllLineOfApprovalResponse.prototype.clearLineOfApprovalsList = function() {
3760
- return this.setLineOfApprovalsList([]);
3761
- };
3762
-
3763
-
3764
- /**
3765
- * optional prisca.v1.global.meta.Meta meta = 2;
3766
- * @return {?proto.prisca.v1.global.meta.Meta}
3767
- */
3768
- proto.GetListAllLineOfApprovalResponse.prototype.getMeta = function() {
3769
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3770
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3771
- };
3772
-
3773
-
3774
- /**
3775
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3776
- * @return {!proto.GetListAllLineOfApprovalResponse} returns this
3777
- */
3778
- proto.GetListAllLineOfApprovalResponse.prototype.setMeta = function(value) {
3779
- return jspb.Message.setWrapperField(this, 2, value);
3780
- };
3781
-
3782
-
3783
- /**
3784
- * Clears the message field making it undefined.
3785
- * @return {!proto.GetListAllLineOfApprovalResponse} returns this
3786
- */
3787
- proto.GetListAllLineOfApprovalResponse.prototype.clearMeta = function() {
3788
- return this.setMeta(undefined);
3789
- };
3790
-
3791
-
3792
- /**
3793
- * Returns whether this field is set.
3794
- * @return {boolean}
3795
- */
3796
- proto.GetListAllLineOfApprovalResponse.prototype.hasMeta = function() {
3797
- return jspb.Message.getField(this, 2) != null;
3798
- };
3799
-
3800
-
3801
- goog.object.extend(exports, proto);