@aldiokta/protocgen 1.0.100 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/cherry/v1/core/access_manager/access_manager_grpc_pb.js +1 -0
  2. package/cherry/v1/core/access_manager/access_manager_pb.js +240 -0
  3. package/cherry/v1/core/attribute/attribute_grpc_pb.js +309 -0
  4. package/cherry/v1/core/attribute/attribute_pb.js +4432 -0
  5. package/cherry/v1/core/auth/auth_grpc_pb.js +364 -0
  6. package/cherry/v1/core/auth/auth_pb.js +3766 -0
  7. package/cherry/v1/core/company/company_grpc_pb.js +177 -0
  8. package/cherry/v1/core/company/company_pb.js +2875 -0
  9. package/cherry/v1/core/employee/employee_grpc_pb.js +206 -0
  10. package/cherry/v1/core/employee/employee_pb.js +4283 -0
  11. package/cherry/v1/core/employee_personal/employee_personal_grpc_pb.js +177 -0
  12. package/cherry/v1/core/employee_personal/employee_personal_pb.js +2961 -0
  13. package/cherry/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  14. package/cherry/v1/core/job_grade/job_grade_pb.js +2605 -0
  15. package/cherry/v1/core/job_position/job_position_grpc_pb.js +181 -0
  16. package/cherry/v1/core/job_position/job_position_pb.js +3762 -0
  17. package/cherry/v1/core/job_title/job_title_grpc_pb.js +178 -0
  18. package/cherry/v1/core/job_title/job_title_pb.js +2958 -0
  19. package/cherry/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  20. package/cherry/v1/core/link_data_source/link_data_source_pb.js +2642 -0
  21. package/cherry/v1/core/location/location_grpc_pb.js +837 -0
  22. package/cherry/v1/core/location/location_pb.js +10879 -0
  23. package/cherry/v1/core/organization/organization_grpc_pb.js +180 -0
  24. package/cherry/v1/core/organization/organization_pb.js +3032 -0
  25. package/cherry/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  26. package/cherry/v1/core/organization_level/organization_level_pb.js +2545 -0
  27. package/cherry/v1/core/transaction_builder/transaction_builder_grpc_pb.js +254 -0
  28. package/cherry/v1/core/transaction_builder/transaction_builder_pb.js +7419 -0
  29. package/cherry/v1/core/users/users_grpc_pb.js +45 -0
  30. package/cherry/v1/core/users/users_pb.js +1246 -0
  31. package/cherry/v1/core/work_location/work_location_grpc_pb.js +179 -0
  32. package/cherry/v1/core/work_location/work_location_pb.js +3972 -0
  33. package/cherry/v1/global/meta/meta_grpc_pb.js +1 -0
  34. package/cherry/v1/global/meta/meta_pb.js +1179 -0
  35. package/package.json +1 -1
  36. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +122 -2
