@aldiokta/protocgen 1.0.88 → 1.0.89

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 (103) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/access_manager/access_manager.proto +273 -0
  3. package/prisca/v1/core/auth/auth.proto +142 -0
  4. package/prisca/v1/core/company/company.proto +86 -0
  5. package/prisca/v1/core/currency/currency.proto +76 -0
  6. package/prisca/v1/core/department_material/department_material.proto +69 -0
  7. package/prisca/v1/core/employee/employee.proto +129 -0
  8. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  9. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  10. package/prisca/v1/core/job_position/job_position.proto +113 -0
  11. package/prisca/v1/core/job_title/job_title.proto +89 -0
  12. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  13. package/prisca/v1/core/line_of_approval/line_of_approval.proto +82 -0
  14. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  15. package/prisca/v1/core/location/location.proto +289 -0
  16. package/prisca/v1/core/material/material.proto +131 -0
  17. package/prisca/v1/core/material_group/material_group.proto +85 -0
  18. package/prisca/v1/core/material_type/material_type.proto +86 -0
  19. package/prisca/v1/core/messaging/email_template.proto +75 -0
  20. package/prisca/v1/core/messaging/messaging.proto +28 -0
  21. package/prisca/v1/core/number_range/number_range.proto +89 -0
  22. package/prisca/v1/core/organization/organization.proto +94 -0
  23. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  24. package/prisca/v1/core/procurement/procurement.proto +54 -0
  25. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +131 -0
  26. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  27. package/prisca/v1/core/report/report.proto +86 -0
  28. package/prisca/v1/core/report/user_report.proto +74 -0
  29. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  30. package/prisca/v1/core/transaction_builder/transaction_builder.proto +314 -0
  31. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  32. package/prisca/v1/core/users/users.proto +45 -0
  33. package/prisca/v1/core/work_location/work_location.proto +122 -0
  34. package/prisca/v1/core/workflow/workflow.proto +219 -0
  35. package/prisca/v1/global/meta/meta.proto +57 -0
  36. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  37. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9000
  38. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -400
  39. package/prisca/v1/core/auth/auth_pb.js +0 -4253
  40. package/prisca/v1/core/company/company_grpc_pb.js +0 -177
  41. package/prisca/v1/core/company/company_pb.js +0 -2875
  42. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  43. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  44. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  45. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  46. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  47. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  48. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  49. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -864
  50. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  51. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  52. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  53. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  54. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  55. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  56. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  57. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1158
  58. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -178
  59. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -2695
  60. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  61. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  62. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  63. package/prisca/v1/core/location/location_pb.js +0 -10879
  64. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  65. package/prisca/v1/core/material/material_pb.js +0 -4180
  66. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  67. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  68. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  69. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  70. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  71. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  72. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -45
  73. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  74. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  75. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  76. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  77. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  78. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  79. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  80. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  81. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  82. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  83. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  84. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  85. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  86. package/prisca/v1/core/report/report_grpc_pb.js +0 -189
  87. package/prisca/v1/core/report/report_pb.js +0 -2732
  88. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  89. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  90. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  91. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  92. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -465
  93. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10591
  94. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  95. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  96. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  97. package/prisca/v1/core/users/users_pb.js +0 -1246
  98. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  99. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  100. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -202
  101. package/prisca/v1/core/workflow/workflow_pb.js +0 -7376
  102. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  103. package/prisca/v1/global/meta/meta_pb.js +0 -1179
