@dashevo/dapi-grpc 3.0.0-dev.8 → 3.0.0-rc.1

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.
@@ -21,6 +21,7 @@ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_
21
21
  goog.object.extend(proto, google_protobuf_struct_pb);
22
22
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
23
23
  goog.object.extend(proto, google_protobuf_timestamp_pb);
24
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.AddToCreditsOperations', null, { proto });
24
25
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.AddressBalanceChange', null, { proto });
25
26
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.AddressBalanceChange.OperationCase', null, { proto });
26
27
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.AddressBalanceUpdateEntries', null, { proto });
@@ -29,8 +30,11 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.AddressInfoEntry', null, { pr
29
30
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.AllKeys', null, { proto });
30
31
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BalanceAndNonce', null, { proto });
31
32
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockAddressBalanceChanges', null, { proto });
33
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry', null, { proto });
32
34
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, { proto });
33
35
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, { proto });
36
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange', null, { proto });
37
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.OperationCase', null, { proto });
34
38
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries', null, { proto });
35
39
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges', null, { proto });
36
40
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest', null, { proto });
@@ -7411,6 +7415,69 @@ if (goog.DEBUG && !COMPILED) {
7411
7415
  */
7412
7416
  proto.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0';
7413
7417
  }
7418
+ /**
7419
+ * Generated by JsPbCodeGenerator.
7420
+ * @param {Array=} opt_data Optional initial data array, typically from a
7421
+ * server response, or constructed directly in Javascript. The array is used
7422
+ * in place and becomes part of the constructed object. It is not cloned.
7423
+ * If no data is provided, the constructed object will be empty, but still
7424
+ * valid.
7425
+ * @extends {jspb.Message}
7426
+ * @constructor
7427
+ */
7428
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry = function(opt_data) {
7429
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7430
+ };
7431
+ goog.inherits(proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry, jspb.Message);
7432
+ if (goog.DEBUG && !COMPILED) {
7433
+ /**
7434
+ * @public
7435
+ * @override
7436
+ */
7437
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.displayName = 'proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry';
7438
+ }
7439
+ /**
7440
+ * Generated by JsPbCodeGenerator.
7441
+ * @param {Array=} opt_data Optional initial data array, typically from a
7442
+ * server response, or constructed directly in Javascript. The array is used
7443
+ * in place and becomes part of the constructed object. It is not cloned.
7444
+ * If no data is provided, the constructed object will be empty, but still
7445
+ * valid.
7446
+ * @extends {jspb.Message}
7447
+ * @constructor
7448
+ */
7449
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange = function(opt_data) {
7450
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.oneofGroups_);
7451
+ };
7452
+ goog.inherits(proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange, jspb.Message);
7453
+ if (goog.DEBUG && !COMPILED) {
7454
+ /**
7455
+ * @public
7456
+ * @override
7457
+ */
7458
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.displayName = 'proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange';
7459
+ }
7460
+ /**
7461
+ * Generated by JsPbCodeGenerator.
7462
+ * @param {Array=} opt_data Optional initial data array, typically from a
7463
+ * server response, or constructed directly in Javascript. The array is used
7464
+ * in place and becomes part of the constructed object. It is not cloned.
7465
+ * If no data is provided, the constructed object will be empty, but still
7466
+ * valid.
7467
+ * @extends {jspb.Message}
7468
+ * @constructor
7469
+ */
7470
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations = function(opt_data) {
7471
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.AddToCreditsOperations.repeatedFields_, null);
7472
+ };
7473
+ goog.inherits(proto.org.dash.platform.dapi.v0.AddToCreditsOperations, jspb.Message);
7474
+ if (goog.DEBUG && !COMPILED) {
7475
+ /**
7476
+ * @public
7477
+ * @override
7478
+ */
7479
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.displayName = 'proto.org.dash.platform.dapi.v0.AddToCreditsOperations';
7480
+ }
7414
7481
  /**
7415
7482
  * Generated by JsPbCodeGenerator.
7416
7483
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -77837,6 +77904,605 @@ proto.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.prototype
77837
77904
 
77838
77905
 
77839
77906
 
77907
+
77908
+
77909
+ if (jspb.Message.GENERATE_TO_OBJECT) {
77910
+ /**
77911
+ * Creates an object representation of this proto.
77912
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
77913
+ * Optional fields that are not set will be set to undefined.
77914
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
77915
+ * For the list of reserved names please see:
77916
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
77917
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
77918
+ * JSPB instance for transitional soy proto support:
77919
+ * http://goto/soy-param-migration
77920
+ * @return {!Object}
77921
+ */
77922
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.prototype.toObject = function(opt_includeInstance) {
77923
+ return proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.toObject(opt_includeInstance, this);
77924
+ };
77925
+
77926
+
77927
+ /**
77928
+ * Static version of the {@see toObject} method.
77929
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
77930
+ * the JSPB instance for transitional soy proto support:
77931
+ * http://goto/soy-param-migration
77932
+ * @param {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry} msg The msg instance to transform.
77933
+ * @return {!Object}
77934
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77935
+ */
77936
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.toObject = function(includeInstance, msg) {
77937
+ var f, obj = {
77938
+ blockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"),
77939
+ credits: jspb.Message.getFieldWithDefault(msg, 2, "0")
77940
+ };
77941
+
77942
+ if (includeInstance) {
77943
+ obj.$jspbMessageInstance = msg;
77944
+ }
77945
+ return obj;
77946
+ };
77947
+ }
77948
+
77949
+
77950
+ /**
77951
+ * Deserializes binary data (in protobuf wire format).
77952
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
77953
+ * @return {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry}
77954
+ */
77955
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.deserializeBinary = function(bytes) {
77956
+ var reader = new jspb.BinaryReader(bytes);
77957
+ var msg = new proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry;
77958
+ return proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.deserializeBinaryFromReader(msg, reader);
77959
+ };
77960
+
77961
+
77962
+ /**
77963
+ * Deserializes binary data (in protobuf wire format) from the
77964
+ * given reader into the given message object.
77965
+ * @param {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry} msg The message object to deserialize into.
77966
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
77967
+ * @return {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry}
77968
+ */
77969
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.deserializeBinaryFromReader = function(msg, reader) {
77970
+ while (reader.nextField()) {
77971
+ if (reader.isEndGroup()) {
77972
+ break;
77973
+ }
77974
+ var field = reader.getFieldNumber();
77975
+ switch (field) {
77976
+ case 1:
77977
+ var value = /** @type {string} */ (reader.readUint64String());
77978
+ msg.setBlockHeight(value);
77979
+ break;
77980
+ case 2:
77981
+ var value = /** @type {string} */ (reader.readUint64String());
77982
+ msg.setCredits(value);
77983
+ break;
77984
+ default:
77985
+ reader.skipField();
77986
+ break;
77987
+ }
77988
+ }
77989
+ return msg;
77990
+ };
77991
+
77992
+
77993
+ /**
77994
+ * Serializes the message to binary data (in protobuf wire format).
77995
+ * @return {!Uint8Array}
77996
+ */
77997
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.prototype.serializeBinary = function() {
77998
+ var writer = new jspb.BinaryWriter();
77999
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.serializeBinaryToWriter(this, writer);
78000
+ return writer.getResultBuffer();
78001
+ };
78002
+
78003
+
78004
+ /**
78005
+ * Serializes the given message to binary data (in protobuf wire
78006
+ * format), writing to the given BinaryWriter.
78007
+ * @param {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry} message
78008
+ * @param {!jspb.BinaryWriter} writer
78009
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78010
+ */
78011
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.serializeBinaryToWriter = function(message, writer) {
78012
+ var f = undefined;
78013
+ f = message.getBlockHeight();
78014
+ if (parseInt(f, 10) !== 0) {
78015
+ writer.writeUint64String(
78016
+ 1,
78017
+ f
78018
+ );
78019
+ }
78020
+ f = message.getCredits();
78021
+ if (parseInt(f, 10) !== 0) {
78022
+ writer.writeUint64String(
78023
+ 2,
78024
+ f
78025
+ );
78026
+ }
78027
+ };
78028
+
78029
+
78030
+ /**
78031
+ * optional uint64 block_height = 1;
78032
+ * @return {string}
78033
+ */
78034
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.prototype.getBlockHeight = function() {
78035
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0"));
78036
+ };
78037
+
78038
+
78039
+ /**
78040
+ * @param {string} value
78041
+ * @return {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry} returns this
78042
+ */
78043
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.prototype.setBlockHeight = function(value) {
78044
+ return jspb.Message.setProto3StringIntField(this, 1, value);
78045
+ };
78046
+
78047
+
78048
+ /**
78049
+ * optional uint64 credits = 2;
78050
+ * @return {string}
78051
+ */
78052
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.prototype.getCredits = function() {
78053
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
78054
+ };
78055
+
78056
+
78057
+ /**
78058
+ * @param {string} value
78059
+ * @return {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry} returns this
78060
+ */
78061
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.prototype.setCredits = function(value) {
78062
+ return jspb.Message.setProto3StringIntField(this, 2, value);
78063
+ };
78064
+
78065
+
78066
+
78067
+ /**
78068
+ * Oneof group definitions for this message. Each group defines the field
78069
+ * numbers belonging to that group. When of these fields' value is set, all
78070
+ * other fields in the group are cleared. During deserialization, if multiple
78071
+ * fields are encountered for a group, only the last value seen will be kept.
78072
+ * @private {!Array<!Array<number>>}
78073
+ * @const
78074
+ */
78075
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.oneofGroups_ = [[2,3]];
78076
+
78077
+ /**
78078
+ * @enum {number}
78079
+ */
78080
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.OperationCase = {
78081
+ OPERATION_NOT_SET: 0,
78082
+ SET_CREDITS: 2,
78083
+ ADD_TO_CREDITS_OPERATIONS: 3
78084
+ };
78085
+
78086
+ /**
78087
+ * @return {proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.OperationCase}
78088
+ */
78089
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.getOperationCase = function() {
78090
+ return /** @type {proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.OperationCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.oneofGroups_[0]));
78091
+ };
78092
+
78093
+
78094
+
78095
+ if (jspb.Message.GENERATE_TO_OBJECT) {
78096
+ /**
78097
+ * Creates an object representation of this proto.
78098
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78099
+ * Optional fields that are not set will be set to undefined.
78100
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
78101
+ * For the list of reserved names please see:
78102
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
78103
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
78104
+ * JSPB instance for transitional soy proto support:
78105
+ * http://goto/soy-param-migration
78106
+ * @return {!Object}
78107
+ */
78108
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.toObject = function(opt_includeInstance) {
78109
+ return proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.toObject(opt_includeInstance, this);
78110
+ };
78111
+
78112
+
78113
+ /**
78114
+ * Static version of the {@see toObject} method.
78115
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
78116
+ * the JSPB instance for transitional soy proto support:
78117
+ * http://goto/soy-param-migration
78118
+ * @param {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} msg The msg instance to transform.
78119
+ * @return {!Object}
78120
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78121
+ */
78122
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.toObject = function(includeInstance, msg) {
78123
+ var f, obj = {
78124
+ address: msg.getAddress_asB64(),
78125
+ setCredits: jspb.Message.getFieldWithDefault(msg, 2, "0"),
78126
+ addToCreditsOperations: (f = msg.getAddToCreditsOperations()) && proto.org.dash.platform.dapi.v0.AddToCreditsOperations.toObject(includeInstance, f)
78127
+ };
78128
+
78129
+ if (includeInstance) {
78130
+ obj.$jspbMessageInstance = msg;
78131
+ }
78132
+ return obj;
78133
+ };
78134
+ }
78135
+
78136
+
78137
+ /**
78138
+ * Deserializes binary data (in protobuf wire format).
78139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
78140
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange}
78141
+ */
78142
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.deserializeBinary = function(bytes) {
78143
+ var reader = new jspb.BinaryReader(bytes);
78144
+ var msg = new proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange;
78145
+ return proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.deserializeBinaryFromReader(msg, reader);
78146
+ };
78147
+
78148
+
78149
+ /**
78150
+ * Deserializes binary data (in protobuf wire format) from the
78151
+ * given reader into the given message object.
78152
+ * @param {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} msg The message object to deserialize into.
78153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
78154
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange}
78155
+ */
78156
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.deserializeBinaryFromReader = function(msg, reader) {
78157
+ while (reader.nextField()) {
78158
+ if (reader.isEndGroup()) {
78159
+ break;
78160
+ }
78161
+ var field = reader.getFieldNumber();
78162
+ switch (field) {
78163
+ case 1:
78164
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
78165
+ msg.setAddress(value);
78166
+ break;
78167
+ case 2:
78168
+ var value = /** @type {string} */ (reader.readUint64String());
78169
+ msg.setSetCredits(value);
78170
+ break;
78171
+ case 3:
78172
+ var value = new proto.org.dash.platform.dapi.v0.AddToCreditsOperations;
78173
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.AddToCreditsOperations.deserializeBinaryFromReader);
78174
+ msg.setAddToCreditsOperations(value);
78175
+ break;
78176
+ default:
78177
+ reader.skipField();
78178
+ break;
78179
+ }
78180
+ }
78181
+ return msg;
78182
+ };
78183
+
78184
+
78185
+ /**
78186
+ * Serializes the message to binary data (in protobuf wire format).
78187
+ * @return {!Uint8Array}
78188
+ */
78189
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.serializeBinary = function() {
78190
+ var writer = new jspb.BinaryWriter();
78191
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.serializeBinaryToWriter(this, writer);
78192
+ return writer.getResultBuffer();
78193
+ };
78194
+
78195
+
78196
+ /**
78197
+ * Serializes the given message to binary data (in protobuf wire
78198
+ * format), writing to the given BinaryWriter.
78199
+ * @param {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} message
78200
+ * @param {!jspb.BinaryWriter} writer
78201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78202
+ */
78203
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.serializeBinaryToWriter = function(message, writer) {
78204
+ var f = undefined;
78205
+ f = message.getAddress_asU8();
78206
+ if (f.length > 0) {
78207
+ writer.writeBytes(
78208
+ 1,
78209
+ f
78210
+ );
78211
+ }
78212
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
78213
+ if (f != null) {
78214
+ writer.writeUint64String(
78215
+ 2,
78216
+ f
78217
+ );
78218
+ }
78219
+ f = message.getAddToCreditsOperations();
78220
+ if (f != null) {
78221
+ writer.writeMessage(
78222
+ 3,
78223
+ f,
78224
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.serializeBinaryToWriter
78225
+ );
78226
+ }
78227
+ };
78228
+
78229
+
78230
+ /**
78231
+ * optional bytes address = 1;
78232
+ * @return {string}
78233
+ */
78234
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.getAddress = function() {
78235
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
78236
+ };
78237
+
78238
+
78239
+ /**
78240
+ * optional bytes address = 1;
78241
+ * This is a type-conversion wrapper around `getAddress()`
78242
+ * @return {string}
78243
+ */
78244
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.getAddress_asB64 = function() {
78245
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
78246
+ this.getAddress()));
78247
+ };
78248
+
78249
+
78250
+ /**
78251
+ * optional bytes address = 1;
78252
+ * Note that Uint8Array is not supported on all browsers.
78253
+ * @see http://caniuse.com/Uint8Array
78254
+ * This is a type-conversion wrapper around `getAddress()`
78255
+ * @return {!Uint8Array}
78256
+ */
78257
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.getAddress_asU8 = function() {
78258
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
78259
+ this.getAddress()));
78260
+ };
78261
+
78262
+
78263
+ /**
78264
+ * @param {!(string|Uint8Array)} value
78265
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} returns this
78266
+ */
78267
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.setAddress = function(value) {
78268
+ return jspb.Message.setProto3BytesField(this, 1, value);
78269
+ };
78270
+
78271
+
78272
+ /**
78273
+ * optional uint64 set_credits = 2;
78274
+ * @return {string}
78275
+ */
78276
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.getSetCredits = function() {
78277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0"));
78278
+ };
78279
+
78280
+
78281
+ /**
78282
+ * @param {string} value
78283
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} returns this
78284
+ */
78285
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.setSetCredits = function(value) {
78286
+ return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.oneofGroups_[0], value);
78287
+ };
78288
+
78289
+
78290
+ /**
78291
+ * Clears the field making it undefined.
78292
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} returns this
78293
+ */
78294
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.clearSetCredits = function() {
78295
+ return jspb.Message.setOneofField(this, 2, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.oneofGroups_[0], undefined);
78296
+ };
78297
+
78298
+
78299
+ /**
78300
+ * Returns whether this field is set.
78301
+ * @return {boolean}
78302
+ */
78303
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.hasSetCredits = function() {
78304
+ return jspb.Message.getField(this, 2) != null;
78305
+ };
78306
+
78307
+
78308
+ /**
78309
+ * optional AddToCreditsOperations add_to_credits_operations = 3;
78310
+ * @return {?proto.org.dash.platform.dapi.v0.AddToCreditsOperations}
78311
+ */
78312
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.getAddToCreditsOperations = function() {
78313
+ return /** @type{?proto.org.dash.platform.dapi.v0.AddToCreditsOperations} */ (
78314
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.AddToCreditsOperations, 3));
78315
+ };
78316
+
78317
+
78318
+ /**
78319
+ * @param {?proto.org.dash.platform.dapi.v0.AddToCreditsOperations|undefined} value
78320
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} returns this
78321
+ */
78322
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.setAddToCreditsOperations = function(value) {
78323
+ return jspb.Message.setOneofWrapperField(this, 3, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.oneofGroups_[0], value);
78324
+ };
78325
+
78326
+
78327
+ /**
78328
+ * Clears the message field making it undefined.
78329
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange} returns this
78330
+ */
78331
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.clearAddToCreditsOperations = function() {
78332
+ return this.setAddToCreditsOperations(undefined);
78333
+ };
78334
+
78335
+
78336
+ /**
78337
+ * Returns whether this field is set.
78338
+ * @return {boolean}
78339
+ */
78340
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.prototype.hasAddToCreditsOperations = function() {
78341
+ return jspb.Message.getField(this, 3) != null;
78342
+ };
78343
+
78344
+
78345
+
78346
+ /**
78347
+ * List of repeated fields within this message type.
78348
+ * @private {!Array<number>}
78349
+ * @const
78350
+ */
78351
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.repeatedFields_ = [1];
78352
+
78353
+
78354
+
78355
+ if (jspb.Message.GENERATE_TO_OBJECT) {
78356
+ /**
78357
+ * Creates an object representation of this proto.
78358
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
78359
+ * Optional fields that are not set will be set to undefined.
78360
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
78361
+ * For the list of reserved names please see:
78362
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
78363
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
78364
+ * JSPB instance for transitional soy proto support:
78365
+ * http://goto/soy-param-migration
78366
+ * @return {!Object}
78367
+ */
78368
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.prototype.toObject = function(opt_includeInstance) {
78369
+ return proto.org.dash.platform.dapi.v0.AddToCreditsOperations.toObject(opt_includeInstance, this);
78370
+ };
78371
+
78372
+
78373
+ /**
78374
+ * Static version of the {@see toObject} method.
78375
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
78376
+ * the JSPB instance for transitional soy proto support:
78377
+ * http://goto/soy-param-migration
78378
+ * @param {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations} msg The msg instance to transform.
78379
+ * @return {!Object}
78380
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78381
+ */
78382
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.toObject = function(includeInstance, msg) {
78383
+ var f, obj = {
78384
+ entriesList: jspb.Message.toObjectList(msg.getEntriesList(),
78385
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.toObject, includeInstance)
78386
+ };
78387
+
78388
+ if (includeInstance) {
78389
+ obj.$jspbMessageInstance = msg;
78390
+ }
78391
+ return obj;
78392
+ };
78393
+ }
78394
+
78395
+
78396
+ /**
78397
+ * Deserializes binary data (in protobuf wire format).
78398
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
78399
+ * @return {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations}
78400
+ */
78401
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.deserializeBinary = function(bytes) {
78402
+ var reader = new jspb.BinaryReader(bytes);
78403
+ var msg = new proto.org.dash.platform.dapi.v0.AddToCreditsOperations;
78404
+ return proto.org.dash.platform.dapi.v0.AddToCreditsOperations.deserializeBinaryFromReader(msg, reader);
78405
+ };
78406
+
78407
+
78408
+ /**
78409
+ * Deserializes binary data (in protobuf wire format) from the
78410
+ * given reader into the given message object.
78411
+ * @param {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations} msg The message object to deserialize into.
78412
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
78413
+ * @return {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations}
78414
+ */
78415
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.deserializeBinaryFromReader = function(msg, reader) {
78416
+ while (reader.nextField()) {
78417
+ if (reader.isEndGroup()) {
78418
+ break;
78419
+ }
78420
+ var field = reader.getFieldNumber();
78421
+ switch (field) {
78422
+ case 1:
78423
+ var value = new proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry;
78424
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.deserializeBinaryFromReader);
78425
+ msg.addEntries(value);
78426
+ break;
78427
+ default:
78428
+ reader.skipField();
78429
+ break;
78430
+ }
78431
+ }
78432
+ return msg;
78433
+ };
78434
+
78435
+
78436
+ /**
78437
+ * Serializes the message to binary data (in protobuf wire format).
78438
+ * @return {!Uint8Array}
78439
+ */
78440
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.prototype.serializeBinary = function() {
78441
+ var writer = new jspb.BinaryWriter();
78442
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.serializeBinaryToWriter(this, writer);
78443
+ return writer.getResultBuffer();
78444
+ };
78445
+
78446
+
78447
+ /**
78448
+ * Serializes the given message to binary data (in protobuf wire
78449
+ * format), writing to the given BinaryWriter.
78450
+ * @param {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations} message
78451
+ * @param {!jspb.BinaryWriter} writer
78452
+ * @suppress {unusedLocalVariables} f is only used for nested messages
78453
+ */
78454
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.serializeBinaryToWriter = function(message, writer) {
78455
+ var f = undefined;
78456
+ f = message.getEntriesList();
78457
+ if (f.length > 0) {
78458
+ writer.writeRepeatedMessage(
78459
+ 1,
78460
+ f,
78461
+ proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry.serializeBinaryToWriter
78462
+ );
78463
+ }
78464
+ };
78465
+
78466
+
78467
+ /**
78468
+ * repeated BlockHeightCreditEntry entries = 1;
78469
+ * @return {!Array<!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry>}
78470
+ */
78471
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.prototype.getEntriesList = function() {
78472
+ return /** @type{!Array<!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry>} */ (
78473
+ jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry, 1));
78474
+ };
78475
+
78476
+
78477
+ /**
78478
+ * @param {!Array<!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry>} value
78479
+ * @return {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations} returns this
78480
+ */
78481
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.prototype.setEntriesList = function(value) {
78482
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
78483
+ };
78484
+
78485
+
78486
+ /**
78487
+ * @param {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry=} opt_value
78488
+ * @param {number=} opt_index
78489
+ * @return {!proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry}
78490
+ */
78491
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.prototype.addEntries = function(opt_value, opt_index) {
78492
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry, opt_index);
78493
+ };
78494
+
78495
+
78496
+ /**
78497
+ * Clears the list making it empty but non-null.
78498
+ * @return {!proto.org.dash.platform.dapi.v0.AddToCreditsOperations} returns this
78499
+ */
78500
+ proto.org.dash.platform.dapi.v0.AddToCreditsOperations.prototype.clearEntriesList = function() {
78501
+ return this.setEntriesList([]);
78502
+ };
78503
+
78504
+
78505
+
77840
78506
  /**
77841
78507
  * List of repeated fields within this message type.
77842
78508
  * @private {!Array<number>}
@@ -77878,7 +78544,7 @@ proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.toObject = f
77878
78544
  startBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"),
77879
78545
  endBlockHeight: jspb.Message.getFieldWithDefault(msg, 2, "0"),
77880
78546
  changesList: jspb.Message.toObjectList(msg.getChangesList(),
77881
- proto.org.dash.platform.dapi.v0.AddressBalanceChange.toObject, includeInstance)
78547
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.toObject, includeInstance)
77882
78548
  };
77883
78549
 
77884
78550
  if (includeInstance) {
@@ -77924,8 +78590,8 @@ proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.deserializeB
77924
78590
  msg.setEndBlockHeight(value);
77925
78591
  break;
77926
78592
  case 3:
77927
- var value = new proto.org.dash.platform.dapi.v0.AddressBalanceChange;
77928
- reader.readMessage(value,proto.org.dash.platform.dapi.v0.AddressBalanceChange.deserializeBinaryFromReader);
78593
+ var value = new proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange;
78594
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.deserializeBinaryFromReader);
77929
78595
  msg.addChanges(value);
77930
78596
  break;
77931
78597
  default:
@@ -77976,7 +78642,7 @@ proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.serializeBin
77976
78642
  writer.writeRepeatedMessage(
77977
78643
  3,
77978
78644
  f,
77979
- proto.org.dash.platform.dapi.v0.AddressBalanceChange.serializeBinaryToWriter
78645
+ proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.serializeBinaryToWriter
77980
78646
  );
77981
78647
  }
77982
78648
  };
@@ -78019,17 +78685,17 @@ proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.prototype.se
78019
78685
 
78020
78686
 
78021
78687
  /**
78022
- * repeated AddressBalanceChange changes = 3;
78023
- * @return {!Array<!proto.org.dash.platform.dapi.v0.AddressBalanceChange>}
78688
+ * repeated CompactedAddressBalanceChange changes = 3;
78689
+ * @return {!Array<!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange>}
78024
78690
  */
