@aldiokta/protocgen 1.1.27 → 1.1.28

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 (26) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_grpc_pb.js +33 -0
  3. package/prisca/v1/bidding/bidding_pb.js +598 -37
  4. package/prisca/v1/core/auth/auth_grpc_pb.js +1 -0
  5. package/prisca/v1/core/auth/auth_pb.js +7 -217
  6. package/prisca/v1/core/file_upload/file_upload_pb.js +93 -3
  7. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -30
  8. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +438 -46
  9. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +31 -1
  10. package/prisca/v1/core/location/location_pb.js +446 -57
  11. package/prisca/v1/core/price_condition/price_condition_pb.js +62 -2
  12. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +234 -168
  13. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +1959 -1777
  14. package/prisca/v1/delivery_order/delivery_order_pb.js +21 -21
  15. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
  16. package/prisca/v1/good_receipt/good_receipt_pb.js +277 -23
  17. package/prisca/v1/invoice/invoice_grpc_pb.js +174 -0
  18. package/prisca/v1/invoice/invoice_pb.js +4398 -0
  19. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +11 -0
  20. package/prisca/v1/purchase_order/purchase_order_pb.js +21 -21
  21. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +74 -74
  22. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +55 -177
  23. package/prisca/v1/quotation/quotation_pb.js +118 -28
  24. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
  25. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +413 -28
  26. package/prisca/v1/vendor_domain/vendor_domain_pb.js +375 -225
