@aldiokta/protocgen 1.0.23 → 1.0.24
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.
|
@@ -5,6 +5,28 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var prisca_v1_core_location_location_pb = require('../../../../prisca/v1/core/location/location_pb.js');
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
|
|
8
|
+
function serialize_CityGetByIdRequest(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CityGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_CityGetByIdResponse(arg) {
|
|
20
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CityGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
8
30
|
function serialize_CountryGetByIdRequest(arg) {
|
|
9
31
|
if (!(arg instanceof prisca_v1_core_location_location_pb.CountryGetByIdRequest)) {
|
|
10
32
|
throw new Error('Expected argument of type CountryGetByIdRequest');
|
|
@@ -27,6 +49,28 @@ function deserialize_CountryGetByIdResponse(buffer_arg) {
|
|
|
27
49
|
return prisca_v1_core_location_location_pb.CountryGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
50
|
}
|
|
29
51
|
|
|
52
|
+
function serialize_CreateCityRequest(arg) {
|
|
53
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_CreateCityResponse(arg) {
|
|
64
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
30
74
|
function serialize_CreateCountryRequest(arg) {
|
|
31
75
|
if (!(arg instanceof prisca_v1_core_location_location_pb.CreateCountryRequest)) {
|
|
32
76
|
throw new Error('Expected argument of type CreateCountryRequest');
|
|
@@ -49,6 +93,204 @@ function deserialize_CreateCountryResponse(buffer_arg) {
|
|
|
49
93
|
return prisca_v1_core_location_location_pb.CreateCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
94
|
}
|
|
51
95
|
|
|
96
|
+
function serialize_CreateDistrictRequest(arg) {
|
|
97
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function serialize_CreateDistrictResponse(arg) {
|
|
108
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function serialize_CreateProvinceRequest(arg) {
|
|
119
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function serialize_CreateProvinceResponse(arg) {
|
|
130
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function serialize_CreateVillageRequest(arg) {
|
|
141
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function serialize_CreateVillageResponse(arg) {
|
|
152
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.CreateVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function serialize_DeleteCityRequest(arg) {
|
|
163
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function serialize_DeleteCityResponse(arg) {
|
|
174
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function serialize_DeleteCountryRequest(arg) {
|
|
185
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteCountryRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function serialize_DeleteCountryResponse(arg) {
|
|
196
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function serialize_DeleteDistrictRequest(arg) {
|
|
207
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function serialize_DeleteDistrictResponse(arg) {
|
|
218
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function serialize_DeleteProvinceRequest(arg) {
|
|
229
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function serialize_DeleteProvinceResponse(arg) {
|
|
240
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function serialize_DeleteVillageRequest(arg) {
|
|
251
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function serialize_DeleteVillageResponse(arg) {
|
|
262
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DeleteVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function serialize_DistrictGetByIdRequest(arg) {
|
|
273
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DistrictGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function serialize_DistrictGetByIdResponse(arg) {
|
|
284
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.DistrictGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
292
|
+
}
|
|
293
|
+
|
|
52
294
|
function serialize_GetCityRequest(arg) {
|
|
53
295
|
if (!(arg instanceof prisca_v1_core_location_location_pb.GetCityRequest)) {
|
|
54
296
|
throw new Error('Expected argument of type GetCityRequest');
|
|
@@ -159,6 +401,50 @@ function deserialize_GetVillageResponse(buffer_arg) {
|
|
|
159
401
|
return prisca_v1_core_location_location_pb.GetVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
160
402
|
}
|
|
161
403
|
|
|
404
|
+
function serialize_ProvinceGetByIdRequest(arg) {
|
|
405
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.ProvinceGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
function serialize_ProvinceGetByIdResponse(arg) {
|
|
416
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.ProvinceGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
function serialize_UpdateCityRequest(arg) {
|
|
427
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateCityRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
function serialize_UpdateCityResponse(arg) {
|
|
438
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateCityResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
446
|
+
}
|
|
447
|
+
|
|
162
448
|
function serialize_UpdateCountryRequest(arg) {
|
|
163
449
|
if (!(arg instanceof prisca_v1_core_location_location_pb.UpdateCountryRequest)) {
|
|
164
450
|
throw new Error('Expected argument of type UpdateCountryRequest');
|
|
@@ -181,8 +467,162 @@ function deserialize_UpdateCountryResponse(buffer_arg) {
|
|
|
181
467
|
return prisca_v1_core_location_location_pb.UpdateCountryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
182
468
|
}
|
|
183
469
|
|
|
470
|
+
function serialize_UpdateDistrictRequest(arg) {
|
|
471
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateDistrictRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
function serialize_UpdateDistrictResponse(arg) {
|
|
482
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateDistrictResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
function serialize_UpdateProvinceRequest(arg) {
|
|
493
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateProvinceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
function serialize_UpdateProvinceResponse(arg) {
|
|
504
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateProvinceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
function serialize_UpdateVillageRequest(arg) {
|
|
515
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateVillageRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
function serialize_UpdateVillageResponse(arg) {
|
|
526
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.UpdateVillageResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
function serialize_VillageGetByIdRequest(arg) {
|
|
537
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.VillageGetByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
function serialize_VillageGetByIdResponse(arg) {
|
|
548
|
+
if (!(arg instanceof prisca_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 prisca_v1_core_location_location_pb.VillageGetByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
556
|
+
}
|
|
557
|
+
|
|
184
558
|
|
|
185
559
|
var LocationServiceService = exports.LocationServiceService = {
|
|
560
|
+
createCountry: {
|
|
561
|
+
path: '/LocationService/CreateCountry',
|
|
562
|
+
requestStream: false,
|
|
563
|
+
responseStream: false,
|
|
564
|
+
requestType: prisca_v1_core_location_location_pb.CreateCountryRequest,
|
|
565
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.GetCountryRequest,
|
|
576
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.CountryGetByIdRequest,
|
|
587
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.UpdateCountryRequest,
|
|
598
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.DeleteCountryRequest,
|
|
609
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.CreateProvinceRequest,
|
|
620
|
+
responseType: prisca_v1_core_location_location_pb.CreateProvinceResponse,
|
|
621
|
+
requestSerialize: serialize_CreateProvinceRequest,
|
|
622
|
+
requestDeserialize: deserialize_CreateProvinceRequest,
|
|
623
|
+
responseSerialize: serialize_CreateProvinceResponse,
|
|
624
|
+
responseDeserialize: deserialize_CreateProvinceResponse,
|
|
625
|
+
},
|
|
186
626
|
getProvince: {
|
|
187
627
|
path: '/LocationService/GetProvince',
|
|
188
628
|
requestStream: false,
|
|
@@ -194,6 +634,50 @@ var LocationServiceService = exports.LocationServiceService = {
|
|
|
194
634
|
responseSerialize: serialize_GetProvinceResponse,
|
|
195
635
|
responseDeserialize: deserialize_GetProvinceResponse,
|
|
196
636
|
},
|
|
637
|
+
getProvinceById: {
|
|
638
|
+
path: '/LocationService/GetProvinceById',
|
|
639
|
+
requestStream: false,
|
|
640
|
+
responseStream: false,
|
|
641
|
+
requestType: prisca_v1_core_location_location_pb.ProvinceGetByIdRequest,
|
|
642
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.UpdateProvinceRequest,
|
|
653
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.DeleteProvinceRequest,
|
|
664
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.CreateCityRequest,
|
|
675
|
+
responseType: prisca_v1_core_location_location_pb.CreateCityResponse,
|
|
676
|
+
requestSerialize: serialize_CreateCityRequest,
|
|
677
|
+
requestDeserialize: deserialize_CreateCityRequest,
|
|
678
|
+
responseSerialize: serialize_CreateCityResponse,
|
|
679
|
+
responseDeserialize: deserialize_CreateCityResponse,
|
|
680
|
+
},
|
|
197
681
|
getCity: {
|
|
198
682
|
path: '/LocationService/GetCity',
|
|
199
683
|
requestStream: false,
|
|
@@ -205,6 +689,50 @@ var LocationServiceService = exports.LocationServiceService = {
|
|
|
205
689
|
responseSerialize: serialize_GetCityResponse,
|
|
206
690
|
responseDeserialize: deserialize_GetCityResponse,
|
|
207
691
|
},
|
|
692
|
+
getCityById: {
|
|
693
|
+
path: '/LocationService/GetCityById',
|
|
694
|
+
requestStream: false,
|
|
695
|
+
responseStream: false,
|
|
696
|
+
requestType: prisca_v1_core_location_location_pb.CityGetByIdRequest,
|
|
697
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.UpdateCityRequest,
|
|
708
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.DeleteCityRequest,
|
|
719
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.CreateDistrictRequest,
|
|
730
|
+
responseType: prisca_v1_core_location_location_pb.CreateDistrictResponse,
|
|
731
|
+
requestSerialize: serialize_CreateDistrictRequest,
|
|
732
|
+
requestDeserialize: deserialize_CreateDistrictRequest,
|
|
733
|
+
responseSerialize: serialize_CreateDistrictResponse,
|
|
734
|
+
responseDeserialize: deserialize_CreateDistrictResponse,
|
|
735
|
+
},
|
|
208
736
|
getDistrict: {
|
|
209
737
|
path: '/LocationService/GetDistrict',
|
|
210
738
|
requestStream: false,
|
|
@@ -216,6 +744,50 @@ var LocationServiceService = exports.LocationServiceService = {
|
|
|
216
744
|
responseSerialize: serialize_GetDistrictResponse,
|
|
217
745
|
responseDeserialize: deserialize_GetDistrictResponse,
|
|
218
746
|
},
|
|
747
|
+
getDistrictById: {
|
|
748
|
+
path: '/LocationService/GetDistrictById',
|
|
749
|
+
requestStream: false,
|
|
750
|
+
responseStream: false,
|
|
751
|
+
requestType: prisca_v1_core_location_location_pb.DistrictGetByIdRequest,
|
|
752
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.UpdateDistrictRequest,
|
|
763
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.DeleteDistrictRequest,
|
|
774
|
+
responseType: prisca_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: prisca_v1_core_location_location_pb.CreateVillageRequest,
|
|
785
|
+
responseType: prisca_v1_core_location_location_pb.CreateVillageResponse,
|
|
786
|
+
requestSerialize: serialize_CreateVillageRequest,
|
|
787
|
+
requestDeserialize: deserialize_CreateVillageRequest,
|
|
788
|
+
responseSerialize: serialize_CreateVillageResponse,
|
|
789
|
+
responseDeserialize: deserialize_CreateVillageResponse,
|
|
790
|
+
},
|
|
219
791
|
getVillage: {
|
|
220
792
|
path: '/LocationService/GetVillage',
|
|
221
793
|
requestStream: false,
|
|
@@ -227,49 +799,38 @@ var LocationServiceService = exports.LocationServiceService = {
|
|
|
227
799
|
responseSerialize: serialize_GetVillageResponse,
|
|
228
800
|
responseDeserialize: deserialize_GetVillageResponse,
|
|
229
801
|
},
|
|
230
|
-
|
|
231
|
-
path: '/LocationService/
|
|
232
|
-
requestStream: false,
|
|
233
|
-
responseStream: false,
|
|
234
|
-
requestType: prisca_v1_core_location_location_pb.GetCountryRequest,
|
|
235
|
-
responseType: prisca_v1_core_location_location_pb.GetCountryResponse,
|
|
236
|
-
requestSerialize: serialize_GetCountryRequest,
|
|
237
|
-
requestDeserialize: deserialize_GetCountryRequest,
|
|
238
|
-
responseSerialize: serialize_GetCountryResponse,
|
|
239
|
-
responseDeserialize: deserialize_GetCountryResponse,
|
|
240
|
-
},
|
|
241
|
-
createCountry: {
|
|
242
|
-
path: '/LocationService/CreateCountry',
|
|
802
|
+
getVillageById: {
|
|
803
|
+
path: '/LocationService/GetVillageById',
|
|
243
804
|
requestStream: false,
|
|
244
805
|
responseStream: false,
|
|
245
|
-
requestType: prisca_v1_core_location_location_pb.
|
|
246
|
-
responseType: prisca_v1_core_location_location_pb.
|
|
247
|
-
requestSerialize:
|
|
248
|
-
requestDeserialize:
|
|
249
|
-
responseSerialize:
|
|
250
|
-
responseDeserialize:
|
|
806
|
+
requestType: prisca_v1_core_location_location_pb.VillageGetByIdRequest,
|
|
807
|
+
responseType: prisca_v1_core_location_location_pb.VillageGetByIdResponse,
|
|
808
|
+
requestSerialize: serialize_VillageGetByIdRequest,
|
|
809
|
+
requestDeserialize: deserialize_VillageGetByIdRequest,
|
|
810
|
+
responseSerialize: serialize_VillageGetByIdResponse,
|
|
811
|
+
responseDeserialize: deserialize_VillageGetByIdResponse,
|
|
251
812
|
},
|
|
252
|
-
|
|
253
|
-
path: '/LocationService/
|
|
813
|
+
updateVillage: {
|
|
814
|
+
path: '/LocationService/UpdateVillage',
|
|
254
815
|
requestStream: false,
|
|
255
816
|
responseStream: false,
|
|
256
|
-
requestType: prisca_v1_core_location_location_pb.
|
|
257
|
-
responseType: prisca_v1_core_location_location_pb.
|
|
258
|
-
requestSerialize:
|
|
259
|
-
requestDeserialize:
|
|
260
|
-
responseSerialize:
|
|
261
|
-
responseDeserialize:
|
|
817
|
+
requestType: prisca_v1_core_location_location_pb.UpdateVillageRequest,
|
|
818
|
+
responseType: prisca_v1_core_location_location_pb.UpdateVillageResponse,
|
|
819
|
+
requestSerialize: serialize_UpdateVillageRequest,
|
|
820
|
+
requestDeserialize: deserialize_UpdateVillageRequest,
|
|
821
|
+
responseSerialize: serialize_UpdateVillageResponse,
|
|
822
|
+
responseDeserialize: deserialize_UpdateVillageResponse,
|
|
262
823
|
},
|
|
263
|
-
|
|
264
|
-
path: '/LocationService/
|
|
824
|
+
deleteVillage: {
|
|
825
|
+
path: '/LocationService/DeleteVillage',
|
|
265
826
|
requestStream: false,
|
|
266
827
|
responseStream: false,
|
|
267
|
-
requestType: prisca_v1_core_location_location_pb.
|
|
268
|
-
responseType: prisca_v1_core_location_location_pb.
|
|
269
|
-
requestSerialize:
|
|
270
|
-
requestDeserialize:
|
|
271
|
-
responseSerialize:
|
|
272
|
-
responseDeserialize:
|
|
828
|
+
requestType: prisca_v1_core_location_location_pb.DeleteVillageRequest,
|
|
829
|
+
responseType: prisca_v1_core_location_location_pb.DeleteVillageResponse,
|
|
830
|
+
requestSerialize: serialize_DeleteVillageRequest,
|
|
831
|
+
requestDeserialize: deserialize_DeleteVillageRequest,
|
|
832
|
+
responseSerialize: serialize_DeleteVillageResponse,
|
|
833
|
+
responseDeserialize: deserialize_DeleteVillageResponse,
|
|
273
834
|
},
|
|
274
835
|
};
|
|
275
836
|
|