@aldiokta/protocgen 1.0.3 → 1.0.4

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