@aldiokta/protocgen 1.0.17 → 1.0.19

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