@aldiokta/protocgen 1.0.32 → 1.0.34

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