78025
78691
  proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.prototype.getChangesList = function() {
78026
- return /** @type{!Array<!proto.org.dash.platform.dapi.v0.AddressBalanceChange>} */ (
78027
- jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.AddressBalanceChange, 3));
78692
+ return /** @type{!Array<!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange>} */ (
78693
+ jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange, 3));
78028
78694
  };
78029
78695
 
78030
78696
 
78031
78697
  /**
78032
- * @param {!Array<!proto.org.dash.platform.dapi.v0.AddressBalanceChange>} value
78698
+ * @param {!Array<!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange>} value
78033
78699
  * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges} returns this
78034
78700
  */
78035
78701
  proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.prototype.setChangesList = function(value) {
@@ -78038,12 +78704,12 @@ proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.prototype.se
78038
78704
 
78039
78705
 
78040
78706
  /**
78041
- * @param {!proto.org.dash.platform.dapi.v0.AddressBalanceChange=} opt_value
78707
+ * @param {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange=} opt_value
78042
78708
  * @param {number=} opt_index
78043
- * @return {!proto.org.dash.platform.dapi.v0.AddressBalanceChange}
78709
+ * @return {!proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange}
78044
78710
  */
78045
78711
  proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.prototype.addChanges = function(opt_value, opt_index) {
78046
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.org.dash.platform.dapi.v0.AddressBalanceChange, opt_index);
78712
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange, opt_index);
78047
78713
  };
78048
78714
 
78049
78715