@aldiokta/protocgen 1.1.21 → 1.1.23

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 (165) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -229
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6335
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3048
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3910
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4180
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  135. package/prisca/v1/core/users/users_pb.js +0 -1246
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  140. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  141. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  142. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  143. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  144. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  145. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  146. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  147. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4959
  148. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  149. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  150. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  151. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  152. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  153. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  154. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  155. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  156. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  158. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -152
  159. package/prisca/v1/quotation/quotation_pb.js +0 -2319
  160. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  161. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  162. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  163. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  164. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  165. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -1,1188 +0,0 @@
1
- // source: prisca/v1/core/line_of_activity/line_of_activity.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
- goog.exportSymbol('proto.Activity', null, global);
27
- goog.exportSymbol('proto.ActivityRequest', null, global);
28
- goog.exportSymbol('proto.ActivityResponse', null, global);
29
- goog.exportSymbol('proto.DocumentRequest', null, global);
30
- goog.exportSymbol('proto.LineOfActivity', null, global);
31
- /**
32
- * Generated by JsPbCodeGenerator.
33
- * @param {Array=} opt_data Optional initial data array, typically from a
34
- * server response, or constructed directly in Javascript. The array is used
35
- * in place and becomes part of the constructed object. It is not cloned.
36
- * If no data is provided, the constructed object will be empty, but still
37
- * valid.
38
- * @extends {jspb.Message}
39
- * @constructor
40
- */
41
- proto.LineOfActivity = function(opt_data) {
42
- jspb.Message.initialize(this, opt_data, 0, -1, proto.LineOfActivity.repeatedFields_, null);
43
- };
44
- goog.inherits(proto.LineOfActivity, jspb.Message);
45
- if (goog.DEBUG && !COMPILED) {
46
- /**
47
- * @public
48
- * @override
49
- */
50
- proto.LineOfActivity.displayName = 'proto.LineOfActivity';
51
- }
52
- /**
53
- * Generated by JsPbCodeGenerator.
54
- * @param {Array=} opt_data Optional initial data array, typically from a
55
- * server response, or constructed directly in Javascript. The array is used
56
- * in place and becomes part of the constructed object. It is not cloned.
57
- * If no data is provided, the constructed object will be empty, but still
58
- * valid.
59
- * @extends {jspb.Message}
60
- * @constructor
61
- */
62
- proto.Activity = function(opt_data) {
63
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
64
- };
65
- goog.inherits(proto.Activity, jspb.Message);
66
- if (goog.DEBUG && !COMPILED) {
67
- /**
68
- * @public
69
- * @override
70
- */
71
- proto.Activity.displayName = 'proto.Activity';
72
- }
73
- /**
74
- * Generated by JsPbCodeGenerator.
75
- * @param {Array=} opt_data Optional initial data array, typically from a
76
- * server response, or constructed directly in Javascript. The array is used
77
- * in place and becomes part of the constructed object. It is not cloned.
78
- * If no data is provided, the constructed object will be empty, but still
79
- * valid.
80
- * @extends {jspb.Message}
81
- * @constructor
82
- */
83
- proto.ActivityRequest = function(opt_data) {
84
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
85
- };
86
- goog.inherits(proto.ActivityRequest, jspb.Message);
87
- if (goog.DEBUG && !COMPILED) {
88
- /**
89
- * @public
90
- * @override
91
- */
92
- proto.ActivityRequest.displayName = 'proto.ActivityRequest';
93
- }
94
- /**
95
- * Generated by JsPbCodeGenerator.
96
- * @param {Array=} opt_data Optional initial data array, typically from a
97
- * server response, or constructed directly in Javascript. The array is used
98
- * in place and becomes part of the constructed object. It is not cloned.
99
- * If no data is provided, the constructed object will be empty, but still
100
- * valid.
101
- * @extends {jspb.Message}
102
- * @constructor
103
- */
104
- proto.DocumentRequest = function(opt_data) {
105
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
106
- };
107
- goog.inherits(proto.DocumentRequest, jspb.Message);
108
- if (goog.DEBUG && !COMPILED) {
109
- /**
110
- * @public
111
- * @override
112
- */
113
- proto.DocumentRequest.displayName = 'proto.DocumentRequest';
114
- }
115
- /**
116
- * Generated by JsPbCodeGenerator.
117
- * @param {Array=} opt_data Optional initial data array, typically from a
118
- * server response, or constructed directly in Javascript. The array is used
119
- * in place and becomes part of the constructed object. It is not cloned.
120
- * If no data is provided, the constructed object will be empty, but still
121
- * valid.
122
- * @extends {jspb.Message}
123
- * @constructor
124
- */
125
- proto.ActivityResponse = function(opt_data) {
126
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
127
- };
128
- goog.inherits(proto.ActivityResponse, jspb.Message);
129
- if (goog.DEBUG && !COMPILED) {
130
- /**
131
- * @public
132
- * @override
133
- */
134
- proto.ActivityResponse.displayName = 'proto.ActivityResponse';
135
- }
136
-
137
- /**
138
- * List of repeated fields within this message type.
139
- * @private {!Array<number>}
140
- * @const
141
- */
142
- proto.LineOfActivity.repeatedFields_ = [1];
143
-
144
-
145
-
146
- if (jspb.Message.GENERATE_TO_OBJECT) {
147
- /**
148
- * Creates an object representation of this proto.
149
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
150
- * Optional fields that are not set will be set to undefined.
151
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
152
- * For the list of reserved names please see:
153
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
154
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
155
- * JSPB instance for transitional soy proto support:
156
- * http://goto/soy-param-migration
157
- * @return {!Object}
158
- */
159
- proto.LineOfActivity.prototype.toObject = function(opt_includeInstance) {
160
- return proto.LineOfActivity.toObject(opt_includeInstance, this);
161
- };
162
-
163
-
164
- /**
165
- * Static version of the {@see toObject} method.
166
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
167
- * the JSPB instance for transitional soy proto support:
168
- * http://goto/soy-param-migration
169
- * @param {!proto.LineOfActivity} msg The msg instance to transform.
170
- * @return {!Object}
171
- * @suppress {unusedLocalVariables} f is only used for nested messages
172
- */
173
- proto.LineOfActivity.toObject = function(includeInstance, msg) {
174
- var f, obj = {
175
- activityList: jspb.Message.toObjectList(msg.getActivityList(),
176
- proto.Activity.toObject, includeInstance)
177
- };
178
-
179
- if (includeInstance) {
180
- obj.$jspbMessageInstance = msg;
181
- }
182
- return obj;
183
- };
184
- }
185
-
186
-
187
- /**
188
- * Deserializes binary data (in protobuf wire format).
189
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
190
- * @return {!proto.LineOfActivity}
191
- */
192
- proto.LineOfActivity.deserializeBinary = function(bytes) {
193
- var reader = new jspb.BinaryReader(bytes);
194
- var msg = new proto.LineOfActivity;
195
- return proto.LineOfActivity.deserializeBinaryFromReader(msg, reader);
196
- };
197
-
198
-
199
- /**
200
- * Deserializes binary data (in protobuf wire format) from the
201
- * given reader into the given message object.
202
- * @param {!proto.LineOfActivity} msg The message object to deserialize into.
203
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
204
- * @return {!proto.LineOfActivity}
205
- */
206
- proto.LineOfActivity.deserializeBinaryFromReader = function(msg, reader) {
207
- while (reader.nextField()) {
208
- if (reader.isEndGroup()) {
209
- break;
210
- }
211
- var field = reader.getFieldNumber();
212
- switch (field) {
213
- case 1:
214
- var value = new proto.Activity;
215
- reader.readMessage(value,proto.Activity.deserializeBinaryFromReader);
216
- msg.addActivity(value);
217
- break;
218
- default:
219
- reader.skipField();
220
- break;
221
- }
222
- }
223
- return msg;
224
- };
225
-
226
-
227
- /**
228
- * Serializes the message to binary data (in protobuf wire format).
229
- * @return {!Uint8Array}
230
- */
231
- proto.LineOfActivity.prototype.serializeBinary = function() {
232
- var writer = new jspb.BinaryWriter();
233
- proto.LineOfActivity.serializeBinaryToWriter(this, writer);
234
- return writer.getResultBuffer();
235
- };
236
-
237
-
238
- /**
239
- * Serializes the given message to binary data (in protobuf wire
240
- * format), writing to the given BinaryWriter.
241
- * @param {!proto.LineOfActivity} message
242
- * @param {!jspb.BinaryWriter} writer
243
- * @suppress {unusedLocalVariables} f is only used for nested messages
244
- */
245
- proto.LineOfActivity.serializeBinaryToWriter = function(message, writer) {
246
- var f = undefined;
247
- f = message.getActivityList();
248
- if (f.length > 0) {
249
- writer.writeRepeatedMessage(
250
- 1,
251
- f,
252
- proto.Activity.serializeBinaryToWriter
253
- );
254
- }
255
- };
256
-
257
-
258
- /**
259
- * repeated Activity activity = 1;
260
- * @return {!Array<!proto.Activity>}
261
- */
262
- proto.LineOfActivity.prototype.getActivityList = function() {
263
- return /** @type{!Array<!proto.Activity>} */ (
264
- jspb.Message.getRepeatedWrapperField(this, proto.Activity, 1));
265
- };
266
-
267
-
268
- /**
269
- * @param {!Array<!proto.Activity>} value
270
- * @return {!proto.LineOfActivity} returns this
271
- */
272
- proto.LineOfActivity.prototype.setActivityList = function(value) {
273
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
274
- };
275
-
276
-
277
- /**
278
- * @param {!proto.Activity=} opt_value
279
- * @param {number=} opt_index
280
- * @return {!proto.Activity}
281
- */
282
- proto.LineOfActivity.prototype.addActivity = function(opt_value, opt_index) {
283
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Activity, opt_index);
284
- };
285
-
286
-
287
- /**
288
- * Clears the list making it empty but non-null.
289
- * @return {!proto.LineOfActivity} returns this
290
- */
291
- proto.LineOfActivity.prototype.clearActivityList = function() {
292
- return this.setActivityList([]);
293
- };
294
-
295
-
296
-
297
-
298
-
299
- if (jspb.Message.GENERATE_TO_OBJECT) {
300
- /**
301
- * Creates an object representation of this proto.
302
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
303
- * Optional fields that are not set will be set to undefined.
304
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
305
- * For the list of reserved names please see:
306
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
307
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
308
- * JSPB instance for transitional soy proto support:
309
- * http://goto/soy-param-migration
310
- * @return {!Object}
311
- */
312
- proto.Activity.prototype.toObject = function(opt_includeInstance) {
313
- return proto.Activity.toObject(opt_includeInstance, this);
314
- };
315
-
316
-
317
- /**
318
- * Static version of the {@see toObject} method.
319
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
320
- * the JSPB instance for transitional soy proto support:
321
- * http://goto/soy-param-migration
322
- * @param {!proto.Activity} msg The msg instance to transform.
323
- * @return {!Object}
324
- * @suppress {unusedLocalVariables} f is only used for nested messages
325
- */
326
- proto.Activity.toObject = function(includeInstance, msg) {
327
- var f, obj = {
328
- action: jspb.Message.getFieldWithDefault(msg, 1, ""),
329
- actor: jspb.Message.getFieldWithDefault(msg, 2, ""),
330
- document: jspb.Message.getFieldWithDefault(msg, 3, ""),
331
- timestamp: jspb.Message.getFieldWithDefault(msg, 4, ""),
332
- note: jspb.Message.getFieldWithDefault(msg, 5, "")
333
- };
334
-
335
- if (includeInstance) {
336
- obj.$jspbMessageInstance = msg;
337
- }
338
- return obj;
339
- };
340
- }
341
-
342
-
343
- /**
344
- * Deserializes binary data (in protobuf wire format).
345
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
346
- * @return {!proto.Activity}
347
- */
348
- proto.Activity.deserializeBinary = function(bytes) {
349
- var reader = new jspb.BinaryReader(bytes);
350
- var msg = new proto.Activity;
351
- return proto.Activity.deserializeBinaryFromReader(msg, reader);
352
- };
353
-
354
-
355
- /**
356
- * Deserializes binary data (in protobuf wire format) from the
357
- * given reader into the given message object.
358
- * @param {!proto.Activity} msg The message object to deserialize into.
359
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
360
- * @return {!proto.Activity}
361
- */
362
- proto.Activity.deserializeBinaryFromReader = function(msg, reader) {
363
- while (reader.nextField()) {
364
- if (reader.isEndGroup()) {
365
- break;
366
- }
367
- var field = reader.getFieldNumber();
368
- switch (field) {
369
- case 1:
370
- var value = /** @type {string} */ (reader.readString());
371
- msg.setAction(value);
372
- break;
373
- case 2:
374
- var value = /** @type {string} */ (reader.readString());
375
- msg.setActor(value);
376
- break;
377
- case 3:
378
- var value = /** @type {string} */ (reader.readString());
379
- msg.setDocument(value);
380
- break;
381
- case 4:
382
- var value = /** @type {string} */ (reader.readString());
383
- msg.setTimestamp(value);
384
- break;
385
- case 5:
386
- var value = /** @type {string} */ (reader.readString());
387
- msg.setNote(value);
388
- break;
389
- default:
390
- reader.skipField();
391
- break;
392
- }
393
- }
394
- return msg;
395
- };
396
-
397
-
398
- /**
399
- * Serializes the message to binary data (in protobuf wire format).
400
- * @return {!Uint8Array}
401
- */
402
- proto.Activity.prototype.serializeBinary = function() {
403
- var writer = new jspb.BinaryWriter();
404
- proto.Activity.serializeBinaryToWriter(this, writer);
405
- return writer.getResultBuffer();
406
- };
407
-
408
-
409
- /**
410
- * Serializes the given message to binary data (in protobuf wire
411
- * format), writing to the given BinaryWriter.
412
- * @param {!proto.Activity} message
413
- * @param {!jspb.BinaryWriter} writer
414
- * @suppress {unusedLocalVariables} f is only used for nested messages
415
- */
416
- proto.Activity.serializeBinaryToWriter = function(message, writer) {
417
- var f = undefined;
418
- f = message.getAction();
419
- if (f.length > 0) {
420
- writer.writeString(
421
- 1,
422
- f
423
- );
424
- }
425
- f = message.getActor();
426
- if (f.length > 0) {
427
- writer.writeString(
428
- 2,
429
- f
430
- );
431
- }
432
- f = message.getDocument();
433
- if (f.length > 0) {
434
- writer.writeString(
435
- 3,
436
- f
437
- );
438
- }
439
- f = message.getTimestamp();
440
- if (f.length > 0) {
441
- writer.writeString(
442
- 4,
443
- f
444
- );
445
- }
446
- f = message.getNote();
447
- if (f.length > 0) {
448
- writer.writeString(
449
- 5,
450
- f
451
- );
452
- }
453
- };
454
-
455
-
456
- /**
457
- * optional string action = 1;
458
- * @return {string}
459
- */
460
- proto.Activity.prototype.getAction = function() {
461
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
462
- };
463
-
464
-
465
- /**
466
- * @param {string} value
467
- * @return {!proto.Activity} returns this
468
- */
469
- proto.Activity.prototype.setAction = function(value) {
470
- return jspb.Message.setProto3StringField(this, 1, value);
471
- };
472
-
473
-
474
- /**
475
- * optional string actor = 2;
476
- * @return {string}
477
- */
478
- proto.Activity.prototype.getActor = function() {
479
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
480
- };
481
-
482
-
483
- /**
484
- * @param {string} value
485
- * @return {!proto.Activity} returns this
486
- */
487
- proto.Activity.prototype.setActor = function(value) {
488
- return jspb.Message.setProto3StringField(this, 2, value);
489
- };
490
-
491
-
492
- /**
493
- * optional string document = 3;
494
- * @return {string}
495
- */
496
- proto.Activity.prototype.getDocument = function() {
497
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
498
- };
499
-
500
-
501
- /**
502
- * @param {string} value
503
- * @return {!proto.Activity} returns this
504
- */
505
- proto.Activity.prototype.setDocument = function(value) {
506
- return jspb.Message.setProto3StringField(this, 3, value);
507
- };
508
-
509
-
510
- /**
511
- * optional string timestamp = 4;
512
- * @return {string}
513
- */
514
- proto.Activity.prototype.getTimestamp = function() {
515
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
516
- };
517
-
518
-
519
- /**
520
- * @param {string} value
521
- * @return {!proto.Activity} returns this
522
- */
523
- proto.Activity.prototype.setTimestamp = function(value) {
524
- return jspb.Message.setProto3StringField(this, 4, value);
525
- };
526
-
527
-
528
- /**
529
- * optional string note = 5;
530
- * @return {string}
531
- */
532
- proto.Activity.prototype.getNote = function() {
533
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
534
- };
535
-
536
-
537
- /**
538
- * @param {string} value
539
- * @return {!proto.Activity} returns this
540
- */
541
- proto.Activity.prototype.setNote = function(value) {
542
- return jspb.Message.setProto3StringField(this, 5, value);
543
- };
544
-
545
-
546
-
547
-
548
-
549
- if (jspb.Message.GENERATE_TO_OBJECT) {
550
- /**
551
- * Creates an object representation of this proto.
552
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
553
- * Optional fields that are not set will be set to undefined.
554
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
555
- * For the list of reserved names please see:
556
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
557
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
558
- * JSPB instance for transitional soy proto support:
559
- * http://goto/soy-param-migration
560
- * @return {!Object}
561
- */
562
- proto.ActivityRequest.prototype.toObject = function(opt_includeInstance) {
563
- return proto.ActivityRequest.toObject(opt_includeInstance, this);
564
- };
565
-
566
-
567
- /**
568
- * Static version of the {@see toObject} method.
569
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
570
- * the JSPB instance for transitional soy proto support:
571
- * http://goto/soy-param-migration
572
- * @param {!proto.ActivityRequest} msg The msg instance to transform.
573
- * @return {!Object}
574
- * @suppress {unusedLocalVariables} f is only used for nested messages
575
- */
576
- proto.ActivityRequest.toObject = function(includeInstance, msg) {
577
- var f, obj = {
578
- documentType: jspb.Message.getFieldWithDefault(msg, 1, ""),
579
- docReferencesId: jspb.Message.getFieldWithDefault(msg, 2, "")
580
- };
581
-
582
- if (includeInstance) {
583
- obj.$jspbMessageInstance = msg;
584
- }
585
- return obj;
586
- };
587
- }
588
-
589
-
590
- /**
591
- * Deserializes binary data (in protobuf wire format).
592
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
593
- * @return {!proto.ActivityRequest}
594
- */
595
- proto.ActivityRequest.deserializeBinary = function(bytes) {
596
- var reader = new jspb.BinaryReader(bytes);
597
- var msg = new proto.ActivityRequest;
598
- return proto.ActivityRequest.deserializeBinaryFromReader(msg, reader);
599
- };
600
-
601
-
602
- /**
603
- * Deserializes binary data (in protobuf wire format) from the
604
- * given reader into the given message object.
605
- * @param {!proto.ActivityRequest} msg The message object to deserialize into.
606
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
607
- * @return {!proto.ActivityRequest}
608
- */
609
- proto.ActivityRequest.deserializeBinaryFromReader = function(msg, reader) {
610
- while (reader.nextField()) {
611
- if (reader.isEndGroup()) {
612
- break;
613
- }
614
- var field = reader.getFieldNumber();
615
- switch (field) {
616
- case 1:
617
- var value = /** @type {string} */ (reader.readString());
618
- msg.setDocumentType(value);
619
- break;
620
- case 2:
621
- var value = /** @type {string} */ (reader.readString());
622
- msg.setDocReferencesId(value);
623
- break;
624
- default:
625
- reader.skipField();
626
- break;
627
- }
628
- }
629
- return msg;
630
- };
631
-
632
-
633
- /**
634
- * Serializes the message to binary data (in protobuf wire format).
635
- * @return {!Uint8Array}
636
- */
637
- proto.ActivityRequest.prototype.serializeBinary = function() {
638
- var writer = new jspb.BinaryWriter();
639
- proto.ActivityRequest.serializeBinaryToWriter(this, writer);
640
- return writer.getResultBuffer();
641
- };
642
-
643
-
644
- /**
645
- * Serializes the given message to binary data (in protobuf wire
646
- * format), writing to the given BinaryWriter.
647
- * @param {!proto.ActivityRequest} message
648
- * @param {!jspb.BinaryWriter} writer
649
- * @suppress {unusedLocalVariables} f is only used for nested messages
650
- */
651
- proto.ActivityRequest.serializeBinaryToWriter = function(message, writer) {
652
- var f = undefined;
653
- f = message.getDocumentType();
654
- if (f.length > 0) {
655
- writer.writeString(
656
- 1,
657
- f
658
- );
659
- }
660
- f = message.getDocReferencesId();
661
- if (f.length > 0) {
662
- writer.writeString(
663
- 2,
664
- f
665
- );
666
- }
667
- };
668
-
669
-
670
- /**
671
- * optional string document_type = 1;
672
- * @return {string}
673
- */
674
- proto.ActivityRequest.prototype.getDocumentType = function() {
675
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
676
- };
677
-
678
-
679
- /**
680
- * @param {string} value
681
- * @return {!proto.ActivityRequest} returns this
682
- */
683
- proto.ActivityRequest.prototype.setDocumentType = function(value) {
684
- return jspb.Message.setProto3StringField(this, 1, value);
685
- };
686
-
687
-
688
- /**
689
- * optional string doc_references_id = 2;
690
- * @return {string}
691
- */
692
- proto.ActivityRequest.prototype.getDocReferencesId = function() {
693
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
694
- };
695
-
696
-
697
- /**
698
- * @param {string} value
699
- * @return {!proto.ActivityRequest} returns this
700
- */
701
- proto.ActivityRequest.prototype.setDocReferencesId = function(value) {
702
- return jspb.Message.setProto3StringField(this, 2, value);
703
- };
704
-
705
-
706
-
707
-
708
-
709
- if (jspb.Message.GENERATE_TO_OBJECT) {
710
- /**
711
- * Creates an object representation of this proto.
712
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
713
- * Optional fields that are not set will be set to undefined.
714
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
715
- * For the list of reserved names please see:
716
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
717
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
718
- * JSPB instance for transitional soy proto support:
719
- * http://goto/soy-param-migration
720
- * @return {!Object}
721
- */
722
- proto.DocumentRequest.prototype.toObject = function(opt_includeInstance) {
723
- return proto.DocumentRequest.toObject(opt_includeInstance, this);
724
- };
725
-
726
-
727
- /**
728
- * Static version of the {@see toObject} method.
729
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
730
- * the JSPB instance for transitional soy proto support:
731
- * http://goto/soy-param-migration
732
- * @param {!proto.DocumentRequest} msg The msg instance to transform.
733
- * @return {!Object}
734
- * @suppress {unusedLocalVariables} f is only used for nested messages
735
- */
736
- proto.DocumentRequest.toObject = function(includeInstance, msg) {
737
- var f, obj = {
738
- documentsRefereneces: jspb.Message.getFieldWithDefault(msg, 1, ""),
739
- status: jspb.Message.getFieldWithDefault(msg, 2, ""),
740
- createdAt: jspb.Message.getFieldWithDefault(msg, 3, ""),
741
- createdBy: jspb.Message.getFieldWithDefault(msg, 4, ""),
742
- updatedAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
743
- updatedBy: jspb.Message.getFieldWithDefault(msg, 6, "")
744
- };
745
-
746
- if (includeInstance) {
747
- obj.$jspbMessageInstance = msg;
748
- }
749
- return obj;
750
- };
751
- }
752
-
753
-
754
- /**
755
- * Deserializes binary data (in protobuf wire format).
756
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
757
- * @return {!proto.DocumentRequest}
758
- */
759
- proto.DocumentRequest.deserializeBinary = function(bytes) {
760
- var reader = new jspb.BinaryReader(bytes);
761
- var msg = new proto.DocumentRequest;
762
- return proto.DocumentRequest.deserializeBinaryFromReader(msg, reader);
763
- };
764
-
765
-
766
- /**
767
- * Deserializes binary data (in protobuf wire format) from the
768
- * given reader into the given message object.
769
- * @param {!proto.DocumentRequest} msg The message object to deserialize into.
770
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
771
- * @return {!proto.DocumentRequest}
772
- */
773
- proto.DocumentRequest.deserializeBinaryFromReader = function(msg, reader) {
774
- while (reader.nextField()) {
775
- if (reader.isEndGroup()) {
776
- break;
777
- }
778
- var field = reader.getFieldNumber();
779
- switch (field) {
780
- case 1:
781
- var value = /** @type {string} */ (reader.readString());
782
- msg.setDocumentsRefereneces(value);
783
- break;
784
- case 2:
785
- var value = /** @type {string} */ (reader.readString());
786
- msg.setStatus(value);
787
- break;
788
- case 3:
789
- var value = /** @type {string} */ (reader.readString());
790
- msg.setCreatedAt(value);
791
- break;
792
- case 4:
793
- var value = /** @type {string} */ (reader.readString());
794
- msg.setCreatedBy(value);
795
- break;
796
- case 5:
797
- var value = /** @type {string} */ (reader.readString());
798
- msg.setUpdatedAt(value);
799
- break;
800
- case 6:
801
- var value = /** @type {string} */ (reader.readString());
802
- msg.setUpdatedBy(value);
803
- break;
804
- default:
805
- reader.skipField();
806
- break;
807
- }
808
- }
809
- return msg;
810
- };
811
-
812
-
813
- /**
814
- * Serializes the message to binary data (in protobuf wire format).
815
- * @return {!Uint8Array}
816
- */
817
- proto.DocumentRequest.prototype.serializeBinary = function() {
818
- var writer = new jspb.BinaryWriter();
819
- proto.DocumentRequest.serializeBinaryToWriter(this, writer);
820
- return writer.getResultBuffer();
821
- };
822
-
823
-
824
- /**
825
- * Serializes the given message to binary data (in protobuf wire
826
- * format), writing to the given BinaryWriter.
827
- * @param {!proto.DocumentRequest} message
828
- * @param {!jspb.BinaryWriter} writer
829
- * @suppress {unusedLocalVariables} f is only used for nested messages
830
- */
831
- proto.DocumentRequest.serializeBinaryToWriter = function(message, writer) {
832
- var f = undefined;
833
- f = message.getDocumentsRefereneces();
834
- if (f.length > 0) {
835
- writer.writeString(
836
- 1,
837
- f
838
- );
839
- }
840
- f = message.getStatus();
841
- if (f.length > 0) {
842
- writer.writeString(
843
- 2,
844
- f
845
- );
846
- }
847
- f = message.getCreatedAt();
848
- if (f.length > 0) {
849
- writer.writeString(
850
- 3,
851
- f
852
- );
853
- }
854
- f = message.getCreatedBy();
855
- if (f.length > 0) {
856
- writer.writeString(
857
- 4,
858
- f
859
- );
860
- }
861
- f = message.getUpdatedAt();
862
- if (f.length > 0) {
863
- writer.writeString(
864
- 5,
865
- f
866
- );
867
- }
868
- f = message.getUpdatedBy();
869
- if (f.length > 0) {
870
- writer.writeString(
871
- 6,
872
- f
873
- );
874
- }
875
- };
876
-
877
-
878
- /**
879
- * optional string documents_refereneces = 1;
880
- * @return {string}
881
- */
882
- proto.DocumentRequest.prototype.getDocumentsRefereneces = function() {
883
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
884
- };
885
-
886
-
887
- /**
888
- * @param {string} value
889
- * @return {!proto.DocumentRequest} returns this
890
- */
891
- proto.DocumentRequest.prototype.setDocumentsRefereneces = function(value) {
892
- return jspb.Message.setProto3StringField(this, 1, value);
893
- };
894
-
895
-
896
- /**
897
- * optional string status = 2;
898
- * @return {string}
899
- */
900
- proto.DocumentRequest.prototype.getStatus = function() {
901
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
902
- };
903
-
904
-
905
- /**
906
- * @param {string} value
907
- * @return {!proto.DocumentRequest} returns this
908
- */
909
- proto.DocumentRequest.prototype.setStatus = function(value) {
910
- return jspb.Message.setProto3StringField(this, 2, value);
911
- };
912
-
913
-
914
- /**
915
- * optional string created_at = 3;
916
- * @return {string}
917
- */
918
- proto.DocumentRequest.prototype.getCreatedAt = function() {
919
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
920
- };
921
-
922
-
923
- /**
924
- * @param {string} value
925
- * @return {!proto.DocumentRequest} returns this
926
- */
927
- proto.DocumentRequest.prototype.setCreatedAt = function(value) {
928
- return jspb.Message.setProto3StringField(this, 3, value);
929
- };
930
-
931
-
932
- /**
933
- * optional string created_by = 4;
934
- * @return {string}
935
- */
936
- proto.DocumentRequest.prototype.getCreatedBy = function() {
937
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
938
- };
939
-
940
-
941
- /**
942
- * @param {string} value
943
- * @return {!proto.DocumentRequest} returns this
944
- */
945
- proto.DocumentRequest.prototype.setCreatedBy = function(value) {
946
- return jspb.Message.setProto3StringField(this, 4, value);
947
- };
948
-
949
-
950
- /**
951
- * optional string updated_at = 5;
952
- * @return {string}
953
- */
954
- proto.DocumentRequest.prototype.getUpdatedAt = function() {
955
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
956
- };
957
-
958
-
959
- /**
960
- * @param {string} value
961
- * @return {!proto.DocumentRequest} returns this
962
- */
963
- proto.DocumentRequest.prototype.setUpdatedAt = function(value) {
964
- return jspb.Message.setProto3StringField(this, 5, value);
965
- };
966
-
967
-
968
- /**
969
- * optional string updated_by = 6;
970
- * @return {string}
971
- */
972
- proto.DocumentRequest.prototype.getUpdatedBy = function() {
973
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
974
- };
975
-
976
-
977
- /**
978
- * @param {string} value
979
- * @return {!proto.DocumentRequest} returns this
980
- */
981
- proto.DocumentRequest.prototype.setUpdatedBy = function(value) {
982
- return jspb.Message.setProto3StringField(this, 6, value);
983
- };
984
-
985
-
986
-
987
-
988
-
989
- if (jspb.Message.GENERATE_TO_OBJECT) {
990
- /**
991
- * Creates an object representation of this proto.
992
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
993
- * Optional fields that are not set will be set to undefined.
994
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
995
- * For the list of reserved names please see:
996
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
997
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
998
- * JSPB instance for transitional soy proto support:
999
- * http://goto/soy-param-migration
1000
- * @return {!Object}
1001
- */
1002
- proto.ActivityResponse.prototype.toObject = function(opt_includeInstance) {
1003
- return proto.ActivityResponse.toObject(opt_includeInstance, this);
1004
- };
1005
-
1006
-
1007
- /**
1008
- * Static version of the {@see toObject} method.
1009
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1010
- * the JSPB instance for transitional soy proto support:
1011
- * http://goto/soy-param-migration
1012
- * @param {!proto.ActivityResponse} msg The msg instance to transform.
1013
- * @return {!Object}
1014
- * @suppress {unusedLocalVariables} f is only used for nested messages
1015
- */
1016
- proto.ActivityResponse.toObject = function(includeInstance, msg) {
1017
- var f, obj = {
1018
- lineOfActivity: (f = msg.getLineOfActivity()) && proto.LineOfActivity.toObject(includeInstance, f),
1019
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1020
- };
1021
-
1022
- if (includeInstance) {
1023
- obj.$jspbMessageInstance = msg;
1024
- }
1025
- return obj;
1026
- };
1027
- }
1028
-
1029
-
1030
- /**
1031
- * Deserializes binary data (in protobuf wire format).
1032
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1033
- * @return {!proto.ActivityResponse}
1034
- */
1035
- proto.ActivityResponse.deserializeBinary = function(bytes) {
1036
- var reader = new jspb.BinaryReader(bytes);
1037
- var msg = new proto.ActivityResponse;
1038
- return proto.ActivityResponse.deserializeBinaryFromReader(msg, reader);
1039
- };
1040
-
1041
-
1042
- /**
1043
- * Deserializes binary data (in protobuf wire format) from the
1044
- * given reader into the given message object.
1045
- * @param {!proto.ActivityResponse} msg The message object to deserialize into.
1046
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1047
- * @return {!proto.ActivityResponse}
1048
- */
1049
- proto.ActivityResponse.deserializeBinaryFromReader = function(msg, reader) {
1050
- while (reader.nextField()) {
1051
- if (reader.isEndGroup()) {
1052
- break;
1053
- }
1054
- var field = reader.getFieldNumber();
1055
- switch (field) {
1056
- case 1:
1057
- var value = new proto.LineOfActivity;
1058
- reader.readMessage(value,proto.LineOfActivity.deserializeBinaryFromReader);
1059
- msg.setLineOfActivity(value);
1060
- break;
1061
- case 2:
1062
- var value = new prisca_v1_global_meta_meta_pb.Meta;
1063
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1064
- msg.setMeta(value);
1065
- break;
1066
- default:
1067
- reader.skipField();
1068
- break;
1069
- }
1070
- }
1071
- return msg;
1072
- };
1073
-
1074
-
1075
- /**
1076
- * Serializes the message to binary data (in protobuf wire format).
1077
- * @return {!Uint8Array}
1078
- */
1079
- proto.ActivityResponse.prototype.serializeBinary = function() {
1080
- var writer = new jspb.BinaryWriter();
1081
- proto.ActivityResponse.serializeBinaryToWriter(this, writer);
1082
- return writer.getResultBuffer();
1083
- };
1084
-
1085
-
1086
- /**
1087
- * Serializes the given message to binary data (in protobuf wire
1088
- * format), writing to the given BinaryWriter.
1089
- * @param {!proto.ActivityResponse} message
1090
- * @param {!jspb.BinaryWriter} writer
1091
- * @suppress {unusedLocalVariables} f is only used for nested messages
1092
- */
1093
- proto.ActivityResponse.serializeBinaryToWriter = function(message, writer) {
1094
- var f = undefined;
1095
- f = message.getLineOfActivity();
1096
- if (f != null) {
1097
- writer.writeMessage(
1098
- 1,
1099
- f,
1100
- proto.LineOfActivity.serializeBinaryToWriter
1101
- );
1102
- }
1103
- f = message.getMeta();
1104
- if (f != null) {
1105
- writer.writeMessage(
1106
- 2,
1107
- f,
1108
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1109
- );
1110
- }
1111
- };
1112
-
1113
-
1114
- /**
1115
- * optional LineOfActivity line_of_activity = 1;
1116
- * @return {?proto.LineOfActivity}
1117
- */
1118
- proto.ActivityResponse.prototype.getLineOfActivity = function() {
1119
- return /** @type{?proto.LineOfActivity} */ (
1120
- jspb.Message.getWrapperField(this, proto.LineOfActivity, 1));
1121
- };
1122
-
1123
-
1124
- /**
1125
- * @param {?proto.LineOfActivity|undefined} value
1126
- * @return {!proto.ActivityResponse} returns this
1127
- */
1128
- proto.ActivityResponse.prototype.setLineOfActivity = function(value) {
1129
- return jspb.Message.setWrapperField(this, 1, value);
1130
- };
1131
-
1132
-
1133
- /**
1134
- * Clears the message field making it undefined.
1135
- * @return {!proto.ActivityResponse} returns this
1136
- */
1137
- proto.ActivityResponse.prototype.clearLineOfActivity = function() {
1138
- return this.setLineOfActivity(undefined);
1139
- };
1140
-
1141
-
1142
- /**
1143
- * Returns whether this field is set.
1144
- * @return {boolean}
1145
- */
1146
- proto.ActivityResponse.prototype.hasLineOfActivity = function() {
1147
- return jspb.Message.getField(this, 1) != null;
1148
- };
1149
-
1150
-
1151
- /**
1152
- * optional prisca.v1.global.meta.Meta meta = 2;
1153
- * @return {?proto.prisca.v1.global.meta.Meta}
1154
- */
1155
- proto.ActivityResponse.prototype.getMeta = function() {
1156
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1157
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1158
- };
1159
-
1160
-
1161
- /**
1162
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1163
- * @return {!proto.ActivityResponse} returns this
1164
- */
1165
- proto.ActivityResponse.prototype.setMeta = function(value) {
1166
- return jspb.Message.setWrapperField(this, 2, value);
1167
- };
1168
-
1169
-
1170
- /**
1171
- * Clears the message field making it undefined.
1172
- * @return {!proto.ActivityResponse} returns this
1173
- */
1174
- proto.ActivityResponse.prototype.clearMeta = function() {
1175
- return this.setMeta(undefined);
1176
- };
1177
-
1178
-
1179
- /**
1180
- * Returns whether this field is set.
1181
- * @return {boolean}
1182
- */
1183
- proto.ActivityResponse.prototype.hasMeta = function() {
1184
- return jspb.Message.getField(this, 2) != null;
1185
- };
1186
-
1187
-
1188
- goog.object.extend(exports, proto);