@aldiokta/protocgen 1.1.22 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.1.22",
3
+ "version": "1.1.24",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -278,7 +278,7 @@ if (goog.DEBUG && !COMPILED) {
278
278
  * @constructor
279
279
  */
280
280
  proto.DeleteAccountAssignmentRequest = function(opt_data) {
281
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
281
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteAccountAssignmentRequest.repeatedFields_, null);
282
282
  };
283
283
  goog.inherits(proto.DeleteAccountAssignmentRequest, jspb.Message);
284
284
  if (goog.DEBUG && !COMPILED) {
@@ -299,7 +299,7 @@ if (goog.DEBUG && !COMPILED) {
299
299
  * @constructor
300
300
  */
301
301
  proto.DeleteAccountAssignmentResponse = function(opt_data) {
302
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
302
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteAccountAssignmentResponse.repeatedFields_, null);
303
303
  };
304
304
  goog.inherits(proto.DeleteAccountAssignmentResponse, jspb.Message);
305
305
  if (goog.DEBUG && !COMPILED) {
@@ -2361,6 +2361,13 @@ proto.GetListAccountAssignmentResponse.prototype.hasMeta = function() {
2361
2361
 
2362
2362
 
2363
2363
 
2364
+ /**
2365
+ * List of repeated fields within this message type.
2366
+ * @private {!Array<number>}
2367
+ * @const
2368
+ */
2369
+ proto.DeleteAccountAssignmentRequest.repeatedFields_ = [1];
2370
+
2364
2371
 
2365
2372
 
2366
2373
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2392,7 +2399,7 @@ proto.DeleteAccountAssignmentRequest.prototype.toObject = function(opt_includeIn
2392
2399
  */
2393
2400
  proto.DeleteAccountAssignmentRequest.toObject = function(includeInstance, msg) {
2394
2401
  var f, obj = {
2395
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2402
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2396
2403
  };
2397
2404
 
2398
2405
  if (includeInstance) {
@@ -2431,7 +2438,7 @@ proto.DeleteAccountAssignmentRequest.deserializeBinaryFromReader = function(msg,
2431
2438
  switch (field) {
2432
2439
  case 1:
2433
2440
  var value = /** @type {string} */ (reader.readString());
2434
- msg.setReferencesId(value);
2441
+ msg.addReferenceIds(value);
2435
2442
  break;
2436
2443
  default:
2437
2444
  reader.skipField();
@@ -2462,9 +2469,9 @@ proto.DeleteAccountAssignmentRequest.prototype.serializeBinary = function() {
2462
2469
  */
2463
2470
  proto.DeleteAccountAssignmentRequest.serializeBinaryToWriter = function(message, writer) {
2464
2471
  var f = undefined;
2465
- f = message.getReferencesId();
2472
+ f = message.getReferenceIdsList();
2466
2473
  if (f.length > 0) {
2467
- writer.writeString(
2474
+ writer.writeRepeatedString(
2468
2475
  1,
2469
2476
  f
2470
2477
  );
@@ -2473,24 +2480,50 @@ proto.DeleteAccountAssignmentRequest.serializeBinaryToWriter = function(message,
2473
2480
 
2474
2481
 
2475
2482
  /**
2476
- * optional string references_id = 1;
2477
- * @return {string}
2483
+ * repeated string reference_ids = 1;
2484
+ * @return {!Array<string>}
2478
2485
  */
2479
- proto.DeleteAccountAssignmentRequest.prototype.getReferencesId = function() {
2480
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2486
+ proto.DeleteAccountAssignmentRequest.prototype.getReferenceIdsList = function() {
2487
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2488
+ };
2489
+
2490
+
2491
+ /**
2492
+ * @param {!Array<string>} value
2493
+ * @return {!proto.DeleteAccountAssignmentRequest} returns this
2494
+ */
2495
+ proto.DeleteAccountAssignmentRequest.prototype.setReferenceIdsList = function(value) {
2496
+ return jspb.Message.setField(this, 1, value || []);
2481
2497
  };
2482
2498
 
2483
2499
 
2484
2500
  /**
2485
2501
  * @param {string} value
2502
+ * @param {number=} opt_index
2486
2503
  * @return {!proto.DeleteAccountAssignmentRequest} returns this
2487
2504
  */
2488
- proto.DeleteAccountAssignmentRequest.prototype.setReferencesId = function(value) {
2489
- return jspb.Message.setProto3StringField(this, 1, value);
2505
+ proto.DeleteAccountAssignmentRequest.prototype.addReferenceIds = function(value, opt_index) {
2506
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2507
+ };
2508
+
2509
+
2510
+ /**
2511
+ * Clears the list making it empty but non-null.
2512
+ * @return {!proto.DeleteAccountAssignmentRequest} returns this
2513
+ */
2514
+ proto.DeleteAccountAssignmentRequest.prototype.clearReferenceIdsList = function() {
2515
+ return this.setReferenceIdsList([]);
2490
2516
  };
2491
2517
 
2492
2518
 
2493
2519
 
2520
+ /**
2521
+ * List of repeated fields within this message type.
2522
+ * @private {!Array<number>}
2523
+ * @const
2524
+ */
2525
+ proto.DeleteAccountAssignmentResponse.repeatedFields_ = [1];
2526
+
2494
2527
 
2495
2528
 
2496
2529
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2522,7 +2555,7 @@ proto.DeleteAccountAssignmentResponse.prototype.toObject = function(opt_includeI
2522
2555
  */
2523
2556
  proto.DeleteAccountAssignmentResponse.toObject = function(includeInstance, msg) {
2524
2557
  var f, obj = {
2525
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2558
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2526
2559
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2527
2560
  };
2528
2561
 
@@ -2562,7 +2595,7 @@ proto.DeleteAccountAssignmentResponse.deserializeBinaryFromReader = function(msg
2562
2595
  switch (field) {
2563
2596
  case 1:
2564
2597
  var value = /** @type {string} */ (reader.readString());
2565
- msg.setReferencesId(value);
2598
+ msg.addReferenceIds(value);
2566
2599
  break;
2567
2600
  case 2:
2568
2601
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -2598,9 +2631,9 @@ proto.DeleteAccountAssignmentResponse.prototype.serializeBinary = function() {
2598
2631
  */
2599
2632
  proto.DeleteAccountAssignmentResponse.serializeBinaryToWriter = function(message, writer) {
2600
2633
  var f = undefined;
2601
- f = message.getReferencesId();
2634
+ f = message.getReferenceIdsList();
2602
2635
  if (f.length > 0) {
2603
- writer.writeString(
2636
+ writer.writeRepeatedString(
2604
2637
  1,
2605
2638
  f
2606
2639
  );
@@ -2617,20 +2650,39 @@ proto.DeleteAccountAssignmentResponse.serializeBinaryToWriter = function(message
2617
2650
 
2618
2651
 
2619
2652
  /**
2620
- * optional string references_id = 1;
2621
- * @return {string}
2653
+ * repeated string reference_ids = 1;
2654
+ * @return {!Array<string>}
2622
2655
  */
2623
- proto.DeleteAccountAssignmentResponse.prototype.getReferencesId = function() {
2624
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2656
+ proto.DeleteAccountAssignmentResponse.prototype.getReferenceIdsList = function() {
2657
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2658
+ };
2659
+
2660
+
2661
+ /**
2662
+ * @param {!Array<string>} value
2663
+ * @return {!proto.DeleteAccountAssignmentResponse} returns this
2664
+ */
2665
+ proto.DeleteAccountAssignmentResponse.prototype.setReferenceIdsList = function(value) {
2666
+ return jspb.Message.setField(this, 1, value || []);
2625
2667
  };
2626
2668
 
2627
2669
 
2628
2670
  /**
2629
2671
  * @param {string} value
2672
+ * @param {number=} opt_index
2630
2673
  * @return {!proto.DeleteAccountAssignmentResponse} returns this
2631
2674
  */
2632
- proto.DeleteAccountAssignmentResponse.prototype.setReferencesId = function(value) {
2633
- return jspb.Message.setProto3StringField(this, 1, value);
2675
+ proto.DeleteAccountAssignmentResponse.prototype.addReferenceIds = function(value, opt_index) {
2676
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2677
+ };
2678
+
2679
+
2680
+ /**
2681
+ * Clears the list making it empty but non-null.
2682
+ * @return {!proto.DeleteAccountAssignmentResponse} returns this
2683
+ */
2684
+ proto.DeleteAccountAssignmentResponse.prototype.clearReferenceIdsList = function() {
2685
+ return this.setReferenceIdsList([]);
2634
2686
  };
2635
2687
 
2636
2688
 
@@ -280,7 +280,7 @@ if (goog.DEBUG && !COMPILED) {
280
280
  * @constructor
281
281
  */
282
282
  proto.DeleteAccountGroupRequest = function(opt_data) {
283
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
283
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteAccountGroupRequest.repeatedFields_, null);
284
284
  };
285
285
  goog.inherits(proto.DeleteAccountGroupRequest, jspb.Message);
286
286
  if (goog.DEBUG && !COMPILED) {
@@ -301,7 +301,7 @@ if (goog.DEBUG && !COMPILED) {
301
301
  * @constructor
302
302
  */
303
303
  proto.DeleteAccountGroupResponse = function(opt_data) {
304
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
304
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteAccountGroupResponse.repeatedFields_, null);
305
305
  };
306
306
  goog.inherits(proto.DeleteAccountGroupResponse, jspb.Message);
307
307
  if (goog.DEBUG && !COMPILED) {
@@ -2624,6 +2624,13 @@ proto.GetListAccountGroupResponse.prototype.hasMeta = function() {
2624
2624
 
2625
2625
 
2626
2626
 
2627
+ /**
2628
+ * List of repeated fields within this message type.
2629
+ * @private {!Array<number>}
2630
+ * @const
2631
+ */
2632
+ proto.DeleteAccountGroupRequest.repeatedFields_ = [1];
2633
+
2627
2634
 
2628
2635
 
2629
2636
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2655,7 +2662,7 @@ proto.DeleteAccountGroupRequest.prototype.toObject = function(opt_includeInstanc
2655
2662
  */
2656
2663
  proto.DeleteAccountGroupRequest.toObject = function(includeInstance, msg) {
2657
2664
  var f, obj = {
2658
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
2665
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2659
2666
  };
2660
2667
 
2661
2668
  if (includeInstance) {
@@ -2694,7 +2701,7 @@ proto.DeleteAccountGroupRequest.deserializeBinaryFromReader = function(msg, read
2694
2701
  switch (field) {
2695
2702
  case 1:
2696
2703
  var value = /** @type {string} */ (reader.readString());
2697
- msg.setReferencesId(value);
2704
+ msg.addReferenceIds(value);
2698
2705
  break;
2699
2706
  default:
2700
2707
  reader.skipField();
@@ -2725,9 +2732,9 @@ proto.DeleteAccountGroupRequest.prototype.serializeBinary = function() {
2725
2732
  */
2726
2733
  proto.DeleteAccountGroupRequest.serializeBinaryToWriter = function(message, writer) {
2727
2734
  var f = undefined;
2728
- f = message.getReferencesId();
2735
+ f = message.getReferenceIdsList();
2729
2736
  if (f.length > 0) {
2730
- writer.writeString(
2737
+ writer.writeRepeatedString(
2731
2738
  1,
2732
2739
  f
2733
2740
  );
@@ -2736,24 +2743,50 @@ proto.DeleteAccountGroupRequest.serializeBinaryToWriter = function(message, writ
2736
2743
 
2737
2744
 
2738
2745
  /**
2739
- * optional string references_id = 1;
2740
- * @return {string}
2746
+ * repeated string reference_ids = 1;
2747
+ * @return {!Array<string>}
2741
2748
  */
2742
- proto.DeleteAccountGroupRequest.prototype.getReferencesId = function() {
2743
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2749
+ proto.DeleteAccountGroupRequest.prototype.getReferenceIdsList = function() {
2750
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * @param {!Array<string>} value
2756
+ * @return {!proto.DeleteAccountGroupRequest} returns this
2757
+ */
2758
+ proto.DeleteAccountGroupRequest.prototype.setReferenceIdsList = function(value) {
2759
+ return jspb.Message.setField(this, 1, value || []);
2744
2760
  };
2745
2761
 
2746
2762
 
2747
2763
  /**
2748
2764
  * @param {string} value
2765
+ * @param {number=} opt_index
2749
2766
  * @return {!proto.DeleteAccountGroupRequest} returns this
2750
2767
  */
2751
- proto.DeleteAccountGroupRequest.prototype.setReferencesId = function(value) {
2752
- return jspb.Message.setProto3StringField(this, 1, value);
2768
+ proto.DeleteAccountGroupRequest.prototype.addReferenceIds = function(value, opt_index) {
2769
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2770
+ };
2771
+
2772
+
2773
+ /**
2774
+ * Clears the list making it empty but non-null.
2775
+ * @return {!proto.DeleteAccountGroupRequest} returns this
2776
+ */
2777
+ proto.DeleteAccountGroupRequest.prototype.clearReferenceIdsList = function() {
2778
+ return this.setReferenceIdsList([]);
2753
2779
  };
2754
2780
 
2755
2781
 
2756
2782
 
2783
+ /**
2784
+ * List of repeated fields within this message type.
2785
+ * @private {!Array<number>}
2786
+ * @const
2787
+ */
2788
+ proto.DeleteAccountGroupResponse.repeatedFields_ = [1];
2789
+
2757
2790
 
2758
2791
 
2759
2792
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2785,7 +2818,7 @@ proto.DeleteAccountGroupResponse.prototype.toObject = function(opt_includeInstan
2785
2818
  */
2786
2819
  proto.DeleteAccountGroupResponse.toObject = function(includeInstance, msg) {
2787
2820
  var f, obj = {
2788
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2821
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2789
2822
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2790
2823
  };
2791
2824
 
@@ -2825,7 +2858,7 @@ proto.DeleteAccountGroupResponse.deserializeBinaryFromReader = function(msg, rea
2825
2858
  switch (field) {
2826
2859
  case 1:
2827
2860
  var value = /** @type {string} */ (reader.readString());
2828
- msg.setReferencesId(value);
2861
+ msg.addReferenceIds(value);
2829
2862
  break;
2830
2863
  case 2:
2831
2864
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -2861,9 +2894,9 @@ proto.DeleteAccountGroupResponse.prototype.serializeBinary = function() {
2861
2894
  */
2862
2895
  proto.DeleteAccountGroupResponse.serializeBinaryToWriter = function(message, writer) {
2863
2896
  var f = undefined;
2864
- f = message.getReferencesId();
2897
+ f = message.getReferenceIdsList();
2865
2898
  if (f.length > 0) {
2866
- writer.writeString(
2899
+ writer.writeRepeatedString(
2867
2900
  1,
2868
2901
  f
2869
2902
  );
@@ -2880,20 +2913,39 @@ proto.DeleteAccountGroupResponse.serializeBinaryToWriter = function(message, wri
2880
2913
 
2881
2914
 
2882
2915
  /**
2883
- * optional string references_id = 1;
2884
- * @return {string}
2916
+ * repeated string reference_ids = 1;
2917
+ * @return {!Array<string>}
2885
2918
  */
2886
- proto.DeleteAccountGroupResponse.prototype.getReferencesId = function() {
2887
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2919
+ proto.DeleteAccountGroupResponse.prototype.getReferenceIdsList = function() {
2920
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * @param {!Array<string>} value
2926
+ * @return {!proto.DeleteAccountGroupResponse} returns this
2927
+ */
2928
+ proto.DeleteAccountGroupResponse.prototype.setReferenceIdsList = function(value) {
2929
+ return jspb.Message.setField(this, 1, value || []);
2888
2930
  };
2889
2931
 
2890
2932
 
2891
2933
  /**
2892
2934
  * @param {string} value
2935
+ * @param {number=} opt_index
2893
2936
  * @return {!proto.DeleteAccountGroupResponse} returns this
2894
2937
  */
2895
- proto.DeleteAccountGroupResponse.prototype.setReferencesId = function(value) {
2896
- return jspb.Message.setProto3StringField(this, 1, value);
2938
+ proto.DeleteAccountGroupResponse.prototype.addReferenceIds = function(value, opt_index) {
2939
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2940
+ };
2941
+
2942
+
2943
+ /**
2944
+ * Clears the list making it empty but non-null.
2945
+ * @return {!proto.DeleteAccountGroupResponse} returns this
2946
+ */
2947
+ proto.DeleteAccountGroupResponse.prototype.clearReferenceIdsList = function() {
2948
+ return this.setReferenceIdsList([]);
2897
2949
  };
2898
2950
 
2899
2951
 
@@ -100,6 +100,28 @@ function deserialize_RequestPO(buffer_arg) {
100
100
  return prisca_v1_bidding_bidding_pb.RequestPO.deserializeBinary(new Uint8Array(buffer_arg));
101
101
  }
102
102
 
103
+ function serialize_RequestUpdateFileBidding(arg) {
104
+ if (!(arg instanceof prisca_v1_bidding_bidding_pb.RequestUpdateFileBidding)) {
105
+ throw new Error('Expected argument of type RequestUpdateFileBidding');
106
+ }
107
+ return Buffer.from(arg.serializeBinary());
108
+ }
109
+
110
+ function deserialize_RequestUpdateFileBidding(buffer_arg) {
111
+ return prisca_v1_bidding_bidding_pb.RequestUpdateFileBidding.deserializeBinary(new Uint8Array(buffer_arg));
112
+ }
113
+
114
+ function serialize_ResUpdateFileBidding(arg) {
115
+ if (!(arg instanceof prisca_v1_bidding_bidding_pb.ResUpdateFileBidding)) {
116
+ throw new Error('Expected argument of type ResUpdateFileBidding');
117
+ }
118
+ return Buffer.from(arg.serializeBinary());
119
+ }
120
+
121
+ function deserialize_ResUpdateFileBidding(buffer_arg) {
122
+ return prisca_v1_bidding_bidding_pb.ResUpdateFileBidding.deserializeBinary(new Uint8Array(buffer_arg));
123
+ }
124
+
103
125
  function serialize_ResponseAddVendorBidding(arg) {
104
126
  if (!(arg instanceof prisca_v1_bidding_bidding_pb.ResponseAddVendorBidding)) {
105
127
  throw new Error('Expected argument of type ResponseAddVendorBidding');
@@ -256,7 +278,17 @@ var BiddingServiceService = exports.BiddingServiceService = {
256
278
  responseSerialize: serialize_ResponseAddVendorBidding,
257
279
  responseDeserialize: deserialize_ResponseAddVendorBidding,
258
280
  },
259
- // rpc SetValuation (ValuationReq) returns (ValuationRes);
281
+ updateFileBidding: {
282
+ path: '/BiddingService/UpdateFileBidding',
283
+ requestStream: false,
284
+ responseStream: false,
285
+ requestType: prisca_v1_bidding_bidding_pb.RequestUpdateFileBidding,
286
+ responseType: prisca_v1_bidding_bidding_pb.ResUpdateFileBidding,
287
+ requestSerialize: serialize_RequestUpdateFileBidding,
288
+ requestDeserialize: deserialize_RequestUpdateFileBidding,
289
+ responseSerialize: serialize_ResUpdateFileBidding,
290
+ responseDeserialize: deserialize_ResUpdateFileBidding,
291
+ },
260
292
  };
261
293
 
262
294
  exports.BiddingServiceClient = grpc.makeGenericClientConstructor(BiddingServiceService, 'BiddingService');