@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.
@@ -286,7 +286,7 @@ if (goog.DEBUG && !COMPILED) {
286
286
  * @constructor
287
287
  */
288
288
  proto.DeleteGeneralLedgerAccountRequest = function(opt_data) {
289
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
289
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteGeneralLedgerAccountRequest.repeatedFields_, null);
290
290
  };
291
291
  goog.inherits(proto.DeleteGeneralLedgerAccountRequest, jspb.Message);
292
292
  if (goog.DEBUG && !COMPILED) {
@@ -307,7 +307,7 @@ if (goog.DEBUG && !COMPILED) {
307
307
  * @constructor
308
308
  */
309
309
  proto.DeleteGeneralLedgerAccountResponse = function(opt_data) {
310
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
310
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteGeneralLedgerAccountResponse.repeatedFields_, null);
311
311
  };
312
312
  goog.inherits(proto.DeleteGeneralLedgerAccountResponse, jspb.Message);
313
313
  if (goog.DEBUG && !COMPILED) {
@@ -2963,6 +2963,13 @@ proto.GetListGeneralLedgerAccountResponse.prototype.hasMeta = function() {
2963
2963
 
2964
2964
 
2965
2965
 
2966
+ /**
2967
+ * List of repeated fields within this message type.
2968
+ * @private {!Array<number>}
2969
+ * @const
2970
+ */
2971
+ proto.DeleteGeneralLedgerAccountRequest.repeatedFields_ = [1];
2972
+
2966
2973
 
2967
2974
 
2968
2975
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2994,7 +3001,7 @@ proto.DeleteGeneralLedgerAccountRequest.prototype.toObject = function(opt_includ
2994
3001
  */
2995
3002
  proto.DeleteGeneralLedgerAccountRequest.toObject = function(includeInstance, msg) {
2996
3003
  var f, obj = {
2997
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
3004
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2998
3005
  };
2999
3006
 
3000
3007
  if (includeInstance) {
@@ -3033,7 +3040,7 @@ proto.DeleteGeneralLedgerAccountRequest.deserializeBinaryFromReader = function(m
3033
3040
  switch (field) {
3034
3041
  case 1:
3035
3042
  var value = /** @type {string} */ (reader.readString());
3036
- msg.setReferencesId(value);
3043
+ msg.addReferenceIds(value);
3037
3044
  break;
3038
3045
  default:
3039
3046
  reader.skipField();
@@ -3064,9 +3071,9 @@ proto.DeleteGeneralLedgerAccountRequest.prototype.serializeBinary = function() {
3064
3071
  */
3065
3072
  proto.DeleteGeneralLedgerAccountRequest.serializeBinaryToWriter = function(message, writer) {
3066
3073
  var f = undefined;
3067
- f = message.getReferencesId();
3074
+ f = message.getReferenceIdsList();
3068
3075
  if (f.length > 0) {
3069
- writer.writeString(
3076
+ writer.writeRepeatedString(
3070
3077
  1,
3071
3078
  f
3072
3079
  );
@@ -3075,24 +3082,50 @@ proto.DeleteGeneralLedgerAccountRequest.serializeBinaryToWriter = function(messa
3075
3082
 
3076
3083
 
3077
3084
  /**
3078
- * optional string references_id = 1;
3079
- * @return {string}
3085
+ * repeated string reference_ids = 1;
3086
+ * @return {!Array<string>}
3080
3087
  */
3081
- proto.DeleteGeneralLedgerAccountRequest.prototype.getReferencesId = function() {
3082
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3088
+ proto.DeleteGeneralLedgerAccountRequest.prototype.getReferenceIdsList = function() {
3089
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3090
+ };
3091
+
3092
+
3093
+ /**
3094
+ * @param {!Array<string>} value
3095
+ * @return {!proto.DeleteGeneralLedgerAccountRequest} returns this
3096
+ */
3097
+ proto.DeleteGeneralLedgerAccountRequest.prototype.setReferenceIdsList = function(value) {
3098
+ return jspb.Message.setField(this, 1, value || []);
3083
3099
  };
3084
3100
 
3085
3101
 
3086
3102
  /**
3087
3103
  * @param {string} value
3104
+ * @param {number=} opt_index
3088
3105
  * @return {!proto.DeleteGeneralLedgerAccountRequest} returns this
3089
3106
  */
3090
- proto.DeleteGeneralLedgerAccountRequest.prototype.setReferencesId = function(value) {
3091
- return jspb.Message.setProto3StringField(this, 1, value);
3107
+ proto.DeleteGeneralLedgerAccountRequest.prototype.addReferenceIds = function(value, opt_index) {
3108
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3109
+ };
3110
+
3111
+
3112
+ /**
3113
+ * Clears the list making it empty but non-null.
3114
+ * @return {!proto.DeleteGeneralLedgerAccountRequest} returns this
3115
+ */
3116
+ proto.DeleteGeneralLedgerAccountRequest.prototype.clearReferenceIdsList = function() {
3117
+ return this.setReferenceIdsList([]);
3092
3118
  };
3093
3119
 
3094
3120
 
3095
3121
 
3122
+ /**
3123
+ * List of repeated fields within this message type.
3124
+ * @private {!Array<number>}
3125
+ * @const
3126
+ */
3127
+ proto.DeleteGeneralLedgerAccountResponse.repeatedFields_ = [1];
3128
+
3096
3129
 
3097
3130
 
3098
3131
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3124,7 +3157,7 @@ proto.DeleteGeneralLedgerAccountResponse.prototype.toObject = function(opt_inclu
3124
3157
  */
3125
3158
  proto.DeleteGeneralLedgerAccountResponse.toObject = function(includeInstance, msg) {
3126
3159
  var f, obj = {
3127
- referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3160
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3128
3161
  meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
3129
3162
  };
3130
3163
 
@@ -3164,7 +3197,7 @@ proto.DeleteGeneralLedgerAccountResponse.deserializeBinaryFromReader = function(
3164
3197
  switch (field) {
3165
3198
  case 1:
3166
3199
  var value = /** @type {string} */ (reader.readString());
3167
- msg.setReferencesId(value);
3200
+ msg.addReferenceIds(value);
3168
3201
  break;
3169
3202
  case 2:
3170
3203
  var value = new prisca_v1_global_meta_meta_pb.Meta;
@@ -3200,9 +3233,9 @@ proto.DeleteGeneralLedgerAccountResponse.prototype.serializeBinary = function()
3200
3233
  */
3201
3234
  proto.DeleteGeneralLedgerAccountResponse.serializeBinaryToWriter = function(message, writer) {
3202
3235
  var f = undefined;
3203
- f = message.getReferencesId();
3236
+ f = message.getReferenceIdsList();
3204
3237
  if (f.length > 0) {
3205
- writer.writeString(
3238
+ writer.writeRepeatedString(
3206
3239
  1,
3207
3240
  f
3208
3241
  );
@@ -3219,20 +3252,39 @@ proto.DeleteGeneralLedgerAccountResponse.serializeBinaryToWriter = function(mess
3219
3252
 
3220
3253
 
3221
3254
  /**
3222
- * optional string references_id = 1;
3223
- * @return {string}
3255
+ * repeated string reference_ids = 1;
3256
+ * @return {!Array<string>}
3224
3257
  */
3225
- proto.DeleteGeneralLedgerAccountResponse.prototype.getReferencesId = function() {
3226
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3258
+ proto.DeleteGeneralLedgerAccountResponse.prototype.getReferenceIdsList = function() {
3259
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3260
+ };
3261
+
3262
+
3263
+ /**
3264
+ * @param {!Array<string>} value
3265
+ * @return {!proto.DeleteGeneralLedgerAccountResponse} returns this
3266
+ */
3267
+ proto.DeleteGeneralLedgerAccountResponse.prototype.setReferenceIdsList = function(value) {
3268
+ return jspb.Message.setField(this, 1, value || []);
3227
3269
  };
3228
3270
 
3229
3271
 
3230
3272
  /**
3231
3273
  * @param {string} value
3274
+ * @param {number=} opt_index
3232
3275
  * @return {!proto.DeleteGeneralLedgerAccountResponse} returns this
3233
3276
  */
3234
- proto.DeleteGeneralLedgerAccountResponse.prototype.setReferencesId = function(value) {
3235
- return jspb.Message.setProto3StringField(this, 1, value);
3277
+ proto.DeleteGeneralLedgerAccountResponse.prototype.addReferenceIds = function(value, opt_index) {
3278
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3279
+ };
3280
+
3281
+
3282
+ /**
3283
+ * Clears the list making it empty but non-null.
3284
+ * @return {!proto.DeleteGeneralLedgerAccountResponse} returns this
3285
+ */
3286
+ proto.DeleteGeneralLedgerAccountResponse.prototype.clearReferenceIdsList = function() {
3287
+ return this.setReferenceIdsList([]);
3236
3288
  };
3237
3289
 
3238
3290
 
@@ -68,6 +68,28 @@ function deserialize_GetQuotationDetailResponse(buffer_arg) {
68
68
  return prisca_v1_quotation_quotation_pb.GetQuotationDetailResponse.deserializeBinary(new Uint8Array(buffer_arg));
69
69
  }
70
70
 
71
+ function serialize_SetQuotationRequest(arg) {
72
+ if (!(arg instanceof prisca_v1_quotation_quotation_pb.SetQuotationRequest)) {
73
+ throw new Error('Expected argument of type SetQuotationRequest');
74
+ }
75
+ return Buffer.from(arg.serializeBinary());
76
+ }
77
+
78
+ function deserialize_SetQuotationRequest(buffer_arg) {
79
+ return prisca_v1_quotation_quotation_pb.SetQuotationRequest.deserializeBinary(new Uint8Array(buffer_arg));
80
+ }
81
+
82
+ function serialize_UnSetWinnerRequest(arg) {
83
+ if (!(arg instanceof prisca_v1_quotation_quotation_pb.UnSetWinnerRequest)) {
84
+ throw new Error('Expected argument of type UnSetWinnerRequest');
85
+ }
86
+ return Buffer.from(arg.serializeBinary());
87
+ }
88
+
89
+ function deserialize_UnSetWinnerRequest(buffer_arg) {
90
+ return prisca_v1_quotation_quotation_pb.UnSetWinnerRequest.deserializeBinary(new Uint8Array(buffer_arg));
91
+ }
92
+
71
93
  function serialize_UpdateQuotationRequest(arg) {
72
94
  if (!(arg instanceof prisca_v1_quotation_quotation_pb.UpdateQuotationRequest)) {
73
95
  throw new Error('Expected argument of type UpdateQuotationRequest');
@@ -158,6 +180,28 @@ var QuotationServiceService = exports.QuotationServiceService = {
158
180
  responseSerialize: serialize_UpdateQuotationResponse,
159
181
  responseDeserialize: deserialize_UpdateQuotationResponse,
160
182
  },
183
+ setQuotation: {
184
+ path: '/QuotationService/SetQuotation',
185
+ requestStream: false,
186
+ responseStream: false,
187
+ requestType: prisca_v1_quotation_quotation_pb.SetQuotationRequest,
188
+ responseType: prisca_v1_quotation_quotation_pb.UpdateQuotationResponse,
189
+ requestSerialize: serialize_SetQuotationRequest,
190
+ requestDeserialize: deserialize_SetQuotationRequest,
191
+ responseSerialize: serialize_UpdateQuotationResponse,
192
+ responseDeserialize: deserialize_UpdateQuotationResponse,
193
+ },
194
+ unSetWinner: {
195
+ path: '/QuotationService/UnSetWinner',
196
+ requestStream: false,
197
+ responseStream: false,
198
+ requestType: prisca_v1_quotation_quotation_pb.UnSetWinnerRequest,
199
+ responseType: prisca_v1_quotation_quotation_pb.UpdateQuotationResponse,
200
+ requestSerialize: serialize_UnSetWinnerRequest,
201
+ requestDeserialize: deserialize_UnSetWinnerRequest,
202
+ responseSerialize: serialize_UpdateQuotationResponse,
203
+ responseDeserialize: deserialize_UpdateQuotationResponse,
204
+ },
161
205
  };
162
206
 
163
207
  exports.QuotationServiceClient = grpc.makeGenericClientConstructor(QuotationServiceService, 'QuotationService');