@aldiokta/protocgen 1.0.18 → 1.0.19

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