@aldiokta/protocgen 1.0.89 → 1.0.91

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_grpc_pb.js +544 -0
  3. package/prisca/v1/core/access_manager/access_manager_pb.js +9060 -0
  4. package/prisca/v1/core/auth/auth_grpc_pb.js +400 -0
  5. package/prisca/v1/core/auth/auth_pb.js +4253 -0
  6. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  7. package/prisca/v1/core/company/company_pb.js +2875 -0
  8. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  9. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  10. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  11. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  12. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  13. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  14. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +66 -0
  15. package/prisca/v1/core/file_upload/file_upload_pb.js +864 -0
  16. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  17. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  18. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  19. package/prisca/v1/core/job_position/job_position_pb.js +3762 -0
  20. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  21. package/prisca/v1/core/job_title/job_title_pb.js +2958 -0
  22. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  23. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1218 -0
  24. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +178 -0
  25. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +2695 -0
  26. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  27. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  28. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  29. package/prisca/v1/core/location/location_pb.js +10879 -0
  30. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  31. package/prisca/v1/core/material/material_pb.js +4180 -0
  32. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  33. package/prisca/v1/core/material_group/material_group_pb.js +2776 -0
  34. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  35. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  36. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  37. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  38. package/prisca/v1/core/messaging/messaging_grpc_pb.js +45 -0
  39. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  40. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  41. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  42. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  43. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  44. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  45. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  46. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  47. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  48. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  49. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  50. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  51. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  52. package/prisca/v1/core/report/report_grpc_pb.js +189 -0
  53. package/prisca/v1/core/report/report_pb.js +2732 -0
  54. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  55. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  56. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  57. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  58. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +465 -0
  59. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10591 -0
  60. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  61. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  62. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  63. package/prisca/v1/core/users/users_pb.js +1246 -0
  64. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  65. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  66. package/prisca/v1/core/workflow/workflow_grpc_pb.js +202 -0
  67. package/prisca/v1/core/workflow/workflow_pb.js +7376 -0
  68. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  69. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  70. package/prisca/v1/core/access_manager/access_manager.proto +0 -273
  71. package/prisca/v1/core/auth/auth.proto +0 -142
  72. package/prisca/v1/core/company/company.proto +0 -86
  73. package/prisca/v1/core/currency/currency.proto +0 -76
  74. package/prisca/v1/core/department_material/department_material.proto +0 -69
  75. package/prisca/v1/core/employee/employee.proto +0 -129
  76. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  77. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  78. package/prisca/v1/core/job_position/job_position.proto +0 -113
  79. package/prisca/v1/core/job_title/job_title.proto +0 -89
  80. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  81. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -82
  82. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  83. package/prisca/v1/core/location/location.proto +0 -289
  84. package/prisca/v1/core/material/material.proto +0 -131
  85. package/prisca/v1/core/material_group/material_group.proto +0 -85
  86. package/prisca/v1/core/material_type/material_type.proto +0 -86
  87. package/prisca/v1/core/messaging/email_template.proto +0 -75
  88. package/prisca/v1/core/messaging/messaging.proto +0 -28
  89. package/prisca/v1/core/number_range/number_range.proto +0 -89
  90. package/prisca/v1/core/organization/organization.proto +0 -94
  91. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  92. package/prisca/v1/core/procurement/procurement.proto +0 -54
  93. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  94. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  95. package/prisca/v1/core/report/report.proto +0 -86
  96. package/prisca/v1/core/report/user_report.proto +0 -74
  97. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  98. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -314
  99. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  100. package/prisca/v1/core/users/users.proto +0 -45
  101. package/prisca/v1/core/work_location/work_location.proto +0 -122
  102. package/prisca/v1/core/workflow/workflow.proto +0 -219
  103. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -0,0 +1,864 @@