@@ -0,0 +1,837 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var cherry_v1_core_location_location_pb = require('../../../../cherry/v1/core/location/location_pb.js');
6
+ var cherry_v1_global_meta_meta_pb = require('../../../../cherry/v1/global/meta/meta_pb.js');
7
+
8
+ function serialize_CityGetByIdRequest(arg) {
9
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CityGetByIdRequest)) {
10
+ throw new Error('Expected argument of type CityGetByIdRequest');
11
+ }
12
+ return Buffer.from(arg.serializeBinary());
13
+ }
14
+
15
+ function deserialize_CityGetByIdRequest(buffer_arg) {
16
+ return cherry_v1_core_location_location_pb.CityGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
17
+ }
18
+
19
+ function serialize_CityGetByIdResponse(arg) {
20
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CityGetByIdResponse)) {
21
+ throw new Error('Expected argument of type CityGetByIdResponse');
22
+ }
23
+ return Buffer.from(arg.serializeBinary());
24
+ }
25
+
26
+ function deserialize_CityGetByIdResponse(buffer_arg) {
27
+ return cherry_v1_core_location_location_pb.CityGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
28
+ }
29
+
30
+ function serialize_CountryGetByIdRequest(arg) {
31
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CountryGetByIdRequest)) {
32
+ throw new Error('Expected argument of type CountryGetByIdRequest');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_CountryGetByIdRequest(buffer_arg) {
38
+ return cherry_v1_core_location_location_pb.CountryGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_CountryGetByIdResponse(arg) {
42
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CountryGetByIdResponse)) {
43
+ throw new Error('Expected argument of type CountryGetByIdResponse');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_CountryGetByIdResponse(buffer_arg) {
49
+ return cherry_v1_core_location_location_pb.CountryGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
52
+ function serialize_CreateCityRequest(arg) {
53
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateCityRequest)) {
54
+ throw new Error('Expected argument of type CreateCityRequest');
55
+ }
56
+ return Buffer.from(arg.serializeBinary());
57
+ }
58
+
59
+ function deserialize_CreateCityRequest(buffer_arg) {
60
+ return cherry_v1_core_location_location_pb.CreateCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
61
+ }
62
+
63
+ function serialize_CreateCityResponse(arg) {
64
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateCityResponse)) {
65
+ throw new Error('Expected argument of type CreateCityResponse');
66
+ }
67
+ return Buffer.from(arg.serializeBinary());
68
+ }
69
+
70
+ function deserialize_CreateCityResponse(buffer_arg) {
71
+ return cherry_v1_core_location_location_pb.CreateCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
72
+ }
73
+
74
+ function serialize_CreateCountryRequest(arg) {
75
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateCountryRequest)) {
76
+ throw new Error('Expected argument of type CreateCountryRequest');
77
+ }
78
+ return Buffer.from(arg.serializeBinary());
79
+ }
80
+
81
+ function deserialize_CreateCountryRequest(buffer_arg) {
82
+ return cherry_v1_core_location_location_pb.CreateCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
83
+ }
84
+
85
+ function serialize_CreateCountryResponse(arg) {
86
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateCountryResponse)) {
87
+ throw new Error('Expected argument of type CreateCountryResponse');
88
+ }
89
+ return Buffer.from(arg.serializeBinary());
90
+ }
91
+
92
+ function deserialize_CreateCountryResponse(buffer_arg) {
93
+ return cherry_v1_core_location_location_pb.CreateCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
94
+ }
95
+
96
+ function serialize_CreateDistrictRequest(arg) {
97
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateDistrictRequest)) {
98
+ throw new Error('Expected argument of type CreateDistrictRequest');
99
+ }
100
+ return Buffer.from(arg.serializeBinary());
101
+ }
102
+
103
+ function deserialize_CreateDistrictRequest(buffer_arg) {
104
+ return cherry_v1_core_location_location_pb.CreateDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
105
+ }
106
+
107
+ function serialize_CreateDistrictResponse(arg) {
108
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateDistrictResponse)) {
109
+ throw new Error('Expected argument of type CreateDistrictResponse');
110
+ }
111
+ return Buffer.from(arg.serializeBinary());
112
+ }
113
+
114
+ function deserialize_CreateDistrictResponse(buffer_arg) {
115
+ return cherry_v1_core_location_location_pb.CreateDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
116
+ }
117
+
118
+ function serialize_CreateProvinceRequest(arg) {
119
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateProvinceRequest)) {
120
+ throw new Error('Expected argument of type CreateProvinceRequest');
121
+ }
122
+ return Buffer.from(arg.serializeBinary());
123
+ }
124
+
125
+ function deserialize_CreateProvinceRequest(buffer_arg) {
126
+ return cherry_v1_core_location_location_pb.CreateProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
127
+ }
128
+
129
+ function serialize_CreateProvinceResponse(arg) {
130
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateProvinceResponse)) {
131
+ throw new Error('Expected argument of type CreateProvinceResponse');
132
+ }
133
+ return Buffer.from(arg.serializeBinary());
134
+ }
135
+
136
+ function deserialize_CreateProvinceResponse(buffer_arg) {
137
+ return cherry_v1_core_location_location_pb.CreateProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
138
+ }
139
+
140
+ function serialize_CreateVillageRequest(arg) {
141
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateVillageRequest)) {
142
+ throw new Error('Expected argument of type CreateVillageRequest');
143
+ }
144
+ return Buffer.from(arg.serializeBinary());
145
+ }
146
+
147
+ function deserialize_CreateVillageRequest(buffer_arg) {
148
+ return cherry_v1_core_location_location_pb.CreateVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
149
+ }
150
+
151
+ function serialize_CreateVillageResponse(arg) {
152
+ if (!(arg instanceof cherry_v1_core_location_location_pb.CreateVillageResponse)) {
153
+ throw new Error('Expected argument of type CreateVillageResponse');
154
+ }
155
+ return Buffer.from(arg.serializeBinary());
156
+ }
157
+
158
+ function deserialize_CreateVillageResponse(buffer_arg) {
159
+ return cherry_v1_core_location_location_pb.CreateVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
160
+ }
161
+
162
+ function serialize_DeleteCityRequest(arg) {
163
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteCityRequest)) {
164
+ throw new Error('Expected argument of type DeleteCityRequest');
165
+ }
166
+ return Buffer.from(arg.serializeBinary());
167
+ }
168
+
169
+ function deserialize_DeleteCityRequest(buffer_arg) {
170
+ return cherry_v1_core_location_location_pb.DeleteCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
171
+ }
172
+
173
+ function serialize_DeleteCityResponse(arg) {
174
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteCityResponse)) {
175
+ throw new Error('Expected argument of type DeleteCityResponse');
176
+ }
177
+ return Buffer.from(arg.serializeBinary());
178
+ }
179
+
180
+ function deserialize_DeleteCityResponse(buffer_arg) {
181
+ return cherry_v1_core_location_location_pb.DeleteCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
182
+ }
183
+
184
+ function serialize_DeleteCountryRequest(arg) {
185
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteCountryRequest)) {
186
+ throw new Error('Expected argument of type DeleteCountryRequest');
187
+ }
188
+ return Buffer.from(arg.serializeBinary());
189
+ }
190
+
191
+ function deserialize_DeleteCountryRequest(buffer_arg) {
192
+ return cherry_v1_core_location_location_pb.DeleteCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
193
+ }
194
+
195
+ function serialize_DeleteCountryResponse(arg) {
196
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteCountryResponse)) {
197
+ throw new Error('Expected argument of type DeleteCountryResponse');
198
+ }
199
+ return Buffer.from(arg.serializeBinary());
200
+ }
201
+
202
+ function deserialize_DeleteCountryResponse(buffer_arg) {
203
+ return cherry_v1_core_location_location_pb.DeleteCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
204
+ }
205
+
206
+ function serialize_DeleteDistrictRequest(arg) {
207
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteDistrictRequest)) {
208
+ throw new Error('Expected argument of type DeleteDistrictRequest');
209
+ }
210
+ return Buffer.from(arg.serializeBinary());
211
+ }
212
+
213
+ function deserialize_DeleteDistrictRequest(buffer_arg) {
214
+ return cherry_v1_core_location_location_pb.DeleteDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
215
+ }
216
+
217
+ function serialize_DeleteDistrictResponse(arg) {
218
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteDistrictResponse)) {
219
+ throw new Error('Expected argument of type DeleteDistrictResponse');
220
+ }
221
+ return Buffer.from(arg.serializeBinary());
222
+ }
223
+
224
+ function deserialize_DeleteDistrictResponse(buffer_arg) {
225
+ return cherry_v1_core_location_location_pb.DeleteDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
226
+ }
227
+
228
+ function serialize_DeleteProvinceRequest(arg) {
229
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteProvinceRequest)) {
230
+ throw new Error('Expected argument of type DeleteProvinceRequest');
231
+ }
232
+ return Buffer.from(arg.serializeBinary());
233
+ }
234
+
235
+ function deserialize_DeleteProvinceRequest(buffer_arg) {
236
+ return cherry_v1_core_location_location_pb.DeleteProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
237
+ }
238
+
239
+ function serialize_DeleteProvinceResponse(arg) {
240
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteProvinceResponse)) {
241
+ throw new Error('Expected argument of type DeleteProvinceResponse');
242
+ }
243
+ return Buffer.from(arg.serializeBinary());
244
+ }
245
+
246
+ function deserialize_DeleteProvinceResponse(buffer_arg) {
247
+ return cherry_v1_core_location_location_pb.DeleteProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
248
+ }
249
+
250
+ function serialize_DeleteVillageRequest(arg) {
251
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteVillageRequest)) {
252
+ throw new Error('Expected argument of type DeleteVillageRequest');
253
+ }
254
+ return Buffer.from(arg.serializeBinary());
255
+ }
256
+
257
+ function deserialize_DeleteVillageRequest(buffer_arg) {
258
+ return cherry_v1_core_location_location_pb.DeleteVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
259
+ }
260
+
261
+ function serialize_DeleteVillageResponse(arg) {
262
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DeleteVillageResponse)) {
263
+ throw new Error('Expected argument of type DeleteVillageResponse');
264
+ }
265
+ return Buffer.from(arg.serializeBinary());
266
+ }
267
+
268
+ function deserialize_DeleteVillageResponse(buffer_arg) {
269
+ return cherry_v1_core_location_location_pb.DeleteVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
270
+ }
271
+
272
+ function serialize_DistrictGetByIdRequest(arg) {
273
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DistrictGetByIdRequest)) {
274
+ throw new Error('Expected argument of type DistrictGetByIdRequest');
275
+ }
276
+ return Buffer.from(arg.serializeBinary());
277
+ }
278
+
279
+ function deserialize_DistrictGetByIdRequest(buffer_arg) {
280
+ return cherry_v1_core_location_location_pb.DistrictGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
281
+ }
282
+
283
+ function serialize_DistrictGetByIdResponse(arg) {
284
+ if (!(arg instanceof cherry_v1_core_location_location_pb.DistrictGetByIdResponse)) {
285
+ throw new Error('Expected argument of type DistrictGetByIdResponse');
286
+ }
287
+ return Buffer.from(arg.serializeBinary());
288
+ }
289
+
290
+ function deserialize_DistrictGetByIdResponse(buffer_arg) {
291
+ return cherry_v1_core_location_location_pb.DistrictGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
292
+ }
293
+
294
+ function serialize_GetCityRequest(arg) {
295
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetCityRequest)) {
296
+ throw new Error('Expected argument of type GetCityRequest');
297
+ }
298
+ return Buffer.from(arg.serializeBinary());
299
+ }
300
+
301
+ function deserialize_GetCityRequest(buffer_arg) {
302
+ return cherry_v1_core_location_location_pb.GetCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
303
+ }
304
+
305
+ function serialize_GetCityResponse(arg) {
306
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetCityResponse)) {
307
+ throw new Error('Expected argument of type GetCityResponse');
308
+ }
309
+ return Buffer.from(arg.serializeBinary());
310
+ }
311
+
312
+ function deserialize_GetCityResponse(buffer_arg) {
313
+ return cherry_v1_core_location_location_pb.GetCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
314
+ }
315
+
316
+ function serialize_GetCountryRequest(arg) {
317
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetCountryRequest)) {
318
+ throw new Error('Expected argument of type GetCountryRequest');
319
+ }
320
+ return Buffer.from(arg.serializeBinary());
321
+ }
322
+
323
+ function deserialize_GetCountryRequest(buffer_arg) {
324
+ return cherry_v1_core_location_location_pb.GetCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
325
+ }
326
+
327
+ function serialize_GetCountryResponse(arg) {
328
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetCountryResponse)) {
329
+ throw new Error('Expected argument of type GetCountryResponse');
330
+ }
331
+ return Buffer.from(arg.serializeBinary());
332
+ }
333
+
334
+ function deserialize_GetCountryResponse(buffer_arg) {
335
+ return cherry_v1_core_location_location_pb.GetCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
336
+ }
337
+
338
+ function serialize_GetDistrictRequest(arg) {
339
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetDistrictRequest)) {
340
+ throw new Error('Expected argument of type GetDistrictRequest');
341
+ }
342
+ return Buffer.from(arg.serializeBinary());
343
+ }
344
+
345
+ function deserialize_GetDistrictRequest(buffer_arg) {
346
+ return cherry_v1_core_location_location_pb.GetDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
347
+ }
348
+
349
+ function serialize_GetDistrictResponse(arg) {
350
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetDistrictResponse)) {
351
+ throw new Error('Expected argument of type GetDistrictResponse');
352
+ }
353
+ return Buffer.from(arg.serializeBinary());
354
+ }
355
+
356
+ function deserialize_GetDistrictResponse(buffer_arg) {
357
+ return cherry_v1_core_location_location_pb.GetDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
358
+ }
359
+
360
+ function serialize_GetProvinceRequest(arg) {
361
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetProvinceRequest)) {
362
+ throw new Error('Expected argument of type GetProvinceRequest');
363
+ }
364
+ return Buffer.from(arg.serializeBinary());
365
+ }
366
+
367
+ function deserialize_GetProvinceRequest(buffer_arg) {
368
+ return cherry_v1_core_location_location_pb.GetProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
369
+ }
370
+
371
+ function serialize_GetProvinceResponse(arg) {
372
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetProvinceResponse)) {
373
+ throw new Error('Expected argument of type GetProvinceResponse');
374
+ }
375
+ return Buffer.from(arg.serializeBinary());
376
+ }
377
+
378
+ function deserialize_GetProvinceResponse(buffer_arg) {
379
+ return cherry_v1_core_location_location_pb.GetProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
380
+ }
381
+
382
+ function serialize_GetVillageRequest(arg) {
383
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetVillageRequest)) {
384
+ throw new Error('Expected argument of type GetVillageRequest');
385
+ }
386
+ return Buffer.from(arg.serializeBinary());
387
+ }
388
+
389
+ function deserialize_GetVillageRequest(buffer_arg) {
390
+ return cherry_v1_core_location_location_pb.GetVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
391
+ }
392
+
393
+ function serialize_GetVillageResponse(arg) {
394
+ if (!(arg instanceof cherry_v1_core_location_location_pb.GetVillageResponse)) {
395
+ throw new Error('Expected argument of type GetVillageResponse');
396
+ }
397
+ return Buffer.from(arg.serializeBinary());
398
+ }
399
+
400
+ function deserialize_GetVillageResponse(buffer_arg) {
401
+ return cherry_v1_core_location_location_pb.GetVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
402
+ }
403
+
404
+ function serialize_ProvinceGetByIdRequest(arg) {
405
+ if (!(arg instanceof cherry_v1_core_location_location_pb.ProvinceGetByIdRequest)) {
406
+ throw new Error('Expected argument of type ProvinceGetByIdRequest');
407
+ }
408
+ return Buffer.from(arg.serializeBinary());
409
+ }
410
+
411
+ function deserialize_ProvinceGetByIdRequest(buffer_arg) {
412
+ return cherry_v1_core_location_location_pb.ProvinceGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
413
+ }
414
+
415
+ function serialize_ProvinceGetByIdResponse(arg) {
416
+ if (!(arg instanceof cherry_v1_core_location_location_pb.ProvinceGetByIdResponse)) {
417
+ throw new Error('Expected argument of type ProvinceGetByIdResponse');
418
+ }
419
+ return Buffer.from(arg.serializeBinary());
420
+ }
421
+
422
+ function deserialize_ProvinceGetByIdResponse(buffer_arg) {
423
+ return cherry_v1_core_location_location_pb.ProvinceGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
424
+ }
425
+
426
+ function serialize_UpdateCityRequest(arg) {
427
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateCityRequest)) {
428
+ throw new Error('Expected argument of type UpdateCityRequest');
429
+ }
430
+ return Buffer.from(arg.serializeBinary());
431
+ }
432
+
433
+ function deserialize_UpdateCityRequest(buffer_arg) {
434
+ return cherry_v1_core_location_location_pb.UpdateCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
435
+ }
436
+
437
+ function serialize_UpdateCityResponse(arg) {
438
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateCityResponse)) {
439
+ throw new Error('Expected argument of type UpdateCityResponse');
440
+ }
441
+ return Buffer.from(arg.serializeBinary());
442
+ }
443
+
444
+ function deserialize_UpdateCityResponse(buffer_arg) {
445
+ return cherry_v1_core_location_location_pb.UpdateCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
446
+ }
447
+
448
+ function serialize_UpdateCountryRequest(arg) {
449
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateCountryRequest)) {
450
+ throw new Error('Expected argument of type UpdateCountryRequest');
451
+ }
452
+ return Buffer.from(arg.serializeBinary());
453
+ }
454
+
455
+ function deserialize_UpdateCountryRequest(buffer_arg) {
456
+ return cherry_v1_core_location_location_pb.UpdateCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
457
+ }
458
+
459
+ function serialize_UpdateCountryResponse(arg) {
460
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateCountryResponse)) {
461
+ throw new Error('Expected argument of type UpdateCountryResponse');
462
+ }
463
+ return Buffer.from(arg.serializeBinary());
464
+ }
465
+
466
+ function deserialize_UpdateCountryResponse(buffer_arg) {
467
+ return cherry_v1_core_location_location_pb.UpdateCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
468
+ }
469
+
470
+ function serialize_UpdateDistrictRequest(arg) {
471
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateDistrictRequest)) {
472
+ throw new Error('Expected argument of type UpdateDistrictRequest');
473
+ }
474
+ return Buffer.from(arg.serializeBinary());
475
+ }
476
+
477
+ function deserialize_UpdateDistrictRequest(buffer_arg) {
478
+ return cherry_v1_core_location_location_pb.UpdateDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
479
+ }
480
+
481
+ function serialize_UpdateDistrictResponse(arg) {
482
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateDistrictResponse)) {
483
+ throw new Error('Expected argument of type UpdateDistrictResponse');
484
+ }
485
+ return Buffer.from(arg.serializeBinary());
486
+ }
487
+
488
+ function deserialize_UpdateDistrictResponse(buffer_arg) {
489
+ return cherry_v1_core_location_location_pb.UpdateDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
490
+ }
491
+
492
+ function serialize_UpdateProvinceRequest(arg) {
493
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateProvinceRequest)) {
494
+ throw new Error('Expected argument of type UpdateProvinceRequest');
495
+ }
496
+ return Buffer.from(arg.serializeBinary());
497
+ }
498
+
499
+ function deserialize_UpdateProvinceRequest(buffer_arg) {
500
+ return cherry_v1_core_location_location_pb.UpdateProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
501
+ }
502
+
503
+ function serialize_UpdateProvinceResponse(arg) {
504
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateProvinceResponse)) {
505
+ throw new Error('Expected argument of type UpdateProvinceResponse');
506
+ }
507
+ return Buffer.from(arg.serializeBinary());
508
+ }
509
+
510
+ function deserialize_UpdateProvinceResponse(buffer_arg) {
511
+ return cherry_v1_core_location_location_pb.UpdateProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
512
+ }
513
+
514
+ function serialize_UpdateVillageRequest(arg) {
515
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateVillageRequest)) {
516
+ throw new Error('Expected argument of type UpdateVillageRequest');
517
+ }
518
+ return Buffer.from(arg.serializeBinary());
519
+ }
520
+
521
+ function deserialize_UpdateVillageRequest(buffer_arg) {
522
+ return cherry_v1_core_location_location_pb.UpdateVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
523
+ }
524
+
525
+ function serialize_UpdateVillageResponse(arg) {
526
+ if (!(arg instanceof cherry_v1_core_location_location_pb.UpdateVillageResponse)) {
527
+ throw new Error('Expected argument of type UpdateVillageResponse');
528
+ }
529
+ return Buffer.from(arg.serializeBinary());
530
+ }
531
+
532
+ function deserialize_UpdateVillageResponse(buffer_arg) {
533
+ return cherry_v1_core_location_location_pb.UpdateVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
534
+ }
535
+
536
+ function serialize_VillageGetByIdRequest(arg) {
537
+ if (!(arg instanceof cherry_v1_core_location_location_pb.VillageGetByIdRequest)) {
538
+ throw new Error('Expected argument of type VillageGetByIdRequest');
539
+ }
540
+ return Buffer.from(arg.serializeBinary());
541
+ }
542
+
543
+ function deserialize_VillageGetByIdRequest(buffer_arg) {
544
+ return cherry_v1_core_location_location_pb.VillageGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
545
+ }
546
+
547
+ function serialize_VillageGetByIdResponse(arg) {
548
+ if (!(arg instanceof cherry_v1_core_location_location_pb.VillageGetByIdResponse)) {
549
+ throw new Error('Expected argument of type VillageGetByIdResponse');
550
+ }
551
+ return Buffer.from(arg.serializeBinary());
552
+ }
553
+
554
+ function deserialize_VillageGetByIdResponse(buffer_arg) {
555
+ return cherry_v1_core_location_location_pb.VillageGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
556
+ }
557
+
558
+
559
+ var LocationServiceService = exports.LocationServiceService = {
560
+ createCountry: {
561
+ path: '/LocationService/CreateCountry',
562
+ requestStream: false,
563
+ responseStream: false,
564
+ requestType: cherry_v1_core_location_location_pb.CreateCountryRequest,
565
+ responseType: cherry_v1_core_location_location_pb.CreateCountryResponse,
566
+ requestSerialize: serialize_CreateCountryRequest,
567
+ requestDeserialize: deserialize_CreateCountryRequest,
568
+ responseSerialize: serialize_CreateCountryResponse,
569
+ responseDeserialize: deserialize_CreateCountryResponse,
570
+ },
571
+ getCountry: {
572
+ path: '/LocationService/GetCountry',
573
+ requestStream: false,
574
+ responseStream: false,
575
+ requestType: cherry_v1_core_location_location_pb.GetCountryRequest,
576
+ responseType: cherry_v1_core_location_location_pb.GetCountryResponse,
577
+ requestSerialize: serialize_GetCountryRequest,
578
+ requestDeserialize: deserialize_GetCountryRequest,
579
+ responseSerialize: serialize_GetCountryResponse,
580
+ responseDeserialize: deserialize_GetCountryResponse,
581
+ },
582
+ getCountryById: {
583
+ path: '/LocationService/GetCountryById',
584
+ requestStream: false,
585
+ responseStream: false,
586
+ requestType: cherry_v1_core_location_location_pb.CountryGetByIdRequest,
587
+ responseType: cherry_v1_core_location_location_pb.CountryGetByIdResponse,
588
+ requestSerialize: serialize_CountryGetByIdRequest,
589
+ requestDeserialize: deserialize_CountryGetByIdRequest,
590
+ responseSerialize: serialize_CountryGetByIdResponse,
591
+ responseDeserialize: deserialize_CountryGetByIdResponse,
592
+ },
593
+ updateCountry: {
594
+ path: '/LocationService/UpdateCountry',
595
+ requestStream: false,
596
+ responseStream: false,
597
+ requestType: cherry_v1_core_location_location_pb.UpdateCountryRequest,
598
+ responseType: cherry_v1_core_location_location_pb.UpdateCountryResponse,
599
+ requestSerialize: serialize_UpdateCountryRequest,
600
+ requestDeserialize: deserialize_UpdateCountryRequest,
601
+ responseSerialize: serialize_UpdateCountryResponse,
602
+ responseDeserialize: deserialize_UpdateCountryResponse,
603
+ },
604
+ deleteCountry: {
605
+ path: '/LocationService/DeleteCountry',
606
+ requestStream: false,
607
+ responseStream: false,
608
+ requestType: cherry_v1_core_location_location_pb.DeleteCountryRequest,
609
+ responseType: cherry_v1_core_location_location_pb.DeleteCountryResponse,
610
+ requestSerialize: serialize_DeleteCountryRequest,
611
+ requestDeserialize: deserialize_DeleteCountryRequest,
612
+ responseSerialize: serialize_DeleteCountryResponse,
613
+ responseDeserialize: deserialize_DeleteCountryResponse,
614
+ },
615
+ createProvince: {
616
+ path: '/LocationService/CreateProvince',
617
+ requestStream: false,
618
+ responseStream: false,
619
+ requestType: cherry_v1_core_location_location_pb.CreateProvinceRequest,
620
+ responseType: cherry_v1_core_location_location_pb.CreateProvinceResponse,
621
+ requestSerialize: serialize_CreateProvinceRequest,
622
+ requestDeserialize: deserialize_CreateProvinceRequest,
623
+ responseSerialize: serialize_CreateProvinceResponse,
624
+ responseDeserialize: deserialize_CreateProvinceResponse,
625
+ },
626
+ getProvince: {
627
+ path: '/LocationService/GetProvince',
628
+ requestStream: false,
629
+ responseStream: false,
630
+ requestType: cherry_v1_core_location_location_pb.GetProvinceRequest,
631
+ responseType: cherry_v1_core_location_location_pb.GetProvinceResponse,
632
+ requestSerialize: serialize_GetProvinceRequest,
633
+ requestDeserialize: deserialize_GetProvinceRequest,
634
+ responseSerialize: serialize_GetProvinceResponse,
635
+ responseDeserialize: deserialize_GetProvinceResponse,
636
+ },
637
+ getProvinceById: {
638
+ path: '/LocationService/GetProvinceById',
639
+ requestStream: false,
640
+ responseStream: false,
641
+ requestType: cherry_v1_core_location_location_pb.ProvinceGetByIdRequest,
642
+ responseType: cherry_v1_core_location_location_pb.ProvinceGetByIdResponse,
643
+ requestSerialize: serialize_ProvinceGetByIdRequest,
644
+ requestDeserialize: deserialize_ProvinceGetByIdRequest,
645
+ responseSerialize: serialize_ProvinceGetByIdResponse,
646
+ responseDeserialize: deserialize_ProvinceGetByIdResponse,
647
+ },
648
+ updateProvince: {
649
+ path: '/LocationService/UpdateProvince',
650
+ requestStream: false,
651
+ responseStream: false,
652
+ requestType: cherry_v1_core_location_location_pb.UpdateProvinceRequest,
653
+ responseType: cherry_v1_core_location_location_pb.UpdateProvinceResponse,
654
+ requestSerialize: serialize_UpdateProvinceRequest,
655
+ requestDeserialize: deserialize_UpdateProvinceRequest,
656
+ responseSerialize: serialize_UpdateProvinceResponse,
657
+ responseDeserialize: deserialize_UpdateProvinceResponse,
658
+ },
659
+ deleteProvince: {
660
+ path: '/LocationService/DeleteProvince',
661
+ requestStream: false,
662
+ responseStream: false,
663
+ requestType: cherry_v1_core_location_location_pb.DeleteProvinceRequest,
664
+ responseType: cherry_v1_core_location_location_pb.DeleteProvinceResponse,
665
+ requestSerialize: serialize_DeleteProvinceRequest,
666
+ requestDeserialize: deserialize_DeleteProvinceRequest,
667
+ responseSerialize: serialize_DeleteProvinceResponse,
668
+ responseDeserialize: deserialize_DeleteProvinceResponse,
669
+ },
670
+ createCity: {
671
+ path: '/LocationService/CreateCity',
672
+ requestStream: false,
673
+ responseStream: false,
674
+ requestType: cherry_v1_core_location_location_pb.CreateCityRequest,
675
+ responseType: cherry_v1_core_location_location_pb.CreateCityResponse,
676
+ requestSerialize: serialize_CreateCityRequest,
677
+ requestDeserialize: deserialize_CreateCityRequest,
678
+ responseSerialize: serialize_CreateCityResponse,
679
+ responseDeserialize: deserialize_CreateCityResponse,
680
+ },
681
+ getCity: {
682
+ path: '/LocationService/GetCity',
683
+ requestStream: false,
684
+ responseStream: false,
685
+ requestType: cherry_v1_core_location_location_pb.GetCityRequest,
686
+ responseType: cherry_v1_core_location_location_pb.GetCityResponse,
687
+ requestSerialize: serialize_GetCityRequest,
688
+ requestDeserialize: deserialize_GetCityRequest,
689
+ responseSerialize: serialize_GetCityResponse,
690
+ responseDeserialize: deserialize_GetCityResponse,
691
+ },
692
+ getCityById: {
693
+ path: '/LocationService/GetCityById',
694
+ requestStream: false,
695
+ responseStream: false,
696
+ requestType: cherry_v1_core_location_location_pb.CityGetByIdRequest,
697
+ responseType: cherry_v1_core_location_location_pb.CityGetByIdResponse,
698
+ requestSerialize: serialize_CityGetByIdRequest,
699
+ requestDeserialize: deserialize_CityGetByIdRequest,
700
+ responseSerialize: serialize_CityGetByIdResponse,
701
+ responseDeserialize: deserialize_CityGetByIdResponse,
702
+ },
703
+ updateCity: {
704
+ path: '/LocationService/UpdateCity',
705
+ requestStream: false,
706
+ responseStream: false,
707
+ requestType: cherry_v1_core_location_location_pb.UpdateCityRequest,
708
+ responseType: cherry_v1_core_location_location_pb.UpdateCityResponse,
709
+ requestSerialize: serialize_UpdateCityRequest,
710
+ requestDeserialize: deserialize_UpdateCityRequest,
711
+ responseSerialize: serialize_UpdateCityResponse,
712
+ responseDeserialize: deserialize_UpdateCityResponse,
713
+ },
714
+ deleteCity: {
715
+ path: '/LocationService/DeleteCity',
716
+ requestStream: false,
717
+ responseStream: false,
718
+ requestType: cherry_v1_core_location_location_pb.DeleteCityRequest,
719
+ responseType: cherry_v1_core_location_location_pb.DeleteCityResponse,
720
+ requestSerialize: serialize_DeleteCityRequest,
721
+ requestDeserialize: deserialize_DeleteCityRequest,
722
+ responseSerialize: serialize_DeleteCityResponse,
723
+ responseDeserialize: deserialize_DeleteCityResponse,
724
+ },
725
+ createDistrict: {
726
+ path: '/LocationService/CreateDistrict',
727
+ requestStream: false,
728
+ responseStream: false,
729
+ requestType: cherry_v1_core_location_location_pb.CreateDistrictRequest,
730
+ responseType: cherry_v1_core_location_location_pb.CreateDistrictResponse,
731
+ requestSerialize: serialize_CreateDistrictRequest,
732
+ requestDeserialize: deserialize_CreateDistrictRequest,
733
+ responseSerialize: serialize_CreateDistrictResponse,
734
+ responseDeserialize: deserialize_CreateDistrictResponse,
735
+ },
736
+ getDistrict: {
737
+ path: '/LocationService/GetDistrict',
738
+ requestStream: false,
739
+ responseStream: false,
740
+ requestType: cherry_v1_core_location_location_pb.GetDistrictRequest,
741
+ responseType: cherry_v1_core_location_location_pb.GetDistrictResponse,
742
+ requestSerialize: serialize_GetDistrictRequest,
743
+ requestDeserialize: deserialize_GetDistrictRequest,
744
+ responseSerialize: serialize_GetDistrictResponse,
745
+ responseDeserialize: deserialize_GetDistrictResponse,
746
+ },
747
+ getDistrictById: {
748
+ path: '/LocationService/GetDistrictById',
749
+ requestStream: false,
750
+ responseStream: false,
751
+ requestType: cherry_v1_core_location_location_pb.DistrictGetByIdRequest,
752
+ responseType: cherry_v1_core_location_location_pb.DistrictGetByIdResponse,
753
+ requestSerialize: serialize_DistrictGetByIdRequest,
754
+ requestDeserialize: deserialize_DistrictGetByIdRequest,
755
+ responseSerialize: serialize_DistrictGetByIdResponse,
756
+ responseDeserialize: deserialize_DistrictGetByIdResponse,
757
+ },
758
+ updateDistrict: {
759
+ path: '/LocationService/UpdateDistrict',
760
+ requestStream: false,
761
+ responseStream: false,
762
+ requestType: cherry_v1_core_location_location_pb.UpdateDistrictRequest,
763
+ responseType: cherry_v1_core_location_location_pb.UpdateDistrictResponse,
764
+ requestSerialize: serialize_UpdateDistrictRequest,
765
+ requestDeserialize: deserialize_UpdateDistrictRequest,
766
+ responseSerialize: serialize_UpdateDistrictResponse,
767
+ responseDeserialize: deserialize_UpdateDistrictResponse,
768
+ },
769
+ deleteDistrict: {
770
+ path: '/LocationService/DeleteDistrict',
771
+ requestStream: false,
772
+ responseStream: false,
773
+ requestType: cherry_v1_core_location_location_pb.DeleteDistrictRequest,
774
+ responseType: cherry_v1_core_location_location_pb.DeleteDistrictResponse,
775
+ requestSerialize: serialize_DeleteDistrictRequest,
776
+ requestDeserialize: deserialize_DeleteDistrictRequest,
777
+ responseSerialize: serialize_DeleteDistrictResponse,
778
+ responseDeserialize: deserialize_DeleteDistrictResponse,
779
+ },
780
+ createVillage: {
781
+ path: '/LocationService/CreateVillage',
782
+ requestStream: false,
783
+ responseStream: false,
784
+ requestType: cherry_v1_core_location_location_pb.CreateVillageRequest,
785
+ responseType: cherry_v1_core_location_location_pb.CreateVillageResponse,
786
+ requestSerialize: serialize_CreateVillageRequest,
787
+ requestDeserialize: deserialize_CreateVillageRequest,
788
+ responseSerialize: serialize_CreateVillageResponse,
789
+ responseDeserialize: deserialize_CreateVillageResponse,
790
+ },
791
+ getVillage: {
792
+ path: '/LocationService/GetVillage',
793
+ requestStream: false,
794
+ responseStream: false,
795
+ requestType: cherry_v1_core_location_location_pb.GetVillageRequest,
796
+ responseType: cherry_v1_core_location_location_pb.GetVillageResponse,
797
+ requestSerialize: serialize_GetVillageRequest,
798
+ requestDeserialize: deserialize_GetVillageRequest,
799
+ responseSerialize: serialize_GetVillageResponse,
800
+ responseDeserialize: deserialize_GetVillageResponse,
801
+ },
802
+ getVillageById: {
803
+ path: '/LocationService/GetVillageById',
804
+ requestStream: false,
805
+ responseStream: false,
806
+ requestType: cherry_v1_core_location_location_pb.VillageGetByIdRequest,
807
+ responseType: cherry_v1_core_location_location_pb.VillageGetByIdResponse,
808
+ requestSerialize: serialize_VillageGetByIdRequest,
809
+ requestDeserialize: deserialize_VillageGetByIdRequest,
810
+ responseSerialize: serialize_VillageGetByIdResponse,
811
+ responseDeserialize: deserialize_VillageGetByIdResponse,
812
+ },
813
+ updateVillage: {
814
+ path: '/LocationService/UpdateVillage',
815
+ requestStream: false,
816
+ responseStream: false,
817
+ requestType: cherry_v1_core_location_location_pb.UpdateVillageRequest,
818
+ responseType: cherry_v1_core_location_location_pb.UpdateVillageResponse,
819
+ requestSerialize: serialize_UpdateVillageRequest,
820
+ requestDeserialize: deserialize_UpdateVillageRequest,
821
+ responseSerialize: serialize_UpdateVillageResponse,
822
+ responseDeserialize: deserialize_UpdateVillageResponse,
823
+ },
824
+ deleteVillage: {
825
+ path: '/LocationService/DeleteVillage',
826
+ requestStream: false,
827
+ responseStream: false,
828
+ requestType: cherry_v1_core_location_location_pb.DeleteVillageRequest,
829
+ responseType: cherry_v1_core_location_location_pb.DeleteVillageResponse,
830
+ requestSerialize: serialize_DeleteVillageRequest,
831
+ requestDeserialize: deserialize_DeleteVillageRequest,
832
+ responseSerialize: serialize_DeleteVillageResponse,
833
+ responseDeserialize: deserialize_DeleteVillageResponse,
834
+ },
835
+ };
836
+
837
+ exports.LocationServiceClient = grpc.makeGenericClientConstructor(LocationServiceService, 'LocationService');