protobuf-platform 1.2.519 → 1.2.521

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.
@@ -30,7 +30,10 @@ goog.exportSymbol('proto.payment.CheckFastDepositRequest', null, global);
30
30
  goog.exportSymbol('proto.payment.CheckFastDepositResponse', null, global);
31
31
  goog.exportSymbol('proto.payment.CheckWithdrawalEligibilityRequest', null, global);
32
32
  goog.exportSymbol('proto.payment.CheckWithdrawalEligibilityResponse', null, global);
33
+ goog.exportSymbol('proto.payment.CompensationItem', null, global);
34
+ goog.exportSymbol('proto.payment.CompensationItemsResponse', null, global);
33
35
  goog.exportSymbol('proto.payment.CompensationRequest', null, global);
36
+ goog.exportSymbol('proto.payment.CompensationSearchRequest', null, global);
34
37
  goog.exportSymbol('proto.payment.ConfiscationRequest', null, global);
35
38
  goog.exportSymbol('proto.payment.CryptoDepositInstructions', null, global);
36
39
  goog.exportSymbol('proto.payment.CurrenciesMetadataResponse', null, global);
@@ -2203,6 +2206,69 @@ if (goog.DEBUG && !COMPILED) {
2203
2206
  */
2204
2207
  proto.payment.CompensationRequest.displayName = 'proto.payment.CompensationRequest';
2205
2208
  }
2209
+ /**
2210
+ * Generated by JsPbCodeGenerator.
2211
+ * @param {Array=} opt_data Optional initial data array, typically from a
2212
+ * server response, or constructed directly in Javascript. The array is used
2213
+ * in place and becomes part of the constructed object. It is not cloned.
2214
+ * If no data is provided, the constructed object will be empty, but still
2215
+ * valid.
2216
+ * @extends {jspb.Message}
2217
+ * @constructor
2218
+ */
2219
+ proto.payment.CompensationSearchRequest = function(opt_data) {
2220
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.CompensationSearchRequest.repeatedFields_, null);
2221
+ };
2222
+ goog.inherits(proto.payment.CompensationSearchRequest, jspb.Message);
2223
+ if (goog.DEBUG && !COMPILED) {
2224
+ /**
2225
+ * @public
2226
+ * @override
2227
+ */
2228
+ proto.payment.CompensationSearchRequest.displayName = 'proto.payment.CompensationSearchRequest';
2229
+ }
2230
+ /**
2231
+ * Generated by JsPbCodeGenerator.
2232
+ * @param {Array=} opt_data Optional initial data array, typically from a
2233
+ * server response, or constructed directly in Javascript. The array is used
2234
+ * in place and becomes part of the constructed object. It is not cloned.
2235
+ * If no data is provided, the constructed object will be empty, but still
2236
+ * valid.
2237
+ * @extends {jspb.Message}
2238
+ * @constructor
2239
+ */
2240
+ proto.payment.CompensationItem = function(opt_data) {
2241
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2242
+ };
2243
+ goog.inherits(proto.payment.CompensationItem, jspb.Message);
2244
+ if (goog.DEBUG && !COMPILED) {
2245
+ /**
2246
+ * @public
2247
+ * @override
2248
+ */
2249
+ proto.payment.CompensationItem.displayName = 'proto.payment.CompensationItem';
2250
+ }
2251
+ /**
2252
+ * Generated by JsPbCodeGenerator.
2253
+ * @param {Array=} opt_data Optional initial data array, typically from a
2254
+ * server response, or constructed directly in Javascript. The array is used
2255
+ * in place and becomes part of the constructed object. It is not cloned.
2256
+ * If no data is provided, the constructed object will be empty, but still
2257
+ * valid.
2258
+ * @extends {jspb.Message}
2259
+ * @constructor
2260
+ */
2261
+ proto.payment.CompensationItemsResponse = function(opt_data) {
2262
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.CompensationItemsResponse.repeatedFields_, null);
2263
+ };
2264
+ goog.inherits(proto.payment.CompensationItemsResponse, jspb.Message);
2265
+ if (goog.DEBUG && !COMPILED) {
2266
+ /**
2267
+ * @public
2268
+ * @override
2269
+ */
2270
+ proto.payment.CompensationItemsResponse.displayName = 'proto.payment.CompensationItemsResponse';
2271
+ }
2206
2272
  /**
2207
2273
  * Generated by JsPbCodeGenerator.
2208
2274
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2950,7 +3016,8 @@ proto.payment.PaginationRequest.toObject = function(includeInstance, msg) {
2950
3016
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
2951
3017
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
2952
3018
  order: jspb.Message.getFieldWithDefault(msg, 3, ""),
2953
- paymentSearchParams: (f = msg.getPaymentSearchParams()) && proto.payment.PaymentSearchRequest.toObject(includeInstance, f)
3019
+ paymentSearchParams: (f = msg.getPaymentSearchParams()) && proto.payment.PaymentSearchRequest.toObject(includeInstance, f),
3020
+ compensationSearchParams: (f = msg.getCompensationSearchParams()) && proto.payment.CompensationSearchRequest.toObject(includeInstance, f)
2954
3021
  };
2955
3022
 
2956
3023
  if (includeInstance) {
@@ -3004,6 +3071,11 @@ proto.payment.PaginationRequest.deserializeBinaryFromReader = function(msg, read
3004
3071
  reader.readMessage(value,proto.payment.PaymentSearchRequest.deserializeBinaryFromReader);
3005
3072
  msg.setPaymentSearchParams(value);
3006
3073
  break;
3074
+ case 5:
3075
+ var value = new proto.payment.CompensationSearchRequest;
3076
+ reader.readMessage(value,proto.payment.CompensationSearchRequest.deserializeBinaryFromReader);
3077
+ msg.setCompensationSearchParams(value);
3078
+ break;
3007
3079
  default:
3008
3080
  reader.skipField();
3009
3081
  break;
@@ -3062,6 +3134,14 @@ proto.payment.PaginationRequest.serializeBinaryToWriter = function(message, writ
3062
3134
  proto.payment.PaymentSearchRequest.serializeBinaryToWriter
3063
3135
  );
3064
3136
  }
3137
+ f = message.getCompensationSearchParams();
3138
+ if (f != null) {
3139
+ writer.writeMessage(
3140
+ 5,
3141
+ f,
3142
+ proto.payment.CompensationSearchRequest.serializeBinaryToWriter
3143
+ );
3144
+ }
3065
3145
  };
3066
3146
 
3067
3147
 
@@ -3174,6 +3254,43 @@ proto.payment.PaginationRequest.prototype.hasPaymentSearchParams = function() {
3174
3254
  };
3175
3255
 
3176
3256
 
3257
+ /**
3258
+ * optional CompensationSearchRequest compensation_search_params = 5;
3259
+ * @return {?proto.payment.CompensationSearchRequest}
3260
+ */
3261
+ proto.payment.PaginationRequest.prototype.getCompensationSearchParams = function() {
3262
+ return /** @type{?proto.payment.CompensationSearchRequest} */ (
3263
+ jspb.Message.getWrapperField(this, proto.payment.CompensationSearchRequest, 5));
3264
+ };
3265
+
3266
+
3267
+ /**
3268
+ * @param {?proto.payment.CompensationSearchRequest|undefined} value
3269
+ * @return {!proto.payment.PaginationRequest} returns this
3270
+ */
3271
+ proto.payment.PaginationRequest.prototype.setCompensationSearchParams = function(value) {
3272
+ return jspb.Message.setWrapperField(this, 5, value);
3273
+ };
3274
+
3275
+
3276
+ /**
3277
+ * Clears the message field making it undefined.
3278
+ * @return {!proto.payment.PaginationRequest} returns this
3279
+ */
3280
+ proto.payment.PaginationRequest.prototype.clearCompensationSearchParams = function() {
3281
+ return this.setCompensationSearchParams(undefined);
3282
+ };
3283
+
3284
+
3285
+ /**
3286
+ * Returns whether this field is set.
3287
+ * @return {boolean}
3288
+ */
3289
+ proto.payment.PaginationRequest.prototype.hasCompensationSearchParams = function() {
3290
+ return jspb.Message.getField(this, 5) != null;
3291
+ };
3292
+
3293
+
3177
3294
 
