@aldiokta/protocgen 1.0.18 → 1.0.20

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 (96) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/auth/auth.pb.go +998 -0
  3. package/prisca/v1/core/auth/auth_grpc.pb.go +427 -0
  4. package/prisca/v1/core/company/company.pb.go +965 -0
  5. package/prisca/v1/core/company/company_grpc.pb.go +273 -0
  6. package/prisca/v1/core/department_material/department_material.pb.go +776 -0
  7. package/prisca/v1/core/department_material/department_material_grpc.pb.go +236 -0
  8. package/prisca/v1/core/job_grade/job_grade.pb.go +887 -0
  9. package/prisca/v1/core/job_grade/job_grade_grpc.pb.go +273 -0
  10. package/prisca/v1/core/job_position/job_position.pb.go +1196 -0
  11. package/prisca/v1/core/job_position/job_position_grpc.pb.go +273 -0
  12. package/prisca/v1/core/job_title/job_title.pb.go +986 -0
  13. package/prisca/v1/core/job_title/job_title_grpc.pb.go +273 -0
  14. package/prisca/v1/core/line_of_approval/line_of_approval.pb.go +913 -0
  15. package/prisca/v1/core/line_of_approval/line_of_approval_grpc.pb.go +273 -0
  16. package/prisca/v1/core/location/location.pb.go +1397 -0
  17. package/prisca/v1/core/location/location_grpc.pb.go +387 -0
  18. package/prisca/v1/core/material/material.pb.go +1366 -0
  19. package/prisca/v1/core/material/material_grpc.pb.go +273 -0
  20. package/prisca/v1/core/material_group/material_group.pb.go +911 -0
  21. package/prisca/v1/core/material_group/material_group_grpc.pb.go +273 -0
  22. package/prisca/v1/core/material_type/material_type.pb.go +827 -0
  23. package/prisca/v1/core/material_type/material_type_grpc.pb.go +239 -0
  24. package/prisca/v1/core/number_range/number_range.pb.go +916 -0
  25. package/prisca/v1/core/number_range/number_range_grpc.pb.go +273 -0
  26. package/prisca/v1/core/organization/organization.pb.go +1039 -0
  27. package/prisca/v1/core/organization/organization_grpc.pb.go +273 -0
  28. package/prisca/v1/core/organization_level/organization_level.pb.go +853 -0
  29. package/prisca/v1/core/organization_level/organization_level_grpc.pb.go +274 -0
  30. package/prisca/v1/core/procurement/procurement.pb.go +622 -0
  31. package/prisca/v1/core/procurement/procurement_grpc.pb.go +275 -0
  32. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.pb.go +1550 -0
  33. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.pb.go +141 -0
  35. package/prisca/v1/core/role/role.pb.go +797 -0
  36. package/prisca/v1/core/role/role_grpc.pb.go +273 -0
  37. package/prisca/v1/core/transaction_builder/transaction_builder.pb.go +3217 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder_grpc.pb.go +656 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.pb.go +973 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc.pb.go +278 -0
  41. package/prisca/v1/core/users/users.pb.go +281 -0
  42. package/prisca/v1/core/users_role/users_role.pb.go +813 -0
  43. package/prisca/v1/core/users_role/users_role_grpc.pb.go +273 -0
  44. package/prisca/v1/core/work_location/work_location.pb.go +995 -0
  45. package/prisca/v1/core/work_location/work_location_grpc.pb.go +273 -0
  46. package/prisca/v1/core/work_locations/work_locations.pb.go +184 -0
  47. package/prisca/v1/core/work_locations/work_locations_grpc.pb.go +76 -0
  48. package/prisca/v1/core/workflow/workflow.pb.go +2057 -0
  49. package/prisca/v1/core/workflow/workflow_grpc.pb.go +273 -0
  50. package/prisca/v1/global/meta/meta.pb.go +446 -0
  51. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -256
  52. package/prisca/v1/core/auth/auth_pb.js +0 -2801
  53. package/prisca/v1/core/company/company_grpc_pb.js +0 -177
  54. package/prisca/v1/core/company/company_pb.js +0 -2845
  55. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  56. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  57. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  58. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  59. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  60. package/prisca/v1/core/job_position/job_position_pb.js +0 -3582
  61. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  62. package/prisca/v1/core/job_title/job_title_pb.js +0 -2928
  63. package/prisca/v1/core/location/location_grpc_pb.js +0 -276
  64. package/prisca/v1/core/location/location_pb.js +0 -4334
  65. package/prisca/v1/core/material/material_grpc_pb.js +0 -181
  66. package/prisca/v1/core/material/material_pb.js +0 -4046
  67. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -177
  68. package/prisca/v1/core/material_group/material_group_pb.js +0 -2582
  69. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -147
  70. package/prisca/v1/core/material_type/material_type_pb.js +0 -2399
  71. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -177
  72. package/prisca/v1/core/number_range/number_range_pb.js +0 -2672
  73. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  74. package/prisca/v1/core/organization/organization_pb.js +0 -3002
  75. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -177
  76. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2432
  77. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  78. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  79. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  80. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  81. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  82. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  83. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -421
  84. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -9597
  85. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  86. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  87. package/prisca/v1/core/users/users_grpc_pb.js +0 -1
  88. package/prisca/v1/core/users/users_pb.js +0 -626
  89. package/prisca/v1/core/users_role/users_role_grpc_pb.js +0 -177
  90. package/prisca/v1/core/users_role/users_role_pb.js +0 -2372
  91. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -177
  92. package/prisca/v1/core/work_location/work_location_pb.js +0 -2850
  93. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -179
  94. package/prisca/v1/core/workflow/workflow_pb.js +0 -6318
  95. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  96. package/prisca/v1/global/meta/meta_pb.js +0 -1179