@@ -1,2695 +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 =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
- goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
- var prisca_v1_core_employee_employee_pb = require('../../../../prisca/v1/core/employee/employee_pb.js');
27
- goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
28
- goog.exportSymbol('proto.BaseLineOfApprovalRequest', null, global);
29
- goog.exportSymbol('proto.CreateLineOfApprovalRequest', null, global);
30
- goog.exportSymbol('proto.CreateLineOfApprovalResponse', null, global);
31
- goog.exportSymbol('proto.DeleteLineOfApprovalRequest', null, global);
32
- goog.exportSymbol('proto.DeleteLineOfApprovalResponse', null, global);
33
- goog.exportSymbol('proto.GetLineOfApprovalByIdRequest', null, global);
34
- goog.exportSymbol('proto.GetLineOfApprovalByIdResponse', null, global);
35
- goog.exportSymbol('proto.GetListLineOfApprovalRequest', null, global);
36
- goog.exportSymbol('proto.GetListLineOfApprovalResponse', null, global);
37
- goog.exportSymbol('proto.LineOfApproval', null, global);
38
- goog.exportSymbol('proto.UpdateLineOfApprovalRequest', null, global);
39
- goog.exportSymbol('proto.UpdateLineOfApprovalResponse', null, global);
40
- /**
41
- * Generated by JsPbCodeGenerator.
42
- * @param {Array=} opt_data Optional initial data array, typically from a
43
- * server response, or constructed directly in Javascript. The array is used
44
- * in place and becomes part of the constructed object. It is not cloned.
45
- * If no data is provided, the constructed object will be empty, but still
46
- * valid.
47
- * @extends {jspb.Message}
48
- * @constructor
49
- */
50
- proto.LineOfApproval = function(opt_data) {
51
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
52
- };
53
- goog.inherits(proto.LineOfApproval, jspb.Message);
54
- if (goog.DEBUG && !COMPILED) {
55
- /**
56
- * @public
57
- * @override
58
- */
59
- proto.LineOfApproval.displayName = 'proto.LineOfApproval';
60
- }
61
- /**
62
- * Generated by JsPbCodeGenerator.
63
- * @param {Array=} opt_data Optional initial data array, typically from a
64
- * server response, or constructed directly in Javascript. The array is used
65
- * in place and becomes part of the constructed object. It is not cloned.
66
- * If no data is provided, the constructed object will be empty, but still
67
- * valid.
68
- * @extends {jspb.Message}
69
- * @constructor
70
- */
71
- proto.BaseLineOfApprovalRequest = function(opt_data) {
72
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
- };
74
- goog.inherits(proto.BaseLineOfApprovalRequest, jspb.Message);
75
- if (goog.DEBUG && !COMPILED) {
76
- /**
77
- * @public
78
- * @override
79
- */
80
- proto.BaseLineOfApprovalRequest.displayName = 'proto.BaseLineOfApprovalRequest';
81
- }
82
- /**
83
- * Generated by JsPbCodeGenerator.
84
- * @param {Array=} opt_data Optional initial data array, typically from a
85
- * server response, or constructed directly in Javascript. The array is used
86
- * in place and becomes part of the constructed object. It is not cloned.
87
- * If no data is provided, the constructed object will be empty, but still
88
- * valid.
89
- * @extends {jspb.Message}
90
- * @constructor
91
- */
92
- proto.CreateLineOfApprovalRequest = function(opt_data) {
93
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
- };
95
- goog.inherits(proto.CreateLineOfApprovalRequest, jspb.Message);
96
- if (goog.DEBUG && !COMPILED) {
97
- /**
98
- * @public
99
- * @override
100
- */
101
- proto.CreateLineOfApprovalRequest.displayName = 'proto.CreateLineOfApprovalRequest';
102
- }
103
- /**
104
- * Generated by JsPbCodeGenerator.
105
- * @param {Array=} opt_data Optional initial data array, typically from a
106
- * server response, or constructed directly in Javascript. The array is used
107
- * in place and becomes part of the constructed object. It is not cloned.
108
- * If no data is provided, the constructed object will be empty, but still
109
- * valid.
110
- * @extends {jspb.Message}
111
- * @constructor
112
- */
113
- proto.UpdateLineOfApprovalRequest = function(opt_data) {
114
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
115
- };
116
- goog.inherits(proto.UpdateLineOfApprovalRequest, jspb.Message);
117
- if (goog.DEBUG && !COMPILED) {
118
- /**
119
- * @public
120
- * @override
121
- */
122
- proto.UpdateLineOfApprovalRequest.displayName = 'proto.UpdateLineOfApprovalRequest';
123
- }
124
- /**
125
- * Generated by JsPbCodeGenerator.
126
- * @param {Array=} opt_data Optional initial data array, typically from a
127
- * server response, or constructed directly in Javascript. The array is used
128
- * in place and becomes part of the constructed object. It is not cloned.
129
- * If no data is provided, the constructed object will be empty, but still
130
- * valid.
131
- * @extends {jspb.Message}
132
- * @constructor
133
- */
134
- proto.DeleteLineOfApprovalRequest = function(opt_data) {
135
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
136
- };
137
- goog.inherits(proto.DeleteLineOfApprovalRequest, jspb.Message);
138
- if (goog.DEBUG && !COMPILED) {
139
- /**
140
- * @public
141
- * @override
142
- */
143
- proto.DeleteLineOfApprovalRequest.displayName = 'proto.DeleteLineOfApprovalRequest';
144
- }
145
- /**
146
- * Generated by JsPbCodeGenerator.
147
- * @param {Array=} opt_data Optional initial data array, typically from a
148
- * server response, or constructed directly in Javascript. The array is used
149
- * in place and becomes part of the constructed object. It is not cloned.
150
- * If no data is provided, the constructed object will be empty, but still
151
- * valid.
152
- * @extends {jspb.Message}
153
- * @constructor
154
- */
155
- proto.GetLineOfApprovalByIdRequest = function(opt_data) {
156
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
157
- };
158
- goog.inherits(proto.GetLineOfApprovalByIdRequest, jspb.Message);
159
- if (goog.DEBUG && !COMPILED) {
160
- /**
161
- * @public
162
- * @override
163
- */
164
- proto.GetLineOfApprovalByIdRequest.displayName = 'proto.GetLineOfApprovalByIdRequest';
165
- }
166
- /**
167
- * Generated by JsPbCodeGenerator.
168
- * @param {Array=} opt_data Optional initial data array, typically from a
169
- * server response, or constructed directly in Javascript. The array is used
170
- * in place and becomes part of the constructed object. It is not cloned.
171
- * If no data is provided, the constructed object will be empty, but still
172
- * valid.
173
- * @extends {jspb.Message}
174
- * @constructor
175
- */
176
- proto.GetListLineOfApprovalRequest = function(opt_data) {
177
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
- };
179
- goog.inherits(proto.GetListLineOfApprovalRequest, jspb.Message);
180
- if (goog.DEBUG && !COMPILED) {
181
- /**
182
- * @public
183
- * @override
184
- */
185
- proto.GetListLineOfApprovalRequest.displayName = 'proto.GetListLineOfApprovalRequest';
186
- }
187
- /**
188
- * Generated by JsPbCodeGenerator.
189
- * @param {Array=} opt_data Optional initial data array, typically from a
190
- * server response, or constructed directly in Javascript. The array is used
191
- * in place and becomes part of the constructed object. It is not cloned.
192
- * If no data is provided, the constructed object will be empty, but still
193
- * valid.
194
- * @extends {jspb.Message}
195
- * @constructor
196
- */
197
- proto.CreateLineOfApprovalResponse = function(opt_data) {
198
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
199
- };
200
- goog.inherits(proto.CreateLineOfApprovalResponse, jspb.Message);
201
- if (goog.DEBUG && !COMPILED) {
202
- /**
203
- * @public
204
- * @override
205
- */
206
- proto.CreateLineOfApprovalResponse.displayName = 'proto.CreateLineOfApprovalResponse';
207
- }
208
- /**
209
- * Generated by JsPbCodeGenerator.
210
- * @param {Array=} opt_data Optional initial data array, typically from a
211
- * server response, or constructed directly in Javascript. The array is used
212
- * in place and becomes part of the constructed object. It is not cloned.
213
- * If no data is provided, the constructed object will be empty, but still
214
- * valid.
215
- * @extends {jspb.Message}
216
- * @constructor
217
- */
218
- proto.UpdateLineOfApprovalResponse = function(opt_data) {
219
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
220
- };
221
- goog.inherits(proto.UpdateLineOfApprovalResponse, jspb.Message);
222
- if (goog.DEBUG && !COMPILED) {
223
- /**
224
- * @public
225
- * @override
226
- */
227
- proto.UpdateLineOfApprovalResponse.displayName = 'proto.UpdateLineOfApprovalResponse';
228
- }
229
- /**
230
- * Generated by JsPbCodeGenerator.
231
- * @param {Array=} opt_data Optional initial data array, typically from a
232
- * server response, or constructed directly in Javascript. The array is used
233
- * in place and becomes part of the constructed object. It is not cloned.
234
- * If no data is provided, the constructed object will be empty, but still
235
- * valid.
236
- * @extends {jspb.Message}
237
- * @constructor
238
- */
239
- proto.DeleteLineOfApprovalResponse = function(opt_data) {
240
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
241
- };
242
- goog.inherits(proto.DeleteLineOfApprovalResponse, jspb.Message);
243
- if (goog.DEBUG && !COMPILED) {
244
- /**
245
- * @public
246
- * @override
247
- */
248
- proto.DeleteLineOfApprovalResponse.displayName = 'proto.DeleteLineOfApprovalResponse';
249
- }
250
- /**
251
- * Generated by JsPbCodeGenerator.
252
- * @param {Array=} opt_data Optional initial data array, typically from a
253
- * server response, or constructed directly in Javascript. The array is used
254
- * in place and becomes part of the constructed object. It is not cloned.
255
- * If no data is provided, the constructed object will be empty, but still
256
- * valid.
257
- * @extends {jspb.Message}
258
- * @constructor
259
- */
260
- proto.GetLineOfApprovalByIdResponse = function(opt_data) {
261
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
262
- };
263
- goog.inherits(proto.GetLineOfApprovalByIdResponse, jspb.Message);
264
- if (goog.DEBUG && !COMPILED) {
265
- /**
266
- * @public
267
- * @override
268
- */
269
- proto.GetLineOfApprovalByIdResponse.displayName = 'proto.GetLineOfApprovalByIdResponse';
270
- }
271
- /**
272
- * Generated by JsPbCodeGenerator.
273
- * @param {Array=} opt_data Optional initial data array, typically from a
274
- * server response, or constructed directly in Javascript. The array is used
275
- * in place and becomes part of the constructed object. It is not cloned.
276
- * If no data is provided, the constructed object will be empty, but still
277
- * valid.
278
- * @extends {jspb.Message}
279
- * @constructor
280
- */
281
- proto.GetListLineOfApprovalResponse = function(opt_data) {
282
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListLineOfApprovalResponse.repeatedFields_, null);
283
- };
284
- goog.inherits(proto.GetListLineOfApprovalResponse, jspb.Message);
285
- if (goog.DEBUG && !COMPILED) {
286
- /**
287
- * @public
288
- * @override
289
- */
290
- proto.GetListLineOfApprovalResponse.displayName = 'proto.GetListLineOfApprovalResponse';
291
- }
292
-
293
-
294
-
295
- if (jspb.Message.GENERATE_TO_OBJECT) {
296
- /**
297
- * Creates an object representation of this proto.
298
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
299
- * Optional fields that are not set will be set to undefined.
300
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
301
- * For the list of reserved names please see:
302
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
303
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
304
- * JSPB instance for transitional soy proto support:
305
- * http://goto/soy-param-migration
306
- * @return {!Object}
307
- */
308
- proto.LineOfApproval.prototype.toObject = function(opt_includeInstance) {
309
- return proto.LineOfApproval.toObject(opt_includeInstance, this);
310
- };
311
-
312
-
313
- /**
314
- * Static version of the {@see toObject} method.
315
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
316
- * the JSPB instance for transitional soy proto support:
317
- * http://goto/soy-param-migration
318
- * @param {!proto.LineOfApproval} msg The msg instance to transform.
319
- * @return {!Object}
320
- * @suppress {unusedLocalVariables} f is only used for nested messages
321
- */
322
- proto.LineOfApproval.toObject = function(includeInstance, msg) {
323
- var f, obj = {
324
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
325
- workflowRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
326
- documentRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
327
- employeesRefId: jspb.Message.getFieldWithDefault(msg, 4, ""),
328
- status: jspb.Message.getFieldWithDefault(msg, 5, ""),
329
- referencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
330
- createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
331
- updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
332
- documentType: jspb.Message.getFieldWithDefault(msg, 9, ""),
333
- employees: (f = msg.getEmployees()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
334
- approvalNote: jspb.Message.getFieldWithDefault(msg, 11, "")
335
- };
336
-
337
- if (includeInstance) {
338
- obj.$jspbMessageInstance = msg;
339
- }
340
- return obj;
341
- };
342
- }
343
-
344
-
345
- /**
346
- * Deserializes binary data (in protobuf wire format).
347
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
348
- * @return {!proto.LineOfApproval}
349
- */
350
- proto.LineOfApproval.deserializeBinary = function(bytes) {
351
- var reader = new jspb.BinaryReader(bytes);
352
- var msg = new proto.LineOfApproval;
353
- return proto.LineOfApproval.deserializeBinaryFromReader(msg, reader);
354
- };
355
-
356
-
357
- /**
358
- * Deserializes binary data (in protobuf wire format) from the
359
- * given reader into the given message object.
360
- * @param {!proto.LineOfApproval} msg The message object to deserialize into.
361
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
362
- * @return {!proto.LineOfApproval}
363
- */
364
- proto.LineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
365
- while (reader.nextField()) {
366
- if (reader.isEndGroup()) {
367
- break;
368
- }
369
- var field = reader.getFieldNumber();
370
- switch (field) {
371
- case 1:
372
- var value = /** @type {number} */ (reader.readInt32());
373
- msg.setId(value);
374
- break;
375
- case 2:
376
- var value = /** @type {string} */ (reader.readString());
377
- msg.setWorkflowRef(value);
378
- break;
379
- case 3:
380
- var value = /** @type {string} */ (reader.readString());
381
- msg.setDocumentRef(value);
382
- break;
383
- case 4:
384
- var value = /** @type {string} */ (reader.readString());
385
- msg.setEmployeesRefId(value);
386
- break;
387
- case 5:
388
- var value = /** @type {string} */ (reader.readString());
389
- msg.setStatus(value);
390
- break;
391
- case 6:
392
- var value = /** @type {string} */ (reader.readString());
393
- msg.setReferencesId(value);
394
- break;
395
- case 7:
396
- var value = /** @type {string} */ (reader.readString());
397
- msg.setCreatedAt(value);
398
- break;
399
- case 8:
400
- var value = /** @type {string} */ (reader.readString());
401
- msg.setUpdatedAt(value);
402
- break;
403
- case 9:
404
- var value = /** @type {string} */ (reader.readString());
405
- msg.setDocumentType(value);
406
- break;
407
- case 10:
408
- var value = new prisca_v1_core_employee_employee_pb.Employee;
409
- reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
410
- msg.setEmployees(value);
411
- break;
412
- case 11:
413
- var value = /** @type {string} */ (reader.readString());
414
- msg.setApprovalNote(value);
415
- break;
416
- default:
417
- reader.skipField();
418
- break;
419
- }
420
- }
421
- return msg;
422
- };
423
-
424
-
425
- /**
426
- * Serializes the message to binary data (in protobuf wire format).
427
- * @return {!Uint8Array}
428
- */
429
- proto.LineOfApproval.prototype.serializeBinary = function() {
430
- var writer = new jspb.BinaryWriter();
431
- proto.LineOfApproval.serializeBinaryToWriter(this, writer);
432
- return writer.getResultBuffer();
433
- };
434
-
435
-
436
- /**
437
- * Serializes the given message to binary data (in protobuf wire
438
- * format), writing to the given BinaryWriter.
439
- * @param {!proto.LineOfApproval} message
440
- * @param {!jspb.BinaryWriter} writer
441
- * @suppress {unusedLocalVariables} f is only used for nested messages
442
- */
443
- proto.LineOfApproval.serializeBinaryToWriter = function(message, writer) {
444
- var f = undefined;
445
- f = message.getId();
446
- if (f !== 0) {
447
- writer.writeInt32(
448
- 1,
449
- f
450
- );
451
- }
452
- f = message.getWorkflowRef();
453
- if (f.length > 0) {
454
- writer.writeString(
455
- 2,
456
- f
457
- );
458
- }
459
- f = message.getDocumentRef();
460
- if (f.length > 0) {
461
- writer.writeString(
462
- 3,
463
- f
464
- );
465
- }
466
- f = message.getEmployeesRefId();
467
- if (f.length > 0) {
468
- writer.writeString(
469
- 4,
470
- f
471
- );
472
- }
473
- f = message.getStatus();
474
- if (f.length > 0) {
475
- writer.writeString(
476
- 5,
477
- f
478
- );
479
- }
480
- f = message.getReferencesId();
481
- if (f.length > 0) {
482
- writer.writeString(
483
- 6,
484
- f
485
- );
486
- }
487
- f = message.getCreatedAt();
488
- if (f.length > 0) {
489
- writer.writeString(
490
- 7,
491
- f
492
- );
493
- }
494
- f = message.getUpdatedAt();
495
- if (f.length > 0) {
496
- writer.writeString(
497
- 8,
498
- f
499
- );
500
- }
501
- f = message.getDocumentType();
502
- if (f.length > 0) {
503
- writer.writeString(
504
- 9,
505
- f
506
- );
507
- }
508
- f = message.getEmployees();
509
- if (f != null) {
510
- writer.writeMessage(
511
- 10,
512
- f,
513
- prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
514
- );
515
- }
516
- f = message.getApprovalNote();
517
- if (f.length > 0) {
518
- writer.writeString(
519
- 11,
520
- f
521
- );
522
- }
523
- };
524
-
525
-
526
- /**
527
- * optional int32 id = 1;
528
- * @return {number}
529
- */
530
- proto.LineOfApproval.prototype.getId = function() {
531
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
532
- };
533
-
534
-
535
- /**
536
- * @param {number} value
537
- * @return {!proto.LineOfApproval} returns this
538
- */
539
- proto.LineOfApproval.prototype.setId = function(value) {
540
- return jspb.Message.setProto3IntField(this, 1, value);
541
- };
542
-
543
-
544
- /**
545
- * optional string workflow_ref = 2;
546
- * @return {string}
547
- */
548
- proto.LineOfApproval.prototype.getWorkflowRef = function() {
549
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
550
- };
551
-
552
-
553
- /**
554
- * @param {string} value
555
- * @return {!proto.LineOfApproval} returns this
556
- */
557
- proto.LineOfApproval.prototype.setWorkflowRef = function(value) {
558
- return jspb.Message.setProto3StringField(this, 2, value);
559
- };
560
-
561
-
562
- /**
563
- * optional string document_ref = 3;
564
- * @return {string}
565
- */
566
- proto.LineOfApproval.prototype.getDocumentRef = function() {
567
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
568
- };
569
-
570
-
571
- /**
572
- * @param {string} value
573
- * @return {!proto.LineOfApproval} returns this
574
- */
575
- proto.LineOfApproval.prototype.setDocumentRef = function(value) {
576
- return jspb.Message.setProto3StringField(this, 3, value);
577
- };
578
-
579
-
580
- /**
581
- * optional string employees_ref_id = 4;
582
- * @return {string}
583
- */
584
- proto.LineOfApproval.prototype.getEmployeesRefId = function() {
585
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
586
- };
587
-
588
-
589
- /**
590
- * @param {string} value
591
- * @return {!proto.LineOfApproval} returns this
592
- */
593
- proto.LineOfApproval.prototype.setEmployeesRefId = function(value) {
594
- return jspb.Message.setProto3StringField(this, 4, value);
595
- };
596
-
597
-
598
- /**
599
- * optional string status = 5;
600
- * @return {string}
601
- */
602
- proto.LineOfApproval.prototype.getStatus = function() {
603
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
604
- };
605
-
606
-
607
- /**
608
- * @param {string} value
609
- * @return {!proto.LineOfApproval} returns this
610
- */
611
- proto.LineOfApproval.prototype.setStatus = function(value) {
612
- return jspb.Message.setProto3StringField(this, 5, value);
613
- };
614
-
615
-
616
- /**
617
- * optional string references_id = 6;
618
- * @return {string}
619
- */
620
- proto.LineOfApproval.prototype.getReferencesId = function() {
621
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
622
- };
623
-
624
-
625
- /**
626
- * @param {string} value
627
- * @return {!proto.LineOfApproval} returns this
628
- */
629
- proto.LineOfApproval.prototype.setReferencesId = function(value) {
630
- return jspb.Message.setProto3StringField(this, 6, value);
631
- };
632
-
633
-
634
- /**
635
- * optional string created_at = 7;
636
- * @return {string}
637
- */
638
- proto.LineOfApproval.prototype.getCreatedAt = function() {
639
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
640
- };
641
-
642
-
643
- /**
644
- * @param {string} value
645
- * @return {!proto.LineOfApproval} returns this
646
- */
647
- proto.LineOfApproval.prototype.setCreatedAt = function(value) {
648
- return jspb.Message.setProto3StringField(this, 7, value);
649
- };
650
-
651
-
652
- /**
653
- * optional string updated_at = 8;
654
- * @return {string}
655
- */
656
- proto.LineOfApproval.prototype.getUpdatedAt = function() {
657
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
658
- };
659
-
660
-
661
- /**
662
- * @param {string} value
663
- * @return {!proto.LineOfApproval} returns this
664
- */
665
- proto.LineOfApproval.prototype.setUpdatedAt = function(value) {
666
- return jspb.Message.setProto3StringField(this, 8, value);
667
- };
668
-
669
-
670
- /**
671
- * optional string document_type = 9;
672
- * @return {string}
673
- */
674
- proto.LineOfApproval.prototype.getDocumentType = function() {
675
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
676
- };
677
-
678
-
679
- /**
680
- * @param {string} value
681
- * @return {!proto.LineOfApproval} returns this
682
- */
683
- proto.LineOfApproval.prototype.setDocumentType = function(value) {
684
- return jspb.Message.setProto3StringField(this, 9, value);
685
- };
686
-
687
-
688
- /**
689
- * optional Employee employees = 10;
690
- * @return {?proto.Employee}
691
- */
692
- proto.LineOfApproval.prototype.getEmployees = function() {
693
- return /** @type{?proto.Employee} */ (
694
- jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 10));
695
- };
696
-
697
-
698
- /**
699
- * @param {?proto.Employee|undefined} value
700
- * @return {!proto.LineOfApproval} returns this
701
- */
702
- proto.LineOfApproval.prototype.setEmployees = function(value) {
703
- return jspb.Message.setWrapperField(this, 10, value);
704
- };
705
-
706
-
707
- /**
708
- * Clears the message field making it undefined.
709
- * @return {!proto.LineOfApproval} returns this
710
- */
711
- proto.LineOfApproval.prototype.clearEmployees = function() {
712
- return this.setEmployees(undefined);
713
- };
714
-
715
-
716
- /**
717
- * Returns whether this field is set.
718
- * @return {boolean}
719
- */
720
- proto.LineOfApproval.prototype.hasEmployees = function() {
721
- return jspb.Message.getField(this, 10) != null;
722
- };
723
-
724
-
725
- /**
726
- * optional string approval_note = 11;
727
- * @return {string}
728
- */
729
- proto.LineOfApproval.prototype.getApprovalNote = function() {
730
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
731
- };
732
-
733
-
734
- /**
735
- * @param {string} value
736
- * @return {!proto.LineOfApproval} returns this
737
- */
738
- proto.LineOfApproval.prototype.setApprovalNote = function(value) {
739
- return jspb.Message.setProto3StringField(this, 11, value);
740
- };
741
-
742
-
743
-
744
-
745
-
746
- if (jspb.Message.GENERATE_TO_OBJECT) {
747
- /**
748
- * Creates an object representation of this proto.
749
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
750
- * Optional fields that are not set will be set to undefined.
751
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
752
- * For the list of reserved names please see:
753
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
754
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
755
- * JSPB instance for transitional soy proto support:
756
- * http://goto/soy-param-migration
757
- * @return {!Object}
758
- */
759
- proto.BaseLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
760
- return proto.BaseLineOfApprovalRequest.toObject(opt_includeInstance, this);
761
- };
762
-
763
-
764
- /**
765
- * Static version of the {@see toObject} method.
766
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
767
- * the JSPB instance for transitional soy proto support:
768
- * http://goto/soy-param-migration
769
- * @param {!proto.BaseLineOfApprovalRequest} msg The msg instance to transform.
770
- * @return {!Object}
771
- * @suppress {unusedLocalVariables} f is only used for nested messages
772
- */
773
- proto.BaseLineOfApprovalRequest.toObject = function(includeInstance, msg) {
774
- var f, obj = {
775
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
776
- approvalNote: jspb.Message.getFieldWithDefault(msg, 2, "")
777
- };
778
-
779
- if (includeInstance) {
780
- obj.$jspbMessageInstance = msg;
781
- }
782
- return obj;
783
- };
784
- }
785
-
786
-
787
- /**
788
- * Deserializes binary data (in protobuf wire format).
789
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
790
- * @return {!proto.BaseLineOfApprovalRequest}
791
- */
792
- proto.BaseLineOfApprovalRequest.deserializeBinary = function(bytes) {
793
- var reader = new jspb.BinaryReader(bytes);
794
- var msg = new proto.BaseLineOfApprovalRequest;
795
- return proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
796
- };
797
-
798
-
799
- /**
800
- * Deserializes binary data (in protobuf wire format) from the
801
- * given reader into the given message object.
802
- * @param {!proto.BaseLineOfApprovalRequest} msg The message object to deserialize into.
803
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
804
- * @return {!proto.BaseLineOfApprovalRequest}
805
- */
806
- proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
807
- while (reader.nextField()) {
808
- if (reader.isEndGroup()) {
809
- break;
810
- }
811
- var field = reader.getFieldNumber();
812
- switch (field) {
813
- case 1:
814
- var value = /** @type {string} */ (reader.readString());
815
- msg.setStatus(value);
816
- break;
817
- case 2:
818
- var value = /** @type {string} */ (reader.readString());
819
- msg.setApprovalNote(value);
820
- break;
821
- default:
822
- reader.skipField();
823
- break;
824
- }
825
- }
826
- return msg;
827
- };
828
-
829
-
830
- /**
831
- * Serializes the message to binary data (in protobuf wire format).
832
- * @return {!Uint8Array}
833
- */
834
- proto.BaseLineOfApprovalRequest.prototype.serializeBinary = function() {
835
- var writer = new jspb.BinaryWriter();
836
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
837
- return writer.getResultBuffer();
838
- };
839
-
840
-
841
- /**
842
- * Serializes the given message to binary data (in protobuf wire
843
- * format), writing to the given BinaryWriter.
844
- * @param {!proto.BaseLineOfApprovalRequest} message
845
- * @param {!jspb.BinaryWriter} writer
846
- * @suppress {unusedLocalVariables} f is only used for nested messages
847
- */
848
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
849
- var f = undefined;
850
- f = message.getStatus();
851
- if (f.length > 0) {
852
- writer.writeString(
853
- 1,
854
- f
855
- );
856
- }
857
- f = message.getApprovalNote();
858
- if (f.length > 0) {
859
- writer.writeString(
860
- 2,
861
- f
862
- );
863
- }
864
- };
865
-
866
-
867
- /**
868
- * optional string status = 1;
869
- * @return {string}
870
- */
871
- proto.BaseLineOfApprovalRequest.prototype.getStatus = function() {
872
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
873
- };
874
-
875
-
876
- /**
877
- * @param {string} value
878
- * @return {!proto.BaseLineOfApprovalRequest} returns this
879
- */
880
- proto.BaseLineOfApprovalRequest.prototype.setStatus = function(value) {
881
- return jspb.Message.setProto3StringField(this, 1, value);
882
- };
883
-
884
-
885
- /**
886
- * optional string approval_note = 2;
887
- * @return {string}
888
- */
889
- proto.BaseLineOfApprovalRequest.prototype.getApprovalNote = function() {
890
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
891
- };
892
-
893
-
894
- /**
895
- * @param {string} value
896
- * @return {!proto.BaseLineOfApprovalRequest} returns this
897
- */
898
- proto.BaseLineOfApprovalRequest.prototype.setApprovalNote = function(value) {
899
- return jspb.Message.setProto3StringField(this, 2, value);
900
- };
901
-
902
-
903
-
904
-
905
-
906
- if (jspb.Message.GENERATE_TO_OBJECT) {
907
- /**
908
- * Creates an object representation of this proto.
909
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
910
- * Optional fields that are not set will be set to undefined.
911
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
912
- * For the list of reserved names please see:
913
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
914
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
915
- * JSPB instance for transitional soy proto support:
916
- * http://goto/soy-param-migration
917
- * @return {!Object}
918
- */
919
- proto.CreateLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
920
- return proto.CreateLineOfApprovalRequest.toObject(opt_includeInstance, this);
921
- };
922
-
923
-
924
- /**
925
- * Static version of the {@see toObject} method.
926
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
927
- * the JSPB instance for transitional soy proto support:
928
- * http://goto/soy-param-migration
929
- * @param {!proto.CreateLineOfApprovalRequest} msg The msg instance to transform.
930
- * @return {!Object}
931
- * @suppress {unusedLocalVariables} f is only used for nested messages
932
- */
933
- proto.CreateLineOfApprovalRequest.toObject = function(includeInstance, msg) {
934
- var f, obj = {
935
- baseLineOfApproval: (f = msg.getBaseLineOfApproval()) && proto.BaseLineOfApprovalRequest.toObject(includeInstance, f)
936
- };
937
-
938
- if (includeInstance) {
939
- obj.$jspbMessageInstance = msg;
940
- }
941
- return obj;
942
- };
943
- }
944
-
945
-
946
- /**
947
- * Deserializes binary data (in protobuf wire format).
948
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
949
- * @return {!proto.CreateLineOfApprovalRequest}
950
- */
951
- proto.CreateLineOfApprovalRequest.deserializeBinary = function(bytes) {
952
- var reader = new jspb.BinaryReader(bytes);
953
- var msg = new proto.CreateLineOfApprovalRequest;
954
- return proto.CreateLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
955
- };
956
-
957
-
958
- /**
959
- * Deserializes binary data (in protobuf wire format) from the
960
- * given reader into the given message object.
961
- * @param {!proto.CreateLineOfApprovalRequest} msg The message object to deserialize into.
962
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
963
- * @return {!proto.CreateLineOfApprovalRequest}
964
- */
965
- proto.CreateLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
966
- while (reader.nextField()) {
967
- if (reader.isEndGroup()) {
968
- break;
969
- }
970
- var field = reader.getFieldNumber();
971
- switch (field) {
972
- case 1:
973
- var value = new proto.BaseLineOfApprovalRequest;
974
- reader.readMessage(value,proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader);
975
- msg.setBaseLineOfApproval(value);
976
- break;
977
- default:
978
- reader.skipField();
979
- break;
980
- }
981
- }
982
- return msg;
983
- };
984
-
985
-
986
- /**
987
- * Serializes the message to binary data (in protobuf wire format).
988
- * @return {!Uint8Array}
989
- */
990
- proto.CreateLineOfApprovalRequest.prototype.serializeBinary = function() {
991
- var writer = new jspb.BinaryWriter();
992
- proto.CreateLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
993
- return writer.getResultBuffer();
994
- };
995
-
996
-
997
- /**
998
- * Serializes the given message to binary data (in protobuf wire
999
- * format), writing to the given BinaryWriter.
1000
- * @param {!proto.CreateLineOfApprovalRequest} message
1001
- * @param {!jspb.BinaryWriter} writer
1002
- * @suppress {unusedLocalVariables} f is only used for nested messages
1003
- */
1004
- proto.CreateLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1005
- var f = undefined;
1006
- f = message.getBaseLineOfApproval();
1007
- if (f != null) {
1008
- writer.writeMessage(
1009
- 1,
1010
- f,
1011
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter
1012
- );
1013
- }
1014
- };
1015
-
1016
-
1017
- /**
1018
- * optional BaseLineOfApprovalRequest base_line_of_approval = 1;
1019
- * @return {?proto.BaseLineOfApprovalRequest}
1020
- */
1021
- proto.CreateLineOfApprovalRequest.prototype.getBaseLineOfApproval = function() {
1022
- return /** @type{?proto.BaseLineOfApprovalRequest} */ (
1023
- jspb.Message.getWrapperField(this, proto.BaseLineOfApprovalRequest, 1));
1024
- };
1025
-
1026
-
1027
- /**
1028
- * @param {?proto.BaseLineOfApprovalRequest|undefined} value
1029
- * @return {!proto.CreateLineOfApprovalRequest} returns this
1030
- */
1031
- proto.CreateLineOfApprovalRequest.prototype.setBaseLineOfApproval = function(value) {
1032
- return jspb.Message.setWrapperField(this, 1, value);
1033
- };
1034
-
1035
-
1036
- /**
1037
- * Clears the message field making it undefined.
1038
- * @return {!proto.CreateLineOfApprovalRequest} returns this
1039
- */
1040
- proto.CreateLineOfApprovalRequest.prototype.clearBaseLineOfApproval = function() {
1041
- return this.setBaseLineOfApproval(undefined);
1042
- };
1043
-
1044
-
1045
- /**
1046
- * Returns whether this field is set.
1047
- * @return {boolean}
1048
- */
1049
- proto.CreateLineOfApprovalRequest.prototype.hasBaseLineOfApproval = function() {
1050
- return jspb.Message.getField(this, 1) != null;
1051
- };
1052
-
1053
-
1054
-
1055
-
1056
-
1057
- if (jspb.Message.GENERATE_TO_OBJECT) {
1058
- /**
1059
- * Creates an object representation of this proto.
1060
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1061
- * Optional fields that are not set will be set to undefined.
1062
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1063
- * For the list of reserved names please see:
1064
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1065
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1066
- * JSPB instance for transitional soy proto support:
1067
- * http://goto/soy-param-migration
1068
- * @return {!Object}
1069
- */
1070
- proto.UpdateLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1071
- return proto.UpdateLineOfApprovalRequest.toObject(opt_includeInstance, this);
1072
- };
1073
-
1074
-
1075
- /**
1076
- * Static version of the {@see toObject} method.
1077
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1078
- * the JSPB instance for transitional soy proto support:
1079
- * http://goto/soy-param-migration
1080
- * @param {!proto.UpdateLineOfApprovalRequest} msg The msg instance to transform.
1081
- * @return {!Object}
1082
- * @suppress {unusedLocalVariables} f is only used for nested messages
1083
- */
1084
- proto.UpdateLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1085
- var f, obj = {
1086
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1087
- baseLineOfApproval: (f = msg.getBaseLineOfApproval()) && proto.BaseLineOfApprovalRequest.toObject(includeInstance, f)
1088
- };
1089
-
1090
- if (includeInstance) {
1091
- obj.$jspbMessageInstance = msg;
1092
- }
1093
- return obj;
1094
- };
1095
- }
1096
-
1097
-
1098
- /**
1099
- * Deserializes binary data (in protobuf wire format).
1100
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1101
- * @return {!proto.UpdateLineOfApprovalRequest}
1102
- */
1103
- proto.UpdateLineOfApprovalRequest.deserializeBinary = function(bytes) {
1104
- var reader = new jspb.BinaryReader(bytes);
1105
- var msg = new proto.UpdateLineOfApprovalRequest;
1106
- return proto.UpdateLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1107
- };
1108
-
1109
-
1110
- /**
1111
- * Deserializes binary data (in protobuf wire format) from the
1112
- * given reader into the given message object.
1113
- * @param {!proto.UpdateLineOfApprovalRequest} msg The message object to deserialize into.
1114
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1115
- * @return {!proto.UpdateLineOfApprovalRequest}
1116
- */
1117
- proto.UpdateLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1118
- while (reader.nextField()) {
1119
- if (reader.isEndGroup()) {
1120
- break;
1121
- }
1122
- var field = reader.getFieldNumber();
1123
- switch (field) {
1124
- case 1:
1125
- var value = /** @type {string} */ (reader.readString());
1126
- msg.setReferencesId(value);
1127
- break;
1128
- case 2:
1129
- var value = new proto.BaseLineOfApprovalRequest;
1130
- reader.readMessage(value,proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader);
1131
- msg.setBaseLineOfApproval(value);
1132
- break;
1133
- default:
1134
- reader.skipField();
1135
- break;
1136
- }
1137
- }
1138
- return msg;
1139
- };
1140
-
1141
-
1142
- /**
1143
- * Serializes the message to binary data (in protobuf wire format).
1144
- * @return {!Uint8Array}
1145
- */
1146
- proto.UpdateLineOfApprovalRequest.prototype.serializeBinary = function() {
1147
- var writer = new jspb.BinaryWriter();
1148
- proto.UpdateLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1149
- return writer.getResultBuffer();
1150
- };
1151
-
1152
-
1153
- /**
1154
- * Serializes the given message to binary data (in protobuf wire
1155
- * format), writing to the given BinaryWriter.
1156
- * @param {!proto.UpdateLineOfApprovalRequest} message
1157
- * @param {!jspb.BinaryWriter} writer
1158
- * @suppress {unusedLocalVariables} f is only used for nested messages
1159
- */
1160
- proto.UpdateLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1161
- var f = undefined;
1162
- f = message.getReferencesId();
1163
- if (f.length > 0) {
1164
- writer.writeString(
1165
- 1,
1166
- f
1167
- );
1168
- }
1169
- f = message.getBaseLineOfApproval();
1170
- if (f != null) {
1171
- writer.writeMessage(
1172
- 2,
1173
- f,
1174
- proto.BaseLineOfApprovalRequest.serializeBinaryToWriter
1175
- );
1176
- }
1177
- };
1178
-
1179
-
1180
- /**
1181
- * optional string references_id = 1;
1182
- * @return {string}
1183
- */
1184
- proto.UpdateLineOfApprovalRequest.prototype.getReferencesId = function() {
1185
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1186
- };
1187
-
1188
-
1189
- /**
1190
- * @param {string} value
1191
- * @return {!proto.UpdateLineOfApprovalRequest} returns this
1192
- */
1193
- proto.UpdateLineOfApprovalRequest.prototype.setReferencesId = function(value) {
1194
- return jspb.Message.setProto3StringField(this, 1, value);
1195
- };
1196
-
1197
-
1198
- /**
1199
- * optional BaseLineOfApprovalRequest base_line_of_approval = 2;
1200
- * @return {?proto.BaseLineOfApprovalRequest}
1201
- */
1202
- proto.UpdateLineOfApprovalRequest.prototype.getBaseLineOfApproval = function() {
1203
- return /** @type{?proto.BaseLineOfApprovalRequest} */ (
1204
- jspb.Message.getWrapperField(this, proto.BaseLineOfApprovalRequest, 2));
1205
- };
1206
-
1207
-
1208
- /**
1209
- * @param {?proto.BaseLineOfApprovalRequest|undefined} value
1210
- * @return {!proto.UpdateLineOfApprovalRequest} returns this
1211
- */
1212
- proto.UpdateLineOfApprovalRequest.prototype.setBaseLineOfApproval = function(value) {
1213
- return jspb.Message.setWrapperField(this, 2, value);
1214
- };
1215
-
1216
-
1217
- /**
1218
- * Clears the message field making it undefined.
1219
- * @return {!proto.UpdateLineOfApprovalRequest} returns this
1220
- */
1221
- proto.UpdateLineOfApprovalRequest.prototype.clearBaseLineOfApproval = function() {
1222
- return this.setBaseLineOfApproval(undefined);
1223
- };
1224
-
1225
-
1226
- /**
1227
- * Returns whether this field is set.
1228
- * @return {boolean}
1229
- */
1230
- proto.UpdateLineOfApprovalRequest.prototype.hasBaseLineOfApproval = function() {
1231
- return jspb.Message.getField(this, 2) != null;
1232
- };
1233
-
1234
-
1235
-
1236
-
1237
-
1238
- if (jspb.Message.GENERATE_TO_OBJECT) {
1239
- /**
1240
- * Creates an object representation of this proto.
1241
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1242
- * Optional fields that are not set will be set to undefined.
1243
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1244
- * For the list of reserved names please see:
1245
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1246
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1247
- * JSPB instance for transitional soy proto support:
1248
- * http://goto/soy-param-migration
1249
- * @return {!Object}
1250
- */
1251
- proto.DeleteLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1252
- return proto.DeleteLineOfApprovalRequest.toObject(opt_includeInstance, this);
1253
- };
1254
-
1255
-
1256
- /**
1257
- * Static version of the {@see toObject} method.
1258
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1259
- * the JSPB instance for transitional soy proto support:
1260
- * http://goto/soy-param-migration
1261
- * @param {!proto.DeleteLineOfApprovalRequest} msg The msg instance to transform.
1262
- * @return {!Object}
1263
- * @suppress {unusedLocalVariables} f is only used for nested messages
1264
- */
1265
- proto.DeleteLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1266
- var f, obj = {
1267
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1268
- };
1269
-
1270
- if (includeInstance) {
1271
- obj.$jspbMessageInstance = msg;
1272
- }
1273
- return obj;
1274
- };
1275
- }
1276
-
1277
-
1278
- /**
1279
- * Deserializes binary data (in protobuf wire format).
1280
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1281
- * @return {!proto.DeleteLineOfApprovalRequest}
1282
- */
1283
- proto.DeleteLineOfApprovalRequest.deserializeBinary = function(bytes) {
1284
- var reader = new jspb.BinaryReader(bytes);
1285
- var msg = new proto.DeleteLineOfApprovalRequest;
1286
- return proto.DeleteLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1287
- };
1288
-
1289
-
1290
- /**
1291
- * Deserializes binary data (in protobuf wire format) from the
1292
- * given reader into the given message object.
1293
- * @param {!proto.DeleteLineOfApprovalRequest} msg The message object to deserialize into.
1294
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1295
- * @return {!proto.DeleteLineOfApprovalRequest}
1296
- */
1297
- proto.DeleteLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1298
- while (reader.nextField()) {
1299
- if (reader.isEndGroup()) {
1300
- break;
1301
- }
1302
- var field = reader.getFieldNumber();
1303
- switch (field) {
1304
- case 1:
1305
- var value = /** @type {string} */ (reader.readString());
1306
- msg.setReferencesId(value);
1307
- break;
1308
- default:
1309
- reader.skipField();
1310
- break;
1311
- }
1312
- }
1313
- return msg;
1314
- };
1315
-
1316
-
1317
- /**
1318
- * Serializes the message to binary data (in protobuf wire format).
1319
- * @return {!Uint8Array}
1320
- */
1321
- proto.DeleteLineOfApprovalRequest.prototype.serializeBinary = function() {
1322
- var writer = new jspb.BinaryWriter();
1323
- proto.DeleteLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1324
- return writer.getResultBuffer();
1325
- };
1326
-
1327
-
1328
- /**
1329
- * Serializes the given message to binary data (in protobuf wire
1330
- * format), writing to the given BinaryWriter.
1331
- * @param {!proto.DeleteLineOfApprovalRequest} message
1332
- * @param {!jspb.BinaryWriter} writer
1333
- * @suppress {unusedLocalVariables} f is only used for nested messages
1334
- */
1335
- proto.DeleteLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1336
- var f = undefined;
1337
- f = message.getReferencesId();
1338
- if (f.length > 0) {
1339
- writer.writeString(
1340
- 1,
1341
- f
1342
- );
1343
- }
1344
- };
1345
-
1346
-
1347
- /**
1348
- * optional string references_id = 1;
1349
- * @return {string}
1350
- */
1351
- proto.DeleteLineOfApprovalRequest.prototype.getReferencesId = function() {
1352
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1353
- };
1354
-
1355
-
1356
- /**
1357
- * @param {string} value
1358
- * @return {!proto.DeleteLineOfApprovalRequest} returns this
1359
- */
1360
- proto.DeleteLineOfApprovalRequest.prototype.setReferencesId = function(value) {
1361
- return jspb.Message.setProto3StringField(this, 1, value);
1362
- };
1363
-
1364
-
1365
-
1366
-
1367
-
1368
- if (jspb.Message.GENERATE_TO_OBJECT) {
1369
- /**
1370
- * Creates an object representation of this proto.
1371
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1372
- * Optional fields that are not set will be set to undefined.
1373
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1374
- * For the list of reserved names please see:
1375
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1376
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1377
- * JSPB instance for transitional soy proto support:
1378
- * http://goto/soy-param-migration
1379
- * @return {!Object}
1380
- */
1381
- proto.GetLineOfApprovalByIdRequest.prototype.toObject = function(opt_includeInstance) {
1382
- return proto.GetLineOfApprovalByIdRequest.toObject(opt_includeInstance, this);
1383
- };
1384
-
1385
-
1386
- /**
1387
- * Static version of the {@see toObject} method.
1388
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1389
- * the JSPB instance for transitional soy proto support:
1390
- * http://goto/soy-param-migration
1391
- * @param {!proto.GetLineOfApprovalByIdRequest} msg The msg instance to transform.
1392
- * @return {!Object}
1393
- * @suppress {unusedLocalVariables} f is only used for nested messages
1394
- */
1395
- proto.GetLineOfApprovalByIdRequest.toObject = function(includeInstance, msg) {
1396
- var f, obj = {
1397
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1398
- };
1399
-
1400
- if (includeInstance) {
1401
- obj.$jspbMessageInstance = msg;
1402
- }
1403
- return obj;
1404
- };
1405
- }
1406
-
1407
-
1408
- /**
1409
- * Deserializes binary data (in protobuf wire format).
1410
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1411
- * @return {!proto.GetLineOfApprovalByIdRequest}
1412
- */
1413
- proto.GetLineOfApprovalByIdRequest.deserializeBinary = function(bytes) {
1414
- var reader = new jspb.BinaryReader(bytes);
1415
- var msg = new proto.GetLineOfApprovalByIdRequest;
1416
- return proto.GetLineOfApprovalByIdRequest.deserializeBinaryFromReader(msg, reader);
1417
- };
1418
-
1419
-
1420
- /**
1421
- * Deserializes binary data (in protobuf wire format) from the
1422
- * given reader into the given message object.
1423
- * @param {!proto.GetLineOfApprovalByIdRequest} msg The message object to deserialize into.
1424
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1425
- * @return {!proto.GetLineOfApprovalByIdRequest}
1426
- */
1427
- proto.GetLineOfApprovalByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1428
- while (reader.nextField()) {
1429
- if (reader.isEndGroup()) {
1430
- break;
1431
- }
1432
- var field = reader.getFieldNumber();
1433
- switch (field) {
1434
- case 1:
1435
- var value = /** @type {string} */ (reader.readString());
1436
- msg.setReferencesId(value);
1437
- break;
1438
- default:
1439
- reader.skipField();
1440
- break;
1441
- }
1442
- }
1443
- return msg;
1444
- };
1445
-
1446
-
1447
- /**
1448
- * Serializes the message to binary data (in protobuf wire format).
1449
- * @return {!Uint8Array}
1450
- */
1451
- proto.GetLineOfApprovalByIdRequest.prototype.serializeBinary = function() {
1452
- var writer = new jspb.BinaryWriter();
1453
- proto.GetLineOfApprovalByIdRequest.serializeBinaryToWriter(this, writer);
1454
- return writer.getResultBuffer();
1455
- };
1456
-
1457
-
1458
- /**
1459
- * Serializes the given message to binary data (in protobuf wire
1460
- * format), writing to the given BinaryWriter.
1461
- * @param {!proto.GetLineOfApprovalByIdRequest} message
1462
- * @param {!jspb.BinaryWriter} writer
1463
- * @suppress {unusedLocalVariables} f is only used for nested messages
1464
- */
1465
- proto.GetLineOfApprovalByIdRequest.serializeBinaryToWriter = function(message, writer) {
1466
- var f = undefined;
1467
- f = message.getReferencesId();
1468
- if (f.length > 0) {
1469
- writer.writeString(
1470
- 1,
1471
- f
1472
- );
1473
- }
1474
- };
1475
-
1476
-
1477
- /**
1478
- * optional string references_id = 1;
1479
- * @return {string}
1480
- */
1481
- proto.GetLineOfApprovalByIdRequest.prototype.getReferencesId = function() {
1482
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1483
- };
1484
-
1485
-
1486
- /**
1487
- * @param {string} value
1488
- * @return {!proto.GetLineOfApprovalByIdRequest} returns this
1489
- */
1490
- proto.GetLineOfApprovalByIdRequest.prototype.setReferencesId = function(value) {
1491
- return jspb.Message.setProto3StringField(this, 1, value);
1492
- };
1493
-
1494
-
1495
-
1496
-
1497
-
1498
- if (jspb.Message.GENERATE_TO_OBJECT) {
1499
- /**
1500
- * Creates an object representation of this proto.
1501
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1502
- * Optional fields that are not set will be set to undefined.
1503
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1504
- * For the list of reserved names please see:
1505
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1506
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1507
- * JSPB instance for transitional soy proto support:
1508
- * http://goto/soy-param-migration
1509
- * @return {!Object}
1510
- */
1511
- proto.GetListLineOfApprovalRequest.prototype.toObject = function(opt_includeInstance) {
1512
- return proto.GetListLineOfApprovalRequest.toObject(opt_includeInstance, this);
1513
- };
1514
-
1515
-
1516
- /**
1517
- * Static version of the {@see toObject} method.
1518
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1519
- * the JSPB instance for transitional soy proto support:
1520
- * http://goto/soy-param-migration
1521
- * @param {!proto.GetListLineOfApprovalRequest} msg The msg instance to transform.
1522
- * @return {!Object}
1523
- * @suppress {unusedLocalVariables} f is only used for nested messages
1524
- */
1525
- proto.GetListLineOfApprovalRequest.toObject = function(includeInstance, msg) {
1526
- var f, obj = {
1527
- pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1528
- query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1529
- };
1530
-
1531
- if (includeInstance) {
1532
- obj.$jspbMessageInstance = msg;
1533
- }
1534
- return obj;
1535
- };
1536
- }
1537
-
1538
-
1539
- /**
1540
- * Deserializes binary data (in protobuf wire format).
1541
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1542
- * @return {!proto.GetListLineOfApprovalRequest}
1543
- */
1544
- proto.GetListLineOfApprovalRequest.deserializeBinary = function(bytes) {
1545
- var reader = new jspb.BinaryReader(bytes);
1546
- var msg = new proto.GetListLineOfApprovalRequest;
1547
- return proto.GetListLineOfApprovalRequest.deserializeBinaryFromReader(msg, reader);
1548
- };
1549
-
1550
-
1551
- /**
1552
- * Deserializes binary data (in protobuf wire format) from the
1553
- * given reader into the given message object.
1554
- * @param {!proto.GetListLineOfApprovalRequest} msg The message object to deserialize into.
1555
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1556
- * @return {!proto.GetListLineOfApprovalRequest}
1557
- */
1558
- proto.GetListLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, reader) {
1559
- while (reader.nextField()) {
1560
- if (reader.isEndGroup()) {
1561
- break;
1562
- }
1563
- var field = reader.getFieldNumber();
1564
- switch (field) {
1565
- case 1:
1566
- var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1567
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1568
- msg.setPagination(value);
1569
- break;
1570
- case 2:
1571
- var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1572
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1573
- msg.setQuery(value);
1574
- break;
1575
- default:
1576
- reader.skipField();
1577
- break;
1578
- }
1579
- }
1580
- return msg;
1581
- };
1582
-
1583
-
1584
- /**
1585
- * Serializes the message to binary data (in protobuf wire format).
1586
- * @return {!Uint8Array}
1587
- */
1588
- proto.GetListLineOfApprovalRequest.prototype.serializeBinary = function() {
1589
- var writer = new jspb.BinaryWriter();
1590
- proto.GetListLineOfApprovalRequest.serializeBinaryToWriter(this, writer);
1591
- return writer.getResultBuffer();
1592
- };
1593
-
1594
-
1595
- /**
1596
- * Serializes the given message to binary data (in protobuf wire
1597
- * format), writing to the given BinaryWriter.
1598
- * @param {!proto.GetListLineOfApprovalRequest} message
1599
- * @param {!jspb.BinaryWriter} writer
1600
- * @suppress {unusedLocalVariables} f is only used for nested messages
1601
- */
1602
- proto.GetListLineOfApprovalRequest.serializeBinaryToWriter = function(message, writer) {
1603
- var f = undefined;
1604
- f = message.getPagination();
1605
- if (f != null) {
1606
- writer.writeMessage(
1607
- 1,
1608
- f,
1609
- prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1610
- );
1611
- }
1612
- f = message.getQuery();
1613
- if (f != null) {
1614
- writer.writeMessage(
1615
- 2,
1616
- f,
1617
- prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1618
- );
1619
- }
1620
- };
1621
-
1622
-
1623
- /**
1624
- * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1625
- * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1626
- */
1627
- proto.GetListLineOfApprovalRequest.prototype.getPagination = function() {
1628
- return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1629
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1630
- };
1631
-
1632
-
1633
- /**
1634
- * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1635
- * @return {!proto.GetListLineOfApprovalRequest} returns this
1636
- */
1637
- proto.GetListLineOfApprovalRequest.prototype.setPagination = function(value) {
1638
- return jspb.Message.setWrapperField(this, 1, value);
1639
- };
1640
-
1641
-
1642
- /**
1643
- * Clears the message field making it undefined.
1644
- * @return {!proto.GetListLineOfApprovalRequest} returns this
1645
- */
1646
- proto.GetListLineOfApprovalRequest.prototype.clearPagination = function() {
1647
- return this.setPagination(undefined);
1648
- };
1649
-
1650
-
1651
- /**
1652
- * Returns whether this field is set.
1653
- * @return {boolean}
1654
- */
1655
- proto.GetListLineOfApprovalRequest.prototype.hasPagination = function() {
1656
- return jspb.Message.getField(this, 1) != null;
1657
- };
1658
-
1659
-
1660
- /**
1661
- * optional prisca.v1.global.meta.FilterRequest query = 2;
1662
- * @return {?proto.prisca.v1.global.meta.FilterRequest}
1663
- */
1664
- proto.GetListLineOfApprovalRequest.prototype.getQuery = function() {
1665
- return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1666
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1667
- };
1668
-
1669
-
1670
- /**
1671
- * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1672
- * @return {!proto.GetListLineOfApprovalRequest} returns this
1673
- */
1674
- proto.GetListLineOfApprovalRequest.prototype.setQuery = function(value) {
1675
- return jspb.Message.setWrapperField(this, 2, value);
1676
- };
1677
-
1678
-
1679
- /**
1680
- * Clears the message field making it undefined.
1681
- * @return {!proto.GetListLineOfApprovalRequest} returns this
1682
- */
1683
- proto.GetListLineOfApprovalRequest.prototype.clearQuery = function() {
1684
- return this.setQuery(undefined);
1685
- };
1686
-
1687
-
1688
- /**
1689
- * Returns whether this field is set.
1690
- * @return {boolean}
1691
- */
1692
- proto.GetListLineOfApprovalRequest.prototype.hasQuery = function() {
1693
- return jspb.Message.getField(this, 2) != null;
1694
- };
1695
-
1696
-
1697
-
1698
-
1699
-
1700
- if (jspb.Message.GENERATE_TO_OBJECT) {
1701
- /**
1702
- * Creates an object representation of this proto.
1703
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1704
- * Optional fields that are not set will be set to undefined.
1705
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1706
- * For the list of reserved names please see:
1707
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1708
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1709
- * JSPB instance for transitional soy proto support:
1710
- * http://goto/soy-param-migration
1711
- * @return {!Object}
1712
- */
1713
- proto.CreateLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
1714
- return proto.CreateLineOfApprovalResponse.toObject(opt_includeInstance, this);
1715
- };
1716
-
1717
-
1718
- /**
1719
- * Static version of the {@see toObject} method.
1720
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1721
- * the JSPB instance for transitional soy proto support:
1722
- * http://goto/soy-param-migration
1723
- * @param {!proto.CreateLineOfApprovalResponse} msg The msg instance to transform.
1724
- * @return {!Object}
1725
- * @suppress {unusedLocalVariables} f is only used for nested messages
1726
- */
1727
- proto.CreateLineOfApprovalResponse.toObject = function(includeInstance, msg) {
1728
- var f, obj = {
1729
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
1730
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1731
- };
1732
-
1733
- if (includeInstance) {
1734
- obj.$jspbMessageInstance = msg;
1735
- }
1736
- return obj;
1737
- };
1738
- }
1739
-
1740
-
1741
- /**
1742
- * Deserializes binary data (in protobuf wire format).
1743
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1744
- * @return {!proto.CreateLineOfApprovalResponse}
1745
- */
1746
- proto.CreateLineOfApprovalResponse.deserializeBinary = function(bytes) {
1747
- var reader = new jspb.BinaryReader(bytes);
1748
- var msg = new proto.CreateLineOfApprovalResponse;
1749
- return proto.CreateLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
1750
- };
1751
-
1752
-
1753
- /**
1754
- * Deserializes binary data (in protobuf wire format) from the
1755
- * given reader into the given message object.
1756
- * @param {!proto.CreateLineOfApprovalResponse} msg The message object to deserialize into.
1757
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1758
- * @return {!proto.CreateLineOfApprovalResponse}
1759
- */
1760
- proto.CreateLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
1761
- while (reader.nextField()) {
1762
- if (reader.isEndGroup()) {
1763
- break;
1764
- }
1765
- var field = reader.getFieldNumber();
1766
- switch (field) {
1767
- case 1:
1768
- var value = new proto.LineOfApproval;
1769
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
1770
- msg.setLineOfApproval(value);
1771
- break;
1772
- case 2:
1773
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1774
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1775
- msg.setMeta(value);
1776
- break;
1777
- default:
1778
- reader.skipField();
1779
- break;
1780
- }
1781
- }
1782
- return msg;
1783
- };
1784
-
1785
-
1786
- /**
1787
- * Serializes the message to binary data (in protobuf wire format).
1788
- * @return {!Uint8Array}
1789
- */
1790
- proto.CreateLineOfApprovalResponse.prototype.serializeBinary = function() {
1791
- var writer = new jspb.BinaryWriter();
1792
- proto.CreateLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
1793
- return writer.getResultBuffer();
1794
- };
1795
-
1796
-
1797
- /**
1798
- * Serializes the given message to binary data (in protobuf wire
1799
- * format), writing to the given BinaryWriter.
1800
- * @param {!proto.CreateLineOfApprovalResponse} message
1801
- * @param {!jspb.BinaryWriter} writer
1802
- * @suppress {unusedLocalVariables} f is only used for nested messages
1803
- */
1804
- proto.CreateLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
1805
- var f = undefined;
1806
- f = message.getLineOfApproval();
1807
- if (f != null) {
1808
- writer.writeMessage(
1809
- 1,
1810
- f,
1811
- proto.LineOfApproval.serializeBinaryToWriter
1812
- );
1813
- }
1814
- f = message.getMeta();
1815
- if (f != null) {
1816
- writer.writeMessage(
1817
- 2,
1818
- f,
1819
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1820
- );
1821
- }
1822
- };
1823
-
1824
-
1825
- /**
1826
- * optional LineOfApproval line_of_approval = 1;
1827
- * @return {?proto.LineOfApproval}
1828
- */
1829
- proto.CreateLineOfApprovalResponse.prototype.getLineOfApproval = function() {
1830
- return /** @type{?proto.LineOfApproval} */ (
1831
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
1832
- };
1833
-
1834
-
1835
- /**
1836
- * @param {?proto.LineOfApproval|undefined} value
1837
- * @return {!proto.CreateLineOfApprovalResponse} returns this
1838
- */
1839
- proto.CreateLineOfApprovalResponse.prototype.setLineOfApproval = function(value) {
1840
- return jspb.Message.setWrapperField(this, 1, value);
1841
- };
1842
-
1843
-
1844
- /**
1845
- * Clears the message field making it undefined.
1846
- * @return {!proto.CreateLineOfApprovalResponse} returns this
1847
- */
1848
- proto.CreateLineOfApprovalResponse.prototype.clearLineOfApproval = function() {
1849
- return this.setLineOfApproval(undefined);
1850
- };
1851
-
1852
-
1853
- /**
1854
- * Returns whether this field is set.
1855
- * @return {boolean}
1856
- */
1857
- proto.CreateLineOfApprovalResponse.prototype.hasLineOfApproval = function() {
1858
- return jspb.Message.getField(this, 1) != null;
1859
- };
1860
-
1861
-
1862
- /**
1863
- * optional prisca.v1.global.meta.Meta meta = 2;
1864
- * @return {?proto.prisca.v1.global.meta.Meta}
1865
- */
1866
- proto.CreateLineOfApprovalResponse.prototype.getMeta = function() {
1867
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1868
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1869
- };
1870
-
1871
-
1872
- /**
1873
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1874
- * @return {!proto.CreateLineOfApprovalResponse} returns this
1875
- */
1876
- proto.CreateLineOfApprovalResponse.prototype.setMeta = function(value) {
1877
- return jspb.Message.setWrapperField(this, 2, value);
1878
- };
1879
-
1880
-
1881
- /**
1882
- * Clears the message field making it undefined.
1883
- * @return {!proto.CreateLineOfApprovalResponse} returns this
1884
- */
1885
- proto.CreateLineOfApprovalResponse.prototype.clearMeta = function() {
1886
- return this.setMeta(undefined);
1887
- };
1888
-
1889
-
1890
- /**
1891
- * Returns whether this field is set.
1892
- * @return {boolean}
1893
- */
1894
- proto.CreateLineOfApprovalResponse.prototype.hasMeta = function() {
1895
- return jspb.Message.getField(this, 2) != null;
1896
- };
1897
-
1898
-
1899
-
1900
-
1901
-
1902
- if (jspb.Message.GENERATE_TO_OBJECT) {
1903
- /**
1904
- * Creates an object representation of this proto.
1905
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1906
- * Optional fields that are not set will be set to undefined.
1907
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1908
- * For the list of reserved names please see:
1909
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1910
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1911
- * JSPB instance for transitional soy proto support:
1912
- * http://goto/soy-param-migration
1913
- * @return {!Object}
1914
- */
1915
- proto.UpdateLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
1916
- return proto.UpdateLineOfApprovalResponse.toObject(opt_includeInstance, this);
1917
- };
1918
-
1919
-
1920
- /**
1921
- * Static version of the {@see toObject} method.
1922
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1923
- * the JSPB instance for transitional soy proto support:
1924
- * http://goto/soy-param-migration
1925
- * @param {!proto.UpdateLineOfApprovalResponse} msg The msg instance to transform.
1926
- * @return {!Object}
1927
- * @suppress {unusedLocalVariables} f is only used for nested messages
1928
- */
1929
- proto.UpdateLineOfApprovalResponse.toObject = function(includeInstance, msg) {
1930
- var f, obj = {
1931
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
1932
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1933
- };
1934
-
1935
- if (includeInstance) {
1936
- obj.$jspbMessageInstance = msg;
1937
- }
1938
- return obj;
1939
- };
1940
- }
1941
-
1942
-
1943
- /**
1944
- * Deserializes binary data (in protobuf wire format).
1945
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1946
- * @return {!proto.UpdateLineOfApprovalResponse}
1947
- */
1948
- proto.UpdateLineOfApprovalResponse.deserializeBinary = function(bytes) {
1949
- var reader = new jspb.BinaryReader(bytes);
1950
- var msg = new proto.UpdateLineOfApprovalResponse;
1951
- return proto.UpdateLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
1952
- };
1953
-
1954
-
1955
- /**
1956
- * Deserializes binary data (in protobuf wire format) from the
1957
- * given reader into the given message object.
1958
- * @param {!proto.UpdateLineOfApprovalResponse} msg The message object to deserialize into.
1959
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1960
- * @return {!proto.UpdateLineOfApprovalResponse}
1961
- */
1962
- proto.UpdateLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
1963
- while (reader.nextField()) {
1964
- if (reader.isEndGroup()) {
1965
- break;
1966
- }
1967
- var field = reader.getFieldNumber();
1968
- switch (field) {
1969
- case 1:
1970
- var value = new proto.LineOfApproval;
1971
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
1972
- msg.setLineOfApproval(value);
1973
- break;
1974
- case 2:
1975
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1976
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1977
- msg.setMeta(value);
1978
- break;
1979
- default:
1980
- reader.skipField();
1981
- break;
1982
- }
1983
- }
1984
- return msg;
1985
- };
1986
-
1987
-
1988
- /**
1989
- * Serializes the message to binary data (in protobuf wire format).
1990
- * @return {!Uint8Array}
1991
- */
1992
- proto.UpdateLineOfApprovalResponse.prototype.serializeBinary = function() {
1993
- var writer = new jspb.BinaryWriter();
1994
- proto.UpdateLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
1995
- return writer.getResultBuffer();
1996
- };
1997
-
1998
-
1999
- /**
2000
- * Serializes the given message to binary data (in protobuf wire
2001
- * format), writing to the given BinaryWriter.
2002
- * @param {!proto.UpdateLineOfApprovalResponse} message
2003
- * @param {!jspb.BinaryWriter} writer
2004
- * @suppress {unusedLocalVariables} f is only used for nested messages
2005
- */
2006
- proto.UpdateLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2007
- var f = undefined;
2008
- f = message.getLineOfApproval();
2009
- if (f != null) {
2010
- writer.writeMessage(
2011
- 1,
2012
- f,
2013
- proto.LineOfApproval.serializeBinaryToWriter
2014
- );
2015
- }
2016
- f = message.getMeta();
2017
- if (f != null) {
2018
- writer.writeMessage(
2019
- 2,
2020
- f,
2021
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2022
- );
2023
- }
2024
- };
2025
-
2026
-
2027
- /**
2028
- * optional LineOfApproval line_of_approval = 1;
2029
- * @return {?proto.LineOfApproval}
2030
- */
2031
- proto.UpdateLineOfApprovalResponse.prototype.getLineOfApproval = function() {
2032
- return /** @type{?proto.LineOfApproval} */ (
2033
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
2034
- };
2035
-
2036
-
2037
- /**
2038
- * @param {?proto.LineOfApproval|undefined} value
2039
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2040
- */
2041
- proto.UpdateLineOfApprovalResponse.prototype.setLineOfApproval = function(value) {
2042
- return jspb.Message.setWrapperField(this, 1, value);
2043
- };
2044
-
2045
-
2046
- /**
2047
- * Clears the message field making it undefined.
2048
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2049
- */
2050
- proto.UpdateLineOfApprovalResponse.prototype.clearLineOfApproval = function() {
2051
- return this.setLineOfApproval(undefined);
2052
- };
2053
-
2054
-
2055
- /**
2056
- * Returns whether this field is set.
2057
- * @return {boolean}
2058
- */
2059
- proto.UpdateLineOfApprovalResponse.prototype.hasLineOfApproval = function() {
2060
- return jspb.Message.getField(this, 1) != null;
2061
- };
2062
-
2063
-
2064
- /**
2065
- * optional prisca.v1.global.meta.Meta meta = 2;
2066
- * @return {?proto.prisca.v1.global.meta.Meta}
2067
- */
2068
- proto.UpdateLineOfApprovalResponse.prototype.getMeta = function() {
2069
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2070
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2071
- };
2072
-
2073
-
2074
- /**
2075
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2076
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2077
- */
2078
- proto.UpdateLineOfApprovalResponse.prototype.setMeta = function(value) {
2079
- return jspb.Message.setWrapperField(this, 2, value);
2080
- };
2081
-
2082
-
2083
- /**
2084
- * Clears the message field making it undefined.
2085
- * @return {!proto.UpdateLineOfApprovalResponse} returns this
2086
- */
2087
- proto.UpdateLineOfApprovalResponse.prototype.clearMeta = function() {
2088
- return this.setMeta(undefined);
2089
- };
2090
-
2091
-
2092
- /**
2093
- * Returns whether this field is set.
2094
- * @return {boolean}
2095
- */
2096
- proto.UpdateLineOfApprovalResponse.prototype.hasMeta = function() {
2097
- return jspb.Message.getField(this, 2) != null;
2098
- };
2099
-
2100
-
2101
-
2102
-
2103
-
2104
- if (jspb.Message.GENERATE_TO_OBJECT) {
2105
- /**
2106
- * Creates an object representation of this proto.
2107
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2108
- * Optional fields that are not set will be set to undefined.
2109
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2110
- * For the list of reserved names please see:
2111
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2112
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2113
- * JSPB instance for transitional soy proto support:
2114
- * http://goto/soy-param-migration
2115
- * @return {!Object}
2116
- */
2117
- proto.DeleteLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
2118
- return proto.DeleteLineOfApprovalResponse.toObject(opt_includeInstance, this);
2119
- };
2120
-
2121
-
2122
- /**
2123
- * Static version of the {@see toObject} method.
2124
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2125
- * the JSPB instance for transitional soy proto support:
2126
- * http://goto/soy-param-migration
2127
- * @param {!proto.DeleteLineOfApprovalResponse} msg The msg instance to transform.
2128
- * @return {!Object}
2129
- * @suppress {unusedLocalVariables} f is only used for nested messages
2130
- */
2131
- proto.DeleteLineOfApprovalResponse.toObject = function(includeInstance, msg) {
2132
- var f, obj = {
2133
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2134
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2135
- };
2136
-
2137
- if (includeInstance) {
2138
- obj.$jspbMessageInstance = msg;
2139
- }
2140
- return obj;
2141
- };
2142
- }
2143
-
2144
-
2145
- /**
2146
- * Deserializes binary data (in protobuf wire format).
2147
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2148
- * @return {!proto.DeleteLineOfApprovalResponse}
2149
- */
2150
- proto.DeleteLineOfApprovalResponse.deserializeBinary = function(bytes) {
2151
- var reader = new jspb.BinaryReader(bytes);
2152
- var msg = new proto.DeleteLineOfApprovalResponse;
2153
- return proto.DeleteLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
2154
- };
2155
-
2156
-
2157
- /**
2158
- * Deserializes binary data (in protobuf wire format) from the
2159
- * given reader into the given message object.
2160
- * @param {!proto.DeleteLineOfApprovalResponse} msg The message object to deserialize into.
2161
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2162
- * @return {!proto.DeleteLineOfApprovalResponse}
2163
- */
2164
- proto.DeleteLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
2165
- while (reader.nextField()) {
2166
- if (reader.isEndGroup()) {
2167
- break;
2168
- }
2169
- var field = reader.getFieldNumber();
2170
- switch (field) {
2171
- case 1:
2172
- var value = /** @type {string} */ (reader.readString());
2173
- msg.setReferencesId(value);
2174
- break;
2175
- case 2:
2176
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2177
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2178
- msg.setMeta(value);
2179
- break;
2180
- default:
2181
- reader.skipField();
2182
- break;
2183
- }
2184
- }
2185
- return msg;
2186
- };
2187
-
2188
-
2189
- /**
2190
- * Serializes the message to binary data (in protobuf wire format).
2191
- * @return {!Uint8Array}
2192
- */
2193
- proto.DeleteLineOfApprovalResponse.prototype.serializeBinary = function() {
2194
- var writer = new jspb.BinaryWriter();
2195
- proto.DeleteLineOfApprovalResponse.serializeBinaryToWriter(this, writer);
2196
- return writer.getResultBuffer();
2197
- };
2198
-
2199
-
2200
- /**
2201
- * Serializes the given message to binary data (in protobuf wire
2202
- * format), writing to the given BinaryWriter.
2203
- * @param {!proto.DeleteLineOfApprovalResponse} message
2204
- * @param {!jspb.BinaryWriter} writer
2205
- * @suppress {unusedLocalVariables} f is only used for nested messages
2206
- */
2207
- proto.DeleteLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2208
- var f = undefined;
2209
- f = message.getReferencesId();
2210
- if (f.length > 0) {
2211
- writer.writeString(
2212
- 1,
2213
- f
2214
- );
2215
- }
2216
- f = message.getMeta();
2217
- if (f != null) {
2218
- writer.writeMessage(
2219
- 2,
2220
- f,
2221
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2222
- );
2223
- }
2224
- };
2225
-
2226
-
2227
- /**
2228
- * optional string references_id = 1;
2229
- * @return {string}
2230
- */
2231
- proto.DeleteLineOfApprovalResponse.prototype.getReferencesId = function() {
2232
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2233
- };
2234
-
2235
-
2236
- /**
2237
- * @param {string} value
2238
- * @return {!proto.DeleteLineOfApprovalResponse} returns this
2239
- */
2240
- proto.DeleteLineOfApprovalResponse.prototype.setReferencesId = function(value) {
2241
- return jspb.Message.setProto3StringField(this, 1, value);
2242
- };
2243
-
2244
-
2245
- /**
2246
- * optional prisca.v1.global.meta.Meta meta = 2;
2247
- * @return {?proto.prisca.v1.global.meta.Meta}
2248
- */
2249
- proto.DeleteLineOfApprovalResponse.prototype.getMeta = function() {
2250
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2251
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2252
- };
2253
-
2254
-
2255
- /**
2256
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2257
- * @return {!proto.DeleteLineOfApprovalResponse} returns this
2258
- */
2259
- proto.DeleteLineOfApprovalResponse.prototype.setMeta = function(value) {
2260
- return jspb.Message.setWrapperField(this, 2, value);
2261
- };
2262
-
2263
-
2264
- /**
2265
- * Clears the message field making it undefined.
2266
- * @return {!proto.DeleteLineOfApprovalResponse} returns this
2267
- */
2268
- proto.DeleteLineOfApprovalResponse.prototype.clearMeta = function() {
2269
- return this.setMeta(undefined);
2270
- };
2271
-
2272
-
2273
- /**
2274
- * Returns whether this field is set.
2275
- * @return {boolean}
2276
- */
2277
- proto.DeleteLineOfApprovalResponse.prototype.hasMeta = function() {
2278
- return jspb.Message.getField(this, 2) != null;
2279
- };
2280
-
2281
-
2282
-
2283
-
2284
-
2285
- if (jspb.Message.GENERATE_TO_OBJECT) {
2286
- /**
2287
- * Creates an object representation of this proto.
2288
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2289
- * Optional fields that are not set will be set to undefined.
2290
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2291
- * For the list of reserved names please see:
2292
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2293
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2294
- * JSPB instance for transitional soy proto support:
2295
- * http://goto/soy-param-migration
2296
- * @return {!Object}
2297
- */
2298
- proto.GetLineOfApprovalByIdResponse.prototype.toObject = function(opt_includeInstance) {
2299
- return proto.GetLineOfApprovalByIdResponse.toObject(opt_includeInstance, this);
2300
- };
2301
-
2302
-
2303
- /**
2304
- * Static version of the {@see toObject} method.
2305
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2306
- * the JSPB instance for transitional soy proto support:
2307
- * http://goto/soy-param-migration
2308
- * @param {!proto.GetLineOfApprovalByIdResponse} msg The msg instance to transform.
2309
- * @return {!Object}
2310
- * @suppress {unusedLocalVariables} f is only used for nested messages
2311
- */
2312
- proto.GetLineOfApprovalByIdResponse.toObject = function(includeInstance, msg) {
2313
- var f, obj = {
2314
- lineOfApproval: (f = msg.getLineOfApproval()) && proto.LineOfApproval.toObject(includeInstance, f),
2315
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2316
- };
2317
-
2318
- if (includeInstance) {
2319
- obj.$jspbMessageInstance = msg;
2320
- }
2321
- return obj;
2322
- };
2323
- }
2324
-
2325
-
2326
- /**
2327
- * Deserializes binary data (in protobuf wire format).
2328
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2329
- * @return {!proto.GetLineOfApprovalByIdResponse}
2330
- */
2331
- proto.GetLineOfApprovalByIdResponse.deserializeBinary = function(bytes) {
2332
- var reader = new jspb.BinaryReader(bytes);
2333
- var msg = new proto.GetLineOfApprovalByIdResponse;
2334
- return proto.GetLineOfApprovalByIdResponse.deserializeBinaryFromReader(msg, reader);
2335
- };
2336
-
2337
-
2338
- /**
2339
- * Deserializes binary data (in protobuf wire format) from the
2340
- * given reader into the given message object.
2341
- * @param {!proto.GetLineOfApprovalByIdResponse} msg The message object to deserialize into.
2342
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2343
- * @return {!proto.GetLineOfApprovalByIdResponse}
2344
- */
2345
- proto.GetLineOfApprovalByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2346
- while (reader.nextField()) {
2347
- if (reader.isEndGroup()) {
2348
- break;
2349
- }
2350
- var field = reader.getFieldNumber();
2351
- switch (field) {
2352
- case 1:
2353
- var value = new proto.LineOfApproval;
2354
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
2355
- msg.setLineOfApproval(value);
2356
- break;
2357
- case 2:
2358
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2359
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2360
- msg.setMeta(value);
2361
- break;
2362
- default:
2363
- reader.skipField();
2364
- break;
2365
- }
2366
- }
2367
- return msg;
2368
- };
2369
-
2370
-
2371
- /**
2372
- * Serializes the message to binary data (in protobuf wire format).
2373
- * @return {!Uint8Array}
2374
- */
2375
- proto.GetLineOfApprovalByIdResponse.prototype.serializeBinary = function() {
2376
- var writer = new jspb.BinaryWriter();
2377
- proto.GetLineOfApprovalByIdResponse.serializeBinaryToWriter(this, writer);
2378
- return writer.getResultBuffer();
2379
- };
2380
-
2381
-
2382
- /**
2383
- * Serializes the given message to binary data (in protobuf wire
2384
- * format), writing to the given BinaryWriter.
2385
- * @param {!proto.GetLineOfApprovalByIdResponse} message
2386
- * @param {!jspb.BinaryWriter} writer
2387
- * @suppress {unusedLocalVariables} f is only used for nested messages
2388
- */
2389
- proto.GetLineOfApprovalByIdResponse.serializeBinaryToWriter = function(message, writer) {
2390
- var f = undefined;
2391
- f = message.getLineOfApproval();
2392
- if (f != null) {
2393
- writer.writeMessage(
2394
- 1,
2395
- f,
2396
- proto.LineOfApproval.serializeBinaryToWriter
2397
- );
2398
- }
2399
- f = message.getMeta();
2400
- if (f != null) {
2401
- writer.writeMessage(
2402
- 2,
2403
- f,
2404
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2405
- );
2406
- }
2407
- };
2408
-
2409
-
2410
- /**
2411
- * optional LineOfApproval line_of_approval = 1;
2412
- * @return {?proto.LineOfApproval}
2413
- */
2414
- proto.GetLineOfApprovalByIdResponse.prototype.getLineOfApproval = function() {
2415
- return /** @type{?proto.LineOfApproval} */ (
2416
- jspb.Message.getWrapperField(this, proto.LineOfApproval, 1));
2417
- };
2418
-
2419
-
2420
- /**
2421
- * @param {?proto.LineOfApproval|undefined} value
2422
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2423
- */
2424
- proto.GetLineOfApprovalByIdResponse.prototype.setLineOfApproval = function(value) {
2425
- return jspb.Message.setWrapperField(this, 1, value);
2426
- };
2427
-
2428
-
2429
- /**
2430
- * Clears the message field making it undefined.
2431
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2432
- */
2433
- proto.GetLineOfApprovalByIdResponse.prototype.clearLineOfApproval = function() {
2434
- return this.setLineOfApproval(undefined);
2435
- };
2436
-
2437
-
2438
- /**
2439
- * Returns whether this field is set.
2440
- * @return {boolean}
2441
- */
2442
- proto.GetLineOfApprovalByIdResponse.prototype.hasLineOfApproval = function() {
2443
- return jspb.Message.getField(this, 1) != null;
2444
- };
2445
-
2446
-
2447
- /**
2448
- * optional prisca.v1.global.meta.Meta meta = 2;
2449
- * @return {?proto.prisca.v1.global.meta.Meta}
2450
- */
2451
- proto.GetLineOfApprovalByIdResponse.prototype.getMeta = function() {
2452
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2453
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2454
- };
2455
-
2456
-
2457
- /**
2458
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2459
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2460
- */
2461
- proto.GetLineOfApprovalByIdResponse.prototype.setMeta = function(value) {
2462
- return jspb.Message.setWrapperField(this, 2, value);
2463
- };
2464
-
2465
-
2466
- /**
2467
- * Clears the message field making it undefined.
2468
- * @return {!proto.GetLineOfApprovalByIdResponse} returns this
2469
- */
2470
- proto.GetLineOfApprovalByIdResponse.prototype.clearMeta = function() {
2471
- return this.setMeta(undefined);
2472
- };
2473
-
2474
-
2475
- /**
2476
- * Returns whether this field is set.
2477
- * @return {boolean}
2478
- */
2479
- proto.GetLineOfApprovalByIdResponse.prototype.hasMeta = function() {
2480
- return jspb.Message.getField(this, 2) != null;
2481
- };
2482
-
2483
-
2484
-
2485
- /**
2486
- * List of repeated fields within this message type.
2487
- * @private {!Array<number>}
2488
- * @const
2489
- */
2490
- proto.GetListLineOfApprovalResponse.repeatedFields_ = [1];
2491
-
2492
-
2493
-
2494
- if (jspb.Message.GENERATE_TO_OBJECT) {
2495
- /**
2496
- * Creates an object representation of this proto.
2497
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2498
- * Optional fields that are not set will be set to undefined.
2499
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2500
- * For the list of reserved names please see:
2501
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2502
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2503
- * JSPB instance for transitional soy proto support:
2504
- * http://goto/soy-param-migration
2505
- * @return {!Object}
2506
- */
2507
- proto.GetListLineOfApprovalResponse.prototype.toObject = function(opt_includeInstance) {
2508
- return proto.GetListLineOfApprovalResponse.toObject(opt_includeInstance, this);
2509
- };
2510
-
2511
-
2512
- /**
2513
- * Static version of the {@see toObject} method.
2514
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2515
- * the JSPB instance for transitional soy proto support:
2516
- * http://goto/soy-param-migration
2517
- * @param {!proto.GetListLineOfApprovalResponse} msg The msg instance to transform.
2518
- * @return {!Object}
2519
- * @suppress {unusedLocalVariables} f is only used for nested messages
2520
- */
2521
- proto.GetListLineOfApprovalResponse.toObject = function(includeInstance, msg) {
2522
- var f, obj = {
2523
- lineOfApprovalsList: jspb.Message.toObjectList(msg.getLineOfApprovalsList(),
2524
- proto.LineOfApproval.toObject, includeInstance),
2525
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2526
- };
2527
-
2528
- if (includeInstance) {
2529
- obj.$jspbMessageInstance = msg;
2530
- }
2531
- return obj;
2532
- };
2533
- }
2534
-
2535
-
2536
- /**
2537
- * Deserializes binary data (in protobuf wire format).
2538
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2539
- * @return {!proto.GetListLineOfApprovalResponse}
2540
- */
2541
- proto.GetListLineOfApprovalResponse.deserializeBinary = function(bytes) {
2542
- var reader = new jspb.BinaryReader(bytes);
2543
- var msg = new proto.GetListLineOfApprovalResponse;
2544
- return proto.GetListLineOfApprovalResponse.deserializeBinaryFromReader(msg, reader);
2545
- };
2546
-
2547
-
2548
- /**
2549
- * Deserializes binary data (in protobuf wire format) from the
2550
- * given reader into the given message object.
2551
- * @param {!proto.GetListLineOfApprovalResponse} msg The message object to deserialize into.
2552
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2553
- * @return {!proto.GetListLineOfApprovalResponse}
2554
- */
2555
- proto.GetListLineOfApprovalResponse.deserializeBinaryFromReader = function(msg, reader) {
2556
- while (reader.nextField()) {
2557
- if (reader.isEndGroup()) {
2558
- break;
2559
- }
2560
- var field = reader.getFieldNumber();
2561
- switch (field) {
2562
- case 1:
2563
- var value = new proto.LineOfApproval;
2564
- reader.readMessage(value,proto.LineOfApproval.deserializeBinaryFromReader);
2565
- msg.addLineOfApprovals(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.GetListLineOfApprovalResponse.prototype.serializeBinary = function() {
2586
- var writer = new jspb.BinaryWriter();
2587
- proto.GetListLineOfApprovalResponse.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.GetListLineOfApprovalResponse} message
2596
- * @param {!jspb.BinaryWriter} writer
2597
- * @suppress {unusedLocalVariables} f is only used for nested messages
2598
- */
2599
- proto.GetListLineOfApprovalResponse.serializeBinaryToWriter = function(message, writer) {
2600
- var f = undefined;
2601
- f = message.getLineOfApprovalsList();
2602
- if (f.length > 0) {
2603
- writer.writeRepeatedMessage(
2604
- 1,
2605
- f,
2606
- proto.LineOfApproval.serializeBinaryToWriter
2607
- );
2608
- }
2609
- f = message.getMeta();
2610
- if (f != null) {
2611
- writer.writeMessage(
2612
- 2,
2613
- f,
2614
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2615
- );
2616
- }
2617
- };
2618
-
2619
-
2620
- /**
2621
- * repeated LineOfApproval line_of_approvals = 1;
2622
- * @return {!Array<!proto.LineOfApproval>}
2623
- */
2624
- proto.GetListLineOfApprovalResponse.prototype.getLineOfApprovalsList = function() {
2625
- return /** @type{!Array<!proto.LineOfApproval>} */ (
2626
- jspb.Message.getRepeatedWrapperField(this, proto.LineOfApproval, 1));
2627
- };
2628
-
2629
-
2630
- /**
2631
- * @param {!Array<!proto.LineOfApproval>} value
2632
- * @return {!proto.GetListLineOfApprovalResponse} returns this
2633
- */
2634
- proto.GetListLineOfApprovalResponse.prototype.setLineOfApprovalsList = function(value) {
2635
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2636
- };
2637
-
2638
-
2639
- /**
2640
- * @param {!proto.LineOfApproval=} opt_value
2641
- * @param {number=} opt_index
2642
- * @return {!proto.LineOfApproval}
2643
- */
2644
- proto.GetListLineOfApprovalResponse.prototype.addLineOfApprovals = function(opt_value, opt_index) {
2645
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.LineOfApproval, opt_index);
2646
- };
2647
-
2648
-
2649
- /**
2650
- * Clears the list making it empty but non-null.
2651
- * @return {!proto.GetListLineOfApprovalResponse} returns this
2652
- */
2653
- proto.GetListLineOfApprovalResponse.prototype.clearLineOfApprovalsList = function() {
2654
- return this.setLineOfApprovalsList([]);
2655
- };
2656
-
2657
-
2658
- /**
2659
- * optional prisca.v1.global.meta.Meta meta = 2;
2660
- * @return {?proto.prisca.v1.global.meta.Meta}
2661
- */
2662
- proto.GetListLineOfApprovalResponse.prototype.getMeta = function() {
2663
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2664
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2665
- };
2666
-
2667
-
2668
- /**
2669
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2670
- * @return {!proto.GetListLineOfApprovalResponse} returns this
2671
- */
2672
- proto.GetListLineOfApprovalResponse.prototype.setMeta = function(value) {
2673
- return jspb.Message.setWrapperField(this, 2, value);
2674
- };
2675
-
2676
-
2677
- /**
2678
- * Clears the message field making it undefined.
2679
- * @return {!proto.GetListLineOfApprovalResponse} returns this
2680
- */
2681
- proto.GetListLineOfApprovalResponse.prototype.clearMeta = function() {
2682
- return this.setMeta(undefined);
2683
- };
2684
-
2685
-
2686
- /**
2687
- * Returns whether this field is set.
2688
- * @return {boolean}
2689
- */
2690
- proto.GetListLineOfApprovalResponse.prototype.hasMeta = function() {
2691
- return jspb.Message.getField(this, 2) != null;
2692
- };
2693
-
2694
-
2695
- goog.object.extend(exports, proto);