3178
3295
  /**
3179
3296
  * List of repeated fields within this message type.
@@ -39272,7 +39389,8 @@ proto.payment.CompensationRequest.toObject = function(includeInstance, msg) {
39272
39389
  compensationType: jspb.Message.getFieldWithDefault(msg, 7, ""),
39273
39390
  transactionCode: jspb.Message.getFieldWithDefault(msg, 8, ""),
39274
39391
  internalComment: jspb.Message.getFieldWithDefault(msg, 9, ""),
39275
- amount: jspb.Message.getFieldWithDefault(msg, 10, "")
39392
+ amount: jspb.Message.getFieldWithDefault(msg, 10, ""),
39393
+ promoOrBonusId: jspb.Message.getFieldWithDefault(msg, 11, "")
39276
39394
  };
39277
39395
 
39278
39396
  if (includeInstance) {
@@ -39349,6 +39467,10 @@ proto.payment.CompensationRequest.deserializeBinaryFromReader = function(msg, re
39349
39467
  var value = /** @type {string} */ (reader.readString());
39350
39468
  msg.setAmount(value);
39351
39469
  break;
39470
+ case 11:
39471
+ var value = /** @type {string} */ (reader.readString());
39472
+ msg.setPromoOrBonusId(value);
39473
+ break;
39352
39474
  default:
39353
39475
  reader.skipField();
39354
39476
  break;
@@ -39392,8 +39514,8 @@ proto.payment.CompensationRequest.serializeBinaryToWriter = function(message, wr
39392
39514
  f
39393
39515
  );
39394
39516
  }