@@ -1,4334 +0,0 @@
1
- // source: prisca/v1/core/location/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.BaseCountry', null, global);
27
- goog.exportSymbol('proto.City', null, global);
28
- goog.exportSymbol('proto.Country', null, global);
29
- goog.exportSymbol('proto.CountryGetByIdRequest', null, global);
30
- goog.exportSymbol('proto.CountryGetByIdResponse', null, global);
31
- goog.exportSymbol('proto.CreateCountryRequest', null, global);
32
- goog.exportSymbol('proto.CreateCountryResponse', null, global);
33
- goog.exportSymbol('proto.District', null, global);
34
- goog.exportSymbol('proto.GetCityRequest', null, global);
35
- goog.exportSymbol('proto.GetCityResponse', null, global);
36
- goog.exportSymbol('proto.GetCountryRequest', null, global);
37
- goog.exportSymbol('proto.GetCountryResponse', null, global);
38
- goog.exportSymbol('proto.GetDistrictRequest', null, global);
39
- goog.exportSymbol('proto.GetDistrictResponse', null, global);
40
- goog.exportSymbol('proto.GetProvinceRequest', null, global);
41
- goog.exportSymbol('proto.GetProvinceResponse', null, global);
42
- goog.exportSymbol('proto.GetVillageRequest', null, global);
43
- goog.exportSymbol('proto.GetVillageResponse', null, global);
44
- goog.exportSymbol('proto.Province', null, global);
45
- goog.exportSymbol('proto.UpdateCountryRequest', null, global);
46
- goog.exportSymbol('proto.UpdateCountryResponse', null, global);
47
- goog.exportSymbol('proto.Village', null, global);
48
- /**
49
- * Generated by JsPbCodeGenerator.
50
- * @param {Array=} opt_data Optional initial data array, typically from a
51
- * server response, or constructed directly in Javascript. The array is used
52
- * in place and becomes part of the constructed object. It is not cloned.
53
- * If no data is provided, the constructed object will be empty, but still
54
- * valid.
55
- * @extends {jspb.Message}
56
- * @constructor
57
- */
58
- proto.Country = function(opt_data) {
59
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
60
- };
61
- goog.inherits(proto.Country, jspb.Message);
62
- if (goog.DEBUG && !COMPILED) {
63
- /**
64
- * @public
65
- * @override
66
- */
67
- proto.Country.displayName = 'proto.Country';
68
- }
69
- /**
70
- * Generated by JsPbCodeGenerator.
71
- * @param {Array=} opt_data Optional initial data array, typically from a
72
- * server response, or constructed directly in Javascript. The array is used
73
- * in place and becomes part of the constructed object. It is not cloned.
74
- * If no data is provided, the constructed object will be empty, but still
75
- * valid.
76
- * @extends {jspb.Message}
77
- * @constructor
78
- */
79
- proto.BaseCountry = function(opt_data) {
80
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
81
- };
82
- goog.inherits(proto.BaseCountry, jspb.Message);
83
- if (goog.DEBUG && !COMPILED) {
84
- /**
85
- * @public
86
- * @override
87
- */
88
- proto.BaseCountry.displayName = 'proto.BaseCountry';
89
- }
90
- /**
91
- * Generated by JsPbCodeGenerator.
92
- * @param {Array=} opt_data Optional initial data array, typically from a
93
- * server response, or constructed directly in Javascript. The array is used
94
- * in place and becomes part of the constructed object. It is not cloned.
95
- * If no data is provided, the constructed object will be empty, but still
96
- * valid.
97
- * @extends {jspb.Message}
98
- * @constructor
99
- */
100
- proto.Province = function(opt_data) {
101
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
102
- };
103
- goog.inherits(proto.Province, jspb.Message);
104
- if (goog.DEBUG && !COMPILED) {
105
- /**
106
- * @public
107
- * @override
108
- */
109
- proto.Province.displayName = 'proto.Province';
110
- }
111
- /**
112
- * Generated by JsPbCodeGenerator.
113
- * @param {Array=} opt_data Optional initial data array, typically from a
114
- * server response, or constructed directly in Javascript. The array is used
115
- * in place and becomes part of the constructed object. It is not cloned.
116
- * If no data is provided, the constructed object will be empty, but still
117
- * valid.
118
- * @extends {jspb.Message}
119
- * @constructor
120
- */
121
- proto.City = function(opt_data) {
122
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
123
- };
124
- goog.inherits(proto.City, jspb.Message);
125
- if (goog.DEBUG && !COMPILED) {
126
- /**
127
- * @public
128
- * @override
129
- */
130
- proto.City.displayName = 'proto.City';
131
- }
132
- /**
133
- * Generated by JsPbCodeGenerator.
134
- * @param {Array=} opt_data Optional initial data array, typically from a
135
- * server response, or constructed directly in Javascript. The array is used
136
- * in place and becomes part of the constructed object. It is not cloned.
137
- * If no data is provided, the constructed object will be empty, but still
138
- * valid.
139
- * @extends {jspb.Message}
140
- * @constructor
141
- */
142
- proto.District = function(opt_data) {
143
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
144
- };
145
- goog.inherits(proto.District, jspb.Message);
146
- if (goog.DEBUG && !COMPILED) {
147
- /**
148
- * @public
149
- * @override
150
- */
151
- proto.District.displayName = 'proto.District';
152
- }
153
- /**
154
- * Generated by JsPbCodeGenerator.
155
- * @param {Array=} opt_data Optional initial data array, typically from a
156
- * server response, or constructed directly in Javascript. The array is used
157
- * in place and becomes part of the constructed object. It is not cloned.
158
- * If no data is provided, the constructed object will be empty, but still
159
- * valid.
160
- * @extends {jspb.Message}
161
- * @constructor
162
- */
163
- proto.Village = function(opt_data) {
164
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
165
- };
166
- goog.inherits(proto.Village, jspb.Message);
167
- if (goog.DEBUG && !COMPILED) {
168
- /**
169
- * @public
170
- * @override
171
- */
172
- proto.Village.displayName = 'proto.Village';
173
- }
174
- /**
175
- * Generated by JsPbCodeGenerator.
176
- * @param {Array=} opt_data Optional initial data array, typically from a
177
- * server response, or constructed directly in Javascript. The array is used
178
- * in place and becomes part of the constructed object. It is not cloned.
179
- * If no data is provided, the constructed object will be empty, but still
180
- * valid.
181
- * @extends {jspb.Message}
182
- * @constructor
183
- */
184
- proto.GetCountryRequest = function(opt_data) {
185
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
186
- };
187
- goog.inherits(proto.GetCountryRequest, jspb.Message);
188
- if (goog.DEBUG && !COMPILED) {
189
- /**
190
- * @public
191
- * @override
192
- */
193
- proto.GetCountryRequest.displayName = 'proto.GetCountryRequest';
194
- }
195
- /**
196
- * Generated by JsPbCodeGenerator.
197
- * @param {Array=} opt_data Optional initial data array, typically from a
198
- * server response, or constructed directly in Javascript. The array is used
199
- * in place and becomes part of the constructed object. It is not cloned.
200
- * If no data is provided, the constructed object will be empty, but still
201
- * valid.
202
- * @extends {jspb.Message}
203
- * @constructor
204
- */
205
- proto.CountryGetByIdRequest = function(opt_data) {
206
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
207
- };
208
- goog.inherits(proto.CountryGetByIdRequest, jspb.Message);
209
- if (goog.DEBUG && !COMPILED) {
210
- /**
211
- * @public
212
- * @override
213
- */
214
- proto.CountryGetByIdRequest.displayName = 'proto.CountryGetByIdRequest';
215
- }
216
- /**
217
- * Generated by JsPbCodeGenerator.
218
- * @param {Array=} opt_data Optional initial data array, typically from a
219
- * server response, or constructed directly in Javascript. The array is used
220
- * in place and becomes part of the constructed object. It is not cloned.
221
- * If no data is provided, the constructed object will be empty, but still
222
- * valid.
223
- * @extends {jspb.Message}
224
- * @constructor
225
- */
226
- proto.UpdateCountryRequest = function(opt_data) {
227
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
228
- };
229
- goog.inherits(proto.UpdateCountryRequest, jspb.Message);
230
- if (goog.DEBUG && !COMPILED) {
231
- /**
232
- * @public
233
- * @override
234
- */
235
- proto.UpdateCountryRequest.displayName = 'proto.UpdateCountryRequest';
236
- }
237
- /**
238
- * Generated by JsPbCodeGenerator.
239
- * @param {Array=} opt_data Optional initial data array, typically from a
240
- * server response, or constructed directly in Javascript. The array is used
241
- * in place and becomes part of the constructed object. It is not cloned.
242
- * If no data is provided, the constructed object will be empty, but still
243
- * valid.
244
- * @extends {jspb.Message}
245
- * @constructor
246
- */
247
- proto.CountryGetByIdResponse = function(opt_data) {
248
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
249
- };
250
- goog.inherits(proto.CountryGetByIdResponse, jspb.Message);
251
- if (goog.DEBUG && !COMPILED) {
252
- /**
253
- * @public
254
- * @override
255
- */
256
- proto.CountryGetByIdResponse.displayName = 'proto.CountryGetByIdResponse';
257
- }
258
- /**
259
- * Generated by JsPbCodeGenerator.
260
- * @param {Array=} opt_data Optional initial data array, typically from a
261
- * server response, or constructed directly in Javascript. The array is used
262
- * in place and becomes part of the constructed object. It is not cloned.
263
- * If no data is provided, the constructed object will be empty, but still
264
- * valid.
265
- * @extends {jspb.Message}
266
- * @constructor
267
- */
268
- proto.GetProvinceRequest = function(opt_data) {
269
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
270
- };
271
- goog.inherits(proto.GetProvinceRequest, jspb.Message);
272
- if (goog.DEBUG && !COMPILED) {
273
- /**
274
- * @public
275
- * @override
276
- */
277
- proto.GetProvinceRequest.displayName = 'proto.GetProvinceRequest';
278
- }
279
- /**
280
- * Generated by JsPbCodeGenerator.
281
- * @param {Array=} opt_data Optional initial data array, typically from a
282
- * server response, or constructed directly in Javascript. The array is used
283
- * in place and becomes part of the constructed object. It is not cloned.
284
- * If no data is provided, the constructed object will be empty, but still
285
- * valid.
286
- * @extends {jspb.Message}
287
- * @constructor
288
- */
289
- proto.GetCityRequest = function(opt_data) {
290
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
291
- };
292
- goog.inherits(proto.GetCityRequest, jspb.Message);
293
- if (goog.DEBUG && !COMPILED) {
294
- /**
295
- * @public
296
- * @override
297
- */
298
- proto.GetCityRequest.displayName = 'proto.GetCityRequest';
299
- }
300
- /**
301
- * Generated by JsPbCodeGenerator.
302
- * @param {Array=} opt_data Optional initial data array, typically from a
303
- * server response, or constructed directly in Javascript. The array is used
304
- * in place and becomes part of the constructed object. It is not cloned.
305
- * If no data is provided, the constructed object will be empty, but still
306
- * valid.
307
- * @extends {jspb.Message}
308
- * @constructor
309
- */
310
- proto.GetDistrictRequest = function(opt_data) {
311
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
312
- };
313
- goog.inherits(proto.GetDistrictRequest, jspb.Message);
314
- if (goog.DEBUG && !COMPILED) {
315
- /**
316
- * @public
317
- * @override
318
- */
319
- proto.GetDistrictRequest.displayName = 'proto.GetDistrictRequest';
320
- }
321
- /**
322
- * Generated by JsPbCodeGenerator.
323
- * @param {Array=} opt_data Optional initial data array, typically from a
324
- * server response, or constructed directly in Javascript. The array is used
325
- * in place and becomes part of the constructed object. It is not cloned.
326
- * If no data is provided, the constructed object will be empty, but still
327
- * valid.
328
- * @extends {jspb.Message}
329
- * @constructor
330
- */
331
- proto.GetVillageRequest = function(opt_data) {
332
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
333
- };
334
- goog.inherits(proto.GetVillageRequest, jspb.Message);
335
- if (goog.DEBUG && !COMPILED) {
336
- /**
337
- * @public
338
- * @override
339
- */
340
- proto.GetVillageRequest.displayName = 'proto.GetVillageRequest';
341
- }
342
- /**
343
- * Generated by JsPbCodeGenerator.
344
- * @param {Array=} opt_data Optional initial data array, typically from a
345
- * server response, or constructed directly in Javascript. The array is used
346
- * in place and becomes part of the constructed object. It is not cloned.
347
- * If no data is provided, the constructed object will be empty, but still
348
- * valid.
349
- * @extends {jspb.Message}
350
- * @constructor
351
- */
352
- proto.GetCountryResponse = function(opt_data) {
353
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetCountryResponse.repeatedFields_, null);
354
- };
355
- goog.inherits(proto.GetCountryResponse, jspb.Message);
356
- if (goog.DEBUG && !COMPILED) {
357
- /**
358
- * @public
359
- * @override
360
- */
361
- proto.GetCountryResponse.displayName = 'proto.GetCountryResponse';
362
- }
363
- /**
364
- * Generated by JsPbCodeGenerator.
365
- * @param {Array=} opt_data Optional initial data array, typically from a
366
- * server response, or constructed directly in Javascript. The array is used
367
- * in place and becomes part of the constructed object. It is not cloned.
368
- * If no data is provided, the constructed object will be empty, but still
369
- * valid.
370
- * @extends {jspb.Message}
371
- * @constructor
372
- */
373
- proto.GetProvinceResponse = function(opt_data) {
374
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetProvinceResponse.repeatedFields_, null);
375
- };
376
- goog.inherits(proto.GetProvinceResponse, jspb.Message);
377
- if (goog.DEBUG && !COMPILED) {
378
- /**
379
- * @public
380
- * @override
381
- */
382
- proto.GetProvinceResponse.displayName = 'proto.GetProvinceResponse';
383
- }
384
- /**
385
- * Generated by JsPbCodeGenerator.
386
- * @param {Array=} opt_data Optional initial data array, typically from a
387
- * server response, or constructed directly in Javascript. The array is used
388
- * in place and becomes part of the constructed object. It is not cloned.
389
- * If no data is provided, the constructed object will be empty, but still
390
- * valid.
391
- * @extends {jspb.Message}
392
- * @constructor
393
- */
394
- proto.GetCityResponse = function(opt_data) {
395
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetCityResponse.repeatedFields_, null);
396
- };
397
- goog.inherits(proto.GetCityResponse, jspb.Message);
398
- if (goog.DEBUG && !COMPILED) {
399
- /**
400
- * @public
401
- * @override
402
- */
403
- proto.GetCityResponse.displayName = 'proto.GetCityResponse';
404
- }
405
- /**
406
- * Generated by JsPbCodeGenerator.
407
- * @param {Array=} opt_data Optional initial data array, typically from a
408
- * server response, or constructed directly in Javascript. The array is used
409
- * in place and becomes part of the constructed object. It is not cloned.
410
- * If no data is provided, the constructed object will be empty, but still
411
- * valid.
412
- * @extends {jspb.Message}
413
- * @constructor
414
- */
415
- proto.GetDistrictResponse = function(opt_data) {
416
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetDistrictResponse.repeatedFields_, null);
417
- };
418
- goog.inherits(proto.GetDistrictResponse, jspb.Message);
419
- if (goog.DEBUG && !COMPILED) {
420
- /**
421
- * @public
422
- * @override
423
- */
424
- proto.GetDistrictResponse.displayName = 'proto.GetDistrictResponse';
425
- }
426
- /**
427
- * Generated by JsPbCodeGenerator.
428
- * @param {Array=} opt_data Optional initial data array, typically from a
429
- * server response, or constructed directly in Javascript. The array is used
430
- * in place and becomes part of the constructed object. It is not cloned.
431
- * If no data is provided, the constructed object will be empty, but still
432
- * valid.
433
- * @extends {jspb.Message}
434
- * @constructor
435
- */
436
- proto.GetVillageResponse = function(opt_data) {
437
- jspb.Message.initialize(this, opt_data, 0, -1, proto.GetVillageResponse.repeatedFields_, null);
438
- };
439
- goog.inherits(proto.GetVillageResponse, jspb.Message);
440
- if (goog.DEBUG && !COMPILED) {
441
- /**
442
- * @public
443
- * @override
444
- */
445
- proto.GetVillageResponse.displayName = 'proto.GetVillageResponse';
446
- }
447
- /**
448
- * Generated by JsPbCodeGenerator.
449
- * @param {Array=} opt_data Optional initial data array, typically from a
450
- * server response, or constructed directly in Javascript. The array is used
451
- * in place and becomes part of the constructed object. It is not cloned.
452
- * If no data is provided, the constructed object will be empty, but still
453
- * valid.
454
- * @extends {jspb.Message}
455
- * @constructor
456
- */
457
- proto.CreateCountryRequest = function(opt_data) {
458
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
459
- };
460
- goog.inherits(proto.CreateCountryRequest, jspb.Message);
461
- if (goog.DEBUG && !COMPILED) {
462
- /**
463
- * @public
464
- * @override
465
- */
466
- proto.CreateCountryRequest.displayName = 'proto.CreateCountryRequest';
467
- }
468
- /**
469
- * Generated by JsPbCodeGenerator.
470
- * @param {Array=} opt_data Optional initial data array, typically from a
471
- * server response, or constructed directly in Javascript. The array is used
472
- * in place and becomes part of the constructed object. It is not cloned.
473
- * If no data is provided, the constructed object will be empty, but still
474
- * valid.
475
- * @extends {jspb.Message}
476
- * @constructor
477
- */
478
- proto.CreateCountryResponse = function(opt_data) {
479
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
480
- };
481
- goog.inherits(proto.CreateCountryResponse, jspb.Message);
482
- if (goog.DEBUG && !COMPILED) {
483
- /**
484
- * @public
485
- * @override
486
- */
487
- proto.CreateCountryResponse.displayName = 'proto.CreateCountryResponse';
488
- }
489
- /**
490
- * Generated by JsPbCodeGenerator.
491
- * @param {Array=} opt_data Optional initial data array, typically from a
492
- * server response, or constructed directly in Javascript. The array is used
493
- * in place and becomes part of the constructed object. It is not cloned.
494
- * If no data is provided, the constructed object will be empty, but still
495
- * valid.
496
- * @extends {jspb.Message}
497
- * @constructor
498
- */
499
- proto.UpdateCountryResponse = function(opt_data) {
500
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
501
- };
502
- goog.inherits(proto.UpdateCountryResponse, jspb.Message);
503
- if (goog.DEBUG && !COMPILED) {
504
- /**
505
- * @public
506
- * @override
507
- */
508
- proto.UpdateCountryResponse.displayName = 'proto.UpdateCountryResponse';
509
- }
510
-
511
-
512
-
513
- if (jspb.Message.GENERATE_TO_OBJECT) {
514
- /**
515
- * Creates an object representation of this proto.
516
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
517
- * Optional fields that are not set will be set to undefined.
518
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
519
- * For the list of reserved names please see:
520
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
521
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
522
- * JSPB instance for transitional soy proto support:
523
- * http://goto/soy-param-migration
524
- * @return {!Object}
525
- */
526
- proto.Country.prototype.toObject = function(opt_includeInstance) {
527
- return proto.Country.toObject(opt_includeInstance, this);
528
- };
529
-
530
-
531
- /**
532
- * Static version of the {@see toObject} method.
533
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
534
- * the JSPB instance for transitional soy proto support:
535
- * http://goto/soy-param-migration
536
- * @param {!proto.Country} msg The msg instance to transform.
537
- * @return {!Object}
538
- * @suppress {unusedLocalVariables} f is only used for nested messages
539
- */
540
- proto.Country.toObject = function(includeInstance, msg) {
541
- var f, obj = {
542
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
543
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
544
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
545
- };
546
-
547
- if (includeInstance) {
548
- obj.$jspbMessageInstance = msg;
549
- }
550
- return obj;
551
- };
552
- }
553
-
554
-
555
- /**
556
- * Deserializes binary data (in protobuf wire format).
557
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
558
- * @return {!proto.Country}
559
- */
560
- proto.Country.deserializeBinary = function(bytes) {
561
- var reader = new jspb.BinaryReader(bytes);
562
- var msg = new proto.Country;
563
- return proto.Country.deserializeBinaryFromReader(msg, reader);
564
- };
565
-
566
-
567
- /**
568
- * Deserializes binary data (in protobuf wire format) from the
569
- * given reader into the given message object.
570
- * @param {!proto.Country} msg The message object to deserialize into.
571
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
572
- * @return {!proto.Country}
573
- */
574
- proto.Country.deserializeBinaryFromReader = function(msg, reader) {
575
- while (reader.nextField()) {
576
- if (reader.isEndGroup()) {
577
- break;
578
- }
579
- var field = reader.getFieldNumber();
580
- switch (field) {
581
- case 1:
582
- var value = /** @type {number} */ (reader.readInt64());
583
- msg.setId(value);
584
- break;
585
- case 2:
586
- var value = /** @type {string} */ (reader.readString());
587
- msg.setName(value);
588
- break;
589
- case 3:
590
- var value = /** @type {string} */ (reader.readString());
591
- msg.setReferencesId(value);
592
- break;
593
- default:
594
- reader.skipField();
595
- break;
596
- }
597
- }
598
- return msg;
599
- };
600
-
601
-
602
- /**
603
- * Serializes the message to binary data (in protobuf wire format).
604
- * @return {!Uint8Array}
605
- */
606
- proto.Country.prototype.serializeBinary = function() {
607
- var writer = new jspb.BinaryWriter();
608
- proto.Country.serializeBinaryToWriter(this, writer);
609
- return writer.getResultBuffer();
610
- };
611
-
612
-
613
- /**
614
- * Serializes the given message to binary data (in protobuf wire
615
- * format), writing to the given BinaryWriter.
616
- * @param {!proto.Country} message
617
- * @param {!jspb.BinaryWriter} writer
618
- * @suppress {unusedLocalVariables} f is only used for nested messages
619
- */
620
- proto.Country.serializeBinaryToWriter = function(message, writer) {
621
- var f = undefined;
622
- f = message.getId();
623
- if (f !== 0) {
624
- writer.writeInt64(
625
- 1,
626
- f
627
- );
628
- }
629
- f = message.getName();
630
- if (f.length > 0) {
631
- writer.writeString(
632
- 2,
633
- f
634
- );
635
- }
636
- f = message.getReferencesId();
637
- if (f.length > 0) {
638
- writer.writeString(
639
- 3,
640
- f
641
- );
642
- }
643
- };
644
-
645
-
646
- /**
647
- * optional int64 id = 1;
648
- * @return {number}
649
- */
650
- proto.Country.prototype.getId = function() {
651
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
652
- };
653
-
654
-
655
- /**
656
- * @param {number} value
657
- * @return {!proto.Country} returns this
658
- */
659
- proto.Country.prototype.setId = function(value) {
660
- return jspb.Message.setProto3IntField(this, 1, value);
661
- };
662
-
663
-
664
- /**
665
- * optional string name = 2;
666
- * @return {string}
667
- */
668
- proto.Country.prototype.getName = function() {
669
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
670
- };
671
-
672
-
673
- /**
674
- * @param {string} value
675
- * @return {!proto.Country} returns this
676
- */
677
- proto.Country.prototype.setName = function(value) {
678
- return jspb.Message.setProto3StringField(this, 2, value);
679
- };
680
-
681
-
682
- /**
683
- * optional string references_id = 3;
684
- * @return {string}
685
- */
686
- proto.Country.prototype.getReferencesId = function() {
687
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
688
- };
689
-
690
-
691
- /**
692
- * @param {string} value
693
- * @return {!proto.Country} returns this
694
- */
695
- proto.Country.prototype.setReferencesId = function(value) {
696
- return jspb.Message.setProto3StringField(this, 3, value);
697
- };
698
-
699
-
700
-
701
-
702
-
703
- if (jspb.Message.GENERATE_TO_OBJECT) {
704
- /**
705
- * Creates an object representation of this proto.
706
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
707
- * Optional fields that are not set will be set to undefined.
708
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
709
- * For the list of reserved names please see:
710
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
711
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
712
- * JSPB instance for transitional soy proto support:
713
- * http://goto/soy-param-migration
714
- * @return {!Object}
715
- */
716
- proto.BaseCountry.prototype.toObject = function(opt_includeInstance) {
717
- return proto.BaseCountry.toObject(opt_includeInstance, this);
718
- };
719
-
720
-
721
- /**
722
- * Static version of the {@see toObject} method.
723
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
724
- * the JSPB instance for transitional soy proto support:
725
- * http://goto/soy-param-migration
726
- * @param {!proto.BaseCountry} msg The msg instance to transform.
727
- * @return {!Object}
728
- * @suppress {unusedLocalVariables} f is only used for nested messages
729
- */
730
- proto.BaseCountry.toObject = function(includeInstance, msg) {
731
- var f, obj = {
732
- name: jspb.Message.getFieldWithDefault(msg, 1, "")
733
- };
734
-
735
- if (includeInstance) {
736
- obj.$jspbMessageInstance = msg;
737
- }
738
- return obj;
739
- };
740
- }
741
-
742
-
743
- /**
744
- * Deserializes binary data (in protobuf wire format).
745
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
746
- * @return {!proto.BaseCountry}
747
- */
748
- proto.BaseCountry.deserializeBinary = function(bytes) {
749
- var reader = new jspb.BinaryReader(bytes);
750
- var msg = new proto.BaseCountry;
751
- return proto.BaseCountry.deserializeBinaryFromReader(msg, reader);
752
- };
753
-
754
-
755
- /**
756
- * Deserializes binary data (in protobuf wire format) from the
757
- * given reader into the given message object.
758
- * @param {!proto.BaseCountry} msg The message object to deserialize into.
759
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
760
- * @return {!proto.BaseCountry}
761
- */
762
- proto.BaseCountry.deserializeBinaryFromReader = function(msg, reader) {
763
- while (reader.nextField()) {
764
- if (reader.isEndGroup()) {
765
- break;
766
- }
767
- var field = reader.getFieldNumber();
768
- switch (field) {
769
- case 1:
770
- var value = /** @type {string} */ (reader.readString());
771
- msg.setName(value);
772
- break;
773
- default:
774
- reader.skipField();
775
- break;
776
- }
777
- }
778
- return msg;
779
- };
780
-
781
-
782
- /**
783
- * Serializes the message to binary data (in protobuf wire format).
784
- * @return {!Uint8Array}
785
- */
786
- proto.BaseCountry.prototype.serializeBinary = function() {
787
- var writer = new jspb.BinaryWriter();
788
- proto.BaseCountry.serializeBinaryToWriter(this, writer);
789
- return writer.getResultBuffer();
790
- };
791
-
792
-
793
- /**
794
- * Serializes the given message to binary data (in protobuf wire
795
- * format), writing to the given BinaryWriter.
796
- * @param {!proto.BaseCountry} message
797
- * @param {!jspb.BinaryWriter} writer
798
- * @suppress {unusedLocalVariables} f is only used for nested messages
799
- */
800
- proto.BaseCountry.serializeBinaryToWriter = function(message, writer) {
801
- var f = undefined;
802
- f = message.getName();
803
- if (f.length > 0) {
804
- writer.writeString(
805
- 1,
806
- f
807
- );
808
- }
809
- };
810
-
811
-
812
- /**
813
- * optional string name = 1;
814
- * @return {string}
815
- */
816
- proto.BaseCountry.prototype.getName = function() {
817
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
818
- };
819
-
820
-
821
- /**
822
- * @param {string} value
823
- * @return {!proto.BaseCountry} returns this
824
- */
825
- proto.BaseCountry.prototype.setName = function(value) {
826
- return jspb.Message.setProto3StringField(this, 1, value);
827
- };
828
-
829
-
830
-
831
-
832
-
833
- if (jspb.Message.GENERATE_TO_OBJECT) {
834
- /**
835
- * Creates an object representation of this proto.
836
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
837
- * Optional fields that are not set will be set to undefined.
838
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
839
- * For the list of reserved names please see:
840
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
841
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
842
- * JSPB instance for transitional soy proto support:
843
- * http://goto/soy-param-migration
844
- * @return {!Object}
845
- */
846
- proto.Province.prototype.toObject = function(opt_includeInstance) {
847
- return proto.Province.toObject(opt_includeInstance, this);
848
- };
849
-
850
-
851
- /**
852
- * Static version of the {@see toObject} method.
853
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
854
- * the JSPB instance for transitional soy proto support:
855
- * http://goto/soy-param-migration
856
- * @param {!proto.Province} msg The msg instance to transform.
857
- * @return {!Object}
858
- * @suppress {unusedLocalVariables} f is only used for nested messages
859
- */
860
- proto.Province.toObject = function(includeInstance, msg) {
861
- var f, obj = {
862
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
863
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
864
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
865
- };
866
-
867
- if (includeInstance) {
868
- obj.$jspbMessageInstance = msg;
869
- }
870
- return obj;
871
- };
872
- }
873
-
874
-
875
- /**
876
- * Deserializes binary data (in protobuf wire format).
877
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
878
- * @return {!proto.Province}
879
- */
880
- proto.Province.deserializeBinary = function(bytes) {
881
- var reader = new jspb.BinaryReader(bytes);
882
- var msg = new proto.Province;
883
- return proto.Province.deserializeBinaryFromReader(msg, reader);
884
- };
885
-
886
-
887
- /**
888
- * Deserializes binary data (in protobuf wire format) from the
889
- * given reader into the given message object.
890
- * @param {!proto.Province} msg The message object to deserialize into.
891
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
892
- * @return {!proto.Province}
893
- */
894
- proto.Province.deserializeBinaryFromReader = function(msg, reader) {
895
- while (reader.nextField()) {
896
- if (reader.isEndGroup()) {
897
- break;
898
- }
899
- var field = reader.getFieldNumber();
900
- switch (field) {
901
- case 1:
902
- var value = /** @type {number} */ (reader.readInt64());
903
- msg.setId(value);
904
- break;
905
- case 2:
906
- var value = /** @type {string} */ (reader.readString());
907
- msg.setName(value);
908
- break;
909
- case 3:
910
- var value = /** @type {string} */ (reader.readString());
911
- msg.setReferencesId(value);
912
- break;
913
- default:
914
- reader.skipField();
915
- break;
916
- }
917
- }
918
- return msg;
919
- };
920
-
921
-
922
- /**
923
- * Serializes the message to binary data (in protobuf wire format).
924
- * @return {!Uint8Array}
925
- */
926
- proto.Province.prototype.serializeBinary = function() {
927
- var writer = new jspb.BinaryWriter();
928
- proto.Province.serializeBinaryToWriter(this, writer);
929
- return writer.getResultBuffer();
930
- };
931
-
932
-
933
- /**
934
- * Serializes the given message to binary data (in protobuf wire
935
- * format), writing to the given BinaryWriter.
936
- * @param {!proto.Province} message
937
- * @param {!jspb.BinaryWriter} writer
938
- * @suppress {unusedLocalVariables} f is only used for nested messages
939
- */
940
- proto.Province.serializeBinaryToWriter = function(message, writer) {
941
- var f = undefined;
942
- f = message.getId();
943
- if (f !== 0) {
944
- writer.writeInt64(
945
- 1,
946
- f
947
- );
948
- }
949
- f = message.getName();
950
- if (f.length > 0) {
951
- writer.writeString(
952
- 2,
953
- f
954
- );
955
- }
956
- f = message.getReferencesId();
957
- if (f.length > 0) {
958
- writer.writeString(
959
- 3,
960
- f
961
- );
962
- }
963
- };
964
-
965
-
966
- /**
967
- * optional int64 id = 1;
968
- * @return {number}
969
- */
970
- proto.Province.prototype.getId = function() {
971
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
972
- };
973
-
974
-
975
- /**
976
- * @param {number} value
977
- * @return {!proto.Province} returns this
978
- */
979
- proto.Province.prototype.setId = function(value) {
980
- return jspb.Message.setProto3IntField(this, 1, value);
981
- };
982
-
983
-
984
- /**
985
- * optional string name = 2;
986
- * @return {string}
987
- */
988
- proto.Province.prototype.getName = function() {
989
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
990
- };
991
-
992
-
993
- /**
994
- * @param {string} value
995
- * @return {!proto.Province} returns this
996
- */
997
- proto.Province.prototype.setName = function(value) {
998
- return jspb.Message.setProto3StringField(this, 2, value);
999
- };
1000
-
1001
-
1002
- /**
1003
- * optional string references_id = 3;
1004
- * @return {string}
1005
- */
1006
- proto.Province.prototype.getReferencesId = function() {
1007
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1008
- };
1009
-
1010
-
1011
- /**
1012
- * @param {string} value
1013
- * @return {!proto.Province} returns this
1014
- */
1015
- proto.Province.prototype.setReferencesId = function(value) {
1016
- return jspb.Message.setProto3StringField(this, 3, value);
1017
- };
1018
-
1019
-
1020
-
1021
-
1022
-
1023
- if (jspb.Message.GENERATE_TO_OBJECT) {
1024
- /**
1025
- * Creates an object representation of this proto.
1026
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1027
- * Optional fields that are not set will be set to undefined.
1028
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1029
- * For the list of reserved names please see:
1030
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1031
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1032
- * JSPB instance for transitional soy proto support:
1033
- * http://goto/soy-param-migration
1034
- * @return {!Object}
1035
- */
1036
- proto.City.prototype.toObject = function(opt_includeInstance) {
1037
- return proto.City.toObject(opt_includeInstance, this);
1038
- };
1039
-
1040
-
1041
- /**
1042
- * Static version of the {@see toObject} method.
1043
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1044
- * the JSPB instance for transitional soy proto support:
1045
- * http://goto/soy-param-migration
1046
- * @param {!proto.City} msg The msg instance to transform.
1047
- * @return {!Object}
1048
- * @suppress {unusedLocalVariables} f is only used for nested messages
1049
- */
1050
- proto.City.toObject = function(includeInstance, msg) {
1051
- var f, obj = {
1052
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1053
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1054
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1055
- };
1056
-
1057
- if (includeInstance) {
1058
- obj.$jspbMessageInstance = msg;
1059
- }
1060
- return obj;
1061
- };
1062
- }
1063
-
1064
-
1065
- /**
1066
- * Deserializes binary data (in protobuf wire format).
1067
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1068
- * @return {!proto.City}
1069
- */
1070
- proto.City.deserializeBinary = function(bytes) {
1071
- var reader = new jspb.BinaryReader(bytes);
1072
- var msg = new proto.City;
1073
- return proto.City.deserializeBinaryFromReader(msg, reader);
1074
- };
1075
-
1076
-
1077
- /**
1078
- * Deserializes binary data (in protobuf wire format) from the
1079
- * given reader into the given message object.
1080
- * @param {!proto.City} msg The message object to deserialize into.
1081
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1082
- * @return {!proto.City}
1083
- */
1084
- proto.City.deserializeBinaryFromReader = function(msg, reader) {
1085
- while (reader.nextField()) {
1086
- if (reader.isEndGroup()) {
1087
- break;
1088
- }
1089
- var field = reader.getFieldNumber();
1090
- switch (field) {
1091
- case 1:
1092
- var value = /** @type {number} */ (reader.readInt64());
1093
- msg.setId(value);
1094
- break;
1095
- case 2:
1096
- var value = /** @type {string} */ (reader.readString());
1097
- msg.setName(value);
1098
- break;
1099
- case 3:
1100
- var value = /** @type {string} */ (reader.readString());
1101
- msg.setReferencesId(value);
1102
- break;
1103
- default:
1104
- reader.skipField();
1105
- break;
1106
- }
1107
- }
1108
- return msg;
1109
- };
1110
-
1111
-
1112
- /**
1113
- * Serializes the message to binary data (in protobuf wire format).
1114
- * @return {!Uint8Array}
1115
- */
1116
- proto.City.prototype.serializeBinary = function() {
1117
- var writer = new jspb.BinaryWriter();
1118
- proto.City.serializeBinaryToWriter(this, writer);
1119
- return writer.getResultBuffer();
1120
- };
1121
-
1122
-
1123
- /**
1124
- * Serializes the given message to binary data (in protobuf wire
1125
- * format), writing to the given BinaryWriter.
1126
- * @param {!proto.City} message
1127
- * @param {!jspb.BinaryWriter} writer
1128
- * @suppress {unusedLocalVariables} f is only used for nested messages
1129
- */
1130
- proto.City.serializeBinaryToWriter = function(message, writer) {
1131
- var f = undefined;
1132
- f = message.getId();
1133
- if (f !== 0) {
1134
- writer.writeInt64(
1135
- 1,
1136
- f
1137
- );
1138
- }
1139
- f = message.getName();
1140
- if (f.length > 0) {
1141
- writer.writeString(
1142
- 2,
1143
- f
1144
- );
1145
- }
1146
- f = message.getReferencesId();
1147
- if (f.length > 0) {
1148
- writer.writeString(
1149
- 3,
1150
- f
1151
- );
1152
- }
1153
- };
1154
-
1155
-
1156
- /**
1157
- * optional int64 id = 1;
1158
- * @return {number}
1159
- */
1160
- proto.City.prototype.getId = function() {
1161
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1162
- };
1163
-
1164
-
1165
- /**
1166
- * @param {number} value
1167
- * @return {!proto.City} returns this
1168
- */
1169
- proto.City.prototype.setId = function(value) {
1170
- return jspb.Message.setProto3IntField(this, 1, value);
1171
- };
1172
-
1173
-
1174
- /**
1175
- * optional string name = 2;
1176
- * @return {string}
1177
- */
1178
- proto.City.prototype.getName = function() {
1179
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1180
- };
1181
-
1182
-
1183
- /**
1184
- * @param {string} value
1185
- * @return {!proto.City} returns this
1186
- */
1187
- proto.City.prototype.setName = function(value) {
1188
- return jspb.Message.setProto3StringField(this, 2, value);
1189
- };
1190
-
1191
-
1192
- /**
1193
- * optional string references_id = 3;
1194
- * @return {string}
1195
- */
1196
- proto.City.prototype.getReferencesId = function() {
1197
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1198
- };
1199
-
1200
-
1201
- /**
1202
- * @param {string} value
1203
- * @return {!proto.City} returns this
1204
- */
1205
- proto.City.prototype.setReferencesId = function(value) {
1206
- return jspb.Message.setProto3StringField(this, 3, value);
1207
- };
1208
-
1209
-
1210
-
1211
-
1212
-
1213
- if (jspb.Message.GENERATE_TO_OBJECT) {
1214
- /**
1215
- * Creates an object representation of this proto.
1216
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1217
- * Optional fields that are not set will be set to undefined.
1218
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1219
- * For the list of reserved names please see:
1220
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1221
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1222
- * JSPB instance for transitional soy proto support:
1223
- * http://goto/soy-param-migration
1224
- * @return {!Object}
1225
- */
1226
- proto.District.prototype.toObject = function(opt_includeInstance) {
1227
- return proto.District.toObject(opt_includeInstance, this);
1228
- };
1229
-
1230
-
1231
- /**
1232
- * Static version of the {@see toObject} method.
1233
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1234
- * the JSPB instance for transitional soy proto support:
1235
- * http://goto/soy-param-migration
1236
- * @param {!proto.District} msg The msg instance to transform.
1237
- * @return {!Object}
1238
- * @suppress {unusedLocalVariables} f is only used for nested messages
1239
- */
1240
- proto.District.toObject = function(includeInstance, msg) {
1241
- var f, obj = {
1242
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1243
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1244
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1245
- };
1246
-
1247
- if (includeInstance) {
1248
- obj.$jspbMessageInstance = msg;
1249
- }
1250
- return obj;
1251
- };
1252
- }
1253
-
1254
-
1255
- /**
1256
- * Deserializes binary data (in protobuf wire format).
1257
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1258
- * @return {!proto.District}
1259
- */
1260
- proto.District.deserializeBinary = function(bytes) {
1261
- var reader = new jspb.BinaryReader(bytes);
1262
- var msg = new proto.District;
1263
- return proto.District.deserializeBinaryFromReader(msg, reader);
1264
- };
1265
-
1266
-
1267
- /**
1268
- * Deserializes binary data (in protobuf wire format) from the
1269
- * given reader into the given message object.
1270
- * @param {!proto.District} msg The message object to deserialize into.
1271
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1272
- * @return {!proto.District}
1273
- */
1274
- proto.District.deserializeBinaryFromReader = function(msg, reader) {
1275
- while (reader.nextField()) {
1276
- if (reader.isEndGroup()) {
1277
- break;
1278
- }
1279
- var field = reader.getFieldNumber();
1280
- switch (field) {
1281
- case 1:
1282
- var value = /** @type {number} */ (reader.readInt64());
1283
- msg.setId(value);
1284
- break;
1285
- case 2:
1286
- var value = /** @type {string} */ (reader.readString());
1287
- msg.setName(value);
1288
- break;
1289
- case 3:
1290
- var value = /** @type {string} */ (reader.readString());
1291
- msg.setReferencesId(value);
1292
- break;
1293
- default:
1294
- reader.skipField();
1295
- break;
1296
- }
1297
- }
1298
- return msg;
1299
- };
1300
-
1301
-
1302
- /**
1303
- * Serializes the message to binary data (in protobuf wire format).
1304
- * @return {!Uint8Array}
1305
- */
1306
- proto.District.prototype.serializeBinary = function() {
1307
- var writer = new jspb.BinaryWriter();
1308
- proto.District.serializeBinaryToWriter(this, writer);
1309
- return writer.getResultBuffer();
1310
- };
1311
-
1312
-
1313
- /**
1314
- * Serializes the given message to binary data (in protobuf wire
1315
- * format), writing to the given BinaryWriter.
1316
- * @param {!proto.District} message
1317
- * @param {!jspb.BinaryWriter} writer
1318
- * @suppress {unusedLocalVariables} f is only used for nested messages
1319
- */
1320
- proto.District.serializeBinaryToWriter = function(message, writer) {
1321
- var f = undefined;
1322
- f = message.getId();
1323
- if (f !== 0) {
1324
- writer.writeInt64(
1325
- 1,
1326
- f
1327
- );
1328
- }
1329
- f = message.getName();
1330
- if (f.length > 0) {
1331
- writer.writeString(
1332
- 2,
1333
- f
1334
- );
1335
- }
1336
- f = message.getReferencesId();
1337
- if (f.length > 0) {
1338
- writer.writeString(
1339
- 3,
1340
- f
1341
- );
1342
- }
1343
- };
1344
-
1345
-
1346
- /**
1347
- * optional int64 id = 1;
1348
- * @return {number}
1349
- */
1350
- proto.District.prototype.getId = function() {
1351
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1352
- };
1353
-
1354
-
1355
- /**
1356
- * @param {number} value
1357
- * @return {!proto.District} returns this
1358
- */
1359
- proto.District.prototype.setId = function(value) {
1360
- return jspb.Message.setProto3IntField(this, 1, value);
1361
- };
1362
-
1363
-
1364
- /**
1365
- * optional string name = 2;
1366
- * @return {string}
1367
- */
1368
- proto.District.prototype.getName = function() {
1369
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1370
- };
1371
-
1372
-
1373
- /**
1374
- * @param {string} value
1375
- * @return {!proto.District} returns this
1376
- */
1377
- proto.District.prototype.setName = function(value) {
1378
- return jspb.Message.setProto3StringField(this, 2, value);
1379
- };
1380
-
1381
-
1382
- /**
1383
- * optional string references_id = 3;
1384
- * @return {string}
1385
- */
1386
- proto.District.prototype.getReferencesId = function() {
1387
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1388
- };
1389
-
1390
-
1391
- /**
1392
- * @param {string} value
1393
- * @return {!proto.District} returns this
1394
- */
1395
- proto.District.prototype.setReferencesId = function(value) {
1396
- return jspb.Message.setProto3StringField(this, 3, value);
1397
- };
1398
-
1399
-
1400
-
1401
-
1402
-
1403
- if (jspb.Message.GENERATE_TO_OBJECT) {
1404
- /**
1405
- * Creates an object representation of this proto.
1406
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1407
- * Optional fields that are not set will be set to undefined.
1408
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1409
- * For the list of reserved names please see:
1410
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1411
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1412
- * JSPB instance for transitional soy proto support:
1413
- * http://goto/soy-param-migration
1414
- * @return {!Object}
1415
- */
1416
- proto.Village.prototype.toObject = function(opt_includeInstance) {
1417
- return proto.Village.toObject(opt_includeInstance, this);
1418
- };
1419
-
1420
-
1421
- /**
1422
- * Static version of the {@see toObject} method.
1423
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1424
- * the JSPB instance for transitional soy proto support:
1425
- * http://goto/soy-param-migration
1426
- * @param {!proto.Village} msg The msg instance to transform.
1427
- * @return {!Object}
1428
- * @suppress {unusedLocalVariables} f is only used for nested messages
1429
- */
1430
- proto.Village.toObject = function(includeInstance, msg) {
1431
- var f, obj = {
1432
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1433
- name: jspb.Message.getFieldWithDefault(msg, 2, ""),
1434
- referencesId: jspb.Message.getFieldWithDefault(msg, 3, "")
1435
- };
1436
-
1437
- if (includeInstance) {
1438
- obj.$jspbMessageInstance = msg;
1439
- }
1440
- return obj;
1441
- };
1442
- }
1443
-
1444
-
1445
- /**
1446
- * Deserializes binary data (in protobuf wire format).
1447
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1448
- * @return {!proto.Village}
1449
- */
1450
- proto.Village.deserializeBinary = function(bytes) {
1451
- var reader = new jspb.BinaryReader(bytes);
1452
- var msg = new proto.Village;
1453
- return proto.Village.deserializeBinaryFromReader(msg, reader);
1454
- };
1455
-
1456
-
1457
- /**
1458
- * Deserializes binary data (in protobuf wire format) from the
1459
- * given reader into the given message object.
1460
- * @param {!proto.Village} msg The message object to deserialize into.
1461
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1462
- * @return {!proto.Village}
1463
- */
1464
- proto.Village.deserializeBinaryFromReader = function(msg, reader) {
1465
- while (reader.nextField()) {
1466
- if (reader.isEndGroup()) {
1467
- break;
1468
- }
1469
- var field = reader.getFieldNumber();
1470
- switch (field) {
1471
- case 1:
1472
- var value = /** @type {number} */ (reader.readInt64());
1473
- msg.setId(value);
1474
- break;
1475
- case 2:
1476
- var value = /** @type {string} */ (reader.readString());
1477
- msg.setName(value);
1478
- break;
1479
- case 3:
1480
- var value = /** @type {string} */ (reader.readString());
1481
- msg.setReferencesId(value);
1482
- break;
1483
- default:
1484
- reader.skipField();
1485
- break;
1486
- }
1487
- }
1488
- return msg;
1489
- };
1490
-
1491
-
1492
- /**
1493
- * Serializes the message to binary data (in protobuf wire format).
1494
- * @return {!Uint8Array}
1495
- */
1496
- proto.Village.prototype.serializeBinary = function() {
1497
- var writer = new jspb.BinaryWriter();
1498
- proto.Village.serializeBinaryToWriter(this, writer);
1499
- return writer.getResultBuffer();
1500
- };
1501
-
1502
-
1503
- /**
1504
- * Serializes the given message to binary data (in protobuf wire
1505
- * format), writing to the given BinaryWriter.
1506
- * @param {!proto.Village} message
1507
- * @param {!jspb.BinaryWriter} writer
1508
- * @suppress {unusedLocalVariables} f is only used for nested messages
1509
- */
1510
- proto.Village.serializeBinaryToWriter = function(message, writer) {
1511
- var f = undefined;
1512
- f = message.getId();
1513
- if (f !== 0) {
1514
- writer.writeInt64(
1515
- 1,
1516
- f
1517
- );
1518
- }
1519
- f = message.getName();
1520
- if (f.length > 0) {
1521
- writer.writeString(
1522
- 2,
1523
- f
1524
- );
1525
- }
1526
- f = message.getReferencesId();
1527
- if (f.length > 0) {
1528
- writer.writeString(
1529
- 3,
1530
- f
1531
- );
1532
- }
1533
- };
1534
-
1535
-
1536
- /**
1537
- * optional int64 id = 1;
1538
- * @return {number}
1539
- */
1540
- proto.Village.prototype.getId = function() {
1541
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1542
- };
1543
-
1544
-
1545
- /**
1546
- * @param {number} value
1547
- * @return {!proto.Village} returns this
1548
- */
1549
- proto.Village.prototype.setId = function(value) {
1550
- return jspb.Message.setProto3IntField(this, 1, value);
1551
- };
1552
-
1553
-
1554
- /**
1555
- * optional string name = 2;
1556
- * @return {string}
1557
- */
1558
- proto.Village.prototype.getName = function() {
1559
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1560
- };
1561
-
1562
-
1563
- /**
1564
- * @param {string} value
1565
- * @return {!proto.Village} returns this
1566
- */
1567
- proto.Village.prototype.setName = function(value) {
1568
- return jspb.Message.setProto3StringField(this, 2, value);
1569
- };
1570
-
1571
-
1572
- /**
1573
- * optional string references_id = 3;
1574
- * @return {string}
1575
- */
1576
- proto.Village.prototype.getReferencesId = function() {
1577
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1578
- };
1579
-
1580
-
1581
- /**
1582
- * @param {string} value
1583
- * @return {!proto.Village} returns this
1584
- */
1585
- proto.Village.prototype.setReferencesId = function(value) {
1586
- return jspb.Message.setProto3StringField(this, 3, value);
1587
- };
1588
-
1589
-
1590
-
1591
-
1592
-
1593
- if (jspb.Message.GENERATE_TO_OBJECT) {
1594
- /**
1595
- * Creates an object representation of this proto.
1596
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1597
- * Optional fields that are not set will be set to undefined.
1598
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1599
- * For the list of reserved names please see:
1600
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1601
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1602
- * JSPB instance for transitional soy proto support:
1603
- * http://goto/soy-param-migration
1604
- * @return {!Object}
1605
- */
1606
- proto.GetCountryRequest.prototype.toObject = function(opt_includeInstance) {
1607
- return proto.GetCountryRequest.toObject(opt_includeInstance, this);
1608
- };
1609
-
1610
-
1611
- /**
1612
- * Static version of the {@see toObject} method.
1613
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1614
- * the JSPB instance for transitional soy proto support:
1615
- * http://goto/soy-param-migration
1616
- * @param {!proto.GetCountryRequest} msg The msg instance to transform.
1617
- * @return {!Object}
1618
- * @suppress {unusedLocalVariables} f is only used for nested messages
1619
- */
1620
- proto.GetCountryRequest.toObject = function(includeInstance, msg) {
1621
- var f, obj = {
1622
-
1623
- };
1624
-
1625
- if (includeInstance) {
1626
- obj.$jspbMessageInstance = msg;
1627
- }
1628
- return obj;
1629
- };
1630
- }
1631
-
1632
-
1633
- /**
1634
- * Deserializes binary data (in protobuf wire format).
1635
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1636
- * @return {!proto.GetCountryRequest}
1637
- */
1638
- proto.GetCountryRequest.deserializeBinary = function(bytes) {
1639
- var reader = new jspb.BinaryReader(bytes);
1640
- var msg = new proto.GetCountryRequest;
1641
- return proto.GetCountryRequest.deserializeBinaryFromReader(msg, reader);
1642
- };
1643
-
1644
-
1645
- /**
1646
- * Deserializes binary data (in protobuf wire format) from the
1647
- * given reader into the given message object.
1648
- * @param {!proto.GetCountryRequest} msg The message object to deserialize into.
1649
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1650
- * @return {!proto.GetCountryRequest}
1651
- */
1652
- proto.GetCountryRequest.deserializeBinaryFromReader = function(msg, reader) {
1653
- while (reader.nextField()) {
1654
- if (reader.isEndGroup()) {
1655
- break;
1656
- }
1657
- var field = reader.getFieldNumber();
1658
- switch (field) {
1659
- default:
1660
- reader.skipField();
1661
- break;
1662
- }
1663
- }
1664
- return msg;
1665
- };
1666
-
1667
-
1668
- /**
1669
- * Serializes the message to binary data (in protobuf wire format).
1670
- * @return {!Uint8Array}
1671
- */
1672
- proto.GetCountryRequest.prototype.serializeBinary = function() {
1673
- var writer = new jspb.BinaryWriter();
1674
- proto.GetCountryRequest.serializeBinaryToWriter(this, writer);
1675
- return writer.getResultBuffer();
1676
- };
1677
-
1678
-
1679
- /**
1680
- * Serializes the given message to binary data (in protobuf wire
1681
- * format), writing to the given BinaryWriter.
1682
- * @param {!proto.GetCountryRequest} message
1683
- * @param {!jspb.BinaryWriter} writer
1684
- * @suppress {unusedLocalVariables} f is only used for nested messages
1685
- */
1686
- proto.GetCountryRequest.serializeBinaryToWriter = function(message, writer) {
1687
- var f = undefined;
1688
- };
1689
-
1690
-
1691
-
1692
-
1693
-
1694
- if (jspb.Message.GENERATE_TO_OBJECT) {
1695
- /**
1696
- * Creates an object representation of this proto.
1697
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1698
- * Optional fields that are not set will be set to undefined.
1699
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1700
- * For the list of reserved names please see:
1701
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1702
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1703
- * JSPB instance for transitional soy proto support:
1704
- * http://goto/soy-param-migration
1705
- * @return {!Object}
1706
- */
1707
- proto.CountryGetByIdRequest.prototype.toObject = function(opt_includeInstance) {
1708
- return proto.CountryGetByIdRequest.toObject(opt_includeInstance, this);
1709
- };
1710
-
1711
-
1712
- /**
1713
- * Static version of the {@see toObject} method.
1714
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1715
- * the JSPB instance for transitional soy proto support:
1716
- * http://goto/soy-param-migration
1717
- * @param {!proto.CountryGetByIdRequest} msg The msg instance to transform.
1718
- * @return {!Object}
1719
- * @suppress {unusedLocalVariables} f is only used for nested messages
1720
- */
1721
- proto.CountryGetByIdRequest.toObject = function(includeInstance, msg) {
1722
- var f, obj = {
1723
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
1724
- };
1725
-
1726
- if (includeInstance) {
1727
- obj.$jspbMessageInstance = msg;
1728
- }
1729
- return obj;
1730
- };
1731
- }
1732
-
1733
-
1734
- /**
1735
- * Deserializes binary data (in protobuf wire format).
1736
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1737
- * @return {!proto.CountryGetByIdRequest}
1738
- */
1739
- proto.CountryGetByIdRequest.deserializeBinary = function(bytes) {
1740
- var reader = new jspb.BinaryReader(bytes);
1741
- var msg = new proto.CountryGetByIdRequest;
1742
- return proto.CountryGetByIdRequest.deserializeBinaryFromReader(msg, reader);
1743
- };
1744
-
1745
-
1746
- /**
1747
- * Deserializes binary data (in protobuf wire format) from the
1748
- * given reader into the given message object.
1749
- * @param {!proto.CountryGetByIdRequest} msg The message object to deserialize into.
1750
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1751
- * @return {!proto.CountryGetByIdRequest}
1752
- */
1753
- proto.CountryGetByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
1754
- while (reader.nextField()) {
1755
- if (reader.isEndGroup()) {
1756
- break;
1757
- }
1758
- var field = reader.getFieldNumber();
1759
- switch (field) {
1760
- case 1:
1761
- var value = /** @type {string} */ (reader.readString());
1762
- msg.setReferencesId(value);
1763
- break;
1764
- default:
1765
- reader.skipField();
1766
- break;
1767
- }
1768
- }
1769
- return msg;
1770
- };
1771
-
1772
-
1773
- /**
1774
- * Serializes the message to binary data (in protobuf wire format).
1775
- * @return {!Uint8Array}
1776
- */
1777
- proto.CountryGetByIdRequest.prototype.serializeBinary = function() {
1778
- var writer = new jspb.BinaryWriter();
1779
- proto.CountryGetByIdRequest.serializeBinaryToWriter(this, writer);
1780
- return writer.getResultBuffer();
1781
- };
1782
-
1783
-
1784
- /**
1785
- * Serializes the given message to binary data (in protobuf wire
1786
- * format), writing to the given BinaryWriter.
1787
- * @param {!proto.CountryGetByIdRequest} message
1788
- * @param {!jspb.BinaryWriter} writer
1789
- * @suppress {unusedLocalVariables} f is only used for nested messages
1790
- */
1791
- proto.CountryGetByIdRequest.serializeBinaryToWriter = function(message, writer) {
1792
- var f = undefined;
1793
- f = message.getReferencesId();
1794
- if (f.length > 0) {
1795
- writer.writeString(
1796
- 1,
1797
- f
1798
- );
1799
- }
1800
- };
1801
-
1802
-
1803
- /**
1804
- * optional string references_id = 1;
1805
- * @return {string}
1806
- */
1807
- proto.CountryGetByIdRequest.prototype.getReferencesId = function() {
1808
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1809
- };
1810
-
1811
-
1812
- /**
1813
- * @param {string} value
1814
- * @return {!proto.CountryGetByIdRequest} returns this
1815
- */
1816
- proto.CountryGetByIdRequest.prototype.setReferencesId = function(value) {
1817
- return jspb.Message.setProto3StringField(this, 1, value);
1818
- };
1819
-
1820
-
1821
-
1822
-
1823
-
1824
- if (jspb.Message.GENERATE_TO_OBJECT) {
1825
- /**
1826
- * Creates an object representation of this proto.
1827
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1828
- * Optional fields that are not set will be set to undefined.
1829
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1830
- * For the list of reserved names please see:
1831
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1832
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1833
- * JSPB instance for transitional soy proto support:
1834
- * http://goto/soy-param-migration
1835
- * @return {!Object}
1836
- */
1837
- proto.UpdateCountryRequest.prototype.toObject = function(opt_includeInstance) {
1838
- return proto.UpdateCountryRequest.toObject(opt_includeInstance, this);
1839
- };
1840
-
1841
-
1842
- /**
1843
- * Static version of the {@see toObject} method.
1844
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1845
- * the JSPB instance for transitional soy proto support:
1846
- * http://goto/soy-param-migration
1847
- * @param {!proto.UpdateCountryRequest} msg The msg instance to transform.
1848
- * @return {!Object}
1849
- * @suppress {unusedLocalVariables} f is only used for nested messages
1850
- */
1851
- proto.UpdateCountryRequest.toObject = function(includeInstance, msg) {
1852
- var f, obj = {
1853
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1854
- country: (f = msg.getCountry()) && proto.BaseCountry.toObject(includeInstance, f)
1855
- };
1856
-
1857
- if (includeInstance) {
1858
- obj.$jspbMessageInstance = msg;
1859
- }
1860
- return obj;
1861
- };
1862
- }
1863
-
1864
-
1865
- /**
1866
- * Deserializes binary data (in protobuf wire format).
1867
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1868
- * @return {!proto.UpdateCountryRequest}
1869
- */
1870
- proto.UpdateCountryRequest.deserializeBinary = function(bytes) {
1871
- var reader = new jspb.BinaryReader(bytes);
1872
- var msg = new proto.UpdateCountryRequest;
1873
- return proto.UpdateCountryRequest.deserializeBinaryFromReader(msg, reader);
1874
- };
1875
-
1876
-
1877
- /**
1878
- * Deserializes binary data (in protobuf wire format) from the
1879
- * given reader into the given message object.
1880
- * @param {!proto.UpdateCountryRequest} msg The message object to deserialize into.
1881
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1882
- * @return {!proto.UpdateCountryRequest}
1883
- */
1884
- proto.UpdateCountryRequest.deserializeBinaryFromReader = function(msg, reader) {
1885
- while (reader.nextField()) {
1886
- if (reader.isEndGroup()) {
1887
- break;
1888
- }
1889
- var field = reader.getFieldNumber();
1890
- switch (field) {
1891
- case 1:
1892
- var value = /** @type {string} */ (reader.readString());
1893
- msg.setReferencesId(value);
1894
- break;
1895
- case 2:
1896
- var value = new proto.BaseCountry;
1897
- reader.readMessage(value,proto.BaseCountry.deserializeBinaryFromReader);
1898
- msg.setCountry(value);
1899
- break;
1900
- default:
1901
- reader.skipField();
1902
- break;
1903
- }
1904
- }
1905
- return msg;
1906
- };
1907
-
1908
-
1909
- /**
1910
- * Serializes the message to binary data (in protobuf wire format).
1911
- * @return {!Uint8Array}
1912
- */
1913
- proto.UpdateCountryRequest.prototype.serializeBinary = function() {
1914
- var writer = new jspb.BinaryWriter();
1915
- proto.UpdateCountryRequest.serializeBinaryToWriter(this, writer);
1916
- return writer.getResultBuffer();
1917
- };
1918
-
1919
-
1920
- /**
1921
- * Serializes the given message to binary data (in protobuf wire
1922
- * format), writing to the given BinaryWriter.
1923
- * @param {!proto.UpdateCountryRequest} message
1924
- * @param {!jspb.BinaryWriter} writer
1925
- * @suppress {unusedLocalVariables} f is only used for nested messages
1926
- */
1927
- proto.UpdateCountryRequest.serializeBinaryToWriter = function(message, writer) {
1928
- var f = undefined;
1929
- f = message.getReferencesId();
1930
- if (f.length > 0) {
1931
- writer.writeString(
1932
- 1,
1933
- f
1934
- );
1935
- }
1936
- f = message.getCountry();
1937
- if (f != null) {
1938
- writer.writeMessage(
1939
- 2,
1940
- f,
1941
- proto.BaseCountry.serializeBinaryToWriter
1942
- );
1943
- }
1944
- };
1945
-
1946
-
1947
- /**
1948
- * optional string references_id = 1;
1949
- * @return {string}
1950
- */
1951
- proto.UpdateCountryRequest.prototype.getReferencesId = function() {
1952
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1953
- };
1954
-
1955
-
1956
- /**
1957
- * @param {string} value
1958
- * @return {!proto.UpdateCountryRequest} returns this
1959
- */
1960
- proto.UpdateCountryRequest.prototype.setReferencesId = function(value) {
1961
- return jspb.Message.setProto3StringField(this, 1, value);
1962
- };
1963
-
1964
-
1965
- /**
1966
- * optional BaseCountry country = 2;
1967
- * @return {?proto.BaseCountry}
1968
- */
1969
- proto.UpdateCountryRequest.prototype.getCountry = function() {
1970
- return /** @type{?proto.BaseCountry} */ (
1971
- jspb.Message.getWrapperField(this, proto.BaseCountry, 2));
1972
- };
1973
-
1974
-
1975
- /**
1976
- * @param {?proto.BaseCountry|undefined} value
1977
- * @return {!proto.UpdateCountryRequest} returns this
1978
- */
1979
- proto.UpdateCountryRequest.prototype.setCountry = function(value) {
1980
- return jspb.Message.setWrapperField(this, 2, value);
1981
- };
1982
-
1983
-
1984
- /**
1985
- * Clears the message field making it undefined.
1986
- * @return {!proto.UpdateCountryRequest} returns this
1987
- */
1988
- proto.UpdateCountryRequest.prototype.clearCountry = function() {
1989
- return this.setCountry(undefined);
1990
- };
1991
-
1992
-
1993
- /**
1994
- * Returns whether this field is set.
1995
- * @return {boolean}
1996
- */
1997
- proto.UpdateCountryRequest.prototype.hasCountry = function() {
1998
- return jspb.Message.getField(this, 2) != null;
1999
- };
2000
-
2001
-
2002
-
2003
-
2004
-
2005
- if (jspb.Message.GENERATE_TO_OBJECT) {
2006
- /**
2007
- * Creates an object representation of this proto.
2008
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2009
- * Optional fields that are not set will be set to undefined.
2010
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2011
- * For the list of reserved names please see:
2012
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2013
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2014
- * JSPB instance for transitional soy proto support:
2015
- * http://goto/soy-param-migration
2016
- * @return {!Object}
2017
- */
2018
- proto.CountryGetByIdResponse.prototype.toObject = function(opt_includeInstance) {
2019
- return proto.CountryGetByIdResponse.toObject(opt_includeInstance, this);
2020
- };
2021
-
2022
-
2023
- /**
2024
- * Static version of the {@see toObject} method.
2025
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2026
- * the JSPB instance for transitional soy proto support:
2027
- * http://goto/soy-param-migration
2028
- * @param {!proto.CountryGetByIdResponse} msg The msg instance to transform.
2029
- * @return {!Object}
2030
- * @suppress {unusedLocalVariables} f is only used for nested messages
2031
- */
2032
- proto.CountryGetByIdResponse.toObject = function(includeInstance, msg) {
2033
- var f, obj = {
2034
- country: (f = msg.getCountry()) && proto.Country.toObject(includeInstance, f),
2035
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2036
- };
2037
-
2038
- if (includeInstance) {
2039
- obj.$jspbMessageInstance = msg;
2040
- }
2041
- return obj;
2042
- };
2043
- }
2044
-
2045
-
2046
- /**
2047
- * Deserializes binary data (in protobuf wire format).
2048
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2049
- * @return {!proto.CountryGetByIdResponse}
2050
- */
2051
- proto.CountryGetByIdResponse.deserializeBinary = function(bytes) {
2052
- var reader = new jspb.BinaryReader(bytes);
2053
- var msg = new proto.CountryGetByIdResponse;
2054
- return proto.CountryGetByIdResponse.deserializeBinaryFromReader(msg, reader);
2055
- };
2056
-
2057
-
2058
- /**
2059
- * Deserializes binary data (in protobuf wire format) from the
2060
- * given reader into the given message object.
2061
- * @param {!proto.CountryGetByIdResponse} msg The message object to deserialize into.
2062
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2063
- * @return {!proto.CountryGetByIdResponse}
2064
- */
2065
- proto.CountryGetByIdResponse.deserializeBinaryFromReader = function(msg, reader) {
2066
- while (reader.nextField()) {
2067
- if (reader.isEndGroup()) {
2068
- break;
2069
- }
2070
- var field = reader.getFieldNumber();
2071
- switch (field) {
2072
- case 1:
2073
- var value = new proto.Country;
2074
- reader.readMessage(value,proto.Country.deserializeBinaryFromReader);
2075
- msg.setCountry(value);
2076
- break;
2077
- case 2:
2078
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2079
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2080
- msg.setMeta(value);
2081
- break;
2082
- default:
2083
- reader.skipField();
2084
- break;
2085
- }
2086
- }
2087
- return msg;
2088
- };
2089
-
2090
-
2091
- /**
2092
- * Serializes the message to binary data (in protobuf wire format).
2093
- * @return {!Uint8Array}
2094
- */
2095
- proto.CountryGetByIdResponse.prototype.serializeBinary = function() {
2096
- var writer = new jspb.BinaryWriter();
2097
- proto.CountryGetByIdResponse.serializeBinaryToWriter(this, writer);
2098
- return writer.getResultBuffer();
2099
- };
2100
-
2101
-
2102
- /**
2103
- * Serializes the given message to binary data (in protobuf wire
2104
- * format), writing to the given BinaryWriter.
2105
- * @param {!proto.CountryGetByIdResponse} message
2106
- * @param {!jspb.BinaryWriter} writer
2107
- * @suppress {unusedLocalVariables} f is only used for nested messages
2108
- */
2109
- proto.CountryGetByIdResponse.serializeBinaryToWriter = function(message, writer) {
2110
- var f = undefined;
2111
- f = message.getCountry();
2112
- if (f != null) {
2113
- writer.writeMessage(
2114
- 1,
2115
- f,
2116
- proto.Country.serializeBinaryToWriter
2117
- );
2118
- }
2119
- f = message.getMeta();
2120
- if (f != null) {
2121
- writer.writeMessage(
2122
- 2,
2123
- f,
2124
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2125
- );
2126
- }
2127
- };
2128
-
2129
-
2130
- /**
2131
- * optional Country country = 1;
2132
- * @return {?proto.Country}
2133
- */
2134
- proto.CountryGetByIdResponse.prototype.getCountry = function() {
2135
- return /** @type{?proto.Country} */ (
2136
- jspb.Message.getWrapperField(this, proto.Country, 1));
2137
- };
2138
-
2139
-
2140
- /**
2141
- * @param {?proto.Country|undefined} value
2142
- * @return {!proto.CountryGetByIdResponse} returns this
2143
- */
2144
- proto.CountryGetByIdResponse.prototype.setCountry = function(value) {
2145
- return jspb.Message.setWrapperField(this, 1, value);
2146
- };
2147
-
2148
-
2149
- /**
2150
- * Clears the message field making it undefined.
2151
- * @return {!proto.CountryGetByIdResponse} returns this
2152
- */
2153
- proto.CountryGetByIdResponse.prototype.clearCountry = function() {
2154
- return this.setCountry(undefined);
2155
- };
2156
-
2157
-
2158
- /**
2159
- * Returns whether this field is set.
2160
- * @return {boolean}
2161
- */
2162
- proto.CountryGetByIdResponse.prototype.hasCountry = function() {
2163
- return jspb.Message.getField(this, 1) != null;
2164
- };
2165
-
2166
-
2167
- /**
2168
- * optional prisca.v1.global.meta.Meta meta = 2;
2169
- * @return {?proto.prisca.v1.global.meta.Meta}
2170
- */
2171
- proto.CountryGetByIdResponse.prototype.getMeta = function() {
2172
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2173
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2174
- };
2175
-
2176
-
2177
- /**
2178
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2179
- * @return {!proto.CountryGetByIdResponse} returns this
2180
- */
2181
- proto.CountryGetByIdResponse.prototype.setMeta = function(value) {
2182
- return jspb.Message.setWrapperField(this, 2, value);
2183
- };
2184
-
2185
-
2186
- /**
2187
- * Clears the message field making it undefined.
2188
- * @return {!proto.CountryGetByIdResponse} returns this
2189
- */
2190
- proto.CountryGetByIdResponse.prototype.clearMeta = function() {
2191
- return this.setMeta(undefined);
2192
- };
2193
-
2194
-
2195
- /**
2196
- * Returns whether this field is set.
2197
- * @return {boolean}
2198
- */
2199
- proto.CountryGetByIdResponse.prototype.hasMeta = function() {
2200
- return jspb.Message.getField(this, 2) != null;
2201
- };
2202
-
2203
-
2204
-
2205
-
2206
-
2207
- if (jspb.Message.GENERATE_TO_OBJECT) {
2208
- /**
2209
- * Creates an object representation of this proto.
2210
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2211
- * Optional fields that are not set will be set to undefined.
2212
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2213
- * For the list of reserved names please see:
2214
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2215
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2216
- * JSPB instance for transitional soy proto support:
2217
- * http://goto/soy-param-migration
2218
- * @return {!Object}
2219
- */
2220
- proto.GetProvinceRequest.prototype.toObject = function(opt_includeInstance) {
2221
- return proto.GetProvinceRequest.toObject(opt_includeInstance, this);
2222
- };
2223
-
2224
-
2225
- /**
2226
- * Static version of the {@see toObject} method.
2227
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2228
- * the JSPB instance for transitional soy proto support:
2229
- * http://goto/soy-param-migration
2230
- * @param {!proto.GetProvinceRequest} msg The msg instance to transform.
2231
- * @return {!Object}
2232
- * @suppress {unusedLocalVariables} f is only used for nested messages
2233
- */
2234
- proto.GetProvinceRequest.toObject = function(includeInstance, msg) {
2235
- var f, obj = {
2236
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2237
- };
2238
-
2239
- if (includeInstance) {
2240
- obj.$jspbMessageInstance = msg;
2241
- }
2242
- return obj;
2243
- };
2244
- }
2245
-
2246
-
2247
- /**
2248
- * Deserializes binary data (in protobuf wire format).
2249
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2250
- * @return {!proto.GetProvinceRequest}
2251
- */
2252
- proto.GetProvinceRequest.deserializeBinary = function(bytes) {
2253
- var reader = new jspb.BinaryReader(bytes);
2254
- var msg = new proto.GetProvinceRequest;
2255
- return proto.GetProvinceRequest.deserializeBinaryFromReader(msg, reader);
2256
- };
2257
-
2258
-
2259
- /**
2260
- * Deserializes binary data (in protobuf wire format) from the
2261
- * given reader into the given message object.
2262
- * @param {!proto.GetProvinceRequest} msg The message object to deserialize into.
2263
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2264
- * @return {!proto.GetProvinceRequest}
2265
- */
2266
- proto.GetProvinceRequest.deserializeBinaryFromReader = function(msg, reader) {
2267
- while (reader.nextField()) {
2268
- if (reader.isEndGroup()) {
2269
- break;
2270
- }
2271
- var field = reader.getFieldNumber();
2272
- switch (field) {
2273
- case 1:
2274
- var value = /** @type {string} */ (reader.readString());
2275
- msg.setReferencesId(value);
2276
- break;
2277
- default:
2278
- reader.skipField();
2279
- break;
2280
- }
2281
- }
2282
- return msg;
2283
- };
2284
-
2285
-
2286
- /**
2287
- * Serializes the message to binary data (in protobuf wire format).
2288
- * @return {!Uint8Array}
2289
- */
2290
- proto.GetProvinceRequest.prototype.serializeBinary = function() {
2291
- var writer = new jspb.BinaryWriter();
2292
- proto.GetProvinceRequest.serializeBinaryToWriter(this, writer);
2293
- return writer.getResultBuffer();
2294
- };
2295
-
2296
-
2297
- /**
2298
- * Serializes the given message to binary data (in protobuf wire
2299
- * format), writing to the given BinaryWriter.
2300
- * @param {!proto.GetProvinceRequest} message
2301
- * @param {!jspb.BinaryWriter} writer
2302
- * @suppress {unusedLocalVariables} f is only used for nested messages
2303
- */
2304
- proto.GetProvinceRequest.serializeBinaryToWriter = function(message, writer) {
2305
- var f = undefined;
2306
- f = message.getReferencesId();
2307
- if (f.length > 0) {
2308
- writer.writeString(
2309
- 1,
2310
- f
2311
- );
2312
- }
2313
- };
2314
-
2315
-
2316
- /**
2317
- * optional string references_id = 1;
2318
- * @return {string}
2319
- */
2320
- proto.GetProvinceRequest.prototype.getReferencesId = function() {
2321
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2322
- };
2323
-
2324
-
2325
- /**
2326
- * @param {string} value
2327
- * @return {!proto.GetProvinceRequest} returns this
2328
- */
2329
- proto.GetProvinceRequest.prototype.setReferencesId = function(value) {
2330
- return jspb.Message.setProto3StringField(this, 1, value);
2331
- };
2332
-
2333
-
2334
-
2335
-
2336
-
2337
- if (jspb.Message.GENERATE_TO_OBJECT) {
2338
- /**
2339
- * Creates an object representation of this proto.
2340
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2341
- * Optional fields that are not set will be set to undefined.
2342
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2343
- * For the list of reserved names please see:
2344
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2345
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2346
- * JSPB instance for transitional soy proto support:
2347
- * http://goto/soy-param-migration
2348
- * @return {!Object}
2349
- */
2350
- proto.GetCityRequest.prototype.toObject = function(opt_includeInstance) {
2351
- return proto.GetCityRequest.toObject(opt_includeInstance, this);
2352
- };
2353
-
2354
-
2355
- /**
2356
- * Static version of the {@see toObject} method.
2357
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2358
- * the JSPB instance for transitional soy proto support:
2359
- * http://goto/soy-param-migration
2360
- * @param {!proto.GetCityRequest} msg The msg instance to transform.
2361
- * @return {!Object}
2362
- * @suppress {unusedLocalVariables} f is only used for nested messages
2363
- */
2364
- proto.GetCityRequest.toObject = function(includeInstance, msg) {
2365
- var f, obj = {
2366
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2367
- };
2368
-
2369
- if (includeInstance) {
2370
- obj.$jspbMessageInstance = msg;
2371
- }
2372
- return obj;
2373
- };
2374
- }
2375
-
2376
-
2377
- /**
2378
- * Deserializes binary data (in protobuf wire format).
2379
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2380
- * @return {!proto.GetCityRequest}
2381
- */
2382
- proto.GetCityRequest.deserializeBinary = function(bytes) {
2383
- var reader = new jspb.BinaryReader(bytes);
2384
- var msg = new proto.GetCityRequest;
2385
- return proto.GetCityRequest.deserializeBinaryFromReader(msg, reader);
2386
- };
2387
-
2388
-
2389
- /**
2390
- * Deserializes binary data (in protobuf wire format) from the
2391
- * given reader into the given message object.
2392
- * @param {!proto.GetCityRequest} msg The message object to deserialize into.
2393
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2394
- * @return {!proto.GetCityRequest}
2395
- */
2396
- proto.GetCityRequest.deserializeBinaryFromReader = function(msg, reader) {
2397
- while (reader.nextField()) {
2398
- if (reader.isEndGroup()) {
2399
- break;
2400
- }
2401
- var field = reader.getFieldNumber();
2402
- switch (field) {
2403
- case 1:
2404
- var value = /** @type {string} */ (reader.readString());
2405
- msg.setReferencesId(value);
2406
- break;
2407
- default:
2408
- reader.skipField();
2409
- break;
2410
- }
2411
- }
2412
- return msg;
2413
- };
2414
-
2415
-
2416
- /**
2417
- * Serializes the message to binary data (in protobuf wire format).
2418
- * @return {!Uint8Array}
2419
- */
2420
- proto.GetCityRequest.prototype.serializeBinary = function() {
2421
- var writer = new jspb.BinaryWriter();
2422
- proto.GetCityRequest.serializeBinaryToWriter(this, writer);
2423
- return writer.getResultBuffer();
2424
- };
2425
-
2426
-
2427
- /**
2428
- * Serializes the given message to binary data (in protobuf wire
2429
- * format), writing to the given BinaryWriter.
2430
- * @param {!proto.GetCityRequest} message
2431
- * @param {!jspb.BinaryWriter} writer
2432
- * @suppress {unusedLocalVariables} f is only used for nested messages
2433
- */
2434
- proto.GetCityRequest.serializeBinaryToWriter = function(message, writer) {
2435
- var f = undefined;
2436
- f = message.getReferencesId();
2437
- if (f.length > 0) {
2438
- writer.writeString(
2439
- 1,
2440
- f
2441
- );
2442
- }
2443
- };
2444
-
2445
-
2446
- /**
2447
- * optional string references_id = 1;
2448
- * @return {string}
2449
- */
2450
- proto.GetCityRequest.prototype.getReferencesId = function() {
2451
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2452
- };
2453
-
2454
-
2455
- /**
2456
- * @param {string} value
2457
- * @return {!proto.GetCityRequest} returns this
2458
- */
2459
- proto.GetCityRequest.prototype.setReferencesId = function(value) {
2460
- return jspb.Message.setProto3StringField(this, 1, value);
2461
- };
2462
-
2463
-
2464
-
2465
-
2466
-
2467
- if (jspb.Message.GENERATE_TO_OBJECT) {
2468
- /**
2469
- * Creates an object representation of this proto.
2470
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2471
- * Optional fields that are not set will be set to undefined.
2472
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2473
- * For the list of reserved names please see:
2474
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2475
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2476
- * JSPB instance for transitional soy proto support:
2477
- * http://goto/soy-param-migration
2478
- * @return {!Object}
2479
- */
2480
- proto.GetDistrictRequest.prototype.toObject = function(opt_includeInstance) {
2481
- return proto.GetDistrictRequest.toObject(opt_includeInstance, this);
2482
- };
2483
-
2484
-
2485
- /**
2486
- * Static version of the {@see toObject} method.
2487
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2488
- * the JSPB instance for transitional soy proto support:
2489
- * http://goto/soy-param-migration
2490
- * @param {!proto.GetDistrictRequest} msg The msg instance to transform.
2491
- * @return {!Object}
2492
- * @suppress {unusedLocalVariables} f is only used for nested messages
2493
- */
2494
- proto.GetDistrictRequest.toObject = function(includeInstance, msg) {
2495
- var f, obj = {
2496
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2497
- };
2498
-
2499
- if (includeInstance) {
2500
- obj.$jspbMessageInstance = msg;
2501
- }
2502
- return obj;
2503
- };
2504
- }
2505
-
2506
-
2507
- /**
2508
- * Deserializes binary data (in protobuf wire format).
2509
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2510
- * @return {!proto.GetDistrictRequest}
2511
- */
2512
- proto.GetDistrictRequest.deserializeBinary = function(bytes) {
2513
- var reader = new jspb.BinaryReader(bytes);
2514
- var msg = new proto.GetDistrictRequest;
2515
- return proto.GetDistrictRequest.deserializeBinaryFromReader(msg, reader);
2516
- };
2517
-
2518
-
2519
- /**
2520
- * Deserializes binary data (in protobuf wire format) from the
2521
- * given reader into the given message object.
2522
- * @param {!proto.GetDistrictRequest} msg The message object to deserialize into.
2523
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2524
- * @return {!proto.GetDistrictRequest}
2525
- */
2526
- proto.GetDistrictRequest.deserializeBinaryFromReader = function(msg, reader) {
2527
- while (reader.nextField()) {
2528
- if (reader.isEndGroup()) {
2529
- break;
2530
- }
2531
- var field = reader.getFieldNumber();
2532
- switch (field) {
2533
- case 1:
2534
- var value = /** @type {string} */ (reader.readString());
2535
- msg.setReferencesId(value);
2536
- break;
2537
- default:
2538
- reader.skipField();
2539
- break;
2540
- }
2541
- }
2542
- return msg;
2543
- };
2544
-
2545
-
2546
- /**
2547
- * Serializes the message to binary data (in protobuf wire format).
2548
- * @return {!Uint8Array}
2549
- */
2550
- proto.GetDistrictRequest.prototype.serializeBinary = function() {
2551
- var writer = new jspb.BinaryWriter();
2552
- proto.GetDistrictRequest.serializeBinaryToWriter(this, writer);
2553
- return writer.getResultBuffer();
2554
- };
2555
-
2556
-
2557
- /**
2558
- * Serializes the given message to binary data (in protobuf wire
2559
- * format), writing to the given BinaryWriter.
2560
- * @param {!proto.GetDistrictRequest} message
2561
- * @param {!jspb.BinaryWriter} writer
2562
- * @suppress {unusedLocalVariables} f is only used for nested messages
2563
- */
2564
- proto.GetDistrictRequest.serializeBinaryToWriter = function(message, writer) {
2565
- var f = undefined;
2566
- f = message.getReferencesId();
2567
- if (f.length > 0) {
2568
- writer.writeString(
2569
- 1,
2570
- f
2571
- );
2572
- }
2573
- };
2574
-
2575
-
2576
- /**
2577
- * optional string references_id = 1;
2578
- * @return {string}
2579
- */
2580
- proto.GetDistrictRequest.prototype.getReferencesId = function() {
2581
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2582
- };
2583
-
2584
-
2585
- /**
2586
- * @param {string} value
2587
- * @return {!proto.GetDistrictRequest} returns this
2588
- */
2589
- proto.GetDistrictRequest.prototype.setReferencesId = function(value) {
2590
- return jspb.Message.setProto3StringField(this, 1, value);
2591
- };
2592
-
2593
-
2594
-
2595
-
2596
-
2597
- if (jspb.Message.GENERATE_TO_OBJECT) {
2598
- /**
2599
- * Creates an object representation of this proto.
2600
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2601
- * Optional fields that are not set will be set to undefined.
2602
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2603
- * For the list of reserved names please see:
2604
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2605
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2606
- * JSPB instance for transitional soy proto support:
2607
- * http://goto/soy-param-migration
2608
- * @return {!Object}
2609
- */
2610
- proto.GetVillageRequest.prototype.toObject = function(opt_includeInstance) {
2611
- return proto.GetVillageRequest.toObject(opt_includeInstance, this);
2612
- };
2613
-
2614
-
2615
- /**
2616
- * Static version of the {@see toObject} method.
2617
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2618
- * the JSPB instance for transitional soy proto support:
2619
- * http://goto/soy-param-migration
2620
- * @param {!proto.GetVillageRequest} msg The msg instance to transform.
2621
- * @return {!Object}
2622
- * @suppress {unusedLocalVariables} f is only used for nested messages
2623
- */
2624
- proto.GetVillageRequest.toObject = function(includeInstance, msg) {
2625
- var f, obj = {
2626
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2627
- };
2628
-
2629
- if (includeInstance) {
2630
- obj.$jspbMessageInstance = msg;
2631
- }
2632
- return obj;
2633
- };
2634
- }
2635
-
2636
-
2637
- /**
2638
- * Deserializes binary data (in protobuf wire format).
2639
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2640
- * @return {!proto.GetVillageRequest}
2641
- */
2642
- proto.GetVillageRequest.deserializeBinary = function(bytes) {
2643
- var reader = new jspb.BinaryReader(bytes);
2644
- var msg = new proto.GetVillageRequest;
2645
- return proto.GetVillageRequest.deserializeBinaryFromReader(msg, reader);
2646
- };
2647
-
2648
-
2649
- /**
2650
- * Deserializes binary data (in protobuf wire format) from the
2651
- * given reader into the given message object.
2652
- * @param {!proto.GetVillageRequest} msg The message object to deserialize into.
2653
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2654
- * @return {!proto.GetVillageRequest}
2655
- */
2656
- proto.GetVillageRequest.deserializeBinaryFromReader = function(msg, reader) {
2657
- while (reader.nextField()) {
2658
- if (reader.isEndGroup()) {
2659
- break;
2660
- }
2661
- var field = reader.getFieldNumber();
2662
- switch (field) {
2663
- case 1:
2664
- var value = /** @type {string} */ (reader.readString());
2665
- msg.setReferencesId(value);
2666
- break;
2667
- default:
2668
- reader.skipField();
2669
- break;
2670
- }
2671
- }
2672
- return msg;
2673
- };
2674
-
2675
-
2676
- /**
2677
- * Serializes the message to binary data (in protobuf wire format).
2678
- * @return {!Uint8Array}
2679
- */
2680
- proto.GetVillageRequest.prototype.serializeBinary = function() {
2681
- var writer = new jspb.BinaryWriter();
2682
- proto.GetVillageRequest.serializeBinaryToWriter(this, writer);
2683
- return writer.getResultBuffer();
2684
- };
2685
-
2686
-
2687
- /**
2688
- * Serializes the given message to binary data (in protobuf wire
2689
- * format), writing to the given BinaryWriter.
2690
- * @param {!proto.GetVillageRequest} message
2691
- * @param {!jspb.BinaryWriter} writer
2692
- * @suppress {unusedLocalVariables} f is only used for nested messages
2693
- */
2694
- proto.GetVillageRequest.serializeBinaryToWriter = function(message, writer) {
2695
- var f = undefined;
2696
- f = message.getReferencesId();
2697
- if (f.length > 0) {
2698
- writer.writeString(
2699
- 1,
2700
- f
2701
- );
2702
- }
2703
- };
2704
-
2705
-
2706
- /**
2707
- * optional string references_id = 1;
2708
- * @return {string}
2709
- */
2710
- proto.GetVillageRequest.prototype.getReferencesId = function() {
2711
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2712
- };
2713
-
2714
-
2715
- /**
2716
- * @param {string} value
2717
- * @return {!proto.GetVillageRequest} returns this
2718
- */
2719
- proto.GetVillageRequest.prototype.setReferencesId = function(value) {
2720
- return jspb.Message.setProto3StringField(this, 1, value);
2721
- };
2722
-
2723
-
2724
-
2725
- /**
2726
- * List of repeated fields within this message type.
2727
- * @private {!Array<number>}
2728
- * @const
2729
- */
2730
- proto.GetCountryResponse.repeatedFields_ = [1];
2731
-
2732
-
2733
-
2734
- if (jspb.Message.GENERATE_TO_OBJECT) {
2735
- /**
2736
- * Creates an object representation of this proto.
2737
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2738
- * Optional fields that are not set will be set to undefined.
2739
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2740
- * For the list of reserved names please see:
2741
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2742
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2743
- * JSPB instance for transitional soy proto support:
2744
- * http://goto/soy-param-migration
2745
- * @return {!Object}
2746
- */
2747
- proto.GetCountryResponse.prototype.toObject = function(opt_includeInstance) {
2748
- return proto.GetCountryResponse.toObject(opt_includeInstance, this);
2749
- };
2750
-
2751
-
2752
- /**
2753
- * Static version of the {@see toObject} method.
2754
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2755
- * the JSPB instance for transitional soy proto support:
2756
- * http://goto/soy-param-migration
2757
- * @param {!proto.GetCountryResponse} msg The msg instance to transform.
2758
- * @return {!Object}
2759
- * @suppress {unusedLocalVariables} f is only used for nested messages
2760
- */
2761
- proto.GetCountryResponse.toObject = function(includeInstance, msg) {
2762
- var f, obj = {
2763
- countryList: jspb.Message.toObjectList(msg.getCountryList(),
2764
- proto.Country.toObject, includeInstance),
2765
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2766
- };
2767
-
2768
- if (includeInstance) {
2769
- obj.$jspbMessageInstance = msg;
2770
- }
2771
- return obj;
2772
- };
2773
- }
2774
-
2775
-
2776
- /**
2777
- * Deserializes binary data (in protobuf wire format).
2778
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2779
- * @return {!proto.GetCountryResponse}
2780
- */
2781
- proto.GetCountryResponse.deserializeBinary = function(bytes) {
2782
- var reader = new jspb.BinaryReader(bytes);
2783
- var msg = new proto.GetCountryResponse;
2784
- return proto.GetCountryResponse.deserializeBinaryFromReader(msg, reader);
2785
- };
2786
-
2787
-
2788
- /**
2789
- * Deserializes binary data (in protobuf wire format) from the
2790
- * given reader into the given message object.
2791
- * @param {!proto.GetCountryResponse} msg The message object to deserialize into.
2792
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2793
- * @return {!proto.GetCountryResponse}
2794
- */
2795
- proto.GetCountryResponse.deserializeBinaryFromReader = function(msg, reader) {
2796
- while (reader.nextField()) {
2797
- if (reader.isEndGroup()) {
2798
- break;
2799
- }
2800
- var field = reader.getFieldNumber();
2801
- switch (field) {
2802
- case 1:
2803
- var value = new proto.Country;
2804
- reader.readMessage(value,proto.Country.deserializeBinaryFromReader);
2805
- msg.addCountry(value);
2806
- break;
2807
- case 2:
2808
- var value = new prisca_v1_global_meta_meta_pb.Meta;
2809
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2810
- msg.setMeta(value);
2811
- break;
2812
- default:
2813
- reader.skipField();
2814
- break;
2815
- }
2816
- }
2817
- return msg;
2818
- };
2819
-
2820
-
2821
- /**
2822
- * Serializes the message to binary data (in protobuf wire format).
2823
- * @return {!Uint8Array}
2824
- */
2825
- proto.GetCountryResponse.prototype.serializeBinary = function() {
2826
- var writer = new jspb.BinaryWriter();
2827
- proto.GetCountryResponse.serializeBinaryToWriter(this, writer);
2828
- return writer.getResultBuffer();
2829
- };
2830
-
2831
-
2832
- /**
2833
- * Serializes the given message to binary data (in protobuf wire
2834
- * format), writing to the given BinaryWriter.
2835
- * @param {!proto.GetCountryResponse} message
2836
- * @param {!jspb.BinaryWriter} writer
2837
- * @suppress {unusedLocalVariables} f is only used for nested messages
2838
- */
2839
- proto.GetCountryResponse.serializeBinaryToWriter = function(message, writer) {
2840
- var f = undefined;
2841
- f = message.getCountryList();
2842
- if (f.length > 0) {
2843
- writer.writeRepeatedMessage(
2844
- 1,
2845
- f,
2846
- proto.Country.serializeBinaryToWriter
2847
- );
2848
- }
2849
- f = message.getMeta();
2850
- if (f != null) {
2851
- writer.writeMessage(
2852
- 2,
2853
- f,
2854
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2855
- );
2856
- }
2857
- };
2858
-
2859
-
2860
- /**
2861
- * repeated Country country = 1;
2862
- * @return {!Array<!proto.Country>}
2863
- */
2864
- proto.GetCountryResponse.prototype.getCountryList = function() {
2865
- return /** @type{!Array<!proto.Country>} */ (
2866
- jspb.Message.getRepeatedWrapperField(this, proto.Country, 1));
2867
- };
2868
-
2869
-
2870
- /**
2871
- * @param {!Array<!proto.Country>} value
2872
- * @return {!proto.GetCountryResponse} returns this
2873
- */
2874
- proto.GetCountryResponse.prototype.setCountryList = function(value) {
2875
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
2876
- };
2877
-
2878
-
2879
- /**
2880
- * @param {!proto.Country=} opt_value
2881
- * @param {number=} opt_index
2882
- * @return {!proto.Country}
2883
- */
2884
- proto.GetCountryResponse.prototype.addCountry = function(opt_value, opt_index) {
2885
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Country, opt_index);
2886
- };
2887
-
2888
-
2889
- /**
2890
- * Clears the list making it empty but non-null.
2891
- * @return {!proto.GetCountryResponse} returns this
2892
- */
2893
- proto.GetCountryResponse.prototype.clearCountryList = function() {
2894
- return this.setCountryList([]);
2895
- };
2896
-
2897
-
2898
- /**
2899
- * optional prisca.v1.global.meta.Meta meta = 2;
2900
- * @return {?proto.prisca.v1.global.meta.Meta}
2901
- */
2902
- proto.GetCountryResponse.prototype.getMeta = function() {
2903
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2904
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2905
- };
2906
-
2907
-
2908
- /**
2909
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2910
- * @return {!proto.GetCountryResponse} returns this
2911
- */
2912
- proto.GetCountryResponse.prototype.setMeta = function(value) {
2913
- return jspb.Message.setWrapperField(this, 2, value);
2914
- };
2915
-
2916
-
2917
- /**
2918
- * Clears the message field making it undefined.
2919
- * @return {!proto.GetCountryResponse} returns this
2920
- */
2921
- proto.GetCountryResponse.prototype.clearMeta = function() {
2922
- return this.setMeta(undefined);
2923
- };
2924
-
2925
-
2926
- /**
2927
- * Returns whether this field is set.
2928
- * @return {boolean}
2929
- */
2930
- proto.GetCountryResponse.prototype.hasMeta = function() {
2931
- return jspb.Message.getField(this, 2) != null;
2932
- };
2933
-
2934
-
2935
-
2936
- /**
2937
- * List of repeated fields within this message type.
2938
- * @private {!Array<number>}
2939
- * @const
2940
- */
2941
- proto.GetProvinceResponse.repeatedFields_ = [1];
2942
-
2943
-
2944
-
2945
- if (jspb.Message.GENERATE_TO_OBJECT) {
2946
- /**
2947
- * Creates an object representation of this proto.
2948
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2949
- * Optional fields that are not set will be set to undefined.
2950
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2951
- * For the list of reserved names please see:
2952
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2953
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2954
- * JSPB instance for transitional soy proto support:
2955
- * http://goto/soy-param-migration
2956
- * @return {!Object}
2957
- */
2958
- proto.GetProvinceResponse.prototype.toObject = function(opt_includeInstance) {
2959
- return proto.GetProvinceResponse.toObject(opt_includeInstance, this);
2960
- };
2961
-
2962
-
2963
- /**
2964
- * Static version of the {@see toObject} method.
2965
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2966
- * the JSPB instance for transitional soy proto support:
2967
- * http://goto/soy-param-migration
2968
- * @param {!proto.GetProvinceResponse} msg The msg instance to transform.
2969
- * @return {!Object}
2970
- * @suppress {unusedLocalVariables} f is only used for nested messages
2971
- */
2972
- proto.GetProvinceResponse.toObject = function(includeInstance, msg) {
2973
- var f, obj = {
2974
- provinceList: jspb.Message.toObjectList(msg.getProvinceList(),
2975
- proto.Province.toObject, includeInstance),
2976
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2977
- };
2978
-
2979
- if (includeInstance) {
2980
- obj.$jspbMessageInstance = msg;
2981
- }
2982
- return obj;
2983
- };
2984
- }
2985
-
2986
-
2987
- /**
2988
- * Deserializes binary data (in protobuf wire format).
2989
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2990
- * @return {!proto.GetProvinceResponse}
2991
- */
2992
- proto.GetProvinceResponse.deserializeBinary = function(bytes) {
2993
- var reader = new jspb.BinaryReader(bytes);
2994
- var msg = new proto.GetProvinceResponse;
2995
- return proto.GetProvinceResponse.deserializeBinaryFromReader(msg, reader);
2996
- };
2997
-
2998
-
2999
- /**
3000
- * Deserializes binary data (in protobuf wire format) from the
3001
- * given reader into the given message object.
3002
- * @param {!proto.GetProvinceResponse} msg The message object to deserialize into.
3003
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3004
- * @return {!proto.GetProvinceResponse}
3005
- */
3006
- proto.GetProvinceResponse.deserializeBinaryFromReader = function(msg, reader) {
3007
- while (reader.nextField()) {
3008
- if (reader.isEndGroup()) {
3009
- break;
3010
- }
3011
- var field = reader.getFieldNumber();
3012
- switch (field) {
3013
- case 1:
3014
- var value = new proto.Province;
3015
- reader.readMessage(value,proto.Province.deserializeBinaryFromReader);
3016
- msg.addProvince(value);
3017
- break;
3018
- case 2:
3019
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3020
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3021
- msg.setMeta(value);
3022
- break;
3023
- default:
3024
- reader.skipField();
3025
- break;
3026
- }
3027
- }
3028
- return msg;
3029
- };
3030
-
3031
-
3032
- /**
3033
- * Serializes the message to binary data (in protobuf wire format).
3034
- * @return {!Uint8Array}
3035
- */
3036
- proto.GetProvinceResponse.prototype.serializeBinary = function() {
3037
- var writer = new jspb.BinaryWriter();
3038
- proto.GetProvinceResponse.serializeBinaryToWriter(this, writer);
3039
- return writer.getResultBuffer();
3040
- };
3041
-
3042
-
3043
- /**
3044
- * Serializes the given message to binary data (in protobuf wire
3045
- * format), writing to the given BinaryWriter.
3046
- * @param {!proto.GetProvinceResponse} message
3047
- * @param {!jspb.BinaryWriter} writer
3048
- * @suppress {unusedLocalVariables} f is only used for nested messages
3049
- */
3050
- proto.GetProvinceResponse.serializeBinaryToWriter = function(message, writer) {
3051
- var f = undefined;
3052
- f = message.getProvinceList();
3053
- if (f.length > 0) {
3054
- writer.writeRepeatedMessage(
3055
- 1,
3056
- f,
3057
- proto.Province.serializeBinaryToWriter
3058
- );
3059
- }
3060
- f = message.getMeta();
3061
- if (f != null) {
3062
- writer.writeMessage(
3063
- 2,
3064
- f,
3065
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3066
- );
3067
- }
3068
- };
3069
-
3070
-
3071
- /**
3072
- * repeated Province province = 1;
3073
- * @return {!Array<!proto.Province>}
3074
- */
3075
- proto.GetProvinceResponse.prototype.getProvinceList = function() {
3076
- return /** @type{!Array<!proto.Province>} */ (
3077
- jspb.Message.getRepeatedWrapperField(this, proto.Province, 1));
3078
- };
3079
-
3080
-
3081
- /**
3082
- * @param {!Array<!proto.Province>} value
3083
- * @return {!proto.GetProvinceResponse} returns this
3084
- */
3085
- proto.GetProvinceResponse.prototype.setProvinceList = function(value) {
3086
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3087
- };
3088
-
3089
-
3090
- /**
3091
- * @param {!proto.Province=} opt_value
3092
- * @param {number=} opt_index
3093
- * @return {!proto.Province}
3094
- */
3095
- proto.GetProvinceResponse.prototype.addProvince = function(opt_value, opt_index) {
3096
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Province, opt_index);
3097
- };
3098
-
3099
-
3100
- /**
3101
- * Clears the list making it empty but non-null.
3102
- * @return {!proto.GetProvinceResponse} returns this
3103
- */
3104
- proto.GetProvinceResponse.prototype.clearProvinceList = function() {
3105
- return this.setProvinceList([]);
3106
- };
3107
-
3108
-
3109
- /**
3110
- * optional prisca.v1.global.meta.Meta meta = 2;
3111
- * @return {?proto.prisca.v1.global.meta.Meta}
3112
- */
3113
- proto.GetProvinceResponse.prototype.getMeta = function() {
3114
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3115
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3116
- };
3117
-
3118
-
3119
- /**
3120
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3121
- * @return {!proto.GetProvinceResponse} returns this
3122
- */
3123
- proto.GetProvinceResponse.prototype.setMeta = function(value) {
3124
- return jspb.Message.setWrapperField(this, 2, value);
3125
- };
3126
-
3127
-
3128
- /**
3129
- * Clears the message field making it undefined.
3130
- * @return {!proto.GetProvinceResponse} returns this
3131
- */
3132
- proto.GetProvinceResponse.prototype.clearMeta = function() {
3133
- return this.setMeta(undefined);
3134
- };
3135
-
3136
-
3137
- /**
3138
- * Returns whether this field is set.
3139
- * @return {boolean}
3140
- */
3141
- proto.GetProvinceResponse.prototype.hasMeta = function() {
3142
- return jspb.Message.getField(this, 2) != null;
3143
- };
3144
-
3145
-
3146
-
3147
- /**
3148
- * List of repeated fields within this message type.
3149
- * @private {!Array<number>}
3150
- * @const
3151
- */
3152
- proto.GetCityResponse.repeatedFields_ = [1];
3153
-
3154
-
3155
-
3156
- if (jspb.Message.GENERATE_TO_OBJECT) {
3157
- /**
3158
- * Creates an object representation of this proto.
3159
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3160
- * Optional fields that are not set will be set to undefined.
3161
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3162
- * For the list of reserved names please see:
3163
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3164
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3165
- * JSPB instance for transitional soy proto support:
3166
- * http://goto/soy-param-migration
3167
- * @return {!Object}
3168
- */
3169
- proto.GetCityResponse.prototype.toObject = function(opt_includeInstance) {
3170
- return proto.GetCityResponse.toObject(opt_includeInstance, this);
3171
- };
3172
-
3173
-
3174
- /**
3175
- * Static version of the {@see toObject} method.
3176
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3177
- * the JSPB instance for transitional soy proto support:
3178
- * http://goto/soy-param-migration
3179
- * @param {!proto.GetCityResponse} msg The msg instance to transform.
3180
- * @return {!Object}
3181
- * @suppress {unusedLocalVariables} f is only used for nested messages
3182
- */
3183
- proto.GetCityResponse.toObject = function(includeInstance, msg) {
3184
- var f, obj = {
3185
- cityList: jspb.Message.toObjectList(msg.getCityList(),
3186
- proto.City.toObject, includeInstance),
3187
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3188
- };
3189
-
3190
- if (includeInstance) {
3191
- obj.$jspbMessageInstance = msg;
3192
- }
3193
- return obj;
3194
- };
3195
- }
3196
-
3197
-
3198
- /**
3199
- * Deserializes binary data (in protobuf wire format).
3200
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3201
- * @return {!proto.GetCityResponse}
3202
- */
3203
- proto.GetCityResponse.deserializeBinary = function(bytes) {
3204
- var reader = new jspb.BinaryReader(bytes);
3205
- var msg = new proto.GetCityResponse;
3206
- return proto.GetCityResponse.deserializeBinaryFromReader(msg, reader);
3207
- };
3208
-
3209
-
3210
- /**
3211
- * Deserializes binary data (in protobuf wire format) from the
3212
- * given reader into the given message object.
3213
- * @param {!proto.GetCityResponse} msg The message object to deserialize into.
3214
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3215
- * @return {!proto.GetCityResponse}
3216
- */
3217
- proto.GetCityResponse.deserializeBinaryFromReader = function(msg, reader) {
3218
- while (reader.nextField()) {
3219
- if (reader.isEndGroup()) {
3220
- break;
3221
- }
3222
- var field = reader.getFieldNumber();
3223
- switch (field) {
3224
- case 1:
3225
- var value = new proto.City;
3226
- reader.readMessage(value,proto.City.deserializeBinaryFromReader);
3227
- msg.addCity(value);
3228
- break;
3229
- case 2:
3230
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3231
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3232
- msg.setMeta(value);
3233
- break;
3234
- default:
3235
- reader.skipField();
3236
- break;
3237
- }
3238
- }
3239
- return msg;
3240
- };
3241
-
3242
-
3243
- /**
3244
- * Serializes the message to binary data (in protobuf wire format).
3245
- * @return {!Uint8Array}
3246
- */
3247
- proto.GetCityResponse.prototype.serializeBinary = function() {
3248
- var writer = new jspb.BinaryWriter();
3249
- proto.GetCityResponse.serializeBinaryToWriter(this, writer);
3250
- return writer.getResultBuffer();
3251
- };
3252
-
3253
-
3254
- /**
3255
- * Serializes the given message to binary data (in protobuf wire
3256
- * format), writing to the given BinaryWriter.
3257
- * @param {!proto.GetCityResponse} message
3258
- * @param {!jspb.BinaryWriter} writer
3259
- * @suppress {unusedLocalVariables} f is only used for nested messages
3260
- */
3261
- proto.GetCityResponse.serializeBinaryToWriter = function(message, writer) {
3262
- var f = undefined;
3263
- f = message.getCityList();
3264
- if (f.length > 0) {
3265
- writer.writeRepeatedMessage(
3266
- 1,
3267
- f,
3268
- proto.City.serializeBinaryToWriter
3269
- );
3270
- }
3271
- f = message.getMeta();
3272
- if (f != null) {
3273
- writer.writeMessage(
3274
- 2,
3275
- f,
3276
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3277
- );
3278
- }
3279
- };
3280
-
3281
-
3282
- /**
3283
- * repeated City city = 1;
3284
- * @return {!Array<!proto.City>}
3285
- */
3286
- proto.GetCityResponse.prototype.getCityList = function() {
3287
- return /** @type{!Array<!proto.City>} */ (
3288
- jspb.Message.getRepeatedWrapperField(this, proto.City, 1));
3289
- };
3290
-
3291
-
3292
- /**
3293
- * @param {!Array<!proto.City>} value
3294
- * @return {!proto.GetCityResponse} returns this
3295
- */
3296
- proto.GetCityResponse.prototype.setCityList = function(value) {
3297
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3298
- };
3299
-
3300
-
3301
- /**
3302
- * @param {!proto.City=} opt_value
3303
- * @param {number=} opt_index
3304
- * @return {!proto.City}
3305
- */
3306
- proto.GetCityResponse.prototype.addCity = function(opt_value, opt_index) {
3307
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.City, opt_index);
3308
- };
3309
-
3310
-
3311
- /**
3312
- * Clears the list making it empty but non-null.
3313
- * @return {!proto.GetCityResponse} returns this
3314
- */
3315
- proto.GetCityResponse.prototype.clearCityList = function() {
3316
- return this.setCityList([]);
3317
- };
3318
-
3319
-
3320
- /**
3321
- * optional prisca.v1.global.meta.Meta meta = 2;
3322
- * @return {?proto.prisca.v1.global.meta.Meta}
3323
- */
3324
- proto.GetCityResponse.prototype.getMeta = function() {
3325
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3326
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3327
- };
3328
-
3329
-
3330
- /**
3331
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3332
- * @return {!proto.GetCityResponse} returns this
3333
- */
3334
- proto.GetCityResponse.prototype.setMeta = function(value) {
3335
- return jspb.Message.setWrapperField(this, 2, value);
3336
- };
3337
-
3338
-
3339
- /**
3340
- * Clears the message field making it undefined.
3341
- * @return {!proto.GetCityResponse} returns this
3342
- */
3343
- proto.GetCityResponse.prototype.clearMeta = function() {
3344
- return this.setMeta(undefined);
3345
- };
3346
-
3347
-
3348
- /**
3349
- * Returns whether this field is set.
3350
- * @return {boolean}
3351
- */
3352
- proto.GetCityResponse.prototype.hasMeta = function() {
3353
- return jspb.Message.getField(this, 2) != null;
3354
- };
3355
-
3356
-
3357
-
3358
- /**
3359
- * List of repeated fields within this message type.
3360
- * @private {!Array<number>}
3361
- * @const
3362
- */
3363
- proto.GetDistrictResponse.repeatedFields_ = [1];
3364
-
3365
-
3366
-
3367
- if (jspb.Message.GENERATE_TO_OBJECT) {
3368
- /**
3369
- * Creates an object representation of this proto.
3370
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3371
- * Optional fields that are not set will be set to undefined.
3372
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3373
- * For the list of reserved names please see:
3374
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3375
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3376
- * JSPB instance for transitional soy proto support:
3377
- * http://goto/soy-param-migration
3378
- * @return {!Object}
3379
- */
3380
- proto.GetDistrictResponse.prototype.toObject = function(opt_includeInstance) {
3381
- return proto.GetDistrictResponse.toObject(opt_includeInstance, this);
3382
- };
3383
-
3384
-
3385
- /**
3386
- * Static version of the {@see toObject} method.
3387
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3388
- * the JSPB instance for transitional soy proto support:
3389
- * http://goto/soy-param-migration
3390
- * @param {!proto.GetDistrictResponse} msg The msg instance to transform.
3391
- * @return {!Object}
3392
- * @suppress {unusedLocalVariables} f is only used for nested messages
3393
- */
3394
- proto.GetDistrictResponse.toObject = function(includeInstance, msg) {
3395
- var f, obj = {
3396
- districtList: jspb.Message.toObjectList(msg.getDistrictList(),
3397
- proto.District.toObject, includeInstance),
3398
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3399
- };
3400
-
3401
- if (includeInstance) {
3402
- obj.$jspbMessageInstance = msg;
3403
- }
3404
- return obj;
3405
- };
3406
- }
3407
-
3408
-
3409
- /**
3410
- * Deserializes binary data (in protobuf wire format).
3411
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3412
- * @return {!proto.GetDistrictResponse}
3413
- */
3414
- proto.GetDistrictResponse.deserializeBinary = function(bytes) {
3415
- var reader = new jspb.BinaryReader(bytes);
3416
- var msg = new proto.GetDistrictResponse;
3417
- return proto.GetDistrictResponse.deserializeBinaryFromReader(msg, reader);
3418
- };
3419
-
3420
-
3421
- /**
3422
- * Deserializes binary data (in protobuf wire format) from the
3423
- * given reader into the given message object.
3424
- * @param {!proto.GetDistrictResponse} msg The message object to deserialize into.
3425
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3426
- * @return {!proto.GetDistrictResponse}
3427
- */
3428
- proto.GetDistrictResponse.deserializeBinaryFromReader = function(msg, reader) {
3429
- while (reader.nextField()) {
3430
- if (reader.isEndGroup()) {
3431
- break;
3432
- }
3433
- var field = reader.getFieldNumber();
3434
- switch (field) {
3435
- case 1:
3436
- var value = new proto.District;
3437
- reader.readMessage(value,proto.District.deserializeBinaryFromReader);
3438
- msg.addDistrict(value);
3439
- break;
3440
- case 2:
3441
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3442
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3443
- msg.setMeta(value);
3444
- break;
3445
- default:
3446
- reader.skipField();
3447
- break;
3448
- }
3449
- }
3450
- return msg;
3451
- };
3452
-
3453
-
3454
- /**
3455
- * Serializes the message to binary data (in protobuf wire format).
3456
- * @return {!Uint8Array}
3457
- */
3458
- proto.GetDistrictResponse.prototype.serializeBinary = function() {
3459
- var writer = new jspb.BinaryWriter();
3460
- proto.GetDistrictResponse.serializeBinaryToWriter(this, writer);
3461
- return writer.getResultBuffer();
3462
- };
3463
-
3464
-
3465
- /**
3466
- * Serializes the given message to binary data (in protobuf wire
3467
- * format), writing to the given BinaryWriter.
3468
- * @param {!proto.GetDistrictResponse} message
3469
- * @param {!jspb.BinaryWriter} writer
3470
- * @suppress {unusedLocalVariables} f is only used for nested messages
3471
- */
3472
- proto.GetDistrictResponse.serializeBinaryToWriter = function(message, writer) {
3473
- var f = undefined;
3474
- f = message.getDistrictList();
3475
- if (f.length > 0) {
3476
- writer.writeRepeatedMessage(
3477
- 1,
3478
- f,
3479
- proto.District.serializeBinaryToWriter
3480
- );
3481
- }
3482
- f = message.getMeta();
3483
- if (f != null) {
3484
- writer.writeMessage(
3485
- 2,
3486
- f,
3487
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3488
- );
3489
- }
3490
- };
3491
-
3492
-
3493
- /**
3494
- * repeated District district = 1;
3495
- * @return {!Array<!proto.District>}
3496
- */
3497
- proto.GetDistrictResponse.prototype.getDistrictList = function() {
3498
- return /** @type{!Array<!proto.District>} */ (
3499
- jspb.Message.getRepeatedWrapperField(this, proto.District, 1));
3500
- };
3501
-
3502
-
3503
- /**
3504
- * @param {!Array<!proto.District>} value
3505
- * @return {!proto.GetDistrictResponse} returns this
3506
- */
3507
- proto.GetDistrictResponse.prototype.setDistrictList = function(value) {
3508
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3509
- };
3510
-
3511
-
3512
- /**
3513
- * @param {!proto.District=} opt_value
3514
- * @param {number=} opt_index
3515
- * @return {!proto.District}
3516
- */
3517
- proto.GetDistrictResponse.prototype.addDistrict = function(opt_value, opt_index) {
3518
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.District, opt_index);
3519
- };
3520
-
3521
-
3522
- /**
3523
- * Clears the list making it empty but non-null.
3524
- * @return {!proto.GetDistrictResponse} returns this
3525
- */
3526
- proto.GetDistrictResponse.prototype.clearDistrictList = function() {
3527
- return this.setDistrictList([]);
3528
- };
3529
-
3530
-
3531
- /**
3532
- * optional prisca.v1.global.meta.Meta meta = 2;
3533
- * @return {?proto.prisca.v1.global.meta.Meta}
3534
- */
3535
- proto.GetDistrictResponse.prototype.getMeta = function() {
3536
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3537
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3538
- };
3539
-
3540
-
3541
- /**
3542
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3543
- * @return {!proto.GetDistrictResponse} returns this
3544
- */
3545
- proto.GetDistrictResponse.prototype.setMeta = function(value) {
3546
- return jspb.Message.setWrapperField(this, 2, value);
3547
- };
3548
-
3549
-
3550
- /**
3551
- * Clears the message field making it undefined.
3552
- * @return {!proto.GetDistrictResponse} returns this
3553
- */
3554
- proto.GetDistrictResponse.prototype.clearMeta = function() {
3555
- return this.setMeta(undefined);
3556
- };
3557
-
3558
-
3559
- /**
3560
- * Returns whether this field is set.
3561
- * @return {boolean}
3562
- */
3563
- proto.GetDistrictResponse.prototype.hasMeta = function() {
3564
- return jspb.Message.getField(this, 2) != null;
3565
- };
3566
-
3567
-
3568
-
3569
- /**
3570
- * List of repeated fields within this message type.
3571
- * @private {!Array<number>}
3572
- * @const
3573
- */
3574
- proto.GetVillageResponse.repeatedFields_ = [1];
3575
-
3576
-
3577
-
3578
- if (jspb.Message.GENERATE_TO_OBJECT) {
3579
- /**
3580
- * Creates an object representation of this proto.
3581
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3582
- * Optional fields that are not set will be set to undefined.
3583
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3584
- * For the list of reserved names please see:
3585
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3586
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3587
- * JSPB instance for transitional soy proto support:
3588
- * http://goto/soy-param-migration
3589
- * @return {!Object}
3590
- */
3591
- proto.GetVillageResponse.prototype.toObject = function(opt_includeInstance) {
3592
- return proto.GetVillageResponse.toObject(opt_includeInstance, this);
3593
- };
3594
-
3595
-
3596
- /**
3597
- * Static version of the {@see toObject} method.
3598
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3599
- * the JSPB instance for transitional soy proto support:
3600
- * http://goto/soy-param-migration
3601
- * @param {!proto.GetVillageResponse} msg The msg instance to transform.
3602
- * @return {!Object}
3603
- * @suppress {unusedLocalVariables} f is only used for nested messages
3604
- */
3605
- proto.GetVillageResponse.toObject = function(includeInstance, msg) {
3606
- var f, obj = {
3607
- villageList: jspb.Message.toObjectList(msg.getVillageList(),
3608
- proto.Village.toObject, includeInstance),
3609
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3610
- };
3611
-
3612
- if (includeInstance) {
3613
- obj.$jspbMessageInstance = msg;
3614
- }
3615
- return obj;
3616
- };
3617
- }
3618
-
3619
-
3620
- /**
3621
- * Deserializes binary data (in protobuf wire format).
3622
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3623
- * @return {!proto.GetVillageResponse}
3624
- */
3625
- proto.GetVillageResponse.deserializeBinary = function(bytes) {
3626
- var reader = new jspb.BinaryReader(bytes);
3627
- var msg = new proto.GetVillageResponse;
3628
- return proto.GetVillageResponse.deserializeBinaryFromReader(msg, reader);
3629
- };
3630
-
3631
-
3632
- /**
3633
- * Deserializes binary data (in protobuf wire format) from the
3634
- * given reader into the given message object.
3635
- * @param {!proto.GetVillageResponse} msg The message object to deserialize into.
3636
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3637
- * @return {!proto.GetVillageResponse}
3638
- */
3639
- proto.GetVillageResponse.deserializeBinaryFromReader = function(msg, reader) {
3640
- while (reader.nextField()) {
3641
- if (reader.isEndGroup()) {
3642
- break;
3643
- }
3644
- var field = reader.getFieldNumber();
3645
- switch (field) {
3646
- case 1:
3647
- var value = new proto.Village;
3648
- reader.readMessage(value,proto.Village.deserializeBinaryFromReader);
3649
- msg.addVillage(value);
3650
- break;
3651
- case 2:
3652
- var value = new prisca_v1_global_meta_meta_pb.Meta;
3653
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
3654
- msg.setMeta(value);
3655
- break;
3656
- default:
3657
- reader.skipField();
3658
- break;
3659
- }
3660
- }
3661
- return msg;
3662
- };
3663
-
3664
-
3665
- /**
3666
- * Serializes the message to binary data (in protobuf wire format).
3667
- * @return {!Uint8Array}
3668
- */
3669
- proto.GetVillageResponse.prototype.serializeBinary = function() {
3670
- var writer = new jspb.BinaryWriter();
3671
- proto.GetVillageResponse.serializeBinaryToWriter(this, writer);
3672
- return writer.getResultBuffer();
3673
- };
3674
-
3675
-
3676
- /**
3677
- * Serializes the given message to binary data (in protobuf wire
3678
- * format), writing to the given BinaryWriter.
3679
- * @param {!proto.GetVillageResponse} message
3680
- * @param {!jspb.BinaryWriter} writer
3681
- * @suppress {unusedLocalVariables} f is only used for nested messages
3682
- */
3683
- proto.GetVillageResponse.serializeBinaryToWriter = function(message, writer) {
3684
- var f = undefined;
3685
- f = message.getVillageList();
3686
- if (f.length > 0) {
3687
- writer.writeRepeatedMessage(
3688
- 1,
3689
- f,
3690
- proto.Village.serializeBinaryToWriter
3691
- );
3692
- }
3693
- f = message.getMeta();
3694
- if (f != null) {
3695
- writer.writeMessage(
3696
- 2,
3697
- f,
3698
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
3699
- );
3700
- }
3701
- };
3702
-
3703
-
3704
- /**
3705
- * repeated Village village = 1;
3706
- * @return {!Array<!proto.Village>}
3707
- */
3708
- proto.GetVillageResponse.prototype.getVillageList = function() {
3709
- return /** @type{!Array<!proto.Village>} */ (
3710
- jspb.Message.getRepeatedWrapperField(this, proto.Village, 1));
3711
- };
3712
-
3713
-
3714
- /**
3715
- * @param {!Array<!proto.Village>} value
3716
- * @return {!proto.GetVillageResponse} returns this
3717
- */
3718
- proto.GetVillageResponse.prototype.setVillageList = function(value) {
3719
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3720
- };
3721
-
3722
-
3723
- /**
3724
- * @param {!proto.Village=} opt_value
3725
- * @param {number=} opt_index
3726
- * @return {!proto.Village}
3727
- */
3728
- proto.GetVillageResponse.prototype.addVillage = function(opt_value, opt_index) {
3729
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.Village, opt_index);
3730
- };
3731
-
3732
-
3733
- /**
3734
- * Clears the list making it empty but non-null.
3735
- * @return {!proto.GetVillageResponse} returns this
3736
- */
3737
- proto.GetVillageResponse.prototype.clearVillageList = function() {
3738
- return this.setVillageList([]);
3739
- };
3740
-
3741
-
3742
- /**
3743
- * optional prisca.v1.global.meta.Meta meta = 2;
3744
- * @return {?proto.prisca.v1.global.meta.Meta}
3745
- */
3746
- proto.GetVillageResponse.prototype.getMeta = function() {
3747
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
3748
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
3749
- };
3750
-
3751
-
3752
- /**
3753
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
3754
- * @return {!proto.GetVillageResponse} returns this
3755
- */
3756
- proto.GetVillageResponse.prototype.setMeta = function(value) {
3757
- return jspb.Message.setWrapperField(this, 2, value);
3758
- };
3759
-
3760
-
3761
- /**
3762
- * Clears the message field making it undefined.
3763
- * @return {!proto.GetVillageResponse} returns this
3764
- */
3765
- proto.GetVillageResponse.prototype.clearMeta = function() {
3766
- return this.setMeta(undefined);
3767
- };
3768
-
3769
-
3770
- /**
3771
- * Returns whether this field is set.
3772
- * @return {boolean}
3773
- */
3774
- proto.GetVillageResponse.prototype.hasMeta = function() {
3775
- return jspb.Message.getField(this, 2) != null;
3776
- };
3777
-
3778
-
3779
-
3780
-
3781
-
3782
- if (jspb.Message.GENERATE_TO_OBJECT) {
3783
- /**
3784
- * Creates an object representation of this proto.
3785
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3786
- * Optional fields that are not set will be set to undefined.
3787
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3788
- * For the list of reserved names please see:
3789
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3790
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3791
- * JSPB instance for transitional soy proto support:
3792
- * http://goto/soy-param-migration
3793
- * @return {!Object}
3794
- */
3795
- proto.CreateCountryRequest.prototype.toObject = function(opt_includeInstance) {
3796
- return proto.CreateCountryRequest.toObject(opt_includeInstance, this);
3797
- };
3798
-
3799
-
3800
- /**
3801
- * Static version of the {@see toObject} method.
3802
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3803
- * the JSPB instance for transitional soy proto support:
3804
- * http://goto/soy-param-migration
3805
- * @param {!proto.CreateCountryRequest} msg The msg instance to transform.
3806
- * @return {!Object}
3807
- * @suppress {unusedLocalVariables} f is only used for nested messages
3808
- */
3809
- proto.CreateCountryRequest.toObject = function(includeInstance, msg) {
3810
- var f, obj = {
3811
- country: (f = msg.getCountry()) && proto.BaseCountry.toObject(includeInstance, f)
3812
- };
3813
-
3814
- if (includeInstance) {
3815
- obj.$jspbMessageInstance = msg;
3816
- }
3817
- return obj;
3818
- };
3819
- }
3820
-
3821
-
3822
- /**
3823
- * Deserializes binary data (in protobuf wire format).
3824
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3825
- * @return {!proto.CreateCountryRequest}
3826
- */
3827
- proto.CreateCountryRequest.deserializeBinary = function(bytes) {
3828
- var reader = new jspb.BinaryReader(bytes);
3829
- var msg = new proto.CreateCountryRequest;
3830
- return proto.CreateCountryRequest.deserializeBinaryFromReader(msg, reader);
3831
- };
3832
-
3833
-
3834
- /**
3835
- * Deserializes binary data (in protobuf wire format) from the
3836
- * given reader into the given message object.
3837
- * @param {!proto.CreateCountryRequest} msg The message object to deserialize into.
3838
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3839
- * @return {!proto.CreateCountryRequest}
3840
- */
3841
- proto.CreateCountryRequest.deserializeBinaryFromReader = function(msg, reader) {
3842
- while (reader.nextField()) {
3843
- if (reader.isEndGroup()) {
3844
- break;
3845
- }
3846
- var field = reader.getFieldNumber();
3847
- switch (field) {
3848
- case 1:
3849
- var value = new proto.BaseCountry;
3850
- reader.readMessage(value,proto.BaseCountry.deserializeBinaryFromReader);
3851
- msg.setCountry(value);
3852
- break;
3853
- default:
3854
- reader.skipField();
3855
- break;
3856
- }
3857
- }
3858
- return msg;
3859
- };
3860
-
3861
-
3862
- /**
3863
- * Serializes the message to binary data (in protobuf wire format).
3864
- * @return {!Uint8Array}
3865
- */
3866
- proto.CreateCountryRequest.prototype.serializeBinary = function() {
3867
- var writer = new jspb.BinaryWriter();
3868
- proto.CreateCountryRequest.serializeBinaryToWriter(this, writer);
3869
- return writer.getResultBuffer();
3870
- };
3871
-
3872
-
3873
- /**
3874
- * Serializes the given message to binary data (in protobuf wire
3875
- * format), writing to the given BinaryWriter.
3876
- * @param {!proto.CreateCountryRequest} message
3877
- * @param {!jspb.BinaryWriter} writer
3878
- * @suppress {unusedLocalVariables} f is only used for nested messages
3879
- */
3880
- proto.CreateCountryRequest.serializeBinaryToWriter = function(message, writer) {
3881
- var f = undefined;
3882
- f = message.getCountry();
3883
- if (f != null) {
3884
- writer.writeMessage(
3885
- 1,
3886
- f,
3887
- proto.BaseCountry.serializeBinaryToWriter
3888
- );
3889
- }
3890
- };
3891
-
3892
-
3893
- /**
3894
- * optional BaseCountry country = 1;
3895
- * @return {?proto.BaseCountry}
3896
- */
3897
- proto.CreateCountryRequest.prototype.getCountry = function() {
3898
- return /** @type{?proto.BaseCountry} */ (
3899
- jspb.Message.getWrapperField(this, proto.BaseCountry, 1));
3900
- };
3901
-
3902
-
3903
- /**
3904
- * @param {?proto.BaseCountry|undefined} value
3905
- * @return {!proto.CreateCountryRequest} returns this
3906
- */
3907
- proto.CreateCountryRequest.prototype.setCountry = function(value) {
3908
- return jspb.Message.setWrapperField(this, 1, value);
3909
- };
3910
-
3911
-
3912
- /**
3913
- * Clears the message field making it undefined.
3914
- * @return {!proto.CreateCountryRequest} returns this
3915
- */
3916
- proto.CreateCountryRequest.prototype.clearCountry = function() {
3917
- return this.setCountry(undefined);
3918
- };
3919
-
3920
-
3921
- /**
3922
- * Returns whether this field is set.
3923
- * @return {boolean}
3924
- */
3925
- proto.CreateCountryRequest.prototype.hasCountry = function() {
3926
- return jspb.Message.getField(this, 1) != null;
3927
- };
3928
-
3929
-
3930
-
3931
-
3932
-
3933
- if (jspb.Message.GENERATE_TO_OBJECT) {
3934
- /**
3935
- * Creates an object representation of this proto.
3936
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3937
- * Optional fields that are not set will be set to undefined.
3938
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3939
- * For the list of reserved names please see:
3940
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3941
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3942
- * JSPB instance for transitional soy proto support:
3943
- * http://goto/soy-param-migration
3944
- * @return {!Object}
3945
- */
3946
- proto.CreateCountryResponse.prototype.toObject = function(opt_includeInstance) {
3947
- return proto.CreateCountryResponse.toObject(opt_includeInstance, this);
3948
- };
3949
-
3950
-
3951
- /**
3952
- * Static version of the {@see toObject} method.
3953
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3954
- * the JSPB instance for transitional soy proto support:
3955
- * http://goto/soy-param-migration
3956
- * @param {!proto.CreateCountryResponse} msg The msg instance to transform.
3957
- * @return {!Object}
3958
- * @suppress {unusedLocalVariables} f is only used for nested messages
3959
- */
3960
- proto.CreateCountryResponse.toObject = function(includeInstance, msg) {
3961
- var f, obj = {
3962
- country: (f = msg.getCountry()) && proto.Country.toObject(includeInstance, f),
3963
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3964
- };
3965
-
3966
- if (includeInstance) {
3967
- obj.$jspbMessageInstance = msg;
3968
- }
3969
- return obj;
3970
- };
3971
- }
3972
-
3973
-
3974
- /**
3975
- * Deserializes binary data (in protobuf wire format).
3976
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3977
- * @return {!proto.CreateCountryResponse}
3978
- */
3979
- proto.CreateCountryResponse.deserializeBinary = function(bytes) {
3980
- var reader = new jspb.BinaryReader(bytes);
3981
- var msg = new proto.CreateCountryResponse;
3982
- return proto.CreateCountryResponse.deserializeBinaryFromReader(msg, reader);
3983
- };
3984
-
3985
-
3986
- /**
3987
- * Deserializes binary data (in protobuf wire format) from the
3988
- * given reader into the given message object.
3989
- * @param {!proto.CreateCountryResponse} msg The message object to deserialize into.
3990
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3991
- * @return {!proto.CreateCountryResponse}
3992
- */
3993
- proto.CreateCountryResponse.deserializeBinaryFromReader = function(msg, reader) {
3994
- while (reader.nextField()) {
3995
- if (reader.isEndGroup()) {
3996
- break;
3997
- }
3998
- var field = reader.getFieldNumber();
3999
- switch (field) {
4000
- case 1:
4001
- var value = new proto.Country;
4002
- reader.readMessage(value,proto.Country.deserializeBinaryFromReader);
4003
- msg.setCountry(value);
4004
- break;
4005
- case 2:
4006
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4007
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4008
- msg.setMeta(value);
4009
- break;
4010
- default:
4011
- reader.skipField();
4012
- break;
4013
- }
4014
- }
4015
- return msg;
4016
- };
4017
-
4018
-
4019
- /**
4020
- * Serializes the message to binary data (in protobuf wire format).
4021
- * @return {!Uint8Array}
4022
- */
4023
- proto.CreateCountryResponse.prototype.serializeBinary = function() {
4024
- var writer = new jspb.BinaryWriter();
4025
- proto.CreateCountryResponse.serializeBinaryToWriter(this, writer);
4026
- return writer.getResultBuffer();
4027
- };
4028
-
4029
-
4030
- /**
4031
- * Serializes the given message to binary data (in protobuf wire
4032
- * format), writing to the given BinaryWriter.
4033
- * @param {!proto.CreateCountryResponse} message
4034
- * @param {!jspb.BinaryWriter} writer
4035
- * @suppress {unusedLocalVariables} f is only used for nested messages
4036
- */
4037
- proto.CreateCountryResponse.serializeBinaryToWriter = function(message, writer) {
4038
- var f = undefined;
4039
- f = message.getCountry();
4040
- if (f != null) {
4041
- writer.writeMessage(
4042
- 1,
4043
- f,
4044
- proto.Country.serializeBinaryToWriter
4045
- );
4046
- }
4047
- f = message.getMeta();
4048
- if (f != null) {
4049
- writer.writeMessage(
4050
- 2,
4051
- f,
4052
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4053
- );
4054
- }
4055
- };
4056
-
4057
-
4058
- /**
4059
- * optional Country country = 1;
4060
- * @return {?proto.Country}
4061
- */
4062
- proto.CreateCountryResponse.prototype.getCountry = function() {
4063
- return /** @type{?proto.Country} */ (
4064
- jspb.Message.getWrapperField(this, proto.Country, 1));
4065
- };
4066
-
4067
-
4068
- /**
4069
- * @param {?proto.Country|undefined} value
4070
- * @return {!proto.CreateCountryResponse} returns this
4071
- */
4072
- proto.CreateCountryResponse.prototype.setCountry = function(value) {
4073
- return jspb.Message.setWrapperField(this, 1, value);
4074
- };
4075
-
4076
-
4077
- /**
4078
- * Clears the message field making it undefined.
4079
- * @return {!proto.CreateCountryResponse} returns this
4080
- */
4081
- proto.CreateCountryResponse.prototype.clearCountry = function() {
4082
- return this.setCountry(undefined);
4083
- };
4084
-
4085
-
4086
- /**
4087
- * Returns whether this field is set.
4088
- * @return {boolean}
4089
- */
4090
- proto.CreateCountryResponse.prototype.hasCountry = function() {
4091
- return jspb.Message.getField(this, 1) != null;
4092
- };
4093
-
4094
-
4095
- /**
4096
- * optional prisca.v1.global.meta.Meta meta = 2;
4097
- * @return {?proto.prisca.v1.global.meta.Meta}
4098
- */
4099
- proto.CreateCountryResponse.prototype.getMeta = function() {
4100
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4101
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4102
- };
4103
-
4104
-
4105
- /**
4106
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4107
- * @return {!proto.CreateCountryResponse} returns this
4108
- */
4109
- proto.CreateCountryResponse.prototype.setMeta = function(value) {
4110
- return jspb.Message.setWrapperField(this, 2, value);
4111
- };
4112
-
4113
-
4114
- /**
4115
- * Clears the message field making it undefined.
4116
- * @return {!proto.CreateCountryResponse} returns this
4117
- */
4118
- proto.CreateCountryResponse.prototype.clearMeta = function() {
4119
- return this.setMeta(undefined);
4120
- };
4121
-
4122
-
4123
- /**
4124
- * Returns whether this field is set.
4125
- * @return {boolean}
4126
- */
4127
- proto.CreateCountryResponse.prototype.hasMeta = function() {
4128
- return jspb.Message.getField(this, 2) != null;
4129
- };
4130
-
4131
-
4132
-
4133
-
4134
-
4135
- if (jspb.Message.GENERATE_TO_OBJECT) {
4136
- /**
4137
- * Creates an object representation of this proto.
4138
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
4139
- * Optional fields that are not set will be set to undefined.
4140
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4141
- * For the list of reserved names please see:
4142
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4143
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4144
- * JSPB instance for transitional soy proto support:
4145
- * http://goto/soy-param-migration
4146
- * @return {!Object}
4147
- */
4148
- proto.UpdateCountryResponse.prototype.toObject = function(opt_includeInstance) {
4149
- return proto.UpdateCountryResponse.toObject(opt_includeInstance, this);
4150
- };
4151
-
4152
-
4153
- /**
4154
- * Static version of the {@see toObject} method.
4155
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4156
- * the JSPB instance for transitional soy proto support:
4157
- * http://goto/soy-param-migration
4158
- * @param {!proto.UpdateCountryResponse} msg The msg instance to transform.
4159
- * @return {!Object}
4160
- * @suppress {unusedLocalVariables} f is only used for nested messages
4161
- */
4162
- proto.UpdateCountryResponse.toObject = function(includeInstance, msg) {
4163
- var f, obj = {
4164
- country: (f = msg.getCountry()) && proto.Country.toObject(includeInstance, f),
4165
- meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
4166
- };
4167
-
4168
- if (includeInstance) {
4169
- obj.$jspbMessageInstance = msg;
4170
- }
4171
- return obj;
4172
- };
4173
- }
4174
-
4175
-
4176
- /**
4177
- * Deserializes binary data (in protobuf wire format).
4178
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
4179
- * @return {!proto.UpdateCountryResponse}
4180
- */
4181
- proto.UpdateCountryResponse.deserializeBinary = function(bytes) {
4182
- var reader = new jspb.BinaryReader(bytes);
4183
- var msg = new proto.UpdateCountryResponse;
4184
- return proto.UpdateCountryResponse.deserializeBinaryFromReader(msg, reader);
4185
- };
4186
-
4187
-
4188
- /**
4189
- * Deserializes binary data (in protobuf wire format) from the
4190
- * given reader into the given message object.
4191
- * @param {!proto.UpdateCountryResponse} msg The message object to deserialize into.
4192
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4193
- * @return {!proto.UpdateCountryResponse}
4194
- */
4195
- proto.UpdateCountryResponse.deserializeBinaryFromReader = function(msg, reader) {
4196
- while (reader.nextField()) {
4197
- if (reader.isEndGroup()) {
4198
- break;
4199
- }
4200
- var field = reader.getFieldNumber();
4201
- switch (field) {
4202
- case 1:
4203
- var value = new proto.Country;
4204
- reader.readMessage(value,proto.Country.deserializeBinaryFromReader);
4205
- msg.setCountry(value);
4206
- break;
4207
- case 2:
4208
- var value = new prisca_v1_global_meta_meta_pb.Meta;
4209
- reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
4210
- msg.setMeta(value);
4211
- break;
4212
- default:
4213
- reader.skipField();
4214
- break;
4215
- }
4216
- }
4217
- return msg;
4218
- };
4219
-
4220
-
4221
- /**
4222
- * Serializes the message to binary data (in protobuf wire format).
4223
- * @return {!Uint8Array}
4224
- */
4225
- proto.UpdateCountryResponse.prototype.serializeBinary = function() {
4226
- var writer = new jspb.BinaryWriter();
4227
- proto.UpdateCountryResponse.serializeBinaryToWriter(this, writer);
4228
- return writer.getResultBuffer();
4229
- };
4230
-
4231
-
4232
- /**
4233
- * Serializes the given message to binary data (in protobuf wire
4234
- * format), writing to the given BinaryWriter.
4235
- * @param {!proto.UpdateCountryResponse} message
4236
- * @param {!jspb.BinaryWriter} writer
4237
- * @suppress {unusedLocalVariables} f is only used for nested messages
4238
- */
4239
- proto.UpdateCountryResponse.serializeBinaryToWriter = function(message, writer) {
4240
- var f = undefined;
4241
- f = message.getCountry();
4242
- if (f != null) {
4243
- writer.writeMessage(
4244
- 1,
4245
- f,
4246
- proto.Country.serializeBinaryToWriter
4247
- );
4248
- }
4249
- f = message.getMeta();
4250
- if (f != null) {
4251
- writer.writeMessage(
4252
- 2,
4253
- f,
4254
- prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
4255
- );
4256
- }
4257
- };
4258
-
4259
-
4260
- /**
4261
- * optional Country country = 1;
4262
- * @return {?proto.Country}
4263
- */
4264
- proto.UpdateCountryResponse.prototype.getCountry = function() {
4265
- return /** @type{?proto.Country} */ (
4266
- jspb.Message.getWrapperField(this, proto.Country, 1));
4267
- };
4268
-
4269
-
4270
- /**
4271
- * @param {?proto.Country|undefined} value
4272
- * @return {!proto.UpdateCountryResponse} returns this
4273
- */
4274
- proto.UpdateCountryResponse.prototype.setCountry = function(value) {
4275
- return jspb.Message.setWrapperField(this, 1, value);
4276
- };
4277
-
4278
-
4279
- /**
4280
- * Clears the message field making it undefined.
4281
- * @return {!proto.UpdateCountryResponse} returns this
4282
- */
4283
- proto.UpdateCountryResponse.prototype.clearCountry = function() {
4284
- return this.setCountry(undefined);
4285
- };
4286
-
4287
-
4288
- /**
4289
- * Returns whether this field is set.
4290
- * @return {boolean}
4291
- */
4292
- proto.UpdateCountryResponse.prototype.hasCountry = function() {
4293
- return jspb.Message.getField(this, 1) != null;
4294
- };
4295
-
4296
-
4297
- /**
4298
- * optional prisca.v1.global.meta.Meta meta = 2;
4299
- * @return {?proto.prisca.v1.global.meta.Meta}
4300
- */
4301
- proto.UpdateCountryResponse.prototype.getMeta = function() {
4302
- return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
4303
- jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
4304
- };
4305
-
4306
-
4307
- /**
4308
- * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
4309
- * @return {!proto.UpdateCountryResponse} returns this
4310
- */
4311
- proto.UpdateCountryResponse.prototype.setMeta = function(value) {
4312
- return jspb.Message.setWrapperField(this, 2, value);
4313
- };
4314
-
4315
-
4316
- /**
4317
- * Clears the message field making it undefined.
4318
- * @return {!proto.UpdateCountryResponse} returns this
4319
- */
4320
- proto.UpdateCountryResponse.prototype.clearMeta = function() {
4321
- return this.setMeta(undefined);
4322
- };
4323
-
4324
-
4325
- /**
4326
- * Returns whether this field is set.
4327
- * @return {boolean}
4328
- */
4329
- proto.UpdateCountryResponse.prototype.hasMeta = function() {
4330
- return jspb.Message.getField(this, 2) != null;
4331
- };
4332
-
4333
-
4334
- goog.object.extend(exports, proto);