@@ -2337,7 +2337,8 @@ proto.GetCountryRequest.prototype.toObject = function(opt_includeInstance) {
2337
2337
  */
2338
2338
  proto.GetCountryRequest.toObject = function(includeInstance, msg) {
2339
2339
  var f, obj = {
2340
-
2340
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2341
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2341
2342
  };
2342
2343
 
2343
2344
  if (includeInstance) {
@@ -2374,6 +2375,16 @@ proto.GetCountryRequest.deserializeBinaryFromReader = function(msg, reader) {
2374
2375
  }
2375
2376
  var field = reader.getFieldNumber();
2376
2377
  switch (field) {
2378
+ case 1:
2379
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2380
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2381
+ msg.setPagination(value);
2382
+ break;
2383
+ case 2:
2384
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2385
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2386
+ msg.setQuery(value);
2387
+ break;
2377
2388
  default:
2378
2389
  reader.skipField();
2379
2390
  break;
@@ -2403,6 +2414,96 @@ proto.GetCountryRequest.prototype.serializeBinary = function() {
2403
2414
  */
2404
2415
  proto.GetCountryRequest.serializeBinaryToWriter = function(message, writer) {
2405
2416
  var f = undefined;
2417
+ f = message.getPagination();
2418
+ if (f != null) {
2419
+ writer.writeMessage(
2420
+ 1,
2421
+ f,
2422
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2423
+ );
2424
+ }
2425
+ f = message.getQuery();
2426
+ if (f != null) {
2427
+ writer.writeMessage(
2428
+ 2,
2429
+ f,
2430
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2431
+ );
2432
+ }
2433
+ };
2434
+
2435
+
2436
+ /**
2437
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2438
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2439
+ */
2440
+ proto.GetCountryRequest.prototype.getPagination = function() {
2441
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2442
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2443
+ };
2444
+
2445
+
2446
+ /**
2447
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2448
+ * @return {!proto.GetCountryRequest} returns this
2449
+ */
2450
+ proto.GetCountryRequest.prototype.setPagination = function(value) {
2451
+ return jspb.Message.setWrapperField(this, 1, value);
2452
+ };
2453
+
2454
+
2455
+ /**
2456
+ * Clears the message field making it undefined.
2457
+ * @return {!proto.GetCountryRequest} returns this
2458
+ */
2459
+ proto.GetCountryRequest.prototype.clearPagination = function() {
2460
+ return this.setPagination(undefined);
2461
+ };
2462
+
2463
+
2464
+ /**
2465
+ * Returns whether this field is set.
2466
+ * @return {boolean}
2467
+ */
2468
+ proto.GetCountryRequest.prototype.hasPagination = function() {
2469
+ return jspb.Message.getField(this, 1) != null;
2470
+ };
2471
+
2472
+
2473
+ /**
2474
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2475
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2476
+ */
2477
+ proto.GetCountryRequest.prototype.getQuery = function() {
2478
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2479
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2480
+ };
2481
+
2482
+
2483
+ /**
2484
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2485
+ * @return {!proto.GetCountryRequest} returns this
2486
+ */
2487
+ proto.GetCountryRequest.prototype.setQuery = function(value) {
2488
+ return jspb.Message.setWrapperField(this, 2, value);
2489
+ };
2490
+
2491
+
2492
+ /**
2493
+ * Clears the message field making it undefined.
2494
+ * @return {!proto.GetCountryRequest} returns this
2495
+ */
2496
+ proto.GetCountryRequest.prototype.clearQuery = function() {
2497
+ return this.setQuery(undefined);
2498
+ };
2499
+
2500
+
2501
+ /**
2502
+ * Returns whether this field is set.
2503
+ * @return {boolean}
2504
+ */
2505
+ proto.GetCountryRequest.prototype.hasQuery = function() {
2506
+ return jspb.Message.getField(this, 2) != null;
2406
2507
  };
2407
2508
 
2408
2509
 
@@ -2749,7 +2850,8 @@ proto.GetProvinceRequest.prototype.toObject = function(opt_includeInstance) {
2749
2850
  */
2750
2851
  proto.GetProvinceRequest.toObject = function(includeInstance, msg) {
2751
2852
  var f, obj = {
2752
- countryReferencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2853
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
2854
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2753
2855
  };
2754
2856
 
2755
2857
  if (includeInstance) {
@@ -2787,8 +2889,14 @@ proto.GetProvinceRequest.deserializeBinaryFromReader = function(msg, reader) {
2787
2889
  var field = reader.getFieldNumber();
2788
2890
  switch (field) {
2789
2891
  case 1:
2790
- var value = /** @type {string} */ (reader.readString());
2791
- msg.setCountryReferencesId(value);
2892
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
2893
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
2894
+ msg.setPagination(value);
2895
+ break;
2896
+ case 2:
2897
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
2898
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
2899
+ msg.setQuery(value);
2792
2900
  break;
2793
2901
  default:
2794
2902
  reader.skipField();
@@ -2819,31 +2927,96 @@ proto.GetProvinceRequest.prototype.serializeBinary = function() {
2819
2927
  */
2820
2928
  proto.GetProvinceRequest.serializeBinaryToWriter = function(message, writer) {
2821
2929
  var f = undefined;
2822
- f = message.getCountryReferencesId();
2823
- if (f.length > 0) {
2824
- writer.writeString(
2930
+ f = message.getPagination();
2931
+ if (f != null) {
2932
+ writer.writeMessage(
2825
2933
  1,
2826
- f
2934
+ f,
2935
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
2936
+ );
2937
+ }
2938
+ f = message.getQuery();
2939
+ if (f != null) {
2940
+ writer.writeMessage(
2941
+ 2,
2942
+ f,
2943
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2827
2944
  );
2828
2945
  }
2829
2946
  };
2830
2947
 
2831
2948
 
2832
2949
  /**
2833
- * optional string country_references_id = 1;
2834
- * @return {string}
2950
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
2951
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2835
2952
  */
2836
- proto.GetProvinceRequest.prototype.getCountryReferencesId = function() {
2837
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2953
+ proto.GetProvinceRequest.prototype.getPagination = function() {
2954
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
2955
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2838
2956
  };
2839
2957
 
2840
2958
 
2841
2959
  /**
2842
- * @param {string} value
2960
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
2961
+ * @return {!proto.GetProvinceRequest} returns this
2962
+ */
2963
+ proto.GetProvinceRequest.prototype.setPagination = function(value) {
2964
+ return jspb.Message.setWrapperField(this, 1, value);
2965
+ };
2966
+
2967
+
2968
+ /**
2969
+ * Clears the message field making it undefined.
2843
2970
  * @return {!proto.GetProvinceRequest} returns this
2844
2971
  */
2845
- proto.GetProvinceRequest.prototype.setCountryReferencesId = function(value) {
2846
- return jspb.Message.setProto3StringField(this, 1, value);
2972
+ proto.GetProvinceRequest.prototype.clearPagination = function() {
2973
+ return this.setPagination(undefined);
2974
+ };
2975
+
2976
+
2977
+ /**
2978
+ * Returns whether this field is set.
2979
+ * @return {boolean}
2980
+ */
2981
+ proto.GetProvinceRequest.prototype.hasPagination = function() {
2982
+ return jspb.Message.getField(this, 1) != null;
2983
+ };
2984
+
2985
+
2986
+ /**
2987
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
2988
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
2989
+ */
2990
+ proto.GetProvinceRequest.prototype.getQuery = function() {
2991
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
2992
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
2998
+ * @return {!proto.GetProvinceRequest} returns this
2999
+ */
3000
+ proto.GetProvinceRequest.prototype.setQuery = function(value) {
3001
+ return jspb.Message.setWrapperField(this, 2, value);
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * Clears the message field making it undefined.
3007
+ * @return {!proto.GetProvinceRequest} returns this
3008
+ */
3009
+ proto.GetProvinceRequest.prototype.clearQuery = function() {
3010
+ return this.setQuery(undefined);
3011
+ };
3012
+
3013
+
3014
+ /**
3015
+ * Returns whether this field is set.
3016
+ * @return {boolean}
3017
+ */
3018
+ proto.GetProvinceRequest.prototype.hasQuery = function() {
3019
+ return jspb.Message.getField(this, 2) != null;
2847
3020
  };
2848
3021
 
2849
3022
 
@@ -2879,7 +3052,8 @@ proto.GetCityRequest.prototype.toObject = function(opt_includeInstance) {
2879
3052
  */
2880
3053
  proto.GetCityRequest.toObject = function(includeInstance, msg) {
2881
3054
  var f, obj = {
2882
- provinceReferencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
3055
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3056
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
2883
3057
  };
2884
3058
 
2885
3059
  if (includeInstance) {
@@ -2917,8 +3091,14 @@ proto.GetCityRequest.deserializeBinaryFromReader = function(msg, reader) {
2917
3091
  var field = reader.getFieldNumber();
2918
3092
  switch (field) {
2919
3093
  case 1:
2920
- var value = /** @type {string} */ (reader.readString());
2921
- msg.setProvinceReferencesId(value);
3094
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3095
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3096
+ msg.setPagination(value);
3097
+ break;
3098
+ case 2:
3099
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3100
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3101
+ msg.setQuery(value);
2922
3102
  break;
2923
3103
  default:
2924
3104
  reader.skipField();
@@ -2949,31 +3129,96 @@ proto.GetCityRequest.prototype.serializeBinary = function() {
2949
3129
  */
2950
3130
  proto.GetCityRequest.serializeBinaryToWriter = function(message, writer) {
2951
3131
  var f = undefined;
2952
- f = message.getProvinceReferencesId();
2953
- if (f.length > 0) {
2954
- writer.writeString(
3132
+ f = message.getPagination();
3133
+ if (f != null) {
3134
+ writer.writeMessage(
2955
3135
  1,
2956
- f
3136
+ f,
3137
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3138
+ );
3139
+ }
3140
+ f = message.getQuery();
3141
+ if (f != null) {
3142
+ writer.writeMessage(
3143
+ 2,
3144
+ f,
3145
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
2957
3146
  );
2958
3147
  }
2959
3148
  };
2960
3149
 
2961
3150
 
2962
3151
  /**
2963
- * optional string province_references_id = 1;
2964
- * @return {string}
3152
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3153
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
2965
3154
  */
2966
- proto.GetCityRequest.prototype.getProvinceReferencesId = function() {
2967
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3155
+ proto.GetCityRequest.prototype.getPagination = function() {
3156
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3157
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
2968
3158
  };
2969
3159
 
2970
3160
 
2971
3161
  /**
2972
- * @param {string} value
3162
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3163
+ * @return {!proto.GetCityRequest} returns this
3164
+ */
3165
+ proto.GetCityRequest.prototype.setPagination = function(value) {
3166
+ return jspb.Message.setWrapperField(this, 1, value);
3167
+ };
3168
+
3169
+
3170
+ /**
3171
+ * Clears the message field making it undefined.
2973
3172
  * @return {!proto.GetCityRequest} returns this
2974
3173
  */
2975
- proto.GetCityRequest.prototype.setProvinceReferencesId = function(value) {
2976
- return jspb.Message.setProto3StringField(this, 1, value);
3174
+ proto.GetCityRequest.prototype.clearPagination = function() {
3175
+ return this.setPagination(undefined);
3176
+ };
3177
+
3178
+
3179
+ /**
3180
+ * Returns whether this field is set.
3181
+ * @return {boolean}
3182
+ */
3183
+ proto.GetCityRequest.prototype.hasPagination = function() {
3184
+ return jspb.Message.getField(this, 1) != null;
3185
+ };
3186
+
3187
+
3188
+ /**
3189
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
3190
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
3191
+ */
3192
+ proto.GetCityRequest.prototype.getQuery = function() {
3193
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3194
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3195
+ };
3196
+
3197
+
3198
+ /**
3199
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3200
+ * @return {!proto.GetCityRequest} returns this
3201
+ */
3202
+ proto.GetCityRequest.prototype.setQuery = function(value) {
3203
+ return jspb.Message.setWrapperField(this, 2, value);
3204
+ };
3205
+
3206
+
3207
+ /**
3208
+ * Clears the message field making it undefined.
3209
+ * @return {!proto.GetCityRequest} returns this
3210
+ */
3211
+ proto.GetCityRequest.prototype.clearQuery = function() {
3212
+ return this.setQuery(undefined);
3213
+ };
3214
+
3215
+
3216
+ /**
3217
+ * Returns whether this field is set.
3218
+ * @return {boolean}
3219
+ */
3220
+ proto.GetCityRequest.prototype.hasQuery = function() {
3221
+ return jspb.Message.getField(this, 2) != null;
2977
3222
  };
2978
3223
 
2979
3224
 
@@ -3009,7 +3254,8 @@ proto.GetDistrictRequest.prototype.toObject = function(opt_includeInstance) {
3009
3254
  */
3010
3255
  proto.GetDistrictRequest.toObject = function(includeInstance, msg) {
3011
3256
  var f, obj = {
3012
- cityReferencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
3257
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3258
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3013
3259
  };
3014
3260
 
3015
3261
  if (includeInstance) {
@@ -3047,8 +3293,14 @@ proto.GetDistrictRequest.deserializeBinaryFromReader = function(msg, reader) {
3047
3293
  var field = reader.getFieldNumber();
3048
3294
  switch (field) {
3049
3295
  case 1:
3050
- var value = /** @type {string} */ (reader.readString());
3051
- msg.setCityReferencesId(value);
3296
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3297
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3298
+ msg.setPagination(value);
3299
+ break;
3300
+ case 2:
3301
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3302
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3303
+ msg.setQuery(value);
3052
3304
  break;
3053
3305
  default:
3054
3306
  reader.skipField();
@@ -3079,31 +3331,96 @@ proto.GetDistrictRequest.prototype.serializeBinary = function() {
3079
3331
  */
3080
3332
  proto.GetDistrictRequest.serializeBinaryToWriter = function(message, writer) {
3081
3333
  var f = undefined;
3082
- f = message.getCityReferencesId();
3083
- if (f.length > 0) {
3084
- writer.writeString(
3334
+ f = message.getPagination();
3335
+ if (f != null) {
3336
+ writer.writeMessage(
3085
3337
  1,
3086
- f
3338
+ f,
3339
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3340
+ );
3341
+ }
3342
+ f = message.getQuery();
3343
+ if (f != null) {
3344
+ writer.writeMessage(
3345
+ 2,
3346
+ f,
3347
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3087
3348
  );
3088
3349
  }
3089
3350
  };
3090
3351
 
3091
3352
 
3092
3353
  /**
3093
- * optional string city_references_id = 1;
3094
- * @return {string}
3354
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3355
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3095
3356
  */
3096
- proto.GetDistrictRequest.prototype.getCityReferencesId = function() {
3097
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3357
+ proto.GetDistrictRequest.prototype.getPagination = function() {
3358
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3359
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3098
3360
  };
3099
3361
 
3100
3362
 
3101
3363
  /**
3102
- * @param {string} value
3364
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3365
+ * @return {!proto.GetDistrictRequest} returns this
3366
+ */
3367
+ proto.GetDistrictRequest.prototype.setPagination = function(value) {
3368
+ return jspb.Message.setWrapperField(this, 1, value);
3369
+ };
3370
+
3371
+
3372
+ /**
3373
+ * Clears the message field making it undefined.
3103
3374
  * @return {!proto.GetDistrictRequest} returns this
3104
3375
  */
3105
- proto.GetDistrictRequest.prototype.setCityReferencesId = function(value) {
3106
- return jspb.Message.setProto3StringField(this, 1, value);
3376
+ proto.GetDistrictRequest.prototype.clearPagination = function() {
3377
+ return this.setPagination(undefined);
3378
+ };
3379
+
3380
+
3381
+ /**
3382
+ * Returns whether this field is set.
3383
+ * @return {boolean}
3384
+ */
3385
+ proto.GetDistrictRequest.prototype.hasPagination = function() {
3386
+ return jspb.Message.getField(this, 1) != null;
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
3392
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
3393
+ */
3394
+ proto.GetDistrictRequest.prototype.getQuery = function() {
3395
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3396
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3397
+ };
3398
+
3399
+
3400
+ /**
3401
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3402
+ * @return {!proto.GetDistrictRequest} returns this
3403
+ */
3404
+ proto.GetDistrictRequest.prototype.setQuery = function(value) {
3405
+ return jspb.Message.setWrapperField(this, 2, value);
3406
+ };
3407
+
3408
+
3409
+ /**
3410
+ * Clears the message field making it undefined.
3411
+ * @return {!proto.GetDistrictRequest} returns this
3412
+ */
3413
+ proto.GetDistrictRequest.prototype.clearQuery = function() {
3414
+ return this.setQuery(undefined);
3415
+ };
3416
+
3417
+
3418
+ /**
3419
+ * Returns whether this field is set.
3420
+ * @return {boolean}
3421
+ */
3422
+ proto.GetDistrictRequest.prototype.hasQuery = function() {
3423
+ return jspb.Message.getField(this, 2) != null;
3107
3424
  };
3108
3425
 
3109
3426
 
@@ -3139,7 +3456,8 @@ proto.GetVillageRequest.prototype.toObject = function(opt_includeInstance) {
3139
3456
  */
3140
3457
  proto.GetVillageRequest.toObject = function(includeInstance, msg) {
3141
3458
  var f, obj = {
3142
- districtReferencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
3459
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
3460
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
3143
3461
  };
3144
3462
 
3145
3463
  if (includeInstance) {
@@ -3177,8 +3495,14 @@ proto.GetVillageRequest.deserializeBinaryFromReader = function(msg, reader) {
3177
3495
  var field = reader.getFieldNumber();
3178
3496
  switch (field) {
3179
3497
  case 1:
3180
- var value = /** @type {string} */ (reader.readString());
3181
- msg.setDistrictReferencesId(value);
3498
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
3499
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
3500
+ msg.setPagination(value);
3501
+ break;
3502
+ case 2:
3503
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
3504
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
3505
+ msg.setQuery(value);
3182
3506
  break;
3183
3507
  default:
3184
3508
  reader.skipField();
@@ -3209,31 +3533,96 @@ proto.GetVillageRequest.prototype.serializeBinary = function() {
3209
3533
  */
3210
3534
  proto.GetVillageRequest.serializeBinaryToWriter = function(message, writer) {
3211
3535
  var f = undefined;
3212
- f = message.getDistrictReferencesId();
3213
- if (f.length > 0) {
3214
- writer.writeString(
3536
+ f = message.getPagination();
3537
+ if (f != null) {
3538
+ writer.writeMessage(
3215
3539
  1,
3216
- f
3540
+ f,
3541
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
3542
+ );
3543
+ }
3544
+ f = message.getQuery();
3545
+ if (f != null) {
3546
+ writer.writeMessage(
3547
+ 2,
3548
+ f,
3549
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
3217
3550
  );
3218
3551
  }
3219
3552
  };
3220
3553
 
3221
3554
 
3222
3555
  /**
3223
- * optional string district_references_id = 1;
3224
- * @return {string}
3556
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
3557
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
3225
3558
  */
3226
- proto.GetVillageRequest.prototype.getDistrictReferencesId = function() {
3227
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3559
+ proto.GetVillageRequest.prototype.getPagination = function() {
3560
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
3561
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
3228
3562
  };
3229
3563
 
3230
3564
 
3231
3565
  /**
3232
- * @param {string} value
3566
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
3567
+ * @return {!proto.GetVillageRequest} returns this
3568
+ */
3569
+ proto.GetVillageRequest.prototype.setPagination = function(value) {
3570
+ return jspb.Message.setWrapperField(this, 1, value);
3571
+ };
3572
+
3573
+
3574
+ /**
3575
+ * Clears the message field making it undefined.
3233
3576
  * @return {!proto.GetVillageRequest} returns this
3234
3577
  */
3235
- proto.GetVillageRequest.prototype.setDistrictReferencesId = function(value) {
3236
- return jspb.Message.setProto3StringField(this, 1, value);
3578
+ proto.GetVillageRequest.prototype.clearPagination = function() {
3579
+ return this.setPagination(undefined);
3580
+ };
3581
+
3582
+
3583
+ /**
3584
+ * Returns whether this field is set.
3585
+ * @return {boolean}
3586
+ */
3587
+ proto.GetVillageRequest.prototype.hasPagination = function() {
3588
+ return jspb.Message.getField(this, 1) != null;
3589
+ };
3590
+
3591
+
3592
+ /**
3593
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
3594
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
3595
+ */
3596
+ proto.GetVillageRequest.prototype.getQuery = function() {
3597
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
3598
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
3599
+ };
3600
+
3601
+
3602
+ /**
3603
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
3604
+ * @return {!proto.GetVillageRequest} returns this
3605
+ */
3606
+ proto.GetVillageRequest.prototype.setQuery = function(value) {
3607
+ return jspb.Message.setWrapperField(this, 2, value);
3608
+ };
3609
+
3610
+
3611
+ /**
3612
+ * Clears the message field making it undefined.
3613
+ * @return {!proto.GetVillageRequest} returns this
3614
+ */
3615
+ proto.GetVillageRequest.prototype.clearQuery = function() {
3616
+ return this.setQuery(undefined);
3617
+ };
3618
+
3619
+
3620
+ /**
3621
+ * Returns whether this field is set.
3622
+ * @return {boolean}
3623
+ */
3624
+ proto.GetVillageRequest.prototype.hasQuery = function() {
3625
+ return jspb.Message.getField(this, 2) != null;
3237
3626
  };
3238
3627
 
3239
3628