39395
- f = message.getCurrency();
39396
- if (f.length > 0) {
39517
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
39518
+ if (f != null) {
39397
39519
  writer.writeString(
39398
39520
  3,
39399
39521
  f
@@ -39448,6 +39570,13 @@ proto.payment.CompensationRequest.serializeBinaryToWriter = function(message, wr
39448
39570
  f
39449
39571
  );
39450
39572
  }
39573
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
39574
+ if (f != null) {
39575
+ writer.writeString(
39576
+ 11,
39577
+ f
39578
+ );
39579
+ }
39451
39580
  };
39452
39581
 
39453
39582
 
@@ -39501,7 +39630,25 @@ proto.payment.CompensationRequest.prototype.getCurrency = function() {
39501
39630
  * @return {!proto.payment.CompensationRequest} returns this
39502
39631
  */
39503
39632
  proto.payment.CompensationRequest.prototype.setCurrency = function(value) {
39504
- return jspb.Message.setProto3StringField(this, 3, value);
39633
+ return jspb.Message.setField(this, 3, value);
39634
+ };
39635
+
39636
+
39637
+ /**
39638
+ * Clears the field making it undefined.
39639
+ * @return {!proto.payment.CompensationRequest} returns this
39640
+ */
39641
+ proto.payment.CompensationRequest.prototype.clearCurrency = function() {
39642
+ return jspb.Message.setField(this, 3, undefined);
39643
+ };
39644
+
39645
+
39646
+ /**
39647
+ * Returns whether this field is set.
39648
+ * @return {boolean}
39649
+ */
39650
+ proto.payment.CompensationRequest.prototype.hasCurrency = function() {
39651
+ return jspb.Message.getField(this, 3) != null;
39505
39652
  };
39506
39653
 
39507
39654
 
@@ -39631,6 +39778,1381 @@ proto.payment.CompensationRequest.prototype.setAmount = function(value) {
39631
39778
  };
39632
39779
 
39633
39780
 
39781
+ /**
39782
+ * optional string promo_or_bonus_id = 11;
39783
+ * @return {string}
39784
+ */
39785
+ proto.payment.CompensationRequest.prototype.getPromoOrBonusId = function() {
39786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
39787
+ };
39788
+
39789
+
39790
+ /**
39791
+ * @param {string} value
39792
+ * @return {!proto.payment.CompensationRequest} returns this
39793
+ */
39794
+ proto.payment.CompensationRequest.prototype.setPromoOrBonusId = function(value) {
39795
+ return jspb.Message.setField(this, 11, value);
39796
+ };
39797
+
39798
+
39799
+ /**
39800
+ * Clears the field making it undefined.
39801
+ * @return {!proto.payment.CompensationRequest} returns this
39802
+ */
39803
+ proto.payment.CompensationRequest.prototype.clearPromoOrBonusId = function() {
39804
+ return jspb.Message.setField(this, 11, undefined);
39805
+ };
39806
+
39807
+
39808
+ /**
39809
+ * Returns whether this field is set.
39810
+ * @return {boolean}
39811
+ */
39812
+ proto.payment.CompensationRequest.prototype.hasPromoOrBonusId = function() {
39813
+ return jspb.Message.getField(this, 11) != null;
39814
+ };
39815
+
39816
+
39817
+
39818
+ /**
39819
+ * List of repeated fields within this message type.
39820
+ * @private {!Array<number>}
39821
+ * @const
39822
+ */
39823
+ proto.payment.CompensationSearchRequest.repeatedFields_ = [2,3,5,8];
39824
+
39825
+
39826
+
39827
+ if (jspb.Message.GENERATE_TO_OBJECT) {
39828
+ /**
39829
+ * Creates an object representation of this proto.
39830
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39831
+ * Optional fields that are not set will be set to undefined.
39832
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
39833
+ * For the list of reserved names please see:
39834
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
39835
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
39836
+ * JSPB instance for transitional soy proto support:
39837
+ * http://goto/soy-param-migration
39838
+ * @return {!Object}
39839
+ */
39840
+ proto.payment.CompensationSearchRequest.prototype.toObject = function(opt_includeInstance) {
39841
+ return proto.payment.CompensationSearchRequest.toObject(opt_includeInstance, this);
39842
+ };
39843
+
39844
+
39845
+ /**
39846
+ * Static version of the {@see toObject} method.
39847
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
39848
+ * the JSPB instance for transitional soy proto support:
39849
+ * http://goto/soy-param-migration
39850
+ * @param {!proto.payment.CompensationSearchRequest} msg The msg instance to transform.
39851
+ * @return {!Object}
39852
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39853
+ */
39854
+ proto.payment.CompensationSearchRequest.toObject = function(includeInstance, msg) {
39855
+ var f, obj = {
39856
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
39857
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
39858
+ compensationTypesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
39859
+ transactionCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
39860
+ operationStatusCodesList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
39861
+ createdFrom: jspb.Message.getFieldWithDefault(msg, 6, ""),
39862
+ createdTo: jspb.Message.getFieldWithDefault(msg, 7, ""),
39863
+ currencyList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
39864
+ };
39865
+
39866
+ if (includeInstance) {
39867
+ obj.$jspbMessageInstance = msg;
39868
+ }
39869
+ return obj;
39870
+ };
39871
+ }
39872
+
39873
+
39874
+ /**
39875
+ * Deserializes binary data (in protobuf wire format).
39876
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
39877
+ * @return {!proto.payment.CompensationSearchRequest}
39878
+ */
39879
+ proto.payment.CompensationSearchRequest.deserializeBinary = function(bytes) {
39880
+ var reader = new jspb.BinaryReader(bytes);
39881
+ var msg = new proto.payment.CompensationSearchRequest;
39882
+ return proto.payment.CompensationSearchRequest.deserializeBinaryFromReader(msg, reader);
39883
+ };
39884
+
39885
+
39886
+ /**
39887
+ * Deserializes binary data (in protobuf wire format) from the
39888
+ * given reader into the given message object.
39889
+ * @param {!proto.payment.CompensationSearchRequest} msg The message object to deserialize into.
39890
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
39891
+ * @return {!proto.payment.CompensationSearchRequest}
39892
+ */
39893
+ proto.payment.CompensationSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
39894
+ while (reader.nextField()) {
39895
+ if (reader.isEndGroup()) {
39896
+ break;
39897
+ }
39898
+ var field = reader.getFieldNumber();
39899
+ switch (field) {
39900
+ case 1:
39901
+ var value = /** @type {number} */ (reader.readInt32());
39902
+ msg.setOperationId(value);
39903
+ break;
39904
+ case 2:
39905
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
39906
+ for (var i = 0; i < values.length; i++) {
39907
+ msg.addUserIds(values[i]);
39908
+ }
39909
+ break;
39910
+ case 3:
39911
+ var value = /** @type {string} */ (reader.readString());
39912
+ msg.addCompensationTypes(value);
39913
+ break;
39914
+ case 4:
39915
+ var value = /** @type {string} */ (reader.readString());
39916
+ msg.setTransactionCode(value);
39917
+ break;
39918
+ case 5:
39919
+ var value = /** @type {string} */ (reader.readString());
39920
+ msg.addOperationStatusCodes(value);
39921
+ break;
39922
+ case 6:
39923
+ var value = /** @type {string} */ (reader.readString());
39924
+ msg.setCreatedFrom(value);
39925
+ break;
39926
+ case 7:
39927
+ var value = /** @type {string} */ (reader.readString());
39928
+ msg.setCreatedTo(value);
39929
+ break;
39930
+ case 8:
39931
+ var value = /** @type {string} */ (reader.readString());
39932
+ msg.addCurrency(value);
39933
+ break;
39934
+ default:
39935
+ reader.skipField();
39936
+ break;
39937
+ }
39938
+ }
39939
+ return msg;
39940
+ };
39941
+
39942
+
39943
+ /**
39944
+ * Serializes the message to binary data (in protobuf wire format).
39945
+ * @return {!Uint8Array}
39946
+ */
39947
+ proto.payment.CompensationSearchRequest.prototype.serializeBinary = function() {
39948
+ var writer = new jspb.BinaryWriter();
39949
+ proto.payment.CompensationSearchRequest.serializeBinaryToWriter(this, writer);
39950
+ return writer.getResultBuffer();
39951
+ };
39952
+
39953
+
39954
+ /**
39955
+ * Serializes the given message to binary data (in protobuf wire
39956
+ * format), writing to the given BinaryWriter.
39957
+ * @param {!proto.payment.CompensationSearchRequest} message
39958
+ * @param {!jspb.BinaryWriter} writer
39959
+ * @suppress {unusedLocalVariables} f is only used for nested messages
39960
+ */
39961
+ proto.payment.CompensationSearchRequest.serializeBinaryToWriter = function(message, writer) {
39962
+ var f = undefined;
39963
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
39964
+ if (f != null) {
39965
+ writer.writeInt32(
39966
+ 1,
39967
+ f
39968
+ );
39969
+ }
39970
+ f = message.getUserIdsList();
39971
+ if (f.length > 0) {
39972
+ writer.writePackedInt32(
39973
+ 2,
39974
+ f
39975
+ );
39976
+ }
39977
+ f = message.getCompensationTypesList();
39978
+ if (f.length > 0) {
39979
+ writer.writeRepeatedString(
39980
+ 3,
39981
+ f
39982
+ );
39983
+ }
39984
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
39985
+ if (f != null) {
39986
+ writer.writeString(
39987
+ 4,
39988
+ f
39989
+ );
39990
+ }
39991
+ f = message.getOperationStatusCodesList();
39992
+ if (f.length > 0) {
39993
+ writer.writeRepeatedString(
39994
+ 5,
39995
+ f
39996
+ );
39997
+ }
39998
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
39999
+ if (f != null) {
40000
+ writer.writeString(
40001
+ 6,
40002
+ f
40003
+ );
40004
+ }
40005
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
40006
+ if (f != null) {
40007
+ writer.writeString(
40008
+ 7,
40009
+ f
40010
+ );
40011
+ }
40012
+ f = message.getCurrencyList();
40013
+ if (f.length > 0) {
40014
+ writer.writeRepeatedString(
40015
+ 8,
40016
+ f
40017
+ );
40018
+ }
40019
+ };
40020
+
40021
+
40022
+ /**
40023
+ * optional int32 operation_id = 1;
40024
+ * @return {number}
40025
+ */
40026
+ proto.payment.CompensationSearchRequest.prototype.getOperationId = function() {
40027
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
40028
+ };
40029
+
40030
+
40031
+ /**
40032
+ * @param {number} value
40033
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40034
+ */
40035
+ proto.payment.CompensationSearchRequest.prototype.setOperationId = function(value) {
40036
+ return jspb.Message.setField(this, 1, value);
40037
+ };
40038
+
40039
+
40040
+ /**
40041
+ * Clears the field making it undefined.
40042
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40043
+ */
40044
+ proto.payment.CompensationSearchRequest.prototype.clearOperationId = function() {
40045
+ return jspb.Message.setField(this, 1, undefined);
40046
+ };
40047
+
40048
+
40049
+ /**
40050
+ * Returns whether this field is set.
40051
+ * @return {boolean}
40052
+ */
40053
+ proto.payment.CompensationSearchRequest.prototype.hasOperationId = function() {
40054
+ return jspb.Message.getField(this, 1) != null;
40055
+ };
40056
+
40057
+
40058
+ /**
40059
+ * repeated int32 user_ids = 2;
40060
+ * @return {!Array<number>}
40061
+ */
40062
+ proto.payment.CompensationSearchRequest.prototype.getUserIdsList = function() {
40063
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 2));
40064
+ };
40065
+
40066
+
40067
+ /**
40068
+ * @param {!Array<number>} value
40069
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40070
+ */
40071
+ proto.payment.CompensationSearchRequest.prototype.setUserIdsList = function(value) {
40072
+ return jspb.Message.setField(this, 2, value || []);
40073
+ };
40074
+
40075
+
40076
+ /**
40077
+ * @param {number} value
40078
+ * @param {number=} opt_index
40079
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40080
+ */
40081
+ proto.payment.CompensationSearchRequest.prototype.addUserIds = function(value, opt_index) {
40082
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
40083
+ };
40084
+
40085
+
40086
+ /**
40087
+ * Clears the list making it empty but non-null.
40088
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40089
+ */
40090
+ proto.payment.CompensationSearchRequest.prototype.clearUserIdsList = function() {
40091
+ return this.setUserIdsList([]);
40092
+ };
40093
+
40094
+
40095
+ /**
40096
+ * repeated string compensation_types = 3;
40097
+ * @return {!Array<string>}
40098
+ */
40099
+ proto.payment.CompensationSearchRequest.prototype.getCompensationTypesList = function() {
40100
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
40101
+ };
40102
+
40103
+
40104
+ /**
40105
+ * @param {!Array<string>} value
40106
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40107
+ */
40108
+ proto.payment.CompensationSearchRequest.prototype.setCompensationTypesList = function(value) {
40109
+ return jspb.Message.setField(this, 3, value || []);
40110
+ };
40111
+
40112
+
40113
+ /**
40114
+ * @param {string} value
40115
+ * @param {number=} opt_index
40116
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40117
+ */
40118
+ proto.payment.CompensationSearchRequest.prototype.addCompensationTypes = function(value, opt_index) {
40119
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
40120
+ };
40121
+
40122
+
40123
+ /**
40124
+ * Clears the list making it empty but non-null.
40125
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40126
+ */
40127
+ proto.payment.CompensationSearchRequest.prototype.clearCompensationTypesList = function() {
40128
+ return this.setCompensationTypesList([]);
40129
+ };
40130
+
40131
+
40132
+ /**
40133
+ * optional string transaction_code = 4;
40134
+ * @return {string}
40135
+ */
40136
+ proto.payment.CompensationSearchRequest.prototype.getTransactionCode = function() {
40137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
40138
+ };
40139
+
40140
+
40141
+ /**
40142
+ * @param {string} value
40143
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40144
+ */
40145
+ proto.payment.CompensationSearchRequest.prototype.setTransactionCode = function(value) {
40146
+ return jspb.Message.setField(this, 4, value);
40147
+ };
40148
+
40149
+
40150
+ /**
40151
+ * Clears the field making it undefined.
40152
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40153
+ */
40154
+ proto.payment.CompensationSearchRequest.prototype.clearTransactionCode = function() {
40155
+ return jspb.Message.setField(this, 4, undefined);
40156
+ };
40157
+
40158
+
40159
+ /**
40160
+ * Returns whether this field is set.
40161
+ * @return {boolean}
40162
+ */
40163
+ proto.payment.CompensationSearchRequest.prototype.hasTransactionCode = function() {
40164
+ return jspb.Message.getField(this, 4) != null;
40165
+ };
40166
+
40167
+
40168
+ /**
40169
+ * repeated string operation_status_codes = 5;
40170
+ * @return {!Array<string>}
40171
+ */
40172
+ proto.payment.CompensationSearchRequest.prototype.getOperationStatusCodesList = function() {
40173
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
40174
+ };
40175
+
40176
+
40177
+ /**
40178
+ * @param {!Array<string>} value
40179
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40180
+ */
40181
+ proto.payment.CompensationSearchRequest.prototype.setOperationStatusCodesList = function(value) {
40182
+ return jspb.Message.setField(this, 5, value || []);
40183
+ };
40184
+
40185
+
40186
+ /**
40187
+ * @param {string} value
40188
+ * @param {number=} opt_index
40189
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40190
+ */
40191
+ proto.payment.CompensationSearchRequest.prototype.addOperationStatusCodes = function(value, opt_index) {
40192
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
40193
+ };
40194
+
40195
+
40196
+ /**
40197
+ * Clears the list making it empty but non-null.
40198
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40199
+ */
40200
+ proto.payment.CompensationSearchRequest.prototype.clearOperationStatusCodesList = function() {
40201
+ return this.setOperationStatusCodesList([]);
40202
+ };
40203
+
40204
+
40205
+ /**
40206
+ * optional string created_from = 6;
40207
+ * @return {string}
40208
+ */
40209
+ proto.payment.CompensationSearchRequest.prototype.getCreatedFrom = function() {
40210
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
40211
+ };
40212
+
40213
+
40214
+ /**
40215
+ * @param {string} value
40216
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40217
+ */
40218
+ proto.payment.CompensationSearchRequest.prototype.setCreatedFrom = function(value) {
40219
+ return jspb.Message.setField(this, 6, value);
40220
+ };
40221
+
40222
+
40223
+ /**
40224
+ * Clears the field making it undefined.
40225
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40226
+ */
40227
+ proto.payment.CompensationSearchRequest.prototype.clearCreatedFrom = function() {
40228
+ return jspb.Message.setField(this, 6, undefined);
40229
+ };
40230
+
40231
+
40232
+ /**
40233
+ * Returns whether this field is set.
40234
+ * @return {boolean}
40235
+ */
40236
+ proto.payment.CompensationSearchRequest.prototype.hasCreatedFrom = function() {
40237
+ return jspb.Message.getField(this, 6) != null;
40238
+ };
40239
+
40240
+
40241
+ /**
40242
+ * optional string created_to = 7;
40243
+ * @return {string}
40244
+ */
40245
+ proto.payment.CompensationSearchRequest.prototype.getCreatedTo = function() {
40246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
40247
+ };
40248
+
40249
+
40250
+ /**
40251
+ * @param {string} value
40252
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40253
+ */
40254
+ proto.payment.CompensationSearchRequest.prototype.setCreatedTo = function(value) {
40255
+ return jspb.Message.setField(this, 7, value);
40256
+ };
40257
+
40258
+
40259
+ /**
40260
+ * Clears the field making it undefined.
40261
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40262
+ */
40263
+ proto.payment.CompensationSearchRequest.prototype.clearCreatedTo = function() {
40264
+ return jspb.Message.setField(this, 7, undefined);
40265
+ };
40266
+
40267
+
40268
+ /**
40269
+ * Returns whether this field is set.
40270
+ * @return {boolean}
40271
+ */
40272
+ proto.payment.CompensationSearchRequest.prototype.hasCreatedTo = function() {
40273
+ return jspb.Message.getField(this, 7) != null;
40274
+ };
40275
+
40276
+
40277
+ /**
40278
+ * repeated string currency = 8;
40279
+ * @return {!Array<string>}
40280
+ */
40281
+ proto.payment.CompensationSearchRequest.prototype.getCurrencyList = function() {
40282
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
40283
+ };
40284
+
40285
+
40286
+ /**
40287
+ * @param {!Array<string>} value
40288
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40289
+ */
40290
+ proto.payment.CompensationSearchRequest.prototype.setCurrencyList = function(value) {
40291
+ return jspb.Message.setField(this, 8, value || []);
40292
+ };
40293
+
40294
+
40295
+ /**
40296
+ * @param {string} value
40297
+ * @param {number=} opt_index
40298
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40299
+ */
40300
+ proto.payment.CompensationSearchRequest.prototype.addCurrency = function(value, opt_index) {
40301
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
40302
+ };
40303
+
40304
+
40305
+ /**
40306
+ * Clears the list making it empty but non-null.
40307
+ * @return {!proto.payment.CompensationSearchRequest} returns this
40308
+ */
40309
+ proto.payment.CompensationSearchRequest.prototype.clearCurrencyList = function() {
40310
+ return this.setCurrencyList([]);
40311
+ };
40312
+
40313
+
40314
+
40315
+
40316
+
40317
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40318
+ /**
40319
+ * Creates an object representation of this proto.
40320
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40321
+ * Optional fields that are not set will be set to undefined.
40322
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40323
+ * For the list of reserved names please see:
40324
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40325
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40326
+ * JSPB instance for transitional soy proto support:
40327
+ * http://goto/soy-param-migration
40328
+ * @return {!Object}
40329
+ */
40330
+ proto.payment.CompensationItem.prototype.toObject = function(opt_includeInstance) {
40331
+ return proto.payment.CompensationItem.toObject(opt_includeInstance, this);
40332
+ };
40333
+
40334
+
40335
+ /**
40336
+ * Static version of the {@see toObject} method.
40337
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40338
+ * the JSPB instance for transitional soy proto support:
40339
+ * http://goto/soy-param-migration
40340
+ * @param {!proto.payment.CompensationItem} msg The msg instance to transform.
40341
+ * @return {!Object}
40342
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40343
+ */
40344
+ proto.payment.CompensationItem.toObject = function(includeInstance, msg) {
40345
+ var f, obj = {
40346
+ operationId: jspb.Message.getFieldWithDefault(msg, 1, 0),
40347
+ operationPublicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
40348
+ userId: jspb.Message.getFieldWithDefault(msg, 3, 0),
40349
+ compensationType: jspb.Message.getFieldWithDefault(msg, 4, ""),
40350
+ transactionCode: jspb.Message.getFieldWithDefault(msg, 5, ""),
40351
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 6, 0),
40352
+ currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
40353
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 8, 0),
40354
+ wagerMultiplier: jspb.Message.getFieldWithDefault(msg, 9, ""),
40355
+ promoOrBonusId: jspb.Message.getFieldWithDefault(msg, 10, ""),
40356
+ internalComment: jspb.Message.getFieldWithDefault(msg, 11, ""),
40357
+ operatorId: jspb.Message.getFieldWithDefault(msg, 12, 0),
40358
+ statusCode: jspb.Message.getFieldWithDefault(msg, 13, ""),
40359
+ createdAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
40360
+ completedAt: jspb.Message.getFieldWithDefault(msg, 15, "")
40361
+ };
40362
+
40363
+ if (includeInstance) {
40364
+ obj.$jspbMessageInstance = msg;
40365
+ }
40366
+ return obj;
40367
+ };
40368
+ }
40369
+
40370
+
40371
+ /**
40372
+ * Deserializes binary data (in protobuf wire format).
40373
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40374
+ * @return {!proto.payment.CompensationItem}
40375
+ */
40376
+ proto.payment.CompensationItem.deserializeBinary = function(bytes) {
40377
+ var reader = new jspb.BinaryReader(bytes);
40378
+ var msg = new proto.payment.CompensationItem;
40379
+ return proto.payment.CompensationItem.deserializeBinaryFromReader(msg, reader);
40380
+ };
40381
+
40382
+
40383
+ /**
40384
+ * Deserializes binary data (in protobuf wire format) from the
40385
+ * given reader into the given message object.
40386
+ * @param {!proto.payment.CompensationItem} msg The message object to deserialize into.
40387
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40388
+ * @return {!proto.payment.CompensationItem}
40389
+ */
40390
+ proto.payment.CompensationItem.deserializeBinaryFromReader = function(msg, reader) {
40391
+ while (reader.nextField()) {
40392
+ if (reader.isEndGroup()) {
40393
+ break;
40394
+ }
40395
+ var field = reader.getFieldNumber();
40396
+ switch (field) {
40397
+ case 1:
40398
+ var value = /** @type {number} */ (reader.readInt32());
40399
+ msg.setOperationId(value);
40400
+ break;
40401
+ case 2:
40402
+ var value = /** @type {string} */ (reader.readString());
40403
+ msg.setOperationPublicId(value);
40404
+ break;
40405
+ case 3:
40406
+ var value = /** @type {number} */ (reader.readInt32());
40407
+ msg.setUserId(value);
40408
+ break;
40409
+ case 4:
40410
+ var value = /** @type {string} */ (reader.readString());
40411
+ msg.setCompensationType(value);
40412
+ break;
40413
+ case 5:
40414
+ var value = /** @type {string} */ (reader.readString());
40415
+ msg.setTransactionCode(value);
40416
+ break;
40417
+ case 6:
40418
+ var value = /** @type {number} */ (reader.readInt64());
40419
+ msg.setAmountMinor(value);
40420
+ break;
40421
+ case 7:
40422
+ var value = /** @type {string} */ (reader.readString());
40423
+ msg.setCurrency(value);
40424
+ break;
40425
+ case 8:
40426
+ var value = /** @type {number} */ (reader.readInt32());
40427
+ msg.setCurrencyScale(value);
40428
+ break;
40429
+ case 9:
40430
+ var value = /** @type {string} */ (reader.readString());
40431
+ msg.setWagerMultiplier(value);
40432
+ break;
40433
+ case 10:
40434
+ var value = /** @type {string} */ (reader.readString());
40435
+ msg.setPromoOrBonusId(value);
40436
+ break;
40437
+ case 11:
40438
+ var value = /** @type {string} */ (reader.readString());
40439
+ msg.setInternalComment(value);
40440
+ break;
40441
+ case 12:
40442
+ var value = /** @type {number} */ (reader.readInt32());
40443
+ msg.setOperatorId(value);
40444
+ break;
40445
+ case 13:
40446
+ var value = /** @type {string} */ (reader.readString());
40447
+ msg.setStatusCode(value);
40448
+ break;
40449
+ case 14:
40450
+ var value = /** @type {string} */ (reader.readString());
40451
+ msg.setCreatedAt(value);
40452
+ break;
40453
+ case 15:
40454
+ var value = /** @type {string} */ (reader.readString());
40455
+ msg.setCompletedAt(value);
40456
+ break;
40457
+ default:
40458
+ reader.skipField();
40459
+ break;
40460
+ }
40461
+ }
40462
+ return msg;
40463
+ };
40464
+
40465
+
40466
+ /**
40467
+ * Serializes the message to binary data (in protobuf wire format).
40468
+ * @return {!Uint8Array}
40469
+ */
40470
+ proto.payment.CompensationItem.prototype.serializeBinary = function() {
40471
+ var writer = new jspb.BinaryWriter();
40472
+ proto.payment.CompensationItem.serializeBinaryToWriter(this, writer);
40473
+ return writer.getResultBuffer();
40474
+ };
40475
+
40476
+
40477
+ /**
40478
+ * Serializes the given message to binary data (in protobuf wire
40479
+ * format), writing to the given BinaryWriter.
40480
+ * @param {!proto.payment.CompensationItem} message
40481
+ * @param {!jspb.BinaryWriter} writer
40482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40483
+ */
40484
+ proto.payment.CompensationItem.serializeBinaryToWriter = function(message, writer) {
40485
+ var f = undefined;
40486
+ f = message.getOperationId();
40487
+ if (f !== 0) {
40488
+ writer.writeInt32(
40489
+ 1,
40490
+ f
40491
+ );
40492
+ }
40493
+ f = message.getOperationPublicId();
40494
+ if (f.length > 0) {
40495
+ writer.writeString(
40496
+ 2,
40497
+ f
40498
+ );
40499
+ }
40500
+ f = message.getUserId();
40501
+ if (f !== 0) {
40502
+ writer.writeInt32(
40503
+ 3,
40504
+ f
40505
+ );
40506
+ }
40507
+ f = message.getCompensationType();
40508
+ if (f.length > 0) {
40509
+ writer.writeString(
40510
+ 4,
40511
+ f
40512
+ );
40513
+ }
40514
+ f = message.getTransactionCode();
40515
+ if (f.length > 0) {
40516
+ writer.writeString(
40517
+ 5,
40518
+ f
40519
+ );
40520
+ }
40521
+ f = message.getAmountMinor();
40522
+ if (f !== 0) {
40523
+ writer.writeInt64(
40524
+ 6,
40525
+ f
40526
+ );
40527
+ }
40528
+ f = message.getCurrency();
40529
+ if (f.length > 0) {
40530
+ writer.writeString(
40531
+ 7,
40532
+ f
40533
+ );
40534
+ }
40535
+ f = message.getCurrencyScale();
40536
+ if (f !== 0) {
40537
+ writer.writeInt32(
40538
+ 8,
40539
+ f
40540
+ );
40541
+ }
40542
+ f = message.getWagerMultiplier();
40543
+ if (f.length > 0) {
40544
+ writer.writeString(
40545
+ 9,
40546
+ f
40547
+ );
40548
+ }
40549
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
40550
+ if (f != null) {
40551
+ writer.writeString(
40552
+ 10,
40553
+ f
40554
+ );
40555
+ }
40556
+ f = message.getInternalComment();
40557
+ if (f.length > 0) {
40558
+ writer.writeString(
40559
+ 11,
40560
+ f
40561
+ );
40562
+ }
40563
+ f = message.getOperatorId();
40564
+ if (f !== 0) {
40565
+ writer.writeInt32(
40566
+ 12,
40567
+ f
40568
+ );
40569
+ }
40570
+ f = message.getStatusCode();
40571
+ if (f.length > 0) {
40572
+ writer.writeString(
40573
+ 13,
40574
+ f
40575
+ );
40576
+ }
40577
+ f = message.getCreatedAt();
40578
+ if (f.length > 0) {
40579
+ writer.writeString(
40580
+ 14,
40581
+ f
40582
+ );
40583
+ }
40584
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
40585
+ if (f != null) {
40586
+ writer.writeString(
40587
+ 15,
40588
+ f
40589
+ );
40590
+ }
40591
+ };
40592
+
40593
+
40594
+ /**
40595
+ * optional int32 operation_id = 1;
40596
+ * @return {number}
40597
+ */
40598
+ proto.payment.CompensationItem.prototype.getOperationId = function() {
40599
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
40600
+ };
40601
+
40602
+
40603
+ /**
40604
+ * @param {number} value
40605
+ * @return {!proto.payment.CompensationItem} returns this
40606
+ */
40607
+ proto.payment.CompensationItem.prototype.setOperationId = function(value) {
40608
+ return jspb.Message.setProto3IntField(this, 1, value);
40609
+ };
40610
+
40611
+
40612
+ /**
40613
+ * optional string operation_public_id = 2;
40614
+ * @return {string}
40615
+ */
40616
+ proto.payment.CompensationItem.prototype.getOperationPublicId = function() {
40617
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
40618
+ };
40619
+
40620
+
40621
+ /**
40622
+ * @param {string} value
40623
+ * @return {!proto.payment.CompensationItem} returns this
40624
+ */
40625
+ proto.payment.CompensationItem.prototype.setOperationPublicId = function(value) {
40626
+ return jspb.Message.setProto3StringField(this, 2, value);
40627
+ };
40628
+
40629
+
40630
+ /**
40631
+ * optional int32 user_id = 3;
40632
+ * @return {number}
40633
+ */
40634
+ proto.payment.CompensationItem.prototype.getUserId = function() {
40635
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
40636
+ };
40637
+
40638
+
40639
+ /**
40640
+ * @param {number} value
40641
+ * @return {!proto.payment.CompensationItem} returns this
40642
+ */
40643
+ proto.payment.CompensationItem.prototype.setUserId = function(value) {
40644
+ return jspb.Message.setProto3IntField(this, 3, value);
40645
+ };
40646
+
40647
+
40648
+ /**
40649
+ * optional string compensation_type = 4;
40650
+ * @return {string}
40651
+ */
40652
+ proto.payment.CompensationItem.prototype.getCompensationType = function() {
40653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
40654
+ };
40655
+
40656
+
40657
+ /**
40658
+ * @param {string} value
40659
+ * @return {!proto.payment.CompensationItem} returns this
40660
+ */
40661
+ proto.payment.CompensationItem.prototype.setCompensationType = function(value) {
40662
+ return jspb.Message.setProto3StringField(this, 4, value);
40663
+ };
40664
+
40665
+
40666
+ /**
40667
+ * optional string transaction_code = 5;
40668
+ * @return {string}
40669
+ */
40670
+ proto.payment.CompensationItem.prototype.getTransactionCode = function() {
40671
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
40672
+ };
40673
+
40674
+
40675
+ /**
40676
+ * @param {string} value
40677
+ * @return {!proto.payment.CompensationItem} returns this
40678
+ */
40679
+ proto.payment.CompensationItem.prototype.setTransactionCode = function(value) {
40680
+ return jspb.Message.setProto3StringField(this, 5, value);
40681
+ };
40682
+
40683
+
40684
+ /**
40685
+ * optional int64 amount_minor = 6;
40686
+ * @return {number}
40687
+ */
40688
+ proto.payment.CompensationItem.prototype.getAmountMinor = function() {
40689
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
40690
+ };
40691
+
40692
+
40693
+ /**
40694
+ * @param {number} value
40695
+ * @return {!proto.payment.CompensationItem} returns this
40696
+ */
40697
+ proto.payment.CompensationItem.prototype.setAmountMinor = function(value) {
40698
+ return jspb.Message.setProto3IntField(this, 6, value);
40699
+ };
40700
+
40701
+
40702
+ /**
40703
+ * optional string currency = 7;
40704
+ * @return {string}
40705
+ */
40706
+ proto.payment.CompensationItem.prototype.getCurrency = function() {
40707
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
40708
+ };
40709
+
40710
+
40711
+ /**
40712
+ * @param {string} value
40713
+ * @return {!proto.payment.CompensationItem} returns this
40714
+ */
40715
+ proto.payment.CompensationItem.prototype.setCurrency = function(value) {
40716
+ return jspb.Message.setProto3StringField(this, 7, value);
40717
+ };
40718
+
40719
+
40720
+ /**
40721
+ * optional int32 currency_scale = 8;
40722
+ * @return {number}
40723
+ */
40724
+ proto.payment.CompensationItem.prototype.getCurrencyScale = function() {
40725
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
40726
+ };
40727
+
40728
+
40729
+ /**
40730
+ * @param {number} value
40731
+ * @return {!proto.payment.CompensationItem} returns this
40732
+ */
40733
+ proto.payment.CompensationItem.prototype.setCurrencyScale = function(value) {
40734
+ return jspb.Message.setProto3IntField(this, 8, value);
40735
+ };
40736
+
40737
+
40738
+ /**
40739
+ * optional string wager_multiplier = 9;
40740
+ * @return {string}
40741
+ */
40742
+ proto.payment.CompensationItem.prototype.getWagerMultiplier = function() {
40743
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
40744
+ };
40745
+
40746
+
40747
+ /**
40748
+ * @param {string} value
40749
+ * @return {!proto.payment.CompensationItem} returns this
40750
+ */
40751
+ proto.payment.CompensationItem.prototype.setWagerMultiplier = function(value) {
40752
+ return jspb.Message.setProto3StringField(this, 9, value);
40753
+ };
40754
+
40755
+
40756
+ /**
40757
+ * optional string promo_or_bonus_id = 10;
40758
+ * @return {string}
40759
+ */
40760
+ proto.payment.CompensationItem.prototype.getPromoOrBonusId = function() {
40761
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
40762
+ };
40763
+
40764
+
40765
+ /**
40766
+ * @param {string} value
40767
+ * @return {!proto.payment.CompensationItem} returns this
40768
+ */
40769
+ proto.payment.CompensationItem.prototype.setPromoOrBonusId = function(value) {
40770
+ return jspb.Message.setField(this, 10, value);
40771
+ };
40772
+
40773
+
40774
+ /**
40775
+ * Clears the field making it undefined.
40776
+ * @return {!proto.payment.CompensationItem} returns this
40777
+ */
40778
+ proto.payment.CompensationItem.prototype.clearPromoOrBonusId = function() {
40779
+ return jspb.Message.setField(this, 10, undefined);
40780
+ };
40781
+
40782
+
40783
+ /**
40784
+ * Returns whether this field is set.
40785
+ * @return {boolean}
40786
+ */
40787
+ proto.payment.CompensationItem.prototype.hasPromoOrBonusId = function() {
40788
+ return jspb.Message.getField(this, 10) != null;
40789
+ };
40790
+
40791
+
40792
+ /**
40793
+ * optional string internal_comment = 11;
40794
+ * @return {string}
40795
+ */
40796
+ proto.payment.CompensationItem.prototype.getInternalComment = function() {
40797
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
40798
+ };
40799
+
40800
+
40801
+ /**
40802
+ * @param {string} value
40803
+ * @return {!proto.payment.CompensationItem} returns this
40804
+ */
40805
+ proto.payment.CompensationItem.prototype.setInternalComment = function(value) {
40806
+ return jspb.Message.setProto3StringField(this, 11, value);
40807
+ };
40808
+
40809
+
40810
+ /**
40811
+ * optional int32 operator_id = 12;
40812
+ * @return {number}
40813
+ */
40814
+ proto.payment.CompensationItem.prototype.getOperatorId = function() {
40815
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
40816
+ };
40817
+
40818
+
40819
+ /**
40820
+ * @param {number} value
40821
+ * @return {!proto.payment.CompensationItem} returns this
40822
+ */
40823
+ proto.payment.CompensationItem.prototype.setOperatorId = function(value) {
40824
+ return jspb.Message.setProto3IntField(this, 12, value);
40825
+ };
40826
+
40827
+
40828
+ /**
40829
+ * optional string status_code = 13;
40830
+ * @return {string}
40831
+ */
40832
+ proto.payment.CompensationItem.prototype.getStatusCode = function() {
40833
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
40834
+ };
40835
+
40836
+
40837
+ /**
40838
+ * @param {string} value
40839
+ * @return {!proto.payment.CompensationItem} returns this
40840
+ */
40841
+ proto.payment.CompensationItem.prototype.setStatusCode = function(value) {
40842
+ return jspb.Message.setProto3StringField(this, 13, value);
40843
+ };
40844
+
40845
+
40846
+ /**
40847
+ * optional string created_at = 14;
40848
+ * @return {string}
40849
+ */
40850
+ proto.payment.CompensationItem.prototype.getCreatedAt = function() {
40851
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
40852
+ };
40853
+
40854
+
40855
+ /**
40856
+ * @param {string} value
40857
+ * @return {!proto.payment.CompensationItem} returns this
40858
+ */
40859
+ proto.payment.CompensationItem.prototype.setCreatedAt = function(value) {
40860
+ return jspb.Message.setProto3StringField(this, 14, value);
40861
+ };
40862
+
40863
+
40864
+ /**
40865
+ * optional string completed_at = 15;
40866
+ * @return {string}
40867
+ */
40868
+ proto.payment.CompensationItem.prototype.getCompletedAt = function() {
40869
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
40870
+ };
40871
+
40872
+
40873
+ /**
40874
+ * @param {string} value
40875
+ * @return {!proto.payment.CompensationItem} returns this
40876
+ */
40877
+ proto.payment.CompensationItem.prototype.setCompletedAt = function(value) {
40878
+ return jspb.Message.setField(this, 15, value);
40879
+ };
40880
+
40881
+
40882
+ /**
40883
+ * Clears the field making it undefined.
40884
+ * @return {!proto.payment.CompensationItem} returns this
40885
+ */
40886
+ proto.payment.CompensationItem.prototype.clearCompletedAt = function() {
40887
+ return jspb.Message.setField(this, 15, undefined);
40888
+ };
40889
+
40890
+
40891
+ /**
40892
+ * Returns whether this field is set.
40893
+ * @return {boolean}
40894
+ */
40895
+ proto.payment.CompensationItem.prototype.hasCompletedAt = function() {
40896
+ return jspb.Message.getField(this, 15) != null;
40897
+ };
40898
+
40899
+
40900
+
40901
+ /**
40902
+ * List of repeated fields within this message type.
40903
+ * @private {!Array<number>}
40904
+ * @const
40905
+ */
40906
+ proto.payment.CompensationItemsResponse.repeatedFields_ = [1];
40907
+
40908
+
40909
+
40910
+ if (jspb.Message.GENERATE_TO_OBJECT) {
40911
+ /**
40912
+ * Creates an object representation of this proto.
40913
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
40914
+ * Optional fields that are not set will be set to undefined.
40915
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40916
+ * For the list of reserved names please see:
40917
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
40918
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
40919
+ * JSPB instance for transitional soy proto support:
40920
+ * http://goto/soy-param-migration
40921
+ * @return {!Object}
40922
+ */
40923
+ proto.payment.CompensationItemsResponse.prototype.toObject = function(opt_includeInstance) {
40924
+ return proto.payment.CompensationItemsResponse.toObject(opt_includeInstance, this);
40925
+ };
40926
+
40927
+
40928
+ /**
40929
+ * Static version of the {@see toObject} method.
40930
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
40931
+ * the JSPB instance for transitional soy proto support:
40932
+ * http://goto/soy-param-migration
40933
+ * @param {!proto.payment.CompensationItemsResponse} msg The msg instance to transform.
40934
+ * @return {!Object}
40935
+ * @suppress {unusedLocalVariables} f is only used for nested messages
40936
+ */
40937
+ proto.payment.CompensationItemsResponse.toObject = function(includeInstance, msg) {
40938
+ var f, obj = {
40939
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
40940
+ proto.payment.CompensationItem.toObject, includeInstance),
40941
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
40942
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
40943
+ };
40944
+
40945
+ if (includeInstance) {
40946
+ obj.$jspbMessageInstance = msg;
40947
+ }
40948
+ return obj;
40949
+ };
40950
+ }
40951
+
40952
+
40953
+ /**
40954
+ * Deserializes binary data (in protobuf wire format).
40955
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
40956
+ * @return {!proto.payment.CompensationItemsResponse}
40957
+ */
40958
+ proto.payment.CompensationItemsResponse.deserializeBinary = function(bytes) {
40959
+ var reader = new jspb.BinaryReader(bytes);
40960
+ var msg = new proto.payment.CompensationItemsResponse;
40961
+ return proto.payment.CompensationItemsResponse.deserializeBinaryFromReader(msg, reader);
40962
+ };
40963
+
40964
+
40965
+ /**
40966
+ * Deserializes binary data (in protobuf wire format) from the
40967
+ * given reader into the given message object.
40968
+ * @param {!proto.payment.CompensationItemsResponse} msg The message object to deserialize into.
40969
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
40970
+ * @return {!proto.payment.CompensationItemsResponse}
40971
+ */
40972
+ proto.payment.CompensationItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
40973
+ while (reader.nextField()) {
40974
+ if (reader.isEndGroup()) {
40975
+ break;
40976
+ }
40977
+ var field = reader.getFieldNumber();
40978
+ switch (field) {
40979
+ case 1:
40980
+ var value = new proto.payment.CompensationItem;
40981
+ reader.readMessage(value,proto.payment.CompensationItem.deserializeBinaryFromReader);
40982
+ msg.addItems(value);
40983
+ break;
40984
+ case 2:
40985
+ var value = /** @type {number} */ (reader.readInt32());
40986
+ msg.setTotalPages(value);
40987
+ break;
40988
+ case 3:
40989
+ var value = /** @type {number} */ (reader.readInt32());
40990
+ msg.setTotalItems(value);
40991
+ break;
40992
+ default:
40993
+ reader.skipField();
40994
+ break;
40995
+ }
40996
+ }
40997
+ return msg;
40998
+ };
40999
+
41000
+
41001
+ /**
41002
+ * Serializes the message to binary data (in protobuf wire format).
41003
+ * @return {!Uint8Array}
41004
+ */
41005
+ proto.payment.CompensationItemsResponse.prototype.serializeBinary = function() {
41006
+ var writer = new jspb.BinaryWriter();
41007
+ proto.payment.CompensationItemsResponse.serializeBinaryToWriter(this, writer);
41008
+ return writer.getResultBuffer();
41009
+ };
41010
+
41011
+
41012
+ /**
41013
+ * Serializes the given message to binary data (in protobuf wire
41014
+ * format), writing to the given BinaryWriter.
41015
+ * @param {!proto.payment.CompensationItemsResponse} message
41016
+ * @param {!jspb.BinaryWriter} writer
41017
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41018
+ */
41019
+ proto.payment.CompensationItemsResponse.serializeBinaryToWriter = function(message, writer) {
41020
+ var f = undefined;
41021
+ f = message.getItemsList();
41022
+ if (f.length > 0) {
41023
+ writer.writeRepeatedMessage(
41024
+ 1,
41025
+ f,
41026
+ proto.payment.CompensationItem.serializeBinaryToWriter
41027
+ );
41028
+ }
41029
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
41030
+ if (f != null) {
41031
+ writer.writeInt32(
41032
+ 2,
41033
+ f
41034
+ );
41035
+ }
41036
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
41037
+ if (f != null) {
41038
+ writer.writeInt32(
41039
+ 3,
41040
+ f
41041
+ );
41042
+ }
41043
+ };
41044
+
41045
+
41046
+ /**
41047
+ * repeated CompensationItem items = 1;
41048
+ * @return {!Array<!proto.payment.CompensationItem>}
41049
+ */
41050
+ proto.payment.CompensationItemsResponse.prototype.getItemsList = function() {
41051
+ return /** @type{!Array<!proto.payment.CompensationItem>} */ (
41052
+ jspb.Message.getRepeatedWrapperField(this, proto.payment.CompensationItem, 1));
41053
+ };
41054
+
41055
+
41056
+ /**
41057
+ * @param {!Array<!proto.payment.CompensationItem>} value
41058
+ * @return {!proto.payment.CompensationItemsResponse} returns this
41059
+ */
41060
+ proto.payment.CompensationItemsResponse.prototype.setItemsList = function(value) {
41061
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
41062
+ };
41063
+
41064
+
41065
+ /**
41066
+ * @param {!proto.payment.CompensationItem=} opt_value
41067
+ * @param {number=} opt_index
41068
+ * @return {!proto.payment.CompensationItem}
41069
+ */
41070
+ proto.payment.CompensationItemsResponse.prototype.addItems = function(opt_value, opt_index) {
41071
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.CompensationItem, opt_index);
41072
+ };
41073
+
41074
+
41075
+ /**
41076
+ * Clears the list making it empty but non-null.
41077
+ * @return {!proto.payment.CompensationItemsResponse} returns this
41078
+ */
41079
+ proto.payment.CompensationItemsResponse.prototype.clearItemsList = function() {
41080
+ return this.setItemsList([]);
41081
+ };
41082
+
41083
+
41084
+ /**
41085
+ * optional int32 total_pages = 2;
41086
+ * @return {number}
41087
+ */
41088
+ proto.payment.CompensationItemsResponse.prototype.getTotalPages = function() {
41089
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
41090
+ };
41091
+
41092
+
41093
+ /**
41094
+ * @param {number} value
41095
+ * @return {!proto.payment.CompensationItemsResponse} returns this
41096
+ */
41097
+ proto.payment.CompensationItemsResponse.prototype.setTotalPages = function(value) {
41098
+ return jspb.Message.setField(this, 2, value);
41099
+ };
41100
+
41101
+
41102
+ /**
41103
+ * Clears the field making it undefined.
41104
+ * @return {!proto.payment.CompensationItemsResponse} returns this
41105
+ */
41106
+ proto.payment.CompensationItemsResponse.prototype.clearTotalPages = function() {
41107
+ return jspb.Message.setField(this, 2, undefined);
41108
+ };
41109
+
41110
+
41111
+ /**
41112
+ * Returns whether this field is set.
41113
+ * @return {boolean}
41114
+ */
41115
+ proto.payment.CompensationItemsResponse.prototype.hasTotalPages = function() {
41116
+ return jspb.Message.getField(this, 2) != null;
41117
+ };
41118
+
41119
+
41120
+ /**
41121
+ * optional int32 total_items = 3;
41122
+ * @return {number}
41123
+ */
41124
+ proto.payment.CompensationItemsResponse.prototype.getTotalItems = function() {
41125
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
41126
+ };
41127
+
41128
+
41129
+ /**
41130
+ * @param {number} value
41131
+ * @return {!proto.payment.CompensationItemsResponse} returns this
41132
+ */
41133
+ proto.payment.CompensationItemsResponse.prototype.setTotalItems = function(value) {
41134
+ return jspb.Message.setField(this, 3, value);
41135
+ };
41136
+
41137
+
41138
+ /**
41139
+ * Clears the field making it undefined.
41140
+ * @return {!proto.payment.CompensationItemsResponse} returns this
41141
+ */
41142
+ proto.payment.CompensationItemsResponse.prototype.clearTotalItems = function() {
41143
+ return jspb.Message.setField(this, 3, undefined);
41144
+ };
41145
+
41146
+
41147
+ /**
41148
+ * Returns whether this field is set.
41149
+ * @return {boolean}
41150
+ */
41151
+ proto.payment.CompensationItemsResponse.prototype.hasTotalItems = function() {
41152
+ return jspb.Message.getField(this, 3) != null;
41153
+ };
41154
+
41155
+
39634
41156
 
39635
41157
 
39636
41158