1
+ // source: prisca/v1/core/file_upload/file_upload.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
+ goog.exportSymbol('proto.FileUploadReq', null, global);
25
+ goog.exportSymbol('proto.FileUploadRequest', null, global);
26
+ goog.exportSymbol('proto.FileUploadResponse', null, global);
27
+ goog.exportSymbol('proto.SaveFileRequest', null, global);
28
+ /**
29
+ * Generated by JsPbCodeGenerator.
30
+ * @param {Array=} opt_data Optional initial data array, typically from a
31
+ * server response, or constructed directly in Javascript. The array is used
32
+ * in place and becomes part of the constructed object. It is not cloned.
33
+ * If no data is provided, the constructed object will be empty, but still
34
+ * valid.
35
+ * @extends {jspb.Message}
36
+ * @constructor
37
+ */
38
+ proto.FileUploadRequest = function(opt_data) {
39
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
+ };
41
+ goog.inherits(proto.FileUploadRequest, jspb.Message);
42
+ if (goog.DEBUG && !COMPILED) {
43
+ /**
44
+ * @public
45
+ * @override
46
+ */
47
+ proto.FileUploadRequest.displayName = 'proto.FileUploadRequest';
48
+ }
49
+ /**
50
+ * Generated by JsPbCodeGenerator.
51
+ * @param {Array=} opt_data Optional initial data array, typically from a
52
+ * server response, or constructed directly in Javascript. The array is used
53
+ * in place and becomes part of the constructed object. It is not cloned.
54
+ * If no data is provided, the constructed object will be empty, but still
55
+ * valid.
56
+ * @extends {jspb.Message}
57
+ * @constructor
58
+ */
59
+ proto.FileUploadResponse = function(opt_data) {
60
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.FileUploadResponse.repeatedFields_, null);
61
+ };
62
+ goog.inherits(proto.FileUploadResponse, jspb.Message);
63
+ if (goog.DEBUG && !COMPILED) {
64
+ /**
65
+ * @public
66
+ * @override
67
+ */
68
+ proto.FileUploadResponse.displayName = 'proto.FileUploadResponse';
69
+ }
70
+ /**
71
+ * Generated by JsPbCodeGenerator.
72
+ * @param {Array=} opt_data Optional initial data array, typically from a
73
+ * server response, or constructed directly in Javascript. The array is used
74
+ * in place and becomes part of the constructed object. It is not cloned.
75
+ * If no data is provided, the constructed object will be empty, but still
76
+ * valid.
77
+ * @extends {jspb.Message}
78
+ * @constructor
79
+ */
80
+ proto.FileUploadReq = function(opt_data) {
81
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
82
+ };
83
+ goog.inherits(proto.FileUploadReq, jspb.Message);
84
+ if (goog.DEBUG && !COMPILED) {
85
+ /**
86
+ * @public
87
+ * @override
88
+ */
89
+ proto.FileUploadReq.displayName = 'proto.FileUploadReq';
90
+ }
91
+ /**
92
+ * Generated by JsPbCodeGenerator.
93
+ * @param {Array=} opt_data Optional initial data array, typically from a
94
+ * server response, or constructed directly in Javascript. The array is used
95
+ * in place and becomes part of the constructed object. It is not cloned.
96
+ * If no data is provided, the constructed object will be empty, but still
97
+ * valid.
98
+ * @extends {jspb.Message}
99
+ * @constructor
100
+ */
101
+ proto.SaveFileRequest = function(opt_data) {
102
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.SaveFileRequest.repeatedFields_, null);
103
+ };
104
+ goog.inherits(proto.SaveFileRequest, jspb.Message);
105
+ if (goog.DEBUG && !COMPILED) {
106
+ /**
107
+ * @public
108
+ * @override
109
+ */
110
+ proto.SaveFileRequest.displayName = 'proto.SaveFileRequest';
111
+ }
112
+
113
+
114
+
115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
116
+ /**
117
+ * Creates an object representation of this proto.
118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
119
+ * Optional fields that are not set will be set to undefined.
120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
121
+ * For the list of reserved names please see:
122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
124
+ * JSPB instance for transitional soy proto support:
125
+ * http://goto/soy-param-migration
126
+ * @return {!Object}
127
+ */
128
+ proto.FileUploadRequest.prototype.toObject = function(opt_includeInstance) {
129
+ return proto.FileUploadRequest.toObject(opt_includeInstance, this);
130
+ };
131
+
132
+
133
+ /**
134
+ * Static version of the {@see toObject} method.
135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
136
+ * the JSPB instance for transitional soy proto support:
137
+ * http://goto/soy-param-migration
138
+ * @param {!proto.FileUploadRequest} msg The msg instance to transform.
139
+ * @return {!Object}
140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
141
+ */
142
+ proto.FileUploadRequest.toObject = function(includeInstance, msg) {
143
+ var f, obj = {
144
+ fileName: jspb.Message.getFieldWithDefault(msg, 1, ""),
145
+ chunk: msg.getChunk_asB64(),
146
+ documentReferences: jspb.Message.getFieldWithDefault(msg, 3, "")
147
+ };
148
+
149
+ if (includeInstance) {
150
+ obj.$jspbMessageInstance = msg;
151
+ }
152
+ return obj;
153
+ };
154
+ }
155
+
156
+
157
+ /**
158
+ * Deserializes binary data (in protobuf wire format).
159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
160
+ * @return {!proto.FileUploadRequest}
161
+ */
162
+ proto.FileUploadRequest.deserializeBinary = function(bytes) {
163
+ var reader = new jspb.BinaryReader(bytes);
164
+ var msg = new proto.FileUploadRequest;
165
+ return proto.FileUploadRequest.deserializeBinaryFromReader(msg, reader);
166
+ };
167
+
168
+
169
+ /**
170
+ * Deserializes binary data (in protobuf wire format) from the
171
+ * given reader into the given message object.
172
+ * @param {!proto.FileUploadRequest} msg The message object to deserialize into.
173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
174
+ * @return {!proto.FileUploadRequest}
175
+ */
176
+ proto.FileUploadRequest.deserializeBinaryFromReader = function(msg, reader) {
177
+ while (reader.nextField()) {
178
+ if (reader.isEndGroup()) {
179
+ break;
180
+ }
181
+ var field = reader.getFieldNumber();
182
+ switch (field) {
183
+ case 1:
184
+ var value = /** @type {string} */ (reader.readString());
185
+ msg.setFileName(value);
186
+ break;
187
+ case 2:
188
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
189
+ msg.setChunk(value);
190
+ break;
191
+ case 3:
192
+ var value = /** @type {string} */ (reader.readString());
193
+ msg.setDocumentReferences(value);
194
+ break;
195
+ default:
196
+ reader.skipField();
197
+ break;
198
+ }
199
+ }
200
+ return msg;
201
+ };
202
+
203
+
204
+ /**
205
+ * Serializes the message to binary data (in protobuf wire format).
206
+ * @return {!Uint8Array}
207
+ */
208
+ proto.FileUploadRequest.prototype.serializeBinary = function() {
209
+ var writer = new jspb.BinaryWriter();
210
+ proto.FileUploadRequest.serializeBinaryToWriter(this, writer);
211
+ return writer.getResultBuffer();
212
+ };
213
+
214
+
215
+ /**
216
+ * Serializes the given message to binary data (in protobuf wire
217
+ * format), writing to the given BinaryWriter.
218
+ * @param {!proto.FileUploadRequest} message
219
+ * @param {!jspb.BinaryWriter} writer
220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
221
+ */
222
+ proto.FileUploadRequest.serializeBinaryToWriter = function(message, writer) {
223
+ var f = undefined;
224
+ f = message.getFileName();
225
+ if (f.length > 0) {
226
+ writer.writeString(
227
+ 1,
228
+ f
229
+ );
230
+ }
231
+ f = message.getChunk_asU8();
232
+ if (f.length > 0) {
233
+ writer.writeBytes(
234
+ 2,
235
+ f
236
+ );
237
+ }
238
+ f = message.getDocumentReferences();
239
+ if (f.length > 0) {
240
+ writer.writeString(
241
+ 3,
242
+ f
243
+ );
244
+ }
245
+ };
246
+
247
+
248
+ /**
249
+ * optional string file_name = 1;
250
+ * @return {string}
251
+ */
252
+ proto.FileUploadRequest.prototype.getFileName = function() {
253
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
254
+ };
255
+
256
+
257
+ /**
258
+ * @param {string} value
259
+ * @return {!proto.FileUploadRequest} returns this
260
+ */
261
+ proto.FileUploadRequest.prototype.setFileName = function(value) {
262
+ return jspb.Message.setProto3StringField(this, 1, value);
263
+ };
264
+
265
+
266
+ /**
267
+ * optional bytes chunk = 2;
268
+ * @return {!(string|Uint8Array)}
269
+ */
270
+ proto.FileUploadRequest.prototype.getChunk = function() {
271
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
272
+ };
273
+
274
+
275
+ /**
276
+ * optional bytes chunk = 2;
277
+ * This is a type-conversion wrapper around `getChunk()`
278
+ * @return {string}
279
+ */
280
+ proto.FileUploadRequest.prototype.getChunk_asB64 = function() {
281
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
282
+ this.getChunk()));
283
+ };
284
+
285
+
286
+ /**
287
+ * optional bytes chunk = 2;
288
+ * Note that Uint8Array is not supported on all browsers.
289
+ * @see http://caniuse.com/Uint8Array
290
+ * This is a type-conversion wrapper around `getChunk()`
291
+ * @return {!Uint8Array}
292
+ */
293
+ proto.FileUploadRequest.prototype.getChunk_asU8 = function() {
294
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
295
+ this.getChunk()));
296
+ };
297
+
298
+
299
+ /**
300
+ * @param {!(string|Uint8Array)} value
301
+ * @return {!proto.FileUploadRequest} returns this
302
+ */
303
+ proto.FileUploadRequest.prototype.setChunk = function(value) {
304
+ return jspb.Message.setProto3BytesField(this, 2, value);
305
+ };
306
+
307
+
308
+ /**
309
+ * optional string document_references = 3;
310
+ * @return {string}
311
+ */
312
+ proto.FileUploadRequest.prototype.getDocumentReferences = function() {
313
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
314
+ };
315
+
316
+
317
+ /**
318
+ * @param {string} value
319
+ * @return {!proto.FileUploadRequest} returns this
320
+ */
321
+ proto.FileUploadRequest.prototype.setDocumentReferences = function(value) {
322
+ return jspb.Message.setProto3StringField(this, 3, value);
323
+ };
324
+
325
+
326
+
327
+ /**
328
+ * List of repeated fields within this message type.
329
+ * @private {!Array<number>}
330
+ * @const
331
+ */
332
+ proto.FileUploadResponse.repeatedFields_ = [1];
333
+
334
+
335
+
336
+ if (jspb.Message.GENERATE_TO_OBJECT) {
337
+ /**
338
+ * Creates an object representation of this proto.
339
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
340
+ * Optional fields that are not set will be set to undefined.
341
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
342
+ * For the list of reserved names please see:
343
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
344
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
345
+ * JSPB instance for transitional soy proto support:
346
+ * http://goto/soy-param-migration
347
+ * @return {!Object}
348
+ */
349
+ proto.FileUploadResponse.prototype.toObject = function(opt_includeInstance) {
350
+ return proto.FileUploadResponse.toObject(opt_includeInstance, this);
351
+ };
352
+
353
+
354
+ /**
355
+ * Static version of the {@see toObject} method.
356
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
357
+ * the JSPB instance for transitional soy proto support:
358
+ * http://goto/soy-param-migration
359
+ * @param {!proto.FileUploadResponse} msg The msg instance to transform.
360
+ * @return {!Object}
361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
362
+ */
363
+ proto.FileUploadResponse.toObject = function(includeInstance, msg) {
364
+ var f, obj = {
365
+ fileIdList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
366
+ message: jspb.Message.getFieldWithDefault(msg, 2, "")
367
+ };
368
+
369
+ if (includeInstance) {
370
+ obj.$jspbMessageInstance = msg;
371
+ }
372
+ return obj;
373
+ };
374
+ }
375
+
376
+
377
+ /**
378
+ * Deserializes binary data (in protobuf wire format).
379
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
380
+ * @return {!proto.FileUploadResponse}
381
+ */
382
+ proto.FileUploadResponse.deserializeBinary = function(bytes) {
383
+ var reader = new jspb.BinaryReader(bytes);
384
+ var msg = new proto.FileUploadResponse;
385
+ return proto.FileUploadResponse.deserializeBinaryFromReader(msg, reader);
386
+ };
387
+
388
+
389
+ /**
390
+ * Deserializes binary data (in protobuf wire format) from the
391
+ * given reader into the given message object.
392
+ * @param {!proto.FileUploadResponse} msg The message object to deserialize into.
393
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
394
+ * @return {!proto.FileUploadResponse}
395
+ */
396
+ proto.FileUploadResponse.deserializeBinaryFromReader = function(msg, reader) {
397
+ while (reader.nextField()) {
398
+ if (reader.isEndGroup()) {
399
+ break;
400
+ }
401
+ var field = reader.getFieldNumber();
402
+ switch (field) {
403
+ case 1:
404
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
405
+ for (var i = 0; i < values.length; i++) {
406
+ msg.addFileId(values[i]);
407
+ }
408
+ break;
409
+ case 2:
410
+ var value = /** @type {string} */ (reader.readString());
411
+ msg.setMessage(value);
412
+ break;
413
+ default:
414
+ reader.skipField();
415
+ break;
416
+ }
417
+ }
418
+ return msg;
419
+ };
420
+
421
+
422
+ /**
423
+ * Serializes the message to binary data (in protobuf wire format).
424
+ * @return {!Uint8Array}
425
+ */
426
+ proto.FileUploadResponse.prototype.serializeBinary = function() {
427
+ var writer = new jspb.BinaryWriter();
428
+ proto.FileUploadResponse.serializeBinaryToWriter(this, writer);
429
+ return writer.getResultBuffer();
430
+ };
431
+
432
+
433
+ /**
434
+ * Serializes the given message to binary data (in protobuf wire
435
+ * format), writing to the given BinaryWriter.
436
+ * @param {!proto.FileUploadResponse} message
437
+ * @param {!jspb.BinaryWriter} writer
438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
439
+ */
440
+ proto.FileUploadResponse.serializeBinaryToWriter = function(message, writer) {
441
+ var f = undefined;
442
+ f = message.getFileIdList();
443
+ if (f.length > 0) {
444
+ writer.writePackedInt32(
445
+ 1,
446
+ f
447
+ );
448
+ }
449
+ f = message.getMessage();
450
+ if (f.length > 0) {
451
+ writer.writeString(
452
+ 2,
453
+ f
454
+ );
455
+ }
456
+ };
457
+
458
+
459
+ /**
460
+ * repeated int32 file_id = 1;
461
+ * @return {!Array<number>}
462
+ */
463
+ proto.FileUploadResponse.prototype.getFileIdList = function() {
464
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
465
+ };
466
+
467
+
468
+ /**
469
+ * @param {!Array<number>} value
470
+ * @return {!proto.FileUploadResponse} returns this
471
+ */
472
+ proto.FileUploadResponse.prototype.setFileIdList = function(value) {
473
+ return jspb.Message.setField(this, 1, value || []);
474
+ };
475
+
476
+
477
+ /**
478
+ * @param {number} value
479
+ * @param {number=} opt_index
480
+ * @return {!proto.FileUploadResponse} returns this
481
+ */
482
+ proto.FileUploadResponse.prototype.addFileId = function(value, opt_index) {
483
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
484
+ };
485
+
486
+
487
+ /**
488
+ * Clears the list making it empty but non-null.
489
+ * @return {!proto.FileUploadResponse} returns this
490
+ */
491
+ proto.FileUploadResponse.prototype.clearFileIdList = function() {
492
+ return this.setFileIdList([]);
493
+ };
494
+
495
+
496
+ /**
497
+ * optional string message = 2;
498
+ * @return {string}
499
+ */
500
+ proto.FileUploadResponse.prototype.getMessage = function() {
501
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
502
+ };
503
+
504
+
505
+ /**
506
+ * @param {string} value
507
+ * @return {!proto.FileUploadResponse} returns this
508
+ */
509
+ proto.FileUploadResponse.prototype.setMessage = function(value) {
510
+ return jspb.Message.setProto3StringField(this, 2, value);
511
+ };
512
+
513
+
514
+
515
+
516
+
517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
518
+ /**
519
+ * Creates an object representation of this proto.
520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
521
+ * Optional fields that are not set will be set to undefined.
522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
523
+ * For the list of reserved names please see:
524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
526
+ * JSPB instance for transitional soy proto support:
527
+ * http://goto/soy-param-migration
528
+ * @return {!Object}
529
+ */
530
+ proto.FileUploadReq.prototype.toObject = function(opt_includeInstance) {
531
+ return proto.FileUploadReq.toObject(opt_includeInstance, this);
532
+ };
533
+
534
+
535
+ /**
536
+ * Static version of the {@see toObject} method.
537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
538
+ * the JSPB instance for transitional soy proto support:
539
+ * http://goto/soy-param-migration
540
+ * @param {!proto.FileUploadReq} msg The msg instance to transform.
541
+ * @return {!Object}
542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
543
+ */
544
+ proto.FileUploadReq.toObject = function(includeInstance, msg) {
545
+ var f, obj = {
546
+ description: jspb.Message.getFieldWithDefault(msg, 1, ""),
547
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
548
+ url: jspb.Message.getFieldWithDefault(msg, 3, "")
549
+ };
550
+
551
+ if (includeInstance) {
552
+ obj.$jspbMessageInstance = msg;
553
+ }
554
+ return obj;
555
+ };
556
+ }
557
+
558
+
559
+ /**
560
+ * Deserializes binary data (in protobuf wire format).
561
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
562
+ * @return {!proto.FileUploadReq}
563
+ */
564
+ proto.FileUploadReq.deserializeBinary = function(bytes) {
565
+ var reader = new jspb.BinaryReader(bytes);
566
+ var msg = new proto.FileUploadReq;
567
+ return proto.FileUploadReq.deserializeBinaryFromReader(msg, reader);
568
+ };
569
+
570
+
571
+ /**
572
+ * Deserializes binary data (in protobuf wire format) from the
573
+ * given reader into the given message object.
574
+ * @param {!proto.FileUploadReq} msg The message object to deserialize into.
575
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
576
+ * @return {!proto.FileUploadReq}
577
+ */
578
+ proto.FileUploadReq.deserializeBinaryFromReader = function(msg, reader) {
579
+ while (reader.nextField()) {
580
+ if (reader.isEndGroup()) {
581
+ break;
582
+ }
583
+ var field = reader.getFieldNumber();
584
+ switch (field) {
585
+ case 1:
586
+ var value = /** @type {string} */ (reader.readString());
587
+ msg.setDescription(value);
588
+ break;
589
+ case 2:
590
+ var value = /** @type {string} */ (reader.readString());
591
+ msg.setName(value);
592
+ break;
593
+ case 3:
594
+ var value = /** @type {string} */ (reader.readString());
595
+ msg.setUrl(value);
596
+ break;
597
+ default:
598
+ reader.skipField();
599
+ break;
600
+ }
601
+ }
602
+ return msg;
603
+ };
604
+
605
+
606
+ /**
607
+ * Serializes the message to binary data (in protobuf wire format).
608
+ * @return {!Uint8Array}
609
+ */
610
+ proto.FileUploadReq.prototype.serializeBinary = function() {
611
+ var writer = new jspb.BinaryWriter();
612
+ proto.FileUploadReq.serializeBinaryToWriter(this, writer);
613
+ return writer.getResultBuffer();
614
+ };
615
+
616
+
617
+ /**
618
+ * Serializes the given message to binary data (in protobuf wire
619
+ * format), writing to the given BinaryWriter.
620
+ * @param {!proto.FileUploadReq} message
621
+ * @param {!jspb.BinaryWriter} writer
622
+ * @suppress {unusedLocalVariables} f is only used for nested messages
623
+ */
624
+ proto.FileUploadReq.serializeBinaryToWriter = function(message, writer) {
625
+ var f = undefined;
626
+ f = message.getDescription();
627
+ if (f.length > 0) {
628
+ writer.writeString(
629
+ 1,
630
+ f
631
+ );
632
+ }
633
+ f = message.getName();
634
+ if (f.length > 0) {
635
+ writer.writeString(
636
+ 2,
637
+ f
638
+ );
639
+ }
640
+ f = message.getUrl();
641
+ if (f.length > 0) {
642
+ writer.writeString(
643
+ 3,
644
+ f
645
+ );
646
+ }
647
+ };
648
+
649
+
650
+ /**
651
+ * optional string description = 1;
652
+ * @return {string}
653
+ */
654
+ proto.FileUploadReq.prototype.getDescription = function() {
655
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
656
+ };
657
+
658
+
659
+ /**
660
+ * @param {string} value
661
+ * @return {!proto.FileUploadReq} returns this
662
+ */
663
+ proto.FileUploadReq.prototype.setDescription = function(value) {
664
+ return jspb.Message.setProto3StringField(this, 1, value);
665
+ };
666
+
667
+
668
+ /**
669
+ * optional string name = 2;
670
+ * @return {string}
671
+ */
672
+ proto.FileUploadReq.prototype.getName = function() {
673
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
674
+ };
675
+
676
+
677
+ /**
678
+ * @param {string} value
679
+ * @return {!proto.FileUploadReq} returns this
680
+ */
681
+ proto.FileUploadReq.prototype.setName = function(value) {
682
+ return jspb.Message.setProto3StringField(this, 2, value);
683
+ };
684
+
685
+
686
+ /**
687
+ * optional string url = 3;
688
+ * @return {string}
689
+ */
690
+ proto.FileUploadReq.prototype.getUrl = function() {
691
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
692
+ };
693
+
694
+
695
+ /**
696
+ * @param {string} value
697
+ * @return {!proto.FileUploadReq} returns this
698
+ */
699
+ proto.FileUploadReq.prototype.setUrl = function(value) {
700
+ return jspb.Message.setProto3StringField(this, 3, value);
701
+ };
702
+
703
+
704
+
705
+ /**
706
+ * List of repeated fields within this message type.
707
+ * @private {!Array<number>}
708
+ * @const
709
+ */
710
+ proto.SaveFileRequest.repeatedFields_ = [1];
711
+
712
+
713
+
714
+ if (jspb.Message.GENERATE_TO_OBJECT) {
715
+ /**
716
+ * Creates an object representation of this proto.
717
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
718
+ * Optional fields that are not set will be set to undefined.
719
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
720
+ * For the list of reserved names please see:
721
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
722
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
723
+ * JSPB instance for transitional soy proto support:
724
+ * http://goto/soy-param-migration
725
+ * @return {!Object}
726
+ */
727
+ proto.SaveFileRequest.prototype.toObject = function(opt_includeInstance) {
728
+ return proto.SaveFileRequest.toObject(opt_includeInstance, this);
729
+ };
730
+
731
+
732
+ /**
733
+ * Static version of the {@see toObject} method.
734
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
735
+ * the JSPB instance for transitional soy proto support:
736
+ * http://goto/soy-param-migration
737
+ * @param {!proto.SaveFileRequest} msg The msg instance to transform.
738
+ * @return {!Object}
739
+ * @suppress {unusedLocalVariables} f is only used for nested messages
740
+ */
741
+ proto.SaveFileRequest.toObject = function(includeInstance, msg) {
742
+ var f, obj = {
743
+ urlsList: jspb.Message.toObjectList(msg.getUrlsList(),
744
+ proto.FileUploadReq.toObject, includeInstance)
745
+ };
746
+
747
+ if (includeInstance) {
748
+ obj.$jspbMessageInstance = msg;
749
+ }
750
+ return obj;
751
+ };
752
+ }
753
+
754
+
755
+ /**
756
+ * Deserializes binary data (in protobuf wire format).
757
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
758
+ * @return {!proto.SaveFileRequest}
759
+ */
760
+ proto.SaveFileRequest.deserializeBinary = function(bytes) {
761
+ var reader = new jspb.BinaryReader(bytes);
762
+ var msg = new proto.SaveFileRequest;
763
+ return proto.SaveFileRequest.deserializeBinaryFromReader(msg, reader);
764
+ };
765
+
766
+
767
+ /**
768
+ * Deserializes binary data (in protobuf wire format) from the
769
+ * given reader into the given message object.
770
+ * @param {!proto.SaveFileRequest} msg The message object to deserialize into.
771
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
772
+ * @return {!proto.SaveFileRequest}
773
+ */
774
+ proto.SaveFileRequest.deserializeBinaryFromReader = function(msg, reader) {
775
+ while (reader.nextField()) {
776
+ if (reader.isEndGroup()) {
777
+ break;
778
+ }
779
+ var field = reader.getFieldNumber();
780
+ switch (field) {
781
+ case 1:
782
+ var value = new proto.FileUploadReq;
783
+ reader.readMessage(value,proto.FileUploadReq.deserializeBinaryFromReader);
784
+ msg.addUrls(value);
785
+ break;
786
+ default:
787
+ reader.skipField();
788
+ break;
789
+ }
790
+ }
791
+ return msg;
792
+ };
793
+
794
+
795
+ /**
796
+ * Serializes the message to binary data (in protobuf wire format).
797
+ * @return {!Uint8Array}
798
+ */
799
+ proto.SaveFileRequest.prototype.serializeBinary = function() {
800
+ var writer = new jspb.BinaryWriter();
801
+ proto.SaveFileRequest.serializeBinaryToWriter(this, writer);
802
+ return writer.getResultBuffer();
803
+ };
804
+
805
+
806
+ /**
807
+ * Serializes the given message to binary data (in protobuf wire
808
+ * format), writing to the given BinaryWriter.
809
+ * @param {!proto.SaveFileRequest} message
810
+ * @param {!jspb.BinaryWriter} writer
811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
812
+ */
813
+ proto.SaveFileRequest.serializeBinaryToWriter = function(message, writer) {
814
+ var f = undefined;
815
+ f = message.getUrlsList();
816
+ if (f.length > 0) {
817
+ writer.writeRepeatedMessage(
818
+ 1,
819
+ f,
820
+ proto.FileUploadReq.serializeBinaryToWriter
821
+ );
822
+ }
823
+ };
824
+
825
+
826
+ /**
827
+ * repeated FileUploadReq urls = 1;
828
+ * @return {!Array<!proto.FileUploadReq>}
829
+ */
830
+ proto.SaveFileRequest.prototype.getUrlsList = function() {
831
+ return /** @type{!Array<!proto.FileUploadReq>} */ (
832
+ jspb.Message.getRepeatedWrapperField(this, proto.FileUploadReq, 1));
833
+ };
834
+
835
+
836
+ /**
837
+ * @param {!Array<!proto.FileUploadReq>} value
838
+ * @return {!proto.SaveFileRequest} returns this
839
+ */
840
+ proto.SaveFileRequest.prototype.setUrlsList = function(value) {
841
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
842
+ };
843
+
844
+
845
+ /**
846
+ * @param {!proto.FileUploadReq=} opt_value
847
+ * @param {number=} opt_index
848
+ * @return {!proto.FileUploadReq}
849
+ */
850
+ proto.SaveFileRequest.prototype.addUrls = function(opt_value, opt_index) {
851
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.FileUploadReq, opt_index);
852
+ };
853
+
854
+
855
+ /**
856
+ * Clears the list making it empty but non-null.
857
+ * @return {!proto.SaveFileRequest} returns this
858
+ */
859
+ proto.SaveFileRequest.prototype.clearUrlsList = function() {
860
+ return this.setUrlsList([]);
861
+ };
862
+
863
+
864
+ goog.object.extend(exports, proto);