protobuf-platform 1.2.288 → 1.2.289

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.
@@ -22,7 +22,10 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.payment.AttemptDepositRequest', null, global);
25
+ goog.exportSymbol('proto.payment.CurrencyItem', null, global);
26
+ goog.exportSymbol('proto.payment.CurrencyItemsResponse', null, global);
25
27
  goog.exportSymbol('proto.payment.CurrencyMetadataResponse', null, global);
28
+ goog.exportSymbol('proto.payment.CurrencyResponse', null, global);
26
29
  goog.exportSymbol('proto.payment.DepositItem', null, global);
27
30
  goog.exportSymbol('proto.payment.DepositItemsResponse', null, global);
28
31
  goog.exportSymbol('proto.payment.DepositRedirectFormRequest', null, global);
@@ -33,6 +36,7 @@ goog.exportSymbol('proto.payment.DepositStatusItemsResponse', null, global);
33
36
  goog.exportSymbol('proto.payment.DepositWebHookRequest', null, global);
34
37
  goog.exportSymbol('proto.payment.File', null, global);
35
38
  goog.exportSymbol('proto.payment.GetCurrencyMetadataRequest', null, global);
39
+ goog.exportSymbol('proto.payment.GetCurrencyRequest', null, global);
36
40
  goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
37
41
  goog.exportSymbol('proto.payment.GetFileRequest', null, global);
38
42
  goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
@@ -72,6 +76,7 @@ goog.exportSymbol('proto.payment.ProviderTranslationRequest', null, global);
72
76
  goog.exportSymbol('proto.payment.ProviderTranslationResponse', null, global);
73
77
  goog.exportSymbol('proto.payment.SegmentedUserRequest', null, global);
74
78
  goog.exportSymbol('proto.payment.SegmentedUserResponse', null, global);
79
+ goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
75
80
  goog.exportSymbol('proto.payment.UserDepositItem', null, global);
76
81
  goog.exportSymbol('proto.payment.UserDepositItemsResponse', null, global);
77
82
  goog.exportSymbol('proto.payment.UserPaymentMethodItem', null, global);
@@ -1211,6 +1216,111 @@ if (goog.DEBUG && !COMPILED) {
1211
1216
  */
1212
1217
  proto.payment.CurrencyMetadataResponse.displayName = 'proto.payment.CurrencyMetadataResponse';
1213
1218
  }
1219
+ /**
1220
+ * Generated by JsPbCodeGenerator.
1221
+ * @param {Array=} opt_data Optional initial data array, typically from a
1222
+ * server response, or constructed directly in Javascript. The array is used
1223
+ * in place and becomes part of the constructed object. It is not cloned.
1224
+ * If no data is provided, the constructed object will be empty, but still
1225
+ * valid.
1226
+ * @extends {jspb.Message}
1227
+ * @constructor
1228
+ */
1229
+ proto.payment.GetCurrencyRequest = function(opt_data) {
1230
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1231
+ };
1232
+ goog.inherits(proto.payment.GetCurrencyRequest, jspb.Message);
1233
+ if (goog.DEBUG && !COMPILED) {
1234
+ /**
1235
+ * @public
1236
+ * @override
1237
+ */
1238
+ proto.payment.GetCurrencyRequest.displayName = 'proto.payment.GetCurrencyRequest';
1239
+ }
1240
+ /**
1241
+ * Generated by JsPbCodeGenerator.
1242
+ * @param {Array=} opt_data Optional initial data array, typically from a
1243
+ * server response, or constructed directly in Javascript. The array is used
1244
+ * in place and becomes part of the constructed object. It is not cloned.
1245
+ * If no data is provided, the constructed object will be empty, but still
1246
+ * valid.
1247
+ * @extends {jspb.Message}
1248
+ * @constructor
1249
+ */
1250
+ proto.payment.SyncCurrenciesRequest = function(opt_data) {
1251
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1252
+ };
1253
+ goog.inherits(proto.payment.SyncCurrenciesRequest, jspb.Message);
1254
+ if (goog.DEBUG && !COMPILED) {
1255
+ /**
1256
+ * @public
1257
+ * @override
1258
+ */
1259
+ proto.payment.SyncCurrenciesRequest.displayName = 'proto.payment.SyncCurrenciesRequest';
1260
+ }
1261
+ /**
1262
+ * Generated by JsPbCodeGenerator.
1263
+ * @param {Array=} opt_data Optional initial data array, typically from a
1264
+ * server response, or constructed directly in Javascript. The array is used
1265
+ * in place and becomes part of the constructed object. It is not cloned.
1266
+ * If no data is provided, the constructed object will be empty, but still
1267
+ * valid.
1268
+ * @extends {jspb.Message}
1269
+ * @constructor
1270
+ */
1271
+ proto.payment.CurrencyItem = function(opt_data) {
1272
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1273
+ };
1274
+ goog.inherits(proto.payment.CurrencyItem, jspb.Message);
1275
+ if (goog.DEBUG && !COMPILED) {
1276
+ /**
1277
+ * @public
1278
+ * @override
1279
+ */
1280
+ proto.payment.CurrencyItem.displayName = 'proto.payment.CurrencyItem';
1281
+ }
1282
+ /**
1283
+ * Generated by JsPbCodeGenerator.
1284
+ * @param {Array=} opt_data Optional initial data array, typically from a
1285
+ * server response, or constructed directly in Javascript. The array is used
1286
+ * in place and becomes part of the constructed object. It is not cloned.
1287
+ * If no data is provided, the constructed object will be empty, but still
1288
+ * valid.
1289
+ * @extends {jspb.Message}
1290
+ * @constructor
1291
+ */
1292
+ proto.payment.CurrencyResponse = function(opt_data) {
1293
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1294
+ };
1295
+ goog.inherits(proto.payment.CurrencyResponse, jspb.Message);
1296
+ if (goog.DEBUG && !COMPILED) {
1297
+ /**
1298
+ * @public
1299
+ * @override
1300
+ */
1301
+ proto.payment.CurrencyResponse.displayName = 'proto.payment.CurrencyResponse';
1302
+ }
1303
+ /**
1304
+ * Generated by JsPbCodeGenerator.
1305
+ * @param {Array=} opt_data Optional initial data array, typically from a
1306
+ * server response, or constructed directly in Javascript. The array is used
1307
+ * in place and becomes part of the constructed object. It is not cloned.
1308
+ * If no data is provided, the constructed object will be empty, but still
1309
+ * valid.
1310
+ * @extends {jspb.Message}
1311
+ * @constructor
1312
+ */
1313
+ proto.payment.CurrencyItemsResponse = function(opt_data) {
1314
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.CurrencyItemsResponse.repeatedFields_, null);
1315
+ };
1316
+ goog.inherits(proto.payment.CurrencyItemsResponse, jspb.Message);
1317
+ if (goog.DEBUG && !COMPILED) {
1318
+ /**
1319
+ * @public
1320
+ * @override
1321
+ */
1322
+ proto.payment.CurrencyItemsResponse.displayName = 'proto.payment.CurrencyItemsResponse';
1323
+ }
1214
1324
 
1215
1325
 
1216
1326
 
@@ -18797,4 +18907,1557 @@ proto.payment.CurrencyMetadataResponse.prototype.setCurrencyScale = function(val
18797
18907
  };
18798
18908
 
18799
18909
 
18910
+
18911
+
18912
+
18913
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18914
+ /**
18915
+ * Creates an object representation of this proto.
18916
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18917
+ * Optional fields that are not set will be set to undefined.
18918
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18919
+ * For the list of reserved names please see:
18920
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18921
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18922
+ * JSPB instance for transitional soy proto support:
18923
+ * http://goto/soy-param-migration
18924
+ * @return {!Object}
18925
+ */
18926
+ proto.payment.GetCurrencyRequest.prototype.toObject = function(opt_includeInstance) {
18927
+ return proto.payment.GetCurrencyRequest.toObject(opt_includeInstance, this);
18928
+ };
18929
+
18930
+
18931
+ /**
18932
+ * Static version of the {@see toObject} method.
18933
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18934
+ * the JSPB instance for transitional soy proto support:
18935
+ * http://goto/soy-param-migration
18936
+ * @param {!proto.payment.GetCurrencyRequest} msg The msg instance to transform.
18937
+ * @return {!Object}
18938
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18939
+ */
18940
+ proto.payment.GetCurrencyRequest.toObject = function(includeInstance, msg) {
18941
+ var f, obj = {
18942
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
18943
+ };
18944
+
18945
+ if (includeInstance) {
18946
+ obj.$jspbMessageInstance = msg;
18947
+ }
18948
+ return obj;
18949
+ };
18950
+ }
18951
+
18952
+
18953
+ /**
18954
+ * Deserializes binary data (in protobuf wire format).
18955
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18956
+ * @return {!proto.payment.GetCurrencyRequest}
18957
+ */
18958
+ proto.payment.GetCurrencyRequest.deserializeBinary = function(bytes) {
18959
+ var reader = new jspb.BinaryReader(bytes);
18960
+ var msg = new proto.payment.GetCurrencyRequest;
18961
+ return proto.payment.GetCurrencyRequest.deserializeBinaryFromReader(msg, reader);
18962
+ };
18963
+
18964
+
18965
+ /**
18966
+ * Deserializes binary data (in protobuf wire format) from the
18967
+ * given reader into the given message object.
18968
+ * @param {!proto.payment.GetCurrencyRequest} msg The message object to deserialize into.
18969
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18970
+ * @return {!proto.payment.GetCurrencyRequest}
18971
+ */
18972
+ proto.payment.GetCurrencyRequest.deserializeBinaryFromReader = function(msg, reader) {
18973
+ while (reader.nextField()) {
18974
+ if (reader.isEndGroup()) {
18975
+ break;
18976
+ }
18977
+ var field = reader.getFieldNumber();
18978
+ switch (field) {
18979
+ case 1:
18980
+ var value = /** @type {number} */ (reader.readInt32());
18981
+ msg.setId(value);
18982
+ break;
18983
+ default:
18984
+ reader.skipField();
18985
+ break;
18986
+ }
18987
+ }
18988
+ return msg;
18989
+ };
18990
+
18991
+
18992
+ /**
18993
+ * Serializes the message to binary data (in protobuf wire format).
18994
+ * @return {!Uint8Array}
18995
+ */
18996
+ proto.payment.GetCurrencyRequest.prototype.serializeBinary = function() {
18997
+ var writer = new jspb.BinaryWriter();
18998
+ proto.payment.GetCurrencyRequest.serializeBinaryToWriter(this, writer);
18999
+ return writer.getResultBuffer();
19000
+ };
19001
+
19002
+
19003
+ /**
19004
+ * Serializes the given message to binary data (in protobuf wire
19005
+ * format), writing to the given BinaryWriter.
19006
+ * @param {!proto.payment.GetCurrencyRequest} message
19007
+ * @param {!jspb.BinaryWriter} writer
19008
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19009
+ */
19010
+ proto.payment.GetCurrencyRequest.serializeBinaryToWriter = function(message, writer) {
19011
+ var f = undefined;
19012
+ f = message.getId();
19013
+ if (f !== 0) {
19014
+ writer.writeInt32(
19015
+ 1,
19016
+ f
19017
+ );
19018
+ }
19019
+ };
19020
+
19021
+
19022
+ /**
19023
+ * optional int32 id = 1;
19024
+ * @return {number}
19025
+ */
19026
+ proto.payment.GetCurrencyRequest.prototype.getId = function() {
19027
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19028
+ };
19029
+
19030
+
19031
+ /**
19032
+ * @param {number} value
19033
+ * @return {!proto.payment.GetCurrencyRequest} returns this
19034
+ */
19035
+ proto.payment.GetCurrencyRequest.prototype.setId = function(value) {
19036
+ return jspb.Message.setProto3IntField(this, 1, value);
19037
+ };
19038
+
19039
+
19040
+
19041
+
19042
+
19043
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19044
+ /**
19045
+ * Creates an object representation of this proto.
19046
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19047
+ * Optional fields that are not set will be set to undefined.
19048
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19049
+ * For the list of reserved names please see:
19050
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19051
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19052
+ * JSPB instance for transitional soy proto support:
19053
+ * http://goto/soy-param-migration
19054
+ * @return {!Object}
19055
+ */
19056
+ proto.payment.SyncCurrenciesRequest.prototype.toObject = function(opt_includeInstance) {
19057
+ return proto.payment.SyncCurrenciesRequest.toObject(opt_includeInstance, this);
19058
+ };
19059
+
19060
+
19061
+ /**
19062
+ * Static version of the {@see toObject} method.
19063
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19064
+ * the JSPB instance for transitional soy proto support:
19065
+ * http://goto/soy-param-migration
19066
+ * @param {!proto.payment.SyncCurrenciesRequest} msg The msg instance to transform.
19067
+ * @return {!Object}
19068
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19069
+ */
19070
+ proto.payment.SyncCurrenciesRequest.toObject = function(includeInstance, msg) {
19071
+ var f, obj = {
19072
+ source: jspb.Message.getFieldWithDefault(msg, 1, "")
19073
+ };
19074
+
19075
+ if (includeInstance) {
19076
+ obj.$jspbMessageInstance = msg;
19077
+ }
19078
+ return obj;
19079
+ };
19080
+ }
19081
+
19082
+
19083
+ /**
19084
+ * Deserializes binary data (in protobuf wire format).
19085
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19086
+ * @return {!proto.payment.SyncCurrenciesRequest}
19087
+ */
19088
+ proto.payment.SyncCurrenciesRequest.deserializeBinary = function(bytes) {
19089
+ var reader = new jspb.BinaryReader(bytes);
19090
+ var msg = new proto.payment.SyncCurrenciesRequest;
19091
+ return proto.payment.SyncCurrenciesRequest.deserializeBinaryFromReader(msg, reader);
19092
+ };
19093
+
19094
+
19095
+ /**
19096
+ * Deserializes binary data (in protobuf wire format) from the
19097
+ * given reader into the given message object.
19098
+ * @param {!proto.payment.SyncCurrenciesRequest} msg The message object to deserialize into.
19099
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19100
+ * @return {!proto.payment.SyncCurrenciesRequest}
19101
+ */
19102
+ proto.payment.SyncCurrenciesRequest.deserializeBinaryFromReader = function(msg, reader) {
19103
+ while (reader.nextField()) {
19104
+ if (reader.isEndGroup()) {
19105
+ break;
19106
+ }
19107
+ var field = reader.getFieldNumber();
19108
+ switch (field) {
19109
+ case 1:
19110
+ var value = /** @type {string} */ (reader.readString());
19111
+ msg.setSource(value);
19112
+ break;
19113
+ default:
19114
+ reader.skipField();
19115
+ break;
19116
+ }
19117
+ }
19118
+ return msg;
19119
+ };
19120
+
19121
+
19122
+ /**
19123
+ * Serializes the message to binary data (in protobuf wire format).
19124
+ * @return {!Uint8Array}
19125
+ */
19126
+ proto.payment.SyncCurrenciesRequest.prototype.serializeBinary = function() {
19127
+ var writer = new jspb.BinaryWriter();
19128
+ proto.payment.SyncCurrenciesRequest.serializeBinaryToWriter(this, writer);
19129
+ return writer.getResultBuffer();
19130
+ };
19131
+
19132
+
19133
+ /**
19134
+ * Serializes the given message to binary data (in protobuf wire
19135
+ * format), writing to the given BinaryWriter.
19136
+ * @param {!proto.payment.SyncCurrenciesRequest} message
19137
+ * @param {!jspb.BinaryWriter} writer
19138
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19139
+ */
19140
+ proto.payment.SyncCurrenciesRequest.serializeBinaryToWriter = function(message, writer) {
19141
+ var f = undefined;
19142
+ f = /** @type {string} */ (jspb.Message.getField(message, 1));
19143
+ if (f != null) {
19144
+ writer.writeString(
19145
+ 1,
19146
+ f
19147
+ );
19148
+ }
19149
+ };
19150
+
19151
+
19152
+ /**
19153
+ * optional string source = 1;
19154
+ * @return {string}
19155
+ */
19156
+ proto.payment.SyncCurrenciesRequest.prototype.getSource = function() {
19157
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
19158
+ };
19159
+
19160
+
19161
+ /**
19162
+ * @param {string} value
19163
+ * @return {!proto.payment.SyncCurrenciesRequest} returns this
19164
+ */
19165
+ proto.payment.SyncCurrenciesRequest.prototype.setSource = function(value) {
19166
+ return jspb.Message.setField(this, 1, value);
19167
+ };
19168
+
19169
+
19170
+ /**
19171
+ * Clears the field making it undefined.
19172
+ * @return {!proto.payment.SyncCurrenciesRequest} returns this
19173
+ */
19174
+ proto.payment.SyncCurrenciesRequest.prototype.clearSource = function() {
19175
+ return jspb.Message.setField(this, 1, undefined);
19176
+ };
19177
+
19178
+
19179
+ /**
19180
+ * Returns whether this field is set.
19181
+ * @return {boolean}
19182
+ */
19183
+ proto.payment.SyncCurrenciesRequest.prototype.hasSource = function() {
19184
+ return jspb.Message.getField(this, 1) != null;
19185
+ };
19186
+
19187
+
19188
+
19189
+
19190
+
19191
+ if (jspb.Message.GENERATE_TO_OBJECT) {
19192
+ /**
19193
+ * Creates an object representation of this proto.
19194
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
19195
+ * Optional fields that are not set will be set to undefined.
19196
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
19197
+ * For the list of reserved names please see:
19198
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
19199
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
19200
+ * JSPB instance for transitional soy proto support:
19201
+ * http://goto/soy-param-migration
19202
+ * @return {!Object}
19203
+ */
19204
+ proto.payment.CurrencyItem.prototype.toObject = function(opt_includeInstance) {
19205
+ return proto.payment.CurrencyItem.toObject(opt_includeInstance, this);
19206
+ };
19207
+
19208
+
19209
+ /**
19210
+ * Static version of the {@see toObject} method.
19211
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
19212
+ * the JSPB instance for transitional soy proto support:
19213
+ * http://goto/soy-param-migration
19214
+ * @param {!proto.payment.CurrencyItem} msg The msg instance to transform.
19215
+ * @return {!Object}
19216
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19217
+ */
19218
+ proto.payment.CurrencyItem.toObject = function(includeInstance, msg) {
19219
+ var f, obj = {
19220
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
19221
+ code: jspb.Message.getFieldWithDefault(msg, 2, ""),
19222
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
19223
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
19224
+ symbol: jspb.Message.getFieldWithDefault(msg, 5, ""),
19225
+ scale: jspb.Message.getFieldWithDefault(msg, 6, 0),
19226
+ externalSource: jspb.Message.getFieldWithDefault(msg, 7, ""),
19227
+ externalId: jspb.Message.getFieldWithDefault(msg, 8, ""),
19228
+ sourcePayload: jspb.Message.getFieldWithDefault(msg, 9, ""),
19229
+ price: jspb.Message.getFieldWithDefault(msg, 10, ""),
19230
+ priceCurrencyCode: jspb.Message.getFieldWithDefault(msg, 11, ""),
19231
+ priceUpdatedAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
19232
+ isActive: jspb.Message.getFieldWithDefault(msg, 13, 0),
19233
+ isSystem: jspb.Message.getFieldWithDefault(msg, 14, 0),
19234
+ createdAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
19235
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 16, "")
19236
+ };
19237
+
19238
+ if (includeInstance) {
19239
+ obj.$jspbMessageInstance = msg;
19240
+ }
19241
+ return obj;
19242
+ };
19243
+ }
19244
+
19245
+
19246
+ /**
19247
+ * Deserializes binary data (in protobuf wire format).
19248
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
19249
+ * @return {!proto.payment.CurrencyItem}
19250
+ */
19251
+ proto.payment.CurrencyItem.deserializeBinary = function(bytes) {
19252
+ var reader = new jspb.BinaryReader(bytes);
19253
+ var msg = new proto.payment.CurrencyItem;
19254
+ return proto.payment.CurrencyItem.deserializeBinaryFromReader(msg, reader);
19255
+ };
19256
+
19257
+
19258
+ /**
19259
+ * Deserializes binary data (in protobuf wire format) from the
19260
+ * given reader into the given message object.
19261
+ * @param {!proto.payment.CurrencyItem} msg The message object to deserialize into.
19262
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
19263
+ * @return {!proto.payment.CurrencyItem}
19264
+ */
19265
+ proto.payment.CurrencyItem.deserializeBinaryFromReader = function(msg, reader) {
19266
+ while (reader.nextField()) {
19267
+ if (reader.isEndGroup()) {
19268
+ break;
19269
+ }
19270
+ var field = reader.getFieldNumber();
19271
+ switch (field) {
19272
+ case 1:
19273
+ var value = /** @type {number} */ (reader.readInt32());
19274
+ msg.setId(value);
19275
+ break;
19276
+ case 2:
19277
+ var value = /** @type {string} */ (reader.readString());
19278
+ msg.setCode(value);
19279
+ break;
19280
+ case 3:
19281
+ var value = /** @type {string} */ (reader.readString());
19282
+ msg.setType(value);
19283
+ break;
19284
+ case 4:
19285
+ var value = /** @type {string} */ (reader.readString());
19286
+ msg.setName(value);
19287
+ break;
19288
+ case 5:
19289
+ var value = /** @type {string} */ (reader.readString());
19290
+ msg.setSymbol(value);
19291
+ break;
19292
+ case 6:
19293
+ var value = /** @type {number} */ (reader.readInt32());
19294
+ msg.setScale(value);
19295
+ break;
19296
+ case 7:
19297
+ var value = /** @type {string} */ (reader.readString());
19298
+ msg.setExternalSource(value);
19299
+ break;
19300
+ case 8:
19301
+ var value = /** @type {string} */ (reader.readString());
19302
+ msg.setExternalId(value);
19303
+ break;
19304
+ case 9:
19305
+ var value = /** @type {string} */ (reader.readString());
19306
+ msg.setSourcePayload(value);
19307
+ break;
19308
+ case 10:
19309
+ var value = /** @type {string} */ (reader.readString());
19310
+ msg.setPrice(value);
19311
+ break;
19312
+ case 11:
19313
+ var value = /** @type {string} */ (reader.readString());
19314
+ msg.setPriceCurrencyCode(value);
19315
+ break;
19316
+ case 12:
19317
+ var value = /** @type {string} */ (reader.readString());
19318
+ msg.setPriceUpdatedAt(value);
19319
+ break;
19320
+ case 13:
19321
+ var value = /** @type {number} */ (reader.readInt32());
19322
+ msg.setIsActive(value);
19323
+ break;
19324
+ case 14:
19325
+ var value = /** @type {number} */ (reader.readInt32());
19326
+ msg.setIsSystem(value);
19327
+ break;
19328
+ case 15:
19329
+ var value = /** @type {string} */ (reader.readString());
19330
+ msg.setCreatedAt(value);
19331
+ break;
19332
+ case 16:
19333
+ var value = /** @type {string} */ (reader.readString());
19334
+ msg.setUpdatedAt(value);
19335
+ break;
19336
+ default:
19337
+ reader.skipField();
19338
+ break;
19339
+ }
19340
+ }
19341
+ return msg;
19342
+ };
19343
+
19344
+
19345
+ /**
19346
+ * Serializes the message to binary data (in protobuf wire format).
19347
+ * @return {!Uint8Array}
19348
+ */
19349
+ proto.payment.CurrencyItem.prototype.serializeBinary = function() {
19350
+ var writer = new jspb.BinaryWriter();
19351
+ proto.payment.CurrencyItem.serializeBinaryToWriter(this, writer);
19352
+ return writer.getResultBuffer();
19353
+ };
19354
+
19355
+
19356
+ /**
19357
+ * Serializes the given message to binary data (in protobuf wire
19358
+ * format), writing to the given BinaryWriter.
19359
+ * @param {!proto.payment.CurrencyItem} message
19360
+ * @param {!jspb.BinaryWriter} writer
19361
+ * @suppress {unusedLocalVariables} f is only used for nested messages
19362
+ */
19363
+ proto.payment.CurrencyItem.serializeBinaryToWriter = function(message, writer) {
19364
+ var f = undefined;
19365
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
19366
+ if (f != null) {
19367
+ writer.writeInt32(
19368
+ 1,
19369
+ f
19370
+ );
19371
+ }
19372
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
19373
+ if (f != null) {
19374
+ writer.writeString(
19375
+ 2,
19376
+ f
19377
+ );
19378
+ }
19379
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
19380
+ if (f != null) {
19381
+ writer.writeString(
19382
+ 3,
19383
+ f
19384
+ );
19385
+ }
19386
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
19387
+ if (f != null) {
19388
+ writer.writeString(
19389
+ 4,
19390
+ f
19391
+ );
19392
+ }
19393
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
19394
+ if (f != null) {
19395
+ writer.writeString(
19396
+ 5,
19397
+ f
19398
+ );
19399
+ }
19400
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
19401
+ if (f != null) {
19402
+ writer.writeInt32(
19403
+ 6,
19404
+ f
19405
+ );
19406
+ }
19407
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
19408
+ if (f != null) {
19409
+ writer.writeString(
19410
+ 7,
19411
+ f
19412
+ );
19413
+ }
19414
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
19415
+ if (f != null) {
19416
+ writer.writeString(
19417
+ 8,
19418
+ f
19419
+ );
19420
+ }
19421
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
19422
+ if (f != null) {
19423
+ writer.writeString(
19424
+ 9,
19425
+ f
19426
+ );
19427
+ }
19428
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
19429
+ if (f != null) {
19430
+ writer.writeString(
19431
+ 10,
19432
+ f
19433
+ );
19434
+ }
19435
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
19436
+ if (f != null) {
19437
+ writer.writeString(
19438
+ 11,
19439
+ f
19440
+ );
19441
+ }
19442
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
19443
+ if (f != null) {
19444
+ writer.writeString(
19445
+ 12,
19446
+ f
19447
+ );
19448
+ }
19449
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
19450
+ if (f != null) {
19451
+ writer.writeInt32(
19452
+ 13,
19453
+ f
19454
+ );
19455
+ }
19456
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
19457
+ if (f != null) {
19458
+ writer.writeInt32(
19459
+ 14,
19460
+ f
19461
+ );
19462
+ }
19463
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
19464
+ if (f != null) {
19465
+ writer.writeString(
19466
+ 15,
19467
+ f
19468
+ );
19469
+ }
19470
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
19471
+ if (f != null) {
19472
+ writer.writeString(
19473
+ 16,
19474
+ f
19475
+ );
19476
+ }
19477
+ };
19478
+
19479
+
19480
+ /**
19481
+ * optional int32 id = 1;
19482
+ * @return {number}
19483
+ */
19484
+ proto.payment.CurrencyItem.prototype.getId = function() {
19485
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
19486
+ };
19487
+
19488
+
19489
+ /**
19490
+ * @param {number} value
19491
+ * @return {!proto.payment.CurrencyItem} returns this
19492
+ */
19493
+ proto.payment.CurrencyItem.prototype.setId = function(value) {
19494
+ return jspb.Message.setField(this, 1, value);
19495
+ };
19496
+
19497
+
19498
+ /**
19499
+ * Clears the field making it undefined.
19500
+ * @return {!proto.payment.CurrencyItem} returns this
19501
+ */
19502
+ proto.payment.CurrencyItem.prototype.clearId = function() {
19503
+ return jspb.Message.setField(this, 1, undefined);
19504
+ };
19505
+
19506
+
19507
+ /**
19508
+ * Returns whether this field is set.
19509
+ * @return {boolean}
19510
+ */
19511
+ proto.payment.CurrencyItem.prototype.hasId = function() {
19512
+ return jspb.Message.getField(this, 1) != null;
19513
+ };
19514
+
19515
+
19516
+ /**
19517
+ * optional string code = 2;
19518
+ * @return {string}
19519
+ */
19520
+ proto.payment.CurrencyItem.prototype.getCode = function() {
19521
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
19522
+ };
19523
+
19524
+
19525
+ /**
19526
+ * @param {string} value
19527
+ * @return {!proto.payment.CurrencyItem} returns this
19528
+ */
19529
+ proto.payment.CurrencyItem.prototype.setCode = function(value) {
19530
+ return jspb.Message.setField(this, 2, value);
19531
+ };
19532
+
19533
+
19534
+ /**
19535
+ * Clears the field making it undefined.
19536
+ * @return {!proto.payment.CurrencyItem} returns this
19537
+ */
19538
+ proto.payment.CurrencyItem.prototype.clearCode = function() {
19539
+ return jspb.Message.setField(this, 2, undefined);
19540
+ };
19541
+
19542
+
19543
+ /**
19544
+ * Returns whether this field is set.
19545
+ * @return {boolean}
19546
+ */
19547
+ proto.payment.CurrencyItem.prototype.hasCode = function() {
19548
+ return jspb.Message.getField(this, 2) != null;
19549
+ };
19550
+
19551
+
19552
+ /**
19553
+ * optional string type = 3;
19554
+ * @return {string}
19555
+ */
19556
+ proto.payment.CurrencyItem.prototype.getType = function() {
19557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
19558
+ };
19559
+
19560
+
19561
+ /**
19562
+ * @param {string} value
19563
+ * @return {!proto.payment.CurrencyItem} returns this
19564
+ */
19565
+ proto.payment.CurrencyItem.prototype.setType = function(value) {
19566
+ return jspb.Message.setField(this, 3, value);
19567
+ };
19568
+
19569
+
19570
+ /**
19571
+ * Clears the field making it undefined.
19572
+ * @return {!proto.payment.CurrencyItem} returns this
19573
+ */
19574
+ proto.payment.CurrencyItem.prototype.clearType = function() {
19575
+ return jspb.Message.setField(this, 3, undefined);
19576
+ };
19577
+
19578
+
19579
+ /**
19580
+ * Returns whether this field is set.
19581
+ * @return {boolean}
19582
+ */
19583
+ proto.payment.CurrencyItem.prototype.hasType = function() {
19584
+ return jspb.Message.getField(this, 3) != null;
19585
+ };
19586
+
19587
+
19588
+ /**
19589
+ * optional string name = 4;
19590
+ * @return {string}
19591
+ */
19592
+ proto.payment.CurrencyItem.prototype.getName = function() {
19593
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19594
+ };
19595
+
19596
+
19597
+ /**
19598
+ * @param {string} value
19599
+ * @return {!proto.payment.CurrencyItem} returns this
19600
+ */
19601
+ proto.payment.CurrencyItem.prototype.setName = function(value) {
19602
+ return jspb.Message.setField(this, 4, value);
19603
+ };
19604
+
19605
+
19606
+ /**
19607
+ * Clears the field making it undefined.
19608
+ * @return {!proto.payment.CurrencyItem} returns this
19609
+ */
19610
+ proto.payment.CurrencyItem.prototype.clearName = function() {
19611
+ return jspb.Message.setField(this, 4, undefined);
19612
+ };
19613
+
19614
+
19615
+ /**
19616
+ * Returns whether this field is set.
19617
+ * @return {boolean}
19618
+ */
19619
+ proto.payment.CurrencyItem.prototype.hasName = function() {
19620
+ return jspb.Message.getField(this, 4) != null;
19621
+ };
19622
+
19623
+
19624
+ /**
19625
+ * optional string symbol = 5;
19626
+ * @return {string}
19627
+ */
19628
+ proto.payment.CurrencyItem.prototype.getSymbol = function() {
19629
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
19630
+ };
19631
+
19632
+
19633
+ /**
19634
+ * @param {string} value
19635
+ * @return {!proto.payment.CurrencyItem} returns this
19636
+ */
19637
+ proto.payment.CurrencyItem.prototype.setSymbol = function(value) {
19638
+ return jspb.Message.setField(this, 5, value);
19639
+ };
19640
+
19641
+
19642
+ /**
19643
+ * Clears the field making it undefined.
19644
+ * @return {!proto.payment.CurrencyItem} returns this
19645
+ */
19646
+ proto.payment.CurrencyItem.prototype.clearSymbol = function() {
19647
+ return jspb.Message.setField(this, 5, undefined);
19648
+ };
19649
+
19650
+
19651
+ /**
19652
+ * Returns whether this field is set.
19653
+ * @return {boolean}
19654
+ */
19655
+ proto.payment.CurrencyItem.prototype.hasSymbol = function() {
19656
+ return jspb.Message.getField(this, 5) != null;
19657
+ };
19658
+
19659
+
19660
+ /**
19661
+ * optional int32 scale = 6;
19662
+ * @return {number}
19663
+ */
19664
+ proto.payment.CurrencyItem.prototype.getScale = function() {
19665
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
19666
+ };
19667
+
19668
+
19669
+ /**
19670
+ * @param {number} value
19671
+ * @return {!proto.payment.CurrencyItem} returns this
19672
+ */
19673
+ proto.payment.CurrencyItem.prototype.setScale = function(value) {
19674
+ return jspb.Message.setField(this, 6, value);
19675
+ };
19676
+
19677
+
19678
+ /**
19679
+ * Clears the field making it undefined.
19680
+ * @return {!proto.payment.CurrencyItem} returns this
19681
+ */
19682
+ proto.payment.CurrencyItem.prototype.clearScale = function() {
19683
+ return jspb.Message.setField(this, 6, undefined);
19684
+ };
19685
+
19686
+
19687
+ /**
19688
+ * Returns whether this field is set.
19689
+ * @return {boolean}
19690
+ */
19691
+ proto.payment.CurrencyItem.prototype.hasScale = function() {
19692
+ return jspb.Message.getField(this, 6) != null;
19693
+ };
19694
+
19695
+
19696
+ /**
19697
+ * optional string external_source = 7;
19698
+ * @return {string}
19699
+ */
19700
+ proto.payment.CurrencyItem.prototype.getExternalSource = function() {
19701
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
19702
+ };
19703
+
19704
+
19705
+ /**
19706
+ * @param {string} value
19707
+ * @return {!proto.payment.CurrencyItem} returns this
19708
+ */
19709
+ proto.payment.CurrencyItem.prototype.setExternalSource = function(value) {
19710
+ return jspb.Message.setField(this, 7, value);
19711
+ };
19712
+
19713
+
19714
+ /**
19715
+ * Clears the field making it undefined.
19716
+ * @return {!proto.payment.CurrencyItem} returns this
19717
+ */
19718
+ proto.payment.CurrencyItem.prototype.clearExternalSource = function() {
19719
+ return jspb.Message.setField(this, 7, undefined);
19720
+ };
19721
+
19722
+
19723
+ /**
19724
+ * Returns whether this field is set.
19725
+ * @return {boolean}
19726
+ */
19727
+ proto.payment.CurrencyItem.prototype.hasExternalSource = function() {
19728
+ return jspb.Message.getField(this, 7) != null;
19729
+ };
19730
+
19731
+
19732
+ /**
19733
+ * optional string external_id = 8;
19734
+ * @return {string}
19735
+ */
19736
+ proto.payment.CurrencyItem.prototype.getExternalId = function() {
19737
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
19738
+ };
19739
+
19740
+
19741
+ /**
19742
+ * @param {string} value
19743
+ * @return {!proto.payment.CurrencyItem} returns this
19744
+ */
19745
+ proto.payment.CurrencyItem.prototype.setExternalId = function(value) {
19746
+ return jspb.Message.setField(this, 8, value);
19747
+ };
19748
+
19749
+
19750
+ /**
19751
+ * Clears the field making it undefined.
19752
+ * @return {!proto.payment.CurrencyItem} returns this
19753
+ */
19754
+ proto.payment.CurrencyItem.prototype.clearExternalId = function() {
19755
+ return jspb.Message.setField(this, 8, undefined);
19756
+ };
19757
+
19758
+
19759
+ /**
19760
+ * Returns whether this field is set.
19761
+ * @return {boolean}
19762
+ */
19763
+ proto.payment.CurrencyItem.prototype.hasExternalId = function() {
19764
+ return jspb.Message.getField(this, 8) != null;
19765
+ };
19766
+
19767
+
19768
+ /**
19769
+ * optional string source_payload = 9;
19770
+ * @return {string}
19771
+ */
19772
+ proto.payment.CurrencyItem.prototype.getSourcePayload = function() {
19773
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
19774
+ };
19775
+
19776
+
19777
+ /**
19778
+ * @param {string} value
19779
+ * @return {!proto.payment.CurrencyItem} returns this
19780
+ */
19781
+ proto.payment.CurrencyItem.prototype.setSourcePayload = function(value) {
19782
+ return jspb.Message.setField(this, 9, value);
19783
+ };
19784
+
19785
+
19786
+ /**
19787
+ * Clears the field making it undefined.
19788
+ * @return {!proto.payment.CurrencyItem} returns this
19789
+ */
19790
+ proto.payment.CurrencyItem.prototype.clearSourcePayload = function() {
19791
+ return jspb.Message.setField(this, 9, undefined);
19792
+ };
19793
+
19794
+
19795
+ /**
19796
+ * Returns whether this field is set.
19797
+ * @return {boolean}
19798
+ */
19799
+ proto.payment.CurrencyItem.prototype.hasSourcePayload = function() {
19800
+ return jspb.Message.getField(this, 9) != null;
19801
+ };
19802
+
19803
+
19804
+ /**
19805
+ * optional string price = 10;
19806
+ * @return {string}
19807
+ */
19808
+ proto.payment.CurrencyItem.prototype.getPrice = function() {
19809
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
19810
+ };
19811
+
19812
+
19813
+ /**
19814
+ * @param {string} value
19815
+ * @return {!proto.payment.CurrencyItem} returns this
19816
+ */
19817
+ proto.payment.CurrencyItem.prototype.setPrice = function(value) {
19818
+ return jspb.Message.setField(this, 10, value);
19819
+ };
19820
+
19821
+
19822
+ /**
19823
+ * Clears the field making it undefined.
19824
+ * @return {!proto.payment.CurrencyItem} returns this
19825
+ */
19826
+ proto.payment.CurrencyItem.prototype.clearPrice = function() {
19827
+ return jspb.Message.setField(this, 10, undefined);
19828
+ };
19829
+
19830
+
19831
+ /**
19832
+ * Returns whether this field is set.
19833
+ * @return {boolean}
19834
+ */
19835
+ proto.payment.CurrencyItem.prototype.hasPrice = function() {
19836
+ return jspb.Message.getField(this, 10) != null;
19837
+ };
19838
+
19839
+
19840
+ /**
19841
+ * optional string price_currency_code = 11;
19842
+ * @return {string}
19843
+ */
19844
+ proto.payment.CurrencyItem.prototype.getPriceCurrencyCode = function() {
19845
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
19846
+ };
19847
+
19848
+
19849
+ /**
19850
+ * @param {string} value
19851
+ * @return {!proto.payment.CurrencyItem} returns this
19852
+ */
19853
+ proto.payment.CurrencyItem.prototype.setPriceCurrencyCode = function(value) {
19854
+ return jspb.Message.setField(this, 11, value);
19855
+ };
19856
+
19857
+
19858
+ /**
19859
+ * Clears the field making it undefined.
19860
+ * @return {!proto.payment.CurrencyItem} returns this
19861
+ */
19862
+ proto.payment.CurrencyItem.prototype.clearPriceCurrencyCode = function() {
19863
+ return jspb.Message.setField(this, 11, undefined);
19864
+ };
19865
+
19866
+
19867
+ /**
19868
+ * Returns whether this field is set.
19869
+ * @return {boolean}
19870
+ */
19871
+ proto.payment.CurrencyItem.prototype.hasPriceCurrencyCode = function() {
19872
+ return jspb.Message.getField(this, 11) != null;
19873
+ };
19874
+
19875
+
19876
+ /**
19877
+ * optional string price_updated_at = 12;
19878
+ * @return {string}
19879
+ */
19880
+ proto.payment.CurrencyItem.prototype.getPriceUpdatedAt = function() {
19881
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
19882
+ };
19883
+
19884
+
19885
+ /**
19886
+ * @param {string} value
19887
+ * @return {!proto.payment.CurrencyItem} returns this
19888
+ */
19889
+ proto.payment.CurrencyItem.prototype.setPriceUpdatedAt = function(value) {
19890
+ return jspb.Message.setField(this, 12, value);
19891
+ };
19892
+
19893
+
19894
+ /**
19895
+ * Clears the field making it undefined.
19896
+ * @return {!proto.payment.CurrencyItem} returns this
19897
+ */
19898
+ proto.payment.CurrencyItem.prototype.clearPriceUpdatedAt = function() {
19899
+ return jspb.Message.setField(this, 12, undefined);
19900
+ };
19901
+
19902
+
19903
+ /**
19904
+ * Returns whether this field is set.
19905
+ * @return {boolean}
19906
+ */
19907
+ proto.payment.CurrencyItem.prototype.hasPriceUpdatedAt = function() {
19908
+ return jspb.Message.getField(this, 12) != null;
19909
+ };
19910
+
19911
+
19912
+ /**
19913
+ * optional int32 is_active = 13;
19914
+ * @return {number}
19915
+ */
19916
+ proto.payment.CurrencyItem.prototype.getIsActive = function() {
19917
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
19918
+ };
19919
+
19920
+
19921
+ /**
19922
+ * @param {number} value
19923
+ * @return {!proto.payment.CurrencyItem} returns this
19924
+ */
19925
+ proto.payment.CurrencyItem.prototype.setIsActive = function(value) {
19926
+ return jspb.Message.setField(this, 13, value);
19927
+ };
19928
+
19929
+
19930
+ /**
19931
+ * Clears the field making it undefined.
19932
+ * @return {!proto.payment.CurrencyItem} returns this
19933
+ */
19934
+ proto.payment.CurrencyItem.prototype.clearIsActive = function() {
19935
+ return jspb.Message.setField(this, 13, undefined);
19936
+ };
19937
+
19938
+
19939
+ /**
19940
+ * Returns whether this field is set.
19941
+ * @return {boolean}
19942
+ */
19943
+ proto.payment.CurrencyItem.prototype.hasIsActive = function() {
19944
+ return jspb.Message.getField(this, 13) != null;
19945
+ };
19946
+
19947
+
19948
+ /**
19949
+ * optional int32 is_system = 14;
19950
+ * @return {number}
19951
+ */
19952
+ proto.payment.CurrencyItem.prototype.getIsSystem = function() {
19953
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
19954
+ };
19955
+
19956
+
19957
+ /**
19958
+ * @param {number} value
19959
+ * @return {!proto.payment.CurrencyItem} returns this
19960
+ */
19961
+ proto.payment.CurrencyItem.prototype.setIsSystem = function(value) {
19962
+ return jspb.Message.setField(this, 14, value);
19963
+ };
19964
+
19965
+
19966
+ /**
19967
+ * Clears the field making it undefined.
19968
+ * @return {!proto.payment.CurrencyItem} returns this
19969
+ */
19970
+ proto.payment.CurrencyItem.prototype.clearIsSystem = function() {
19971
+ return jspb.Message.setField(this, 14, undefined);
19972
+ };
19973
+
19974
+
19975
+ /**
19976
+ * Returns whether this field is set.
19977
+ * @return {boolean}
19978
+ */
19979
+ proto.payment.CurrencyItem.prototype.hasIsSystem = function() {
19980
+ return jspb.Message.getField(this, 14) != null;
19981
+ };
19982
+
19983
+
19984
+ /**
19985
+ * optional string created_at = 15;
19986
+ * @return {string}
19987
+ */
19988
+ proto.payment.CurrencyItem.prototype.getCreatedAt = function() {
19989
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
19990
+ };
19991
+
19992
+
19993
+ /**
19994
+ * @param {string} value
19995
+ * @return {!proto.payment.CurrencyItem} returns this
19996
+ */
19997
+ proto.payment.CurrencyItem.prototype.setCreatedAt = function(value) {
19998
+ return jspb.Message.setField(this, 15, value);
19999
+ };
20000
+
20001
+
20002
+ /**
20003
+ * Clears the field making it undefined.
20004
+ * @return {!proto.payment.CurrencyItem} returns this
20005
+ */
20006
+ proto.payment.CurrencyItem.prototype.clearCreatedAt = function() {
20007
+ return jspb.Message.setField(this, 15, undefined);
20008
+ };
20009
+
20010
+
20011
+ /**
20012
+ * Returns whether this field is set.
20013
+ * @return {boolean}
20014
+ */
20015
+ proto.payment.CurrencyItem.prototype.hasCreatedAt = function() {
20016
+ return jspb.Message.getField(this, 15) != null;
20017
+ };
20018
+
20019
+
20020
+ /**
20021
+ * optional string updated_at = 16;
20022
+ * @return {string}
20023
+ */
20024
+ proto.payment.CurrencyItem.prototype.getUpdatedAt = function() {
20025
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
20026
+ };
20027
+
20028
+
20029
+ /**
20030
+ * @param {string} value
20031
+ * @return {!proto.payment.CurrencyItem} returns this
20032
+ */
20033
+ proto.payment.CurrencyItem.prototype.setUpdatedAt = function(value) {
20034
+ return jspb.Message.setField(this, 16, value);
20035
+ };
20036
+
20037
+
20038
+ /**
20039
+ * Clears the field making it undefined.
20040
+ * @return {!proto.payment.CurrencyItem} returns this
20041
+ */
20042
+ proto.payment.CurrencyItem.prototype.clearUpdatedAt = function() {
20043
+ return jspb.Message.setField(this, 16, undefined);
20044
+ };
20045
+
20046
+
20047
+ /**
20048
+ * Returns whether this field is set.
20049
+ * @return {boolean}
20050
+ */
20051
+ proto.payment.CurrencyItem.prototype.hasUpdatedAt = function() {
20052
+ return jspb.Message.getField(this, 16) != null;
20053
+ };
20054
+
20055
+
20056
+
20057
+
20058
+
20059
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20060
+ /**
20061
+ * Creates an object representation of this proto.
20062
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20063
+ * Optional fields that are not set will be set to undefined.
20064
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20065
+ * For the list of reserved names please see:
20066
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20067
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20068
+ * JSPB instance for transitional soy proto support:
20069
+ * http://goto/soy-param-migration
20070
+ * @return {!Object}
20071
+ */
20072
+ proto.payment.CurrencyResponse.prototype.toObject = function(opt_includeInstance) {
20073
+ return proto.payment.CurrencyResponse.toObject(opt_includeInstance, this);
20074
+ };
20075
+
20076
+
20077
+ /**
20078
+ * Static version of the {@see toObject} method.
20079
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20080
+ * the JSPB instance for transitional soy proto support:
20081
+ * http://goto/soy-param-migration
20082
+ * @param {!proto.payment.CurrencyResponse} msg The msg instance to transform.
20083
+ * @return {!Object}
20084
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20085
+ */
20086
+ proto.payment.CurrencyResponse.toObject = function(includeInstance, msg) {
20087
+ var f, obj = {
20088
+ data: (f = msg.getData()) && proto.payment.CurrencyItem.toObject(includeInstance, f)
20089
+ };
20090
+
20091
+ if (includeInstance) {
20092
+ obj.$jspbMessageInstance = msg;
20093
+ }
20094
+ return obj;
20095
+ };
20096
+ }
20097
+
20098
+
20099
+ /**
20100
+ * Deserializes binary data (in protobuf wire format).
20101
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20102
+ * @return {!proto.payment.CurrencyResponse}
20103
+ */
20104
+ proto.payment.CurrencyResponse.deserializeBinary = function(bytes) {
20105
+ var reader = new jspb.BinaryReader(bytes);
20106
+ var msg = new proto.payment.CurrencyResponse;
20107
+ return proto.payment.CurrencyResponse.deserializeBinaryFromReader(msg, reader);
20108
+ };
20109
+
20110
+
20111
+ /**
20112
+ * Deserializes binary data (in protobuf wire format) from the
20113
+ * given reader into the given message object.
20114
+ * @param {!proto.payment.CurrencyResponse} msg The message object to deserialize into.
20115
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20116
+ * @return {!proto.payment.CurrencyResponse}
20117
+ */
20118
+ proto.payment.CurrencyResponse.deserializeBinaryFromReader = function(msg, reader) {
20119
+ while (reader.nextField()) {
20120
+ if (reader.isEndGroup()) {
20121
+ break;
20122
+ }
20123
+ var field = reader.getFieldNumber();
20124
+ switch (field) {
20125
+ case 1:
20126
+ var value = new proto.payment.CurrencyItem;
20127
+ reader.readMessage(value,proto.payment.CurrencyItem.deserializeBinaryFromReader);
20128
+ msg.setData(value);
20129
+ break;
20130
+ default:
20131
+ reader.skipField();
20132
+ break;
20133
+ }
20134
+ }
20135
+ return msg;
20136
+ };
20137
+
20138
+
20139
+ /**
20140
+ * Serializes the message to binary data (in protobuf wire format).
20141
+ * @return {!Uint8Array}
20142
+ */
20143
+ proto.payment.CurrencyResponse.prototype.serializeBinary = function() {
20144
+ var writer = new jspb.BinaryWriter();
20145
+ proto.payment.CurrencyResponse.serializeBinaryToWriter(this, writer);
20146
+ return writer.getResultBuffer();
20147
+ };
20148
+
20149
+
20150
+ /**
20151
+ * Serializes the given message to binary data (in protobuf wire
20152
+ * format), writing to the given BinaryWriter.
20153
+ * @param {!proto.payment.CurrencyResponse} message
20154
+ * @param {!jspb.BinaryWriter} writer
20155
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20156
+ */
20157
+ proto.payment.CurrencyResponse.serializeBinaryToWriter = function(message, writer) {
20158
+ var f = undefined;
20159
+ f = message.getData();
20160
+ if (f != null) {
20161
+ writer.writeMessage(
20162
+ 1,
20163
+ f,
20164
+ proto.payment.CurrencyItem.serializeBinaryToWriter
20165
+ );
20166
+ }
20167
+ };
20168
+
20169
+
20170
+ /**
20171
+ * optional CurrencyItem data = 1;
20172
+ * @return {?proto.payment.CurrencyItem}
20173
+ */
20174
+ proto.payment.CurrencyResponse.prototype.getData = function() {
20175
+ return /** @type{?proto.payment.CurrencyItem} */ (
20176
+ jspb.Message.getWrapperField(this, proto.payment.CurrencyItem, 1));
20177
+ };
20178
+
20179
+
20180
+ /**
20181
+ * @param {?proto.payment.CurrencyItem|undefined} value
20182
+ * @return {!proto.payment.CurrencyResponse} returns this
20183
+ */
20184
+ proto.payment.CurrencyResponse.prototype.setData = function(value) {
20185
+ return jspb.Message.setWrapperField(this, 1, value);
20186
+ };
20187
+
20188
+
20189
+ /**
20190
+ * Clears the message field making it undefined.
20191
+ * @return {!proto.payment.CurrencyResponse} returns this
20192
+ */
20193
+ proto.payment.CurrencyResponse.prototype.clearData = function() {
20194
+ return this.setData(undefined);
20195
+ };
20196
+
20197
+
20198
+ /**
20199
+ * Returns whether this field is set.
20200
+ * @return {boolean}
20201
+ */
20202
+ proto.payment.CurrencyResponse.prototype.hasData = function() {
20203
+ return jspb.Message.getField(this, 1) != null;
20204
+ };
20205
+
20206
+
20207
+
20208
+ /**
20209
+ * List of repeated fields within this message type.
20210
+ * @private {!Array<number>}
20211
+ * @const
20212
+ */
20213
+ proto.payment.CurrencyItemsResponse.repeatedFields_ = [1];
20214
+
20215
+
20216
+
20217
+ if (jspb.Message.GENERATE_TO_OBJECT) {
20218
+ /**
20219
+ * Creates an object representation of this proto.
20220
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
20221
+ * Optional fields that are not set will be set to undefined.
20222
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
20223
+ * For the list of reserved names please see:
20224
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
20225
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
20226
+ * JSPB instance for transitional soy proto support:
20227
+ * http://goto/soy-param-migration
20228
+ * @return {!Object}
20229
+ */
20230
+ proto.payment.CurrencyItemsResponse.prototype.toObject = function(opt_includeInstance) {
20231
+ return proto.payment.CurrencyItemsResponse.toObject(opt_includeInstance, this);
20232
+ };
20233
+
20234
+
20235
+ /**
20236
+ * Static version of the {@see toObject} method.
20237
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
20238
+ * the JSPB instance for transitional soy proto support:
20239
+ * http://goto/soy-param-migration
20240
+ * @param {!proto.payment.CurrencyItemsResponse} msg The msg instance to transform.
20241
+ * @return {!Object}
20242
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20243
+ */
20244
+ proto.payment.CurrencyItemsResponse.toObject = function(includeInstance, msg) {
20245
+ var f, obj = {
20246
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
20247
+ proto.payment.CurrencyItem.toObject, includeInstance),
20248
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
20249
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
20250
+ };
20251
+
20252
+ if (includeInstance) {
20253
+ obj.$jspbMessageInstance = msg;
20254
+ }
20255
+ return obj;
20256
+ };
20257
+ }
20258
+
20259
+
20260
+ /**
20261
+ * Deserializes binary data (in protobuf wire format).
20262
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
20263
+ * @return {!proto.payment.CurrencyItemsResponse}
20264
+ */
20265
+ proto.payment.CurrencyItemsResponse.deserializeBinary = function(bytes) {
20266
+ var reader = new jspb.BinaryReader(bytes);
20267
+ var msg = new proto.payment.CurrencyItemsResponse;
20268
+ return proto.payment.CurrencyItemsResponse.deserializeBinaryFromReader(msg, reader);
20269
+ };
20270
+
20271
+
20272
+ /**
20273
+ * Deserializes binary data (in protobuf wire format) from the
20274
+ * given reader into the given message object.
20275
+ * @param {!proto.payment.CurrencyItemsResponse} msg The message object to deserialize into.
20276
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
20277
+ * @return {!proto.payment.CurrencyItemsResponse}
20278
+ */
20279
+ proto.payment.CurrencyItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
20280
+ while (reader.nextField()) {
20281
+ if (reader.isEndGroup()) {
20282
+ break;
20283
+ }
20284
+ var field = reader.getFieldNumber();
20285
+ switch (field) {
20286
+ case 1:
20287
+ var value = new proto.payment.CurrencyItem;
20288
+ reader.readMessage(value,proto.payment.CurrencyItem.deserializeBinaryFromReader);
20289
+ msg.addItems(value);
20290
+ break;
20291
+ case 2:
20292
+ var value = /** @type {number} */ (reader.readInt32());
20293
+ msg.setTotalPages(value);
20294
+ break;
20295
+ case 3:
20296
+ var value = /** @type {number} */ (reader.readInt32());
20297
+ msg.setTotalItems(value);
20298
+ break;
20299
+ default:
20300
+ reader.skipField();
20301
+ break;
20302
+ }
20303
+ }
20304
+ return msg;
20305
+ };
20306
+
20307
+
20308
+ /**
20309
+ * Serializes the message to binary data (in protobuf wire format).
20310
+ * @return {!Uint8Array}
20311
+ */
20312
+ proto.payment.CurrencyItemsResponse.prototype.serializeBinary = function() {
20313
+ var writer = new jspb.BinaryWriter();
20314
+ proto.payment.CurrencyItemsResponse.serializeBinaryToWriter(this, writer);
20315
+ return writer.getResultBuffer();
20316
+ };
20317
+
20318
+
20319
+ /**
20320
+ * Serializes the given message to binary data (in protobuf wire
20321
+ * format), writing to the given BinaryWriter.
20322
+ * @param {!proto.payment.CurrencyItemsResponse} message
20323
+ * @param {!jspb.BinaryWriter} writer
20324
+ * @suppress {unusedLocalVariables} f is only used for nested messages
20325
+ */
20326
+ proto.payment.CurrencyItemsResponse.serializeBinaryToWriter = function(message, writer) {
20327
+ var f = undefined;
20328
+ f = message.getItemsList();
20329
+ if (f.length > 0) {
20330
+ writer.writeRepeatedMessage(
20331
+ 1,
20332
+ f,
20333
+ proto.payment.CurrencyItem.serializeBinaryToWriter
20334
+ );
20335
+ }
20336
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
20337
+ if (f != null) {
20338
+ writer.writeInt32(
20339
+ 2,
20340
+ f
20341
+ );
20342
+ }
20343
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
20344
+ if (f != null) {
20345
+ writer.writeInt32(
20346
+ 3,
20347
+ f
20348
+ );
20349
+ }
20350
+ };
20351
+
20352
+
20353
+ /**
20354
+ * repeated CurrencyItem items = 1;
20355
+ * @return {!Array<!proto.payment.CurrencyItem>}
20356
+ */
20357
+ proto.payment.CurrencyItemsResponse.prototype.getItemsList = function() {
20358
+ return /** @type{!Array<!proto.payment.CurrencyItem>} */ (
20359
+ jspb.Message.getRepeatedWrapperField(this, proto.payment.CurrencyItem, 1));
20360
+ };
20361
+
20362
+
20363
+ /**
20364
+ * @param {!Array<!proto.payment.CurrencyItem>} value
20365
+ * @return {!proto.payment.CurrencyItemsResponse} returns this
20366
+ */
20367
+ proto.payment.CurrencyItemsResponse.prototype.setItemsList = function(value) {
20368
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
20369
+ };
20370
+
20371
+
20372
+ /**
20373
+ * @param {!proto.payment.CurrencyItem=} opt_value
20374
+ * @param {number=} opt_index
20375
+ * @return {!proto.payment.CurrencyItem}
20376
+ */
20377
+ proto.payment.CurrencyItemsResponse.prototype.addItems = function(opt_value, opt_index) {
20378
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.CurrencyItem, opt_index);
20379
+ };
20380
+
20381
+
20382
+ /**
20383
+ * Clears the list making it empty but non-null.
20384
+ * @return {!proto.payment.CurrencyItemsResponse} returns this
20385
+ */
20386
+ proto.payment.CurrencyItemsResponse.prototype.clearItemsList = function() {
20387
+ return this.setItemsList([]);
20388
+ };
20389
+
20390
+
20391
+ /**
20392
+ * optional int32 total_pages = 2;
20393
+ * @return {number}
20394
+ */
20395
+ proto.payment.CurrencyItemsResponse.prototype.getTotalPages = function() {
20396
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20397
+ };
20398
+
20399
+
20400
+ /**
20401
+ * @param {number} value
20402
+ * @return {!proto.payment.CurrencyItemsResponse} returns this
20403
+ */
20404
+ proto.payment.CurrencyItemsResponse.prototype.setTotalPages = function(value) {
20405
+ return jspb.Message.setField(this, 2, value);
20406
+ };
20407
+
20408
+
20409
+ /**
20410
+ * Clears the field making it undefined.
20411
+ * @return {!proto.payment.CurrencyItemsResponse} returns this
20412
+ */
20413
+ proto.payment.CurrencyItemsResponse.prototype.clearTotalPages = function() {
20414
+ return jspb.Message.setField(this, 2, undefined);
20415
+ };
20416
+
20417
+
20418
+ /**
20419
+ * Returns whether this field is set.
20420
+ * @return {boolean}
20421
+ */
20422
+ proto.payment.CurrencyItemsResponse.prototype.hasTotalPages = function() {
20423
+ return jspb.Message.getField(this, 2) != null;
20424
+ };
20425
+
20426
+
20427
+ /**
20428
+ * optional int32 total_items = 3;
20429
+ * @return {number}
20430
+ */
20431
+ proto.payment.CurrencyItemsResponse.prototype.getTotalItems = function() {
20432
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
20433
+ };
20434
+
20435
+
20436
+ /**
20437
+ * @param {number} value
20438
+ * @return {!proto.payment.CurrencyItemsResponse} returns this
20439
+ */
20440
+ proto.payment.CurrencyItemsResponse.prototype.setTotalItems = function(value) {
20441
+ return jspb.Message.setField(this, 3, value);
20442
+ };
20443
+
20444
+
20445
+ /**
20446
+ * Clears the field making it undefined.
20447
+ * @return {!proto.payment.CurrencyItemsResponse} returns this
20448
+ */
20449
+ proto.payment.CurrencyItemsResponse.prototype.clearTotalItems = function() {
20450
+ return jspb.Message.setField(this, 3, undefined);
20451
+ };
20452
+
20453
+
20454
+ /**
20455
+ * Returns whether this field is set.
20456
+ * @return {boolean}
20457
+ */
20458
+ proto.payment.CurrencyItemsResponse.prototype.hasTotalItems = function() {
20459
+ return jspb.Message.getField(this, 3) != null;
20460
+ };
20461
+
20462
+
18800
20463
  goog.object.extend(exports, proto.payment);