@dashevo/dapi-grpc 0.25.0-dev.15 → 0.25.0-dev.16

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.
@@ -28,8 +28,14 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.ConsensusParamsBlock', null,
28
28
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.ConsensusParamsEvidence', null, { proto });
29
29
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetConsensusParamsRequest', null, { proto });
30
30
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetConsensusParamsResponse', null, { proto });
31
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest', null, { proto });
32
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse', null, { proto });
33
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory', null, { proto });
34
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry', null, { proto });
35
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.ResultCase', null, { proto });
31
36
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractRequest', null, { proto });
32
37
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractResponse', null, { proto });
38
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractResponse.ResultCase', null, { proto });
33
39
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractsRequest', null, { proto });
34
40
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractsResponse', null, { proto });
35
41
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContractEntry', null, { proto });
@@ -39,8 +45,12 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDataContractsResponse.Resu
39
45
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest', null, { proto });
40
46
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase', null, { proto });
41
47
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse', null, { proto });
48
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents', null, { proto });
49
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetDocumentsResponse.ResultCase', null, { proto });
42
50
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest', null, { proto });
43
51
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse', null, { proto });
52
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities', null, { proto });
53
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.ResultCase', null, { proto });
44
54
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesKeysRequest', null, { proto });
45
55
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesKeysRequest.SecurityLevelMap', null, { proto });
46
56
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesKeysRequest.SecurityLevelMap.KeyKindRequestType', null, { proto });
@@ -56,7 +66,10 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesResponse.Identit
56
66
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesResponse.IdentityValue', null, { proto });
57
67
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentitiesResponse.ResultCase', null, { proto });
58
68
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse', null, { proto });
69
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision', null, { proto });
70
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.ResultCase', null, { proto });
59
71
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse', null, { proto });
72
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.ResultCase', null, { proto });
60
73
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashesRequest', null, { proto });
61
74
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashesResponse', null, { proto });
62
75
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashesResponse.ResultCase', null, { proto });
@@ -66,6 +79,7 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityKeysResponse.Keys'
66
79
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityKeysResponse.ResultCase', null, { proto });
67
80
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityRequest', null, { proto });
68
81
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityResponse', null, { proto });
82
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetIdentityResponse.ResultCase', null, { proto });
69
83
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProofsRequest', null, { proto });
70
84
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProofsRequest.ContractRequest', null, { proto });
71
85
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetProofsRequest.DocumentRequest', null, { proto });
@@ -83,7 +97,7 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.SpecificKeys', null, { proto
83
97
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.StateTransitionBroadcastError', null, { proto });
84
98
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest', null, { proto });
85
99
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse', null, { proto });
86
- goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResponsesCase', null, { proto });
100
+ goog.exportSymbol('proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResultCase', null, { proto });
87
101
  /**
88
102
  * Generated by JsPbCodeGenerator.
89
103
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -221,7 +235,7 @@ if (goog.DEBUG && !COMPILED) {
221
235
  * @constructor
222
236
  */
223
237
  proto.org.dash.platform.dapi.v0.GetIdentityResponse = function(opt_data) {
224
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetIdentityResponse.oneofGroups_);
225
239
  };
226
240
  goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentityResponse, jspb.Message);
227
241
  if (goog.DEBUG && !COMPILED) {
@@ -347,7 +361,7 @@ if (goog.DEBUG && !COMPILED) {
347
361
  * @constructor
348
362
  */
349
363
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse = function(opt_data) {
350
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
364
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.oneofGroups_);
351
365
  };
352
366
  goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse, jspb.Message);
353
367
  if (goog.DEBUG && !COMPILED) {
@@ -368,7 +382,7 @@ if (goog.DEBUG && !COMPILED) {
368
382
  * @constructor
369
383
  */
370
384
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse = function(opt_data) {
371
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
385
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.oneofGroups_);
372
386
  };
373
387
  goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse, jspb.Message);
374
388
  if (goog.DEBUG && !COMPILED) {
@@ -378,6 +392,27 @@ if (goog.DEBUG && !COMPILED) {
378
392
  */
379
393
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse';
380
394
  }
395
+ /**
396
+ * Generated by JsPbCodeGenerator.
397
+ * @param {Array=} opt_data Optional initial data array, typically from a
398
+ * server response, or constructed directly in Javascript. The array is used
399
+ * in place and becomes part of the constructed object. It is not cloned.
400
+ * If no data is provided, the constructed object will be empty, but still
401
+ * valid.
402
+ * @extends {jspb.Message}
403
+ * @constructor
404
+ */
405
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision = function(opt_data) {
406
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
407
+ };
408
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision, jspb.Message);
409
+ if (goog.DEBUG && !COMPILED) {
410
+ /**
411
+ * @public
412
+ * @override
413
+ */
414
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.displayName = 'proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision';
415
+ }
381
416
  /**
382
417
  * Generated by JsPbCodeGenerator.
383
418
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -809,7 +844,7 @@ if (goog.DEBUG && !COMPILED) {
809
844
  * @constructor
810
845
  */
811
846
  proto.org.dash.platform.dapi.v0.GetDataContractResponse = function(opt_data) {
812
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
847
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetDataContractResponse.oneofGroups_);
813
848
  };
814
849
  goog.inherits(proto.org.dash.platform.dapi.v0.GetDataContractResponse, jspb.Message);
815
850
  if (goog.DEBUG && !COMPILED) {
@@ -924,6 +959,90 @@ if (goog.DEBUG && !COMPILED) {
924
959
  */
925
960
  proto.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContracts.displayName = 'proto.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContracts';
926
961
  }
962
+ /**
963
+ * Generated by JsPbCodeGenerator.
964
+ * @param {Array=} opt_data Optional initial data array, typically from a
965
+ * server response, or constructed directly in Javascript. The array is used
966
+ * in place and becomes part of the constructed object. It is not cloned.
967
+ * If no data is provided, the constructed object will be empty, but still
968
+ * valid.
969
+ * @extends {jspb.Message}
970
+ * @constructor
971
+ */
972
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest = function(opt_data) {
973
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
974
+ };
975
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest, jspb.Message);
976
+ if (goog.DEBUG && !COMPILED) {
977
+ /**
978
+ * @public
979
+ * @override
980
+ */
981
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest';
982
+ }
983
+ /**
984
+ * Generated by JsPbCodeGenerator.
985
+ * @param {Array=} opt_data Optional initial data array, typically from a
986
+ * server response, or constructed directly in Javascript. The array is used
987
+ * in place and becomes part of the constructed object. It is not cloned.
988
+ * If no data is provided, the constructed object will be empty, but still
989
+ * valid.
990
+ * @extends {jspb.Message}
991
+ * @constructor
992
+ */
993
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse = function(opt_data) {
994
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.oneofGroups_);
995
+ };
996
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse, jspb.Message);
997
+ if (goog.DEBUG && !COMPILED) {
998
+ /**
999
+ * @public
1000
+ * @override
1001
+ */
1002
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse';
1003
+ }
1004
+ /**
1005
+ * Generated by JsPbCodeGenerator.
1006
+ * @param {Array=} opt_data Optional initial data array, typically from a
1007
+ * server response, or constructed directly in Javascript. The array is used
1008
+ * in place and becomes part of the constructed object. It is not cloned.
1009
+ * If no data is provided, the constructed object will be empty, but still
1010
+ * valid.
1011
+ * @extends {jspb.Message}
1012
+ * @constructor
1013
+ */
1014
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry = function(opt_data) {
1015
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1016
+ };
1017
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry, jspb.Message);
1018
+ if (goog.DEBUG && !COMPILED) {
1019
+ /**
1020
+ * @public
1021
+ * @override
1022
+ */
1023
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.displayName = 'proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry';
1024
+ }
1025
+ /**
1026
+ * Generated by JsPbCodeGenerator.
1027
+ * @param {Array=} opt_data Optional initial data array, typically from a
1028
+ * server response, or constructed directly in Javascript. The array is used
1029
+ * in place and becomes part of the constructed object. It is not cloned.
1030
+ * If no data is provided, the constructed object will be empty, but still
1031
+ * valid.
1032
+ * @extends {jspb.Message}
1033
+ * @constructor
1034
+ */
1035
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory = function(opt_data) {
1036
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.repeatedFields_, null);
1037
+ };
1038
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory, jspb.Message);
1039
+ if (goog.DEBUG && !COMPILED) {
1040
+ /**
1041
+ * @public
1042
+ * @override
1043
+ */
1044
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.displayName = 'proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory';
1045
+ }
927
1046
  /**
928
1047
  * Generated by JsPbCodeGenerator.
929
1048
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -956,7 +1075,7 @@ if (goog.DEBUG && !COMPILED) {
956
1075
  * @constructor
957
1076
  */
958
1077
  proto.org.dash.platform.dapi.v0.GetDocumentsResponse = function(opt_data) {
959
- jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.repeatedFields_, null);
1078
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.oneofGroups_);
960
1079
  };
961
1080
  goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsResponse, jspb.Message);
962
1081
  if (goog.DEBUG && !COMPILED) {
@@ -966,6 +1085,27 @@ if (goog.DEBUG && !COMPILED) {
966
1085
  */
967
1086
  proto.org.dash.platform.dapi.v0.GetDocumentsResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsResponse';
968
1087
  }
1088
+ /**
1089
+ * Generated by JsPbCodeGenerator.
1090
+ * @param {Array=} opt_data Optional initial data array, typically from a
1091
+ * server response, or constructed directly in Javascript. The array is used
1092
+ * in place and becomes part of the constructed object. It is not cloned.
1093
+ * If no data is provided, the constructed object will be empty, but still
1094
+ * valid.
1095
+ * @extends {jspb.Message}
1096
+ * @constructor
1097
+ */
1098
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents = function(opt_data) {
1099
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.repeatedFields_, null);
1100
+ };
1101
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents, jspb.Message);
1102
+ if (goog.DEBUG && !COMPILED) {
1103
+ /**
1104
+ * @public
1105
+ * @override
1106
+ */
1107
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.displayName = 'proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents';
1108
+ }
969
1109
  /**
970
1110
  * Generated by JsPbCodeGenerator.
971
1111
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -998,7 +1138,7 @@ if (goog.DEBUG && !COMPILED) {
998
1138
  * @constructor
999
1139
  */
1000
1140
  proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse = function(opt_data) {
1001
- jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.repeatedFields_, null);
1141
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.oneofGroups_);
1002
1142
  };
1003
1143
  goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse, jspb.Message);
1004
1144
  if (goog.DEBUG && !COMPILED) {
@@ -1008,6 +1148,27 @@ if (goog.DEBUG && !COMPILED) {
1008
1148
  */
1009
1149
  proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse';
1010
1150
  }
1151
+ /**
1152
+ * Generated by JsPbCodeGenerator.
1153
+ * @param {Array=} opt_data Optional initial data array, typically from a
1154
+ * server response, or constructed directly in Javascript. The array is used
1155
+ * in place and becomes part of the constructed object. It is not cloned.
1156
+ * If no data is provided, the constructed object will be empty, but still
1157
+ * valid.
1158
+ * @extends {jspb.Message}
1159
+ * @constructor
1160
+ */
1161
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities = function(opt_data) {
1162
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.repeatedFields_, null);
1163
+ };
1164
+ goog.inherits(proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities, jspb.Message);
1165
+ if (goog.DEBUG && !COMPILED) {
1166
+ /**
1167
+ * @public
1168
+ * @override
1169
+ */
1170
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.displayName = 'proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities';
1171
+ }
1011
1172
  /**
1012
1173
  * Generated by JsPbCodeGenerator.
1013
1174
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1211,7 +1372,9 @@ proto.org.dash.platform.dapi.v0.Proof.toObject = function(includeInstance, msg)
1211
1372
  grovedbProof: msg.getGrovedbProof_asB64(),
1212
1373
  quorumHash: msg.getQuorumHash_asB64(),
1213
1374
  signature: msg.getSignature_asB64(),
1214
- round: jspb.Message.getFieldWithDefault(msg, 4, 0)
1375
+ round: jspb.Message.getFieldWithDefault(msg, 4, 0),
1376
+ blockIdHash: msg.getBlockIdHash_asB64(),
1377
+ quorumType: jspb.Message.getFieldWithDefault(msg, 6, 0)
1215
1378
  };
1216
1379
 
1217
1380
  if (includeInstance) {
@@ -1264,6 +1427,14 @@ proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader = function(msg
1264
1427
  var value = /** @type {number} */ (reader.readUint32());
1265
1428
  msg.setRound(value);
1266
1429
  break;
1430
+ case 5:
1431
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
1432
+ msg.setBlockIdHash(value);
1433
+ break;
1434
+ case 6:
1435
+ var value = /** @type {number} */ (reader.readUint32());
1436
+ msg.setQuorumType(value);
1437
+ break;
1267
1438
  default:
1268
1439
  reader.skipField();
1269
1440
  break;
@@ -1321,6 +1492,20 @@ proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter = function(message
1321
1492
  f
1322
1493
  );
1323
1494
  }
1495
+ f = message.getBlockIdHash_asU8();
1496
+ if (f.length > 0) {
1497
+ writer.writeBytes(
1498
+ 5,
1499
+ f
1500
+ );
1501
+ }
1502
+ f = message.getQuorumType();
1503
+ if (f !== 0) {
1504
+ writer.writeUint32(
1505
+ 6,
1506
+ f
1507
+ );
1508
+ }
1324
1509
  };
1325
1510
 
1326
1511
 
@@ -1468,6 +1653,66 @@ proto.org.dash.platform.dapi.v0.Proof.prototype.setRound = function(value) {
1468
1653
  };
1469
1654
 
1470
1655
 
1656
+ /**
1657
+ * optional bytes block_id_hash = 5;
1658
+ * @return {string}
1659
+ */
1660
+ proto.org.dash.platform.dapi.v0.Proof.prototype.getBlockIdHash = function() {
1661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1662
+ };
1663
+
1664
+
1665
+ /**
1666
+ * optional bytes block_id_hash = 5;
1667
+ * This is a type-conversion wrapper around `getBlockIdHash()`
1668
+ * @return {string}
1669
+ */
1670
+ proto.org.dash.platform.dapi.v0.Proof.prototype.getBlockIdHash_asB64 = function() {
1671
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
1672
+ this.getBlockIdHash()));
1673
+ };
1674
+
1675
+
1676
+ /**
1677
+ * optional bytes block_id_hash = 5;
1678
+ * Note that Uint8Array is not supported on all browsers.
1679
+ * @see http://caniuse.com/Uint8Array
1680
+ * This is a type-conversion wrapper around `getBlockIdHash()`
1681
+ * @return {!Uint8Array}
1682
+ */
1683
+ proto.org.dash.platform.dapi.v0.Proof.prototype.getBlockIdHash_asU8 = function() {
1684
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
1685
+ this.getBlockIdHash()));
1686
+ };
1687
+
1688
+
1689
+ /**
1690
+ * @param {!(string|Uint8Array)} value
1691
+ * @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
1692
+ */
1693
+ proto.org.dash.platform.dapi.v0.Proof.prototype.setBlockIdHash = function(value) {
1694
+ return jspb.Message.setProto3BytesField(this, 5, value);
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * optional uint32 quorum_type = 6;
1700
+ * @return {number}
1701
+ */
1702
+ proto.org.dash.platform.dapi.v0.Proof.prototype.getQuorumType = function() {
1703
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1704
+ };
1705
+
1706
+
1707
+ /**
1708
+ * @param {number} value
1709
+ * @return {!proto.org.dash.platform.dapi.v0.Proof} returns this
1710
+ */
1711
+ proto.org.dash.platform.dapi.v0.Proof.prototype.setQuorumType = function(value) {
1712
+ return jspb.Message.setProto3IntField(this, 6, value);
1713
+ };
1714
+
1715
+
1471
1716
 
1472
1717
 
1473
1718
 
@@ -1503,7 +1748,8 @@ proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject = function(includeInst
1503
1748
  height: jspb.Message.getFieldWithDefault(msg, 1, 0),
1504
1749
  coreChainLockedHeight: jspb.Message.getFieldWithDefault(msg, 2, 0),
1505
1750
  timeMs: jspb.Message.getFieldWithDefault(msg, 3, 0),
1506
- protocolVersion: jspb.Message.getFieldWithDefault(msg, 4, 0)
1751
+ protocolVersion: jspb.Message.getFieldWithDefault(msg, 4, 0),
1752
+ chainId: jspb.Message.getFieldWithDefault(msg, 5, "")
1507
1753
  };
1508
1754
 
1509
1755
  if (includeInstance) {
@@ -1556,6 +1802,10 @@ proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader = f
1556
1802
  var value = /** @type {number} */ (reader.readUint32());
1557
1803
  msg.setProtocolVersion(value);
1558
1804
  break;
1805
+ case 5:
1806
+ var value = /** @type {string} */ (reader.readString());
1807
+ msg.setChainId(value);
1808
+ break;
1559
1809
  default:
1560
1810
  reader.skipField();
1561
1811
  break;
@@ -1613,6 +1863,13 @@ proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter = funct
1613
1863
  f
1614
1864
  );
1615
1865
  }
1866
+ f = message.getChainId();
1867
+ if (f.length > 0) {
1868
+ writer.writeString(
1869
+ 5,
1870
+ f
1871
+ );
1872
+ }
1616
1873
  };
1617
1874
 
1618
1875
 
@@ -1688,6 +1945,24 @@ proto.org.dash.platform.dapi.v0.ResponseMetadata.prototype.setProtocolVersion =
1688
1945
  };
1689
1946
 
1690
1947
 
1948
+ /**
1949
+ * optional string chain_id = 5;
1950
+ * @return {string}
1951
+ */
1952
+ proto.org.dash.platform.dapi.v0.ResponseMetadata.prototype.getChainId = function() {
1953
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1954
+ };
1955
+
1956
+
1957
+ /**
1958
+ * @param {string} value
1959
+ * @return {!proto.org.dash.platform.dapi.v0.ResponseMetadata} returns this
1960
+ */
1961
+ proto.org.dash.platform.dapi.v0.ResponseMetadata.prototype.setChainId = function(value) {
1962
+ return jspb.Message.setProto3StringField(this, 5, value);
1963
+ };
1964
+
1965
+
1691
1966
 
1692
1967
 
1693
1968
 
@@ -2342,6 +2617,32 @@ proto.org.dash.platform.dapi.v0.GetIdentityRequest.prototype.setProve = function
2342
2617
 
2343
2618
 
2344
2619
 
2620
+ /**
2621
+ * Oneof group definitions for this message. Each group defines the field
2622
+ * numbers belonging to that group. When of these fields' value is set, all
2623
+ * other fields in the group are cleared. During deserialization, if multiple
2624
+ * fields are encountered for a group, only the last value seen will be kept.
2625
+ * @private {!Array<!Array<number>>}
2626
+ * @const
2627
+ */
2628
+ proto.org.dash.platform.dapi.v0.GetIdentityResponse.oneofGroups_ = [[1,2]];
2629
+
2630
+ /**
2631
+ * @enum {number}
2632
+ */
2633
+ proto.org.dash.platform.dapi.v0.GetIdentityResponse.ResultCase = {
2634
+ RESULT_NOT_SET: 0,
2635
+ IDENTITY: 1,
2636
+ PROOF: 2
2637
+ };
2638
+
2639
+ /**
2640
+ * @return {proto.org.dash.platform.dapi.v0.GetIdentityResponse.ResultCase}
2641
+ */
2642
+ proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.getResultCase = function() {
2643
+ return /** @type {proto.org.dash.platform.dapi.v0.GetIdentityResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetIdentityResponse.oneofGroups_[0]));
2644
+ };
2645
+
2345
2646
 
2346
2647
 
2347
2648
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2455,8 +2756,8 @@ proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.serializeBinary =
2455
2756
  */
2456
2757
  proto.org.dash.platform.dapi.v0.GetIdentityResponse.serializeBinaryToWriter = function(message, writer) {
2457
2758
  var f = undefined;
2458
- f = message.getIdentity_asU8();
2459
- if (f.length > 0) {
2759
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
2760
+ if (f != null) {
2460
2761
  writer.writeBytes(
2461
2762
  1,
2462
2763
  f
@@ -2519,7 +2820,25 @@ proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.getIdentity_asU8 =
2519
2820
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentityResponse} returns this
2520
2821
  */
2521
2822
  proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.setIdentity = function(value) {
2522
- return jspb.Message.setProto3BytesField(this, 1, value);
2823
+ return jspb.Message.setOneofField(this, 1, proto.org.dash.platform.dapi.v0.GetIdentityResponse.oneofGroups_[0], value);
2824
+ };
2825
+
2826
+
2827
+ /**
2828
+ * Clears the field making it undefined.
2829
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityResponse} returns this
2830
+ */
2831
+ proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.clearIdentity = function() {
2832
+ return jspb.Message.setOneofField(this, 1, proto.org.dash.platform.dapi.v0.GetIdentityResponse.oneofGroups_[0], undefined);
2833
+ };
2834
+
2835
+
2836
+ /**
2837
+ * Returns whether this field is set.
2838
+ * @return {boolean}
2839
+ */
2840
+ proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.hasIdentity = function() {
2841
+ return jspb.Message.getField(this, 1) != null;
2523
2842
  };
2524
2843
 
2525
2844
 
@@ -2538,7 +2857,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.getProof = functio
2538
2857
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentityResponse} returns this
2539
2858
  */
2540
2859
  proto.org.dash.platform.dapi.v0.GetIdentityResponse.prototype.setProof = function(value) {
2541
- return jspb.Message.setWrapperField(this, 2, value);
2860
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetIdentityResponse.oneofGroups_[0], value);
2542
2861
  };
2543
2862
 
2544
2863
 
@@ -3606,14 +3925,40 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesResponse.prototype.hasMetadata = fu
3606
3925
 
3607
3926
 
3608
3927
 
3609
-
3610
-
3611
- if (jspb.Message.GENERATE_TO_OBJECT) {
3612
3928
  /**
3613
- * Creates an object representation of this proto.
3614
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3615
- * Optional fields that are not set will be set to undefined.
3616
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3929
+ * Oneof group definitions for this message. Each group defines the field
3930
+ * numbers belonging to that group. When of these fields' value is set, all
3931
+ * other fields in the group are cleared. During deserialization, if multiple
3932
+ * fields are encountered for a group, only the last value seen will be kept.
3933
+ * @private {!Array<!Array<number>>}
3934
+ * @const
3935
+ */
3936
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.oneofGroups_ = [[1,2]];
3937
+
3938
+ /**
3939
+ * @enum {number}
3940
+ */
3941
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.ResultCase = {
3942
+ RESULT_NOT_SET: 0,
3943
+ BALANCE: 1,
3944
+ PROOF: 2
3945
+ };
3946
+
3947
+ /**
3948
+ * @return {proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.ResultCase}
3949
+ */
3950
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.prototype.getResultCase = function() {
3951
+ return /** @type {proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.oneofGroups_[0]));
3952
+ };
3953
+
3954
+
3955
+
3956
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3957
+ /**
3958
+ * Creates an object representation of this proto.
3959
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3960
+ * Optional fields that are not set will be set to undefined.
3961
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3617
3962
  * For the list of reserved names please see:
3618
3963
  * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3619
3964
  * @param {boolean=} opt_includeInstance Deprecated. whether to include the
@@ -3762,7 +4107,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.prototype.getBalance
3762
4107
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse} returns this
3763
4108
  */
3764
4109
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.prototype.setBalance = function(value) {
3765
- return jspb.Message.setWrapperField(this, 1, value);
4110
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.oneofGroups_[0], value);
3766
4111
  };
3767
4112
 
3768
4113
 
@@ -3799,7 +4144,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.prototype.getProof =
3799
4144
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse} returns this
3800
4145
  */
3801
4146
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.prototype.setProof = function(value) {
3802
- return jspb.Message.setWrapperField(this, 2, value);
4147
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.oneofGroups_[0], value);
3803
4148
  };
3804
4149
 
3805
4150
 
@@ -3859,6 +4204,32 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.prototype.hasMetadata
3859
4204
 
3860
4205
 
3861
4206
 
4207
+ /**
4208
+ * Oneof group definitions for this message. Each group defines the field
4209
+ * numbers belonging to that group. When of these fields' value is set, all
4210
+ * other fields in the group are cleared. During deserialization, if multiple
4211
+ * fields are encountered for a group, only the last value seen will be kept.
4212
+ * @private {!Array<!Array<number>>}
4213
+ * @const
4214
+ */
4215
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.oneofGroups_ = [[1,2]];
4216
+
4217
+ /**
4218
+ * @enum {number}
4219
+ */
4220
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.ResultCase = {
4221
+ RESULT_NOT_SET: 0,
4222
+ BALANCE_AND_REVISION: 1,
4223
+ PROOF: 2
4224
+ };
4225
+
4226
+ /**
4227
+ * @return {proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.ResultCase}
4228
+ */
4229
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.getResultCase = function() {
4230
+ return /** @type {proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.oneofGroups_[0]));
4231
+ };
4232
+
3862
4233
 
3863
4234
 
3864
4235
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3890,8 +4261,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
3890
4261
  */
3891
4262
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.toObject = function(includeInstance, msg) {
3892
4263
  var f, obj = {
3893
- balance: (f = msg.getBalance()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
3894
- revision: (f = msg.getRevision()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
4264
+ balanceAndRevision: (f = msg.getBalanceAndRevision()) && proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.toObject(includeInstance, f),
3895
4265
  proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
3896
4266
  metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
3897
4267
  };
@@ -3931,21 +4301,16 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.deserializ
3931
4301
  var field = reader.getFieldNumber();
3932
4302
  switch (field) {
3933
4303
  case 1:
3934
- var value = new google_protobuf_wrappers_pb.UInt64Value;
3935
- reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
3936
- msg.setBalance(value);
4304
+ var value = new proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision;
4305
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.deserializeBinaryFromReader);
4306
+ msg.setBalanceAndRevision(value);
3937
4307
  break;
3938
4308
  case 2:
3939
- var value = new google_protobuf_wrappers_pb.UInt64Value;
3940
- reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
3941
- msg.setRevision(value);
3942
- break;
3943
- case 3:
3944
4309
  var value = new proto.org.dash.platform.dapi.v0.Proof;
3945
4310
  reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
3946
4311
  msg.setProof(value);
3947
4312
  break;
3948
- case 4:
4313
+ case 3:
3949
4314
  var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata;
3950
4315
  reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader);
3951
4316
  msg.setMetadata(value);
@@ -3979,36 +4344,156 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
3979
4344
  */
3980
4345
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.serializeBinaryToWriter = function(message, writer) {
3981
4346
  var f = undefined;
3982
- f = message.getBalance();
4347
+ f = message.getBalanceAndRevision();
3983
4348
  if (f != null) {
3984
4349
  writer.writeMessage(
3985
4350
  1,
3986
4351
  f,
3987
- google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter
4352
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.serializeBinaryToWriter
3988
4353
  );
3989
4354
  }
3990
- f = message.getRevision();
4355
+ f = message.getProof();
3991
4356
  if (f != null) {
3992
4357
  writer.writeMessage(
3993
4358
  2,
3994
4359
  f,
3995
- google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter
4360
+ proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
3996
4361
  );
3997
4362
  }
3998
- f = message.getProof();
4363
+ f = message.getMetadata();
3999
4364
  if (f != null) {
4000
4365
  writer.writeMessage(
4001
4366
  3,
4002
4367
  f,
4003
- proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
4368
+ proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter
4004
4369
  );
4005
4370
  }
4006
- f = message.getMetadata();
4371
+ };
4372
+
4373
+
4374
+
4375
+
4376
+
4377
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4378
+ /**
4379
+ * Creates an object representation of this proto.
4380
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4381
+ * Optional fields that are not set will be set to undefined.
4382
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4383
+ * For the list of reserved names please see:
4384
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4385
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4386
+ * JSPB instance for transitional soy proto support:
4387
+ * http://goto/soy-param-migration
4388
+ * @return {!Object}
4389
+ */
4390
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.toObject = function(opt_includeInstance) {
4391
+ return proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.toObject(opt_includeInstance, this);
4392
+ };
4393
+
4394
+
4395
+ /**
4396
+ * Static version of the {@see toObject} method.
4397
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4398
+ * the JSPB instance for transitional soy proto support:
4399
+ * http://goto/soy-param-migration
4400
+ * @param {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} msg The msg instance to transform.
4401
+ * @return {!Object}
4402
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4403
+ */
4404
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.toObject = function(includeInstance, msg) {
4405
+ var f, obj = {
4406
+ balance: (f = msg.getBalance()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f),
4407
+ revision: (f = msg.getRevision()) && google_protobuf_wrappers_pb.UInt64Value.toObject(includeInstance, f)
4408
+ };
4409
+
4410
+ if (includeInstance) {
4411
+ obj.$jspbMessageInstance = msg;
4412
+ }
4413
+ return obj;
4414
+ };
4415
+ }
4416
+
4417
+
4418
+ /**
4419
+ * Deserializes binary data (in protobuf wire format).
4420
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4421
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision}
4422
+ */
4423
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.deserializeBinary = function(bytes) {
4424
+ var reader = new jspb.BinaryReader(bytes);
4425
+ var msg = new proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision;
4426
+ return proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.deserializeBinaryFromReader(msg, reader);
4427
+ };
4428
+
4429
+
4430
+ /**
4431
+ * Deserializes binary data (in protobuf wire format) from the
4432
+ * given reader into the given message object.
4433
+ * @param {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} msg The message object to deserialize into.
4434
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4435
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision}
4436
+ */
4437
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.deserializeBinaryFromReader = function(msg, reader) {
4438
+ while (reader.nextField()) {
4439
+ if (reader.isEndGroup()) {
4440
+ break;
4441
+ }
4442
+ var field = reader.getFieldNumber();
4443
+ switch (field) {
4444
+ case 1:
4445
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
4446
+ reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
4447
+ msg.setBalance(value);
4448
+ break;
4449
+ case 2:
4450
+ var value = new google_protobuf_wrappers_pb.UInt64Value;
4451
+ reader.readMessage(value,google_protobuf_wrappers_pb.UInt64Value.deserializeBinaryFromReader);
4452
+ msg.setRevision(value);
4453
+ break;
4454
+ default:
4455
+ reader.skipField();
4456
+ break;
4457
+ }
4458
+ }
4459
+ return msg;
4460
+ };
4461
+
4462
+
4463
+ /**
4464
+ * Serializes the message to binary data (in protobuf wire format).
4465
+ * @return {!Uint8Array}
4466
+ */
4467
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.serializeBinary = function() {
4468
+ var writer = new jspb.BinaryWriter();
4469
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.serializeBinaryToWriter(this, writer);
4470
+ return writer.getResultBuffer();
4471
+ };
4472
+
4473
+
4474
+ /**
4475
+ * Serializes the given message to binary data (in protobuf wire
4476
+ * format), writing to the given BinaryWriter.
4477
+ * @param {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} message
4478
+ * @param {!jspb.BinaryWriter} writer
4479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4480
+ */
4481
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.serializeBinaryToWriter = function(message, writer) {
4482
+ var f = undefined;
4483
+ f = message.getBalance();
4007
4484
  if (f != null) {
4008
4485
  writer.writeMessage(
4009
- 4,
4486
+ 1,
4010
4487
  f,
4011
- proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter
4488
+ google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter
4489
+ );
4490
+ }
4491
+ f = message.getRevision();
4492
+ if (f != null) {
4493
+ writer.writeMessage(
4494
+ 2,
4495
+ f,
4496
+ google_protobuf_wrappers_pb.UInt64Value.serializeBinaryToWriter
4012
4497
  );
4013
4498
  }
4014
4499
  };
@@ -4018,7 +4503,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.serializeB
4018
4503
  * optional google.protobuf.UInt64Value balance = 1;
4019
4504
  * @return {?proto.google.protobuf.UInt64Value}
4020
4505
  */
4021
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.getBalance = function() {
4506
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.getBalance = function() {
4022
4507
  return /** @type{?proto.google.protobuf.UInt64Value} */ (
4023
4508
  jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 1));
4024
4509
  };
@@ -4026,18 +4511,18 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4026
4511
 
4027
4512
  /**
4028
4513
  * @param {?proto.google.protobuf.UInt64Value|undefined} value
4029
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4514
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} returns this
4030
4515
  */
4031
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.setBalance = function(value) {
4516
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.setBalance = function(value) {
4032
4517
  return jspb.Message.setWrapperField(this, 1, value);
4033
4518
  };
4034
4519
 
4035
4520
 
4036
4521
  /**
4037
4522
  * Clears the message field making it undefined.
4038
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4523
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} returns this
4039
4524
  */
4040
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.clearBalance = function() {
4525
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.clearBalance = function() {
4041
4526
  return this.setBalance(undefined);
4042
4527
  };
4043
4528
 
@@ -4046,7 +4531,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4046
4531
  * Returns whether this field is set.
4047
4532
  * @return {boolean}
4048
4533
  */
4049
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.hasBalance = function() {
4534
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.hasBalance = function() {
4050
4535
  return jspb.Message.getField(this, 1) != null;
4051
4536
  };
4052
4537
 
@@ -4055,7 +4540,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4055
4540
  * optional google.protobuf.UInt64Value revision = 2;
4056
4541
  * @return {?proto.google.protobuf.UInt64Value}
4057
4542
  */
4058
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.getRevision = function() {
4543
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.getRevision = function() {
4059
4544
  return /** @type{?proto.google.protobuf.UInt64Value} */ (
4060
4545
  jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.UInt64Value, 2));
4061
4546
  };
@@ -4063,18 +4548,18 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4063
4548
 
4064
4549
  /**
4065
4550
  * @param {?proto.google.protobuf.UInt64Value|undefined} value
4066
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4551
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} returns this
4067
4552
  */
4068
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.setRevision = function(value) {
4553
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.setRevision = function(value) {
4069
4554
  return jspb.Message.setWrapperField(this, 2, value);
4070
4555
  };
4071
4556
 
4072
4557
 
4073
4558
  /**
4074
4559
  * Clears the message field making it undefined.
4075
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4560
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} returns this
4076
4561
  */
4077
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.clearRevision = function() {
4562
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.clearRevision = function() {
4078
4563
  return this.setRevision(undefined);
4079
4564
  };
4080
4565
 
@@ -4083,18 +4568,55 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4083
4568
  * Returns whether this field is set.
4084
4569
  * @return {boolean}
4085
4570
  */
4086
- proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.hasRevision = function() {
4571
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision.prototype.hasRevision = function() {
4087
4572
  return jspb.Message.getField(this, 2) != null;
4088
4573
  };
4089
4574
 
4090
4575
 
4091
4576
  /**
4092
- * optional Proof proof = 3;
4577
+ * optional BalanceAndRevision balance_and_revision = 1;
4578
+ * @return {?proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision}
4579
+ */
4580
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.getBalanceAndRevision = function() {
4581
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision} */ (
4582
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision, 1));
4583
+ };
4584
+
4585
+
4586
+ /**
4587
+ * @param {?proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.BalanceAndRevision|undefined} value
4588
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4589
+ */
4590
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.setBalanceAndRevision = function(value) {
4591
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.oneofGroups_[0], value);
4592
+ };
4593
+
4594
+
4595
+ /**
4596
+ * Clears the message field making it undefined.
4597
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4598
+ */
4599
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.clearBalanceAndRevision = function() {
4600
+ return this.setBalanceAndRevision(undefined);
4601
+ };
4602
+
4603
+
4604
+ /**
4605
+ * Returns whether this field is set.
4606
+ * @return {boolean}
4607
+ */
4608
+ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.hasBalanceAndRevision = function() {
4609
+ return jspb.Message.getField(this, 1) != null;
4610
+ };
4611
+
4612
+
4613
+ /**
4614
+ * optional Proof proof = 2;
4093
4615
  * @return {?proto.org.dash.platform.dapi.v0.Proof}
4094
4616
  */
4095
4617
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.getProof = function() {
4096
4618
  return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
4097
- jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 3));
4619
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2));
4098
4620
  };
4099
4621
 
4100
4622
 
@@ -4103,7 +4625,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4103
4625
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4104
4626
  */
4105
4627
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.setProof = function(value) {
4106
- return jspb.Message.setWrapperField(this, 3, value);
4628
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.oneofGroups_[0], value);
4107
4629
  };
4108
4630
 
4109
4631
 
@@ -4121,17 +4643,17 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4121
4643
  * @return {boolean}
4122
4644
  */
4123
4645
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.hasProof = function() {
4124
- return jspb.Message.getField(this, 3) != null;
4646
+ return jspb.Message.getField(this, 2) != null;
4125
4647
  };
4126
4648
 
4127
4649
 
4128
4650
  /**
4129
- * optional ResponseMetadata metadata = 4;
4651
+ * optional ResponseMetadata metadata = 3;
4130
4652
  * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata}
4131
4653
  */
4132
4654
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.getMetadata = function() {
4133
4655
  return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ (
4134
- jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 4));
4656
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3));
4135
4657
  };
4136
4658
 
4137
4659
 
@@ -4140,7 +4662,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4140
4662
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse} returns this
4141
4663
  */
4142
4664
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.setMetadata = function(value) {
4143
- return jspb.Message.setWrapperField(this, 4, value);
4665
+ return jspb.Message.setWrapperField(this, 3, value);
4144
4666
  };
4145
4667
 
4146
4668
 
@@ -4158,7 +4680,7 @@ proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.
4158
4680
  * @return {boolean}
4159
4681
  */
4160
4682
  proto.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.prototype.hasMetadata = function() {
4161
- return jspb.Message.getField(this, 4) != null;
4683
+ return jspb.Message.getField(this, 3) != null;
4162
4684
  };
4163
4685
 
4164
4686
 
@@ -8340,6 +8862,32 @@ proto.org.dash.platform.dapi.v0.GetDataContractRequest.prototype.setProve = func
8340
8862
 
8341
8863
 
8342
8864
 
8865
+ /**
8866
+ * Oneof group definitions for this message. Each group defines the field
8867
+ * numbers belonging to that group. When of these fields' value is set, all
8868
+ * other fields in the group are cleared. During deserialization, if multiple
8869
+ * fields are encountered for a group, only the last value seen will be kept.
8870
+ * @private {!Array<!Array<number>>}
8871
+ * @const
8872
+ */
8873
+ proto.org.dash.platform.dapi.v0.GetDataContractResponse.oneofGroups_ = [[1,2]];
8874
+
8875
+ /**
8876
+ * @enum {number}
8877
+ */
8878
+ proto.org.dash.platform.dapi.v0.GetDataContractResponse.ResultCase = {
8879
+ RESULT_NOT_SET: 0,
8880
+ DATA_CONTRACT: 1,
8881
+ PROOF: 2
8882
+ };
8883
+
8884
+ /**
8885
+ * @return {proto.org.dash.platform.dapi.v0.GetDataContractResponse.ResultCase}
8886
+ */
8887
+ proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.getResultCase = function() {
8888
+ return /** @type {proto.org.dash.platform.dapi.v0.GetDataContractResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDataContractResponse.oneofGroups_[0]));
8889
+ };
8890
+
8343
8891
 
8344
8892
 
8345
8893
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -8453,8 +9001,8 @@ proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.serializeBinar
8453
9001
  */
8454
9002
  proto.org.dash.platform.dapi.v0.GetDataContractResponse.serializeBinaryToWriter = function(message, writer) {
8455
9003
  var f = undefined;
8456
- f = message.getDataContract_asU8();
8457
- if (f.length > 0) {
9004
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 1));
9005
+ if (f != null) {
8458
9006
  writer.writeBytes(
8459
9007
  1,
8460
9008
  f
@@ -8517,26 +9065,44 @@ proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.getDataContrac
8517
9065
  * @return {!proto.org.dash.platform.dapi.v0.GetDataContractResponse} returns this
8518
9066
  */
8519
9067
  proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.setDataContract = function(value) {
8520
- return jspb.Message.setProto3BytesField(this, 1, value);
9068
+ return jspb.Message.setOneofField(this, 1, proto.org.dash.platform.dapi.v0.GetDataContractResponse.oneofGroups_[0], value);
8521
9069
  };
8522
9070
 
8523
9071
 
8524
9072
  /**
8525
- * optional Proof proof = 2;
8526
- * @return {?proto.org.dash.platform.dapi.v0.Proof}
9073
+ * Clears the field making it undefined.
9074
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractResponse} returns this
8527
9075
  */
8528
- proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.getProof = function() {
8529
- return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
8530
- jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2));
9076
+ proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.clearDataContract = function() {
9077
+ return jspb.Message.setOneofField(this, 1, proto.org.dash.platform.dapi.v0.GetDataContractResponse.oneofGroups_[0], undefined);
8531
9078
  };
8532
9079
 
8533
9080
 
8534
9081
  /**
8535
- * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value
8536
- * @return {!proto.org.dash.platform.dapi.v0.GetDataContractResponse} returns this
8537
- */
9082
+ * Returns whether this field is set.
9083
+ * @return {boolean}
9084
+ */
9085
+ proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.hasDataContract = function() {
9086
+ return jspb.Message.getField(this, 1) != null;
9087
+ };
9088
+
9089
+
9090
+ /**
9091
+ * optional Proof proof = 2;
9092
+ * @return {?proto.org.dash.platform.dapi.v0.Proof}
9093
+ */
9094
+ proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.getProof = function() {
9095
+ return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
9096
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2));
9097
+ };
9098
+
9099
+
9100
+ /**
9101
+ * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value
9102
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractResponse} returns this
9103
+ */
8538
9104
  proto.org.dash.platform.dapi.v0.GetDataContractResponse.prototype.setProof = function(value) {
8539
- return jspb.Message.setWrapperField(this, 2, value);
9105
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetDataContractResponse.oneofGroups_[0], value);
8540
9106
  };
8541
9107
 
8542
9108
 
@@ -9604,32 +10170,6 @@ proto.org.dash.platform.dapi.v0.GetDataContractsResponse.prototype.hasMetadata =
9604
10170
 
9605
10171
 
9606
10172
 
9607
- /**
9608
- * Oneof group definitions for this message. Each group defines the field
9609
- * numbers belonging to that group. When of these fields' value is set, all
9610
- * other fields in the group are cleared. During deserialization, if multiple
9611
- * fields are encountered for a group, only the last value seen will be kept.
9612
- * @private {!Array<!Array<number>>}
9613
- * @const
9614
- */
9615
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.oneofGroups_ = [[6,7]];
9616
-
9617
- /**
9618
- * @enum {number}
9619
- */
9620
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase = {
9621
- START_NOT_SET: 0,
9622
- START_AFTER: 6,
9623
- START_AT: 7
9624
- };
9625
-
9626
- /**
9627
- * @return {proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase}
9628
- */
9629
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartCase = function() {
9630
- return /** @type {proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.oneofGroups_[0]));
9631
- };
9632
-
9633
10173
 
9634
10174
 
9635
10175
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -9645,8 +10185,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
9645
10185
  * http://goto/soy-param-migration
9646
10186
  * @return {!Object}
9647
10187
  */
9648
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
9649
- return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.toObject(opt_includeInstance, this);
10188
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.toObject = function(opt_includeInstance) {
10189
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.toObject(opt_includeInstance, this);
9650
10190
  };
9651
10191
 
9652
10192
 
@@ -9655,20 +10195,17 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.toObject = functio
9655
10195
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9656
10196
  * the JSPB instance for transitional soy proto support:
9657
10197
  * http://goto/soy-param-migration
9658
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} msg The msg instance to transform.
10198
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} msg The msg instance to transform.
9659
10199
  * @return {!Object}
9660
10200
  * @suppress {unusedLocalVariables} f is only used for nested messages
9661
10201
  */
9662
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.toObject = function(includeInstance, msg) {
10202
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.toObject = function(includeInstance, msg) {
9663
10203
  var f, obj = {
9664
- dataContractId: msg.getDataContractId_asB64(),
9665
- documentType: jspb.Message.getFieldWithDefault(msg, 2, ""),
9666
- where: msg.getWhere_asB64(),
9667
- orderBy: msg.getOrderBy_asB64(),
9668
- limit: jspb.Message.getFieldWithDefault(msg, 5, 0),
9669
- startAfter: msg.getStartAfter_asB64(),
9670
- startAt: msg.getStartAt_asB64(),
9671
- prove: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
10204
+ id: msg.getId_asB64(),
10205
+ limit: jspb.Message.getFieldWithDefault(msg, 2, 0),
10206
+ offset: jspb.Message.getFieldWithDefault(msg, 3, 0),
10207
+ startAtMs: jspb.Message.getFieldWithDefault(msg, 4, 0),
10208
+ prove: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
9672
10209
  };
9673
10210
 
9674
10211
  if (includeInstance) {
@@ -9682,23 +10219,23 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.toObject = function(includeI
9682
10219
  /**
9683
10220
  * Deserializes binary data (in protobuf wire format).
9684
10221
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
9685
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest}
10222
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest}
9686
10223
  */
9687
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinary = function(bytes) {
10224
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.deserializeBinary = function(bytes) {
9688
10225
  var reader = new jspb.BinaryReader(bytes);
9689
- var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest;
9690
- return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader(msg, reader);
10226
+ var msg = new proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest;
10227
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.deserializeBinaryFromReader(msg, reader);
9691
10228
  };
9692
10229
 
9693
10230
 
9694
10231
  /**
9695
10232
  * Deserializes binary data (in protobuf wire format) from the
9696
10233
  * given reader into the given message object.
9697
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} msg The message object to deserialize into.
10234
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} msg The message object to deserialize into.
9698
10235
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9699
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest}
10236
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest}
9700
10237
  */
9701
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
10238
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
9702
10239
  while (reader.nextField()) {
9703
10240
  if (reader.isEndGroup()) {
9704
10241
  break;
@@ -9707,33 +10244,21 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader
9707
10244
  switch (field) {
9708
10245
  case 1:
9709
10246
  var value = /** @type {!Uint8Array} */ (reader.readBytes());
9710
- msg.setDataContractId(value);
10247
+ msg.setId(value);
9711
10248
  break;
9712
10249
  case 2:
9713
- var value = /** @type {string} */ (reader.readString());
9714
- msg.setDocumentType(value);
10250
+ var value = /** @type {number} */ (reader.readUint32());
10251
+ msg.setLimit(value);
9715
10252
  break;
9716
10253
  case 3:
9717
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
9718
- msg.setWhere(value);
10254
+ var value = /** @type {number} */ (reader.readUint32());
10255
+ msg.setOffset(value);
9719
10256
  break;
9720
10257
  case 4:
9721
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
9722
- msg.setOrderBy(value);
10258
+ var value = /** @type {number} */ (reader.readUint64());
10259
+ msg.setStartAtMs(value);
9723
10260
  break;
9724
10261
  case 5:
9725
- var value = /** @type {number} */ (reader.readUint32());
9726
- msg.setLimit(value);
9727
- break;
9728
- case 6:
9729
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
9730
- msg.setStartAfter(value);
9731
- break;
9732
- case 7:
9733
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
9734
- msg.setStartAt(value);
9735
- break;
9736
- case 8:
9737
10262
  var value = /** @type {boolean} */ (reader.readBool());
9738
10263
  msg.setProve(value);
9739
10264
  break;
@@ -9750,9 +10275,9 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader
9750
10275
  * Serializes the message to binary data (in protobuf wire format).
9751
10276
  * @return {!Uint8Array}
9752
10277
  */
9753
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.serializeBinary = function() {
10278
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.serializeBinary = function() {
9754
10279
  var writer = new jspb.BinaryWriter();
9755
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.serializeBinaryToWriter(this, writer);
10280
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.serializeBinaryToWriter(this, writer);
9756
10281
  return writer.getResultBuffer();
9757
10282
  };
9758
10283
 
@@ -9760,65 +10285,44 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.serializeBinary =
9760
10285
  /**
9761
10286
  * Serializes the given message to binary data (in protobuf wire
9762
10287
  * format), writing to the given BinaryWriter.
9763
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} message
10288
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} message
9764
10289
  * @param {!jspb.BinaryWriter} writer
9765
10290
  * @suppress {unusedLocalVariables} f is only used for nested messages
9766
10291
  */
9767
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
10292
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.serializeBinaryToWriter = function(message, writer) {
9768
10293
  var f = undefined;
9769
- f = message.getDataContractId_asU8();
10294
+ f = message.getId_asU8();
9770
10295
  if (f.length > 0) {
9771
10296
  writer.writeBytes(
9772
10297
  1,
9773
10298
  f
9774
10299
  );
9775
10300
  }
9776
- f = message.getDocumentType();
9777
- if (f.length > 0) {
9778
- writer.writeString(
9779
- 2,
9780
- f
9781
- );
9782
- }
9783
- f = message.getWhere_asU8();
9784
- if (f.length > 0) {
9785
- writer.writeBytes(
9786
- 3,
9787
- f
9788
- );
9789
- }
9790
- f = message.getOrderBy_asU8();
9791
- if (f.length > 0) {
9792
- writer.writeBytes(
9793
- 4,
9794
- f
9795
- );
9796
- }
9797
10301
  f = message.getLimit();
9798
10302
  if (f !== 0) {
9799
10303
  writer.writeUint32(
9800
- 5,
10304
+ 2,
9801
10305
  f
9802
10306
  );
9803
10307
  }
9804
- f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
9805
- if (f != null) {
9806
- writer.writeBytes(
9807
- 6,
10308
+ f = message.getOffset();
10309
+ if (f !== 0) {
10310
+ writer.writeUint32(
10311
+ 3,
9808
10312
  f
9809
10313
  );
9810
10314
  }
9811
- f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7));
9812
- if (f != null) {
9813
- writer.writeBytes(
9814
- 7,
10315
+ f = message.getStartAtMs();
10316
+ if (f !== 0) {
10317
+ writer.writeUint64(
10318
+ 4,
9815
10319
  f
9816
10320
  );
9817
10321
  }
9818
10322
  f = message.getProve();
9819
10323
  if (f) {
9820
10324
  writer.writeBool(
9821
- 8,
10325
+ 5,
9822
10326
  f
9823
10327
  );
9824
10328
  }
@@ -9826,170 +10330,1129 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.serializeBinaryToWriter = fu
9826
10330
 
9827
10331
 
9828
10332
  /**
9829
- * optional bytes data_contract_id = 1;
10333
+ * optional bytes id = 1;
9830
10334
  * @return {string}
9831
10335
  */
9832
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDataContractId = function() {
10336
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getId = function() {
9833
10337
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
9834
10338
  };
9835
10339
 
9836
10340
 
9837
10341
  /**
9838
- * optional bytes data_contract_id = 1;
9839
- * This is a type-conversion wrapper around `getDataContractId()`
10342
+ * optional bytes id = 1;
10343
+ * This is a type-conversion wrapper around `getId()`
9840
10344
  * @return {string}
9841
10345
  */
9842
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDataContractId_asB64 = function() {
10346
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getId_asB64 = function() {
9843
10347
  return /** @type {string} */ (jspb.Message.bytesAsB64(
9844
- this.getDataContractId()));
10348
+ this.getId()));
9845
10349
  };
9846
10350
 
9847
10351
 
9848
10352
  /**
9849
- * optional bytes data_contract_id = 1;
10353
+ * optional bytes id = 1;
9850
10354
  * Note that Uint8Array is not supported on all browsers.
9851
10355
  * @see http://caniuse.com/Uint8Array
9852
- * This is a type-conversion wrapper around `getDataContractId()`
10356
+ * This is a type-conversion wrapper around `getId()`
9853
10357
  * @return {!Uint8Array}
9854
10358
  */
9855
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDataContractId_asU8 = function() {
10359
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getId_asU8 = function() {
9856
10360
  return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
9857
- this.getDataContractId()));
10361
+ this.getId()));
9858
10362
  };
9859
10363
 
9860
10364
 
9861
10365
  /**
9862
10366
  * @param {!(string|Uint8Array)} value
9863
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
10367
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} returns this
9864
10368
  */
9865
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setDataContractId = function(value) {
10369
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.setId = function(value) {
9866
10370
  return jspb.Message.setProto3BytesField(this, 1, value);
9867
10371
  };
9868
10372
 
9869
10373
 
9870
10374
  /**
9871
- * optional string document_type = 2;
9872
- * @return {string}
10375
+ * optional uint32 limit = 2;
10376
+ * @return {number}
9873
10377
  */
9874
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDocumentType = function() {
9875
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10378
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getLimit = function() {
10379
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
9876
10380
  };
9877
10381
 
9878
10382
 
9879
10383
  /**
9880
- * @param {string} value
9881
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
10384
+ * @param {number} value
10385
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} returns this
9882
10386
  */
9883
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setDocumentType = function(value) {
9884
- return jspb.Message.setProto3StringField(this, 2, value);
10387
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.setLimit = function(value) {
10388
+ return jspb.Message.setProto3IntField(this, 2, value);
9885
10389
  };
9886
10390
 
9887
10391
 
9888
10392
  /**
9889
- * optional bytes where = 3;
9890
- * @return {string}
10393
+ * optional uint32 offset = 3;
10394
+ * @return {number}
9891
10395
  */
9892
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getWhere = function() {
9893
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
10396
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getOffset = function() {
10397
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
9894
10398
  };
9895
10399
 
9896
10400
 
9897
10401
  /**
9898
- * optional bytes where = 3;
9899
- * This is a type-conversion wrapper around `getWhere()`
9900
- * @return {string}
10402
+ * @param {number} value
10403
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} returns this
9901
10404
  */
9902
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getWhere_asB64 = function() {
9903
- return /** @type {string} */ (jspb.Message.bytesAsB64(
9904
- this.getWhere()));
10405
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.setOffset = function(value) {
10406
+ return jspb.Message.setProto3IntField(this, 3, value);
9905
10407
  };
9906
10408
 
9907
10409
 
9908
10410
  /**
9909
- * optional bytes where = 3;
9910
- * Note that Uint8Array is not supported on all browsers.
9911
- * @see http://caniuse.com/Uint8Array
9912
- * This is a type-conversion wrapper around `getWhere()`
9913
- * @return {!Uint8Array}
10411
+ * optional uint64 start_at_ms = 4;
10412
+ * @return {number}
9914
10413
  */
9915
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getWhere_asU8 = function() {
9916
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
9917
- this.getWhere()));
10414
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getStartAtMs = function() {
10415
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
9918
10416
  };
9919
10417
 
9920
10418
 
9921
10419
  /**
9922
- * @param {!(string|Uint8Array)} value
9923
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
10420
+ * @param {number} value
10421
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} returns this
9924
10422
  */
9925
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setWhere = function(value) {
9926
- return jspb.Message.setProto3BytesField(this, 3, value);
10423
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.setStartAtMs = function(value) {
10424
+ return jspb.Message.setProto3IntField(this, 4, value);
9927
10425
  };
9928
10426
 
9929
10427
 
9930
10428
  /**
9931
- * optional bytes order_by = 4;
9932
- * @return {string}
10429
+ * optional bool prove = 5;
10430
+ * @return {boolean}
9933
10431
  */
9934
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getOrderBy = function() {
9935
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10432
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.getProve = function() {
10433
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
9936
10434
  };
9937
10435
 
9938
10436
 
9939
10437
  /**
9940
- * optional bytes order_by = 4;
9941
- * This is a type-conversion wrapper around `getOrderBy()`
9942
- * @return {string}
10438
+ * @param {boolean} value
10439
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest} returns this
9943
10440
  */
9944
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getOrderBy_asB64 = function() {
9945
- return /** @type {string} */ (jspb.Message.bytesAsB64(
9946
- this.getOrderBy()));
10441
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.prototype.setProve = function(value) {
10442
+ return jspb.Message.setProto3BooleanField(this, 5, value);
9947
10443
  };
9948
10444
 
9949
10445
 
9950
- /**
9951
- * optional bytes order_by = 4;
9952
- * Note that Uint8Array is not supported on all browsers.
9953
- * @see http://caniuse.com/Uint8Array
9954
- * This is a type-conversion wrapper around `getOrderBy()`
9955
- * @return {!Uint8Array}
9956
- */
9957
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getOrderBy_asU8 = function() {
9958
- return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
9959
- this.getOrderBy()));
9960
- };
9961
-
9962
10446
 
9963
10447
  /**
9964
- * @param {!(string|Uint8Array)} value
9965
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
10448
+ * Oneof group definitions for this message. Each group defines the field
10449
+ * numbers belonging to that group. When of these fields' value is set, all
10450
+ * other fields in the group are cleared. During deserialization, if multiple
10451
+ * fields are encountered for a group, only the last value seen will be kept.
10452
+ * @private {!Array<!Array<number>>}
10453
+ * @const
9966
10454
  */
9967
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setOrderBy = function(value) {
9968
- return jspb.Message.setProto3BytesField(this, 4, value);
9969
- };
9970
-
10455
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.oneofGroups_ = [[1,2]];
9971
10456
 
9972
10457
  /**
9973
- * optional uint32 limit = 5;
9974
- * @return {number}
10458
+ * @enum {number}
9975
10459
  */
9976
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getLimit = function() {
9977
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
10460
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.ResultCase = {
10461
+ RESULT_NOT_SET: 0,
10462
+ DATA_CONTRACT_HISTORY: 1,
10463
+ PROOF: 2
9978
10464
  };
9979
10465
 
9980
-
9981
10466
  /**
9982
- * @param {number} value
9983
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
10467
+ * @return {proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.ResultCase}
9984
10468
  */
9985
- proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setLimit = function(value) {
9986
- return jspb.Message.setProto3IntField(this, 5, value);
10469
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.getResultCase = function() {
10470
+ return /** @type {proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.oneofGroups_[0]));
9987
10471
  };
9988
10472
 
9989
10473
 
10474
+
10475
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9990
10476
  /**
9991
- * optional bytes start_after = 6;
9992
- * @return {string}
10477
+ * Creates an object representation of this proto.
10478
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10479
+ * Optional fields that are not set will be set to undefined.
10480
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10481
+ * For the list of reserved names please see:
10482
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10483
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10484
+ * JSPB instance for transitional soy proto support:
10485
+ * http://goto/soy-param-migration
10486
+ * @return {!Object}
10487
+ */
10488
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.toObject = function(opt_includeInstance) {
10489
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.toObject(opt_includeInstance, this);
10490
+ };
10491
+
10492
+
10493
+ /**
10494
+ * Static version of the {@see toObject} method.
10495
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10496
+ * the JSPB instance for transitional soy proto support:
10497
+ * http://goto/soy-param-migration
10498
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} msg The msg instance to transform.
10499
+ * @return {!Object}
10500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10501
+ */
10502
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.toObject = function(includeInstance, msg) {
10503
+ var f, obj = {
10504
+ dataContractHistory: (f = msg.getDataContractHistory()) && proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.toObject(includeInstance, f),
10505
+ proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
10506
+ metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
10507
+ };
10508
+
10509
+ if (includeInstance) {
10510
+ obj.$jspbMessageInstance = msg;
10511
+ }
10512
+ return obj;
10513
+ };
10514
+ }
10515
+
10516
+
10517
+ /**
10518
+ * Deserializes binary data (in protobuf wire format).
10519
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10520
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse}
10521
+ */
10522
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.deserializeBinary = function(bytes) {
10523
+ var reader = new jspb.BinaryReader(bytes);
10524
+ var msg = new proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse;
10525
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.deserializeBinaryFromReader(msg, reader);
10526
+ };
10527
+
10528
+
10529
+ /**
10530
+ * Deserializes binary data (in protobuf wire format) from the
10531
+ * given reader into the given message object.
10532
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} msg The message object to deserialize into.
10533
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10534
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse}
10535
+ */
10536
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
10537
+ while (reader.nextField()) {
10538
+ if (reader.isEndGroup()) {
10539
+ break;
10540
+ }
10541
+ var field = reader.getFieldNumber();
10542
+ switch (field) {
10543
+ case 1:
10544
+ var value = new proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory;
10545
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.deserializeBinaryFromReader);
10546
+ msg.setDataContractHistory(value);
10547
+ break;
10548
+ case 2:
10549
+ var value = new proto.org.dash.platform.dapi.v0.Proof;
10550
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
10551
+ msg.setProof(value);
10552
+ break;
10553
+ case 3:
10554
+ var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata;
10555
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader);
10556
+ msg.setMetadata(value);
10557
+ break;
10558
+ default:
10559
+ reader.skipField();
10560
+ break;
10561
+ }
10562
+ }
10563
+ return msg;
10564
+ };
10565
+
10566
+
10567
+ /**
10568
+ * Serializes the message to binary data (in protobuf wire format).
10569
+ * @return {!Uint8Array}
10570
+ */
10571
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.serializeBinary = function() {
10572
+ var writer = new jspb.BinaryWriter();
10573
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.serializeBinaryToWriter(this, writer);
10574
+ return writer.getResultBuffer();
10575
+ };
10576
+
10577
+
10578
+ /**
10579
+ * Serializes the given message to binary data (in protobuf wire
10580
+ * format), writing to the given BinaryWriter.
10581
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} message
10582
+ * @param {!jspb.BinaryWriter} writer
10583
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10584
+ */
10585
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.serializeBinaryToWriter = function(message, writer) {
10586
+ var f = undefined;
10587
+ f = message.getDataContractHistory();
10588
+ if (f != null) {
10589
+ writer.writeMessage(
10590
+ 1,
10591
+ f,
10592
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.serializeBinaryToWriter
10593
+ );
10594
+ }
10595
+ f = message.getProof();
10596
+ if (f != null) {
10597
+ writer.writeMessage(
10598
+ 2,
10599
+ f,
10600
+ proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
10601
+ );
10602
+ }
10603
+ f = message.getMetadata();
10604
+ if (f != null) {
10605
+ writer.writeMessage(
10606
+ 3,
10607
+ f,
10608
+ proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter
10609
+ );
10610
+ }
10611
+ };
10612
+
10613
+
10614
+
10615
+
10616
+
10617
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10618
+ /**
10619
+ * Creates an object representation of this proto.
10620
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10621
+ * Optional fields that are not set will be set to undefined.
10622
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10623
+ * For the list of reserved names please see:
10624
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10625
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10626
+ * JSPB instance for transitional soy proto support:
10627
+ * http://goto/soy-param-migration
10628
+ * @return {!Object}
10629
+ */
10630
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.toObject = function(opt_includeInstance) {
10631
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.toObject(opt_includeInstance, this);
10632
+ };
10633
+
10634
+
10635
+ /**
10636
+ * Static version of the {@see toObject} method.
10637
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10638
+ * the JSPB instance for transitional soy proto support:
10639
+ * http://goto/soy-param-migration
10640
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry} msg The msg instance to transform.
10641
+ * @return {!Object}
10642
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10643
+ */
10644
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.toObject = function(includeInstance, msg) {
10645
+ var f, obj = {
10646
+ date: jspb.Message.getFieldWithDefault(msg, 1, 0),
10647
+ value: msg.getValue_asB64()
10648
+ };
10649
+
10650
+ if (includeInstance) {
10651
+ obj.$jspbMessageInstance = msg;
10652
+ }
10653
+ return obj;
10654
+ };
10655
+ }
10656
+
10657
+
10658
+ /**
10659
+ * Deserializes binary data (in protobuf wire format).
10660
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10661
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry}
10662
+ */
10663
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.deserializeBinary = function(bytes) {
10664
+ var reader = new jspb.BinaryReader(bytes);
10665
+ var msg = new proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry;
10666
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.deserializeBinaryFromReader(msg, reader);
10667
+ };
10668
+
10669
+
10670
+ /**
10671
+ * Deserializes binary data (in protobuf wire format) from the
10672
+ * given reader into the given message object.
10673
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry} msg The message object to deserialize into.
10674
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10675
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry}
10676
+ */
10677
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.deserializeBinaryFromReader = function(msg, reader) {
10678
+ while (reader.nextField()) {
10679
+ if (reader.isEndGroup()) {
10680
+ break;
10681
+ }
10682
+ var field = reader.getFieldNumber();
10683
+ switch (field) {
10684
+ case 1:
10685
+ var value = /** @type {number} */ (reader.readUint64());
10686
+ msg.setDate(value);
10687
+ break;
10688
+ case 2:
10689
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
10690
+ msg.setValue(value);
10691
+ break;
10692
+ default:
10693
+ reader.skipField();
10694
+ break;
10695
+ }
10696
+ }
10697
+ return msg;
10698
+ };
10699
+
10700
+
10701
+ /**
10702
+ * Serializes the message to binary data (in protobuf wire format).
10703
+ * @return {!Uint8Array}
10704
+ */
10705
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.serializeBinary = function() {
10706
+ var writer = new jspb.BinaryWriter();
10707
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.serializeBinaryToWriter(this, writer);
10708
+ return writer.getResultBuffer();
10709
+ };
10710
+
10711
+
10712
+ /**
10713
+ * Serializes the given message to binary data (in protobuf wire
10714
+ * format), writing to the given BinaryWriter.
10715
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry} message
10716
+ * @param {!jspb.BinaryWriter} writer
10717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10718
+ */
10719
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.serializeBinaryToWriter = function(message, writer) {
10720
+ var f = undefined;
10721
+ f = message.getDate();
10722
+ if (f !== 0) {
10723
+ writer.writeUint64(
10724
+ 1,
10725
+ f
10726
+ );
10727
+ }
10728
+ f = message.getValue_asU8();
10729
+ if (f.length > 0) {
10730
+ writer.writeBytes(
10731
+ 2,
10732
+ f
10733
+ );
10734
+ }
10735
+ };
10736
+
10737
+
10738
+ /**
10739
+ * optional uint64 date = 1;
10740
+ * @return {number}
10741
+ */
10742
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.getDate = function() {
10743
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10744
+ };
10745
+
10746
+
10747
+ /**
10748
+ * @param {number} value
10749
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry} returns this
10750
+ */
10751
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.setDate = function(value) {
10752
+ return jspb.Message.setProto3IntField(this, 1, value);
10753
+ };
10754
+
10755
+
10756
+ /**
10757
+ * optional bytes value = 2;
10758
+ * @return {string}
10759
+ */
10760
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.getValue = function() {
10761
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10762
+ };
10763
+
10764
+
10765
+ /**
10766
+ * optional bytes value = 2;
10767
+ * This is a type-conversion wrapper around `getValue()`
10768
+ * @return {string}
10769
+ */
10770
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.getValue_asB64 = function() {
10771
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
10772
+ this.getValue()));
10773
+ };
10774
+
10775
+
10776
+ /**
10777
+ * optional bytes value = 2;
10778
+ * Note that Uint8Array is not supported on all browsers.
10779
+ * @see http://caniuse.com/Uint8Array
10780
+ * This is a type-conversion wrapper around `getValue()`
10781
+ * @return {!Uint8Array}
10782
+ */
10783
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.getValue_asU8 = function() {
10784
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
10785
+ this.getValue()));
10786
+ };
10787
+
10788
+
10789
+ /**
10790
+ * @param {!(string|Uint8Array)} value
10791
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry} returns this
10792
+ */
10793
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.prototype.setValue = function(value) {
10794
+ return jspb.Message.setProto3BytesField(this, 2, value);
10795
+ };
10796
+
10797
+
10798
+
10799
+ /**
10800
+ * List of repeated fields within this message type.
10801
+ * @private {!Array<number>}
10802
+ * @const
10803
+ */
10804
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.repeatedFields_ = [1];
10805
+
10806
+
10807
+
10808
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10809
+ /**
10810
+ * Creates an object representation of this proto.
10811
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10812
+ * Optional fields that are not set will be set to undefined.
10813
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10814
+ * For the list of reserved names please see:
10815
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10816
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10817
+ * JSPB instance for transitional soy proto support:
10818
+ * http://goto/soy-param-migration
10819
+ * @return {!Object}
10820
+ */
10821
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.prototype.toObject = function(opt_includeInstance) {
10822
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.toObject(opt_includeInstance, this);
10823
+ };
10824
+
10825
+
10826
+ /**
10827
+ * Static version of the {@see toObject} method.
10828
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10829
+ * the JSPB instance for transitional soy proto support:
10830
+ * http://goto/soy-param-migration
10831
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory} msg The msg instance to transform.
10832
+ * @return {!Object}
10833
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10834
+ */
10835
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.toObject = function(includeInstance, msg) {
10836
+ var f, obj = {
10837
+ dataContractEntriesList: jspb.Message.toObjectList(msg.getDataContractEntriesList(),
10838
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.toObject, includeInstance)
10839
+ };
10840
+
10841
+ if (includeInstance) {
10842
+ obj.$jspbMessageInstance = msg;
10843
+ }
10844
+ return obj;
10845
+ };
10846
+ }
10847
+
10848
+
10849
+ /**
10850
+ * Deserializes binary data (in protobuf wire format).
10851
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10852
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory}
10853
+ */
10854
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.deserializeBinary = function(bytes) {
10855
+ var reader = new jspb.BinaryReader(bytes);
10856
+ var msg = new proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory;
10857
+ return proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.deserializeBinaryFromReader(msg, reader);
10858
+ };
10859
+
10860
+
10861
+ /**
10862
+ * Deserializes binary data (in protobuf wire format) from the
10863
+ * given reader into the given message object.
10864
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory} msg The message object to deserialize into.
10865
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10866
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory}
10867
+ */
10868
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.deserializeBinaryFromReader = function(msg, reader) {
10869
+ while (reader.nextField()) {
10870
+ if (reader.isEndGroup()) {
10871
+ break;
10872
+ }
10873
+ var field = reader.getFieldNumber();
10874
+ switch (field) {
10875
+ case 1:
10876
+ var value = new proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry;
10877
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.deserializeBinaryFromReader);
10878
+ msg.addDataContractEntries(value);
10879
+ break;
10880
+ default:
10881
+ reader.skipField();
10882
+ break;
10883
+ }
10884
+ }
10885
+ return msg;
10886
+ };
10887
+
10888
+
10889
+ /**
10890
+ * Serializes the message to binary data (in protobuf wire format).
10891
+ * @return {!Uint8Array}
10892
+ */
10893
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.prototype.serializeBinary = function() {
10894
+ var writer = new jspb.BinaryWriter();
10895
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.serializeBinaryToWriter(this, writer);
10896
+ return writer.getResultBuffer();
10897
+ };
10898
+
10899
+
10900
+ /**
10901
+ * Serializes the given message to binary data (in protobuf wire
10902
+ * format), writing to the given BinaryWriter.
10903
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory} message
10904
+ * @param {!jspb.BinaryWriter} writer
10905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10906
+ */
10907
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.serializeBinaryToWriter = function(message, writer) {
10908
+ var f = undefined;
10909
+ f = message.getDataContractEntriesList();
10910
+ if (f.length > 0) {
10911
+ writer.writeRepeatedMessage(
10912
+ 1,
10913
+ f,
10914
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry.serializeBinaryToWriter
10915
+ );
10916
+ }
10917
+ };
10918
+
10919
+
10920
+ /**
10921
+ * repeated DataContractHistoryEntry data_contract_entries = 1;
10922
+ * @return {!Array<!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry>}
10923
+ */
10924
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.prototype.getDataContractEntriesList = function() {
10925
+ return /** @type{!Array<!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry>} */ (
10926
+ jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry, 1));
10927
+ };
10928
+
10929
+
10930
+ /**
10931
+ * @param {!Array<!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry>} value
10932
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory} returns this
10933
+ */
10934
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.prototype.setDataContractEntriesList = function(value) {
10935
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10936
+ };
10937
+
10938
+
10939
+ /**
10940
+ * @param {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry=} opt_value
10941
+ * @param {number=} opt_index
10942
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry}
10943
+ */
10944
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.prototype.addDataContractEntries = function(opt_value, opt_index) {
10945
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistoryEntry, opt_index);
10946
+ };
10947
+
10948
+
10949
+ /**
10950
+ * Clears the list making it empty but non-null.
10951
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory} returns this
10952
+ */
10953
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory.prototype.clearDataContractEntriesList = function() {
10954
+ return this.setDataContractEntriesList([]);
10955
+ };
10956
+
10957
+
10958
+ /**
10959
+ * optional DataContractHistory data_contract_history = 1;
10960
+ * @return {?proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory}
10961
+ */
10962
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.getDataContractHistory = function() {
10963
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory} */ (
10964
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory, 1));
10965
+ };
10966
+
10967
+
10968
+ /**
10969
+ * @param {?proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.DataContractHistory|undefined} value
10970
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} returns this
10971
+ */
10972
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.setDataContractHistory = function(value) {
10973
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.oneofGroups_[0], value);
10974
+ };
10975
+
10976
+
10977
+ /**
10978
+ * Clears the message field making it undefined.
10979
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} returns this
10980
+ */
10981
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.clearDataContractHistory = function() {
10982
+ return this.setDataContractHistory(undefined);
10983
+ };
10984
+
10985
+
10986
+ /**
10987
+ * Returns whether this field is set.
10988
+ * @return {boolean}
10989
+ */
10990
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.hasDataContractHistory = function() {
10991
+ return jspb.Message.getField(this, 1) != null;
10992
+ };
10993
+
10994
+
10995
+ /**
10996
+ * optional Proof proof = 2;
10997
+ * @return {?proto.org.dash.platform.dapi.v0.Proof}
10998
+ */
10999
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.getProof = function() {
11000
+ return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ (
11001
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2));
11002
+ };
11003
+
11004
+
11005
+ /**
11006
+ * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value
11007
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} returns this
11008
+ */
11009
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.setProof = function(value) {
11010
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.oneofGroups_[0], value);
11011
+ };
11012
+
11013
+
11014
+ /**
11015
+ * Clears the message field making it undefined.
11016
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} returns this
11017
+ */
11018
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.clearProof = function() {
11019
+ return this.setProof(undefined);
11020
+ };
11021
+
11022
+
11023
+ /**
11024
+ * Returns whether this field is set.
11025
+ * @return {boolean}
11026
+ */
11027
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.hasProof = function() {
11028
+ return jspb.Message.getField(this, 2) != null;
11029
+ };
11030
+
11031
+
11032
+ /**
11033
+ * optional ResponseMetadata metadata = 3;
11034
+ * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata}
11035
+ */
11036
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.getMetadata = function() {
11037
+ return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ (
11038
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3));
11039
+ };
11040
+
11041
+
11042
+ /**
11043
+ * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value
11044
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} returns this
11045
+ */
11046
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.setMetadata = function(value) {
11047
+ return jspb.Message.setWrapperField(this, 3, value);
11048
+ };
11049
+
11050
+
11051
+ /**
11052
+ * Clears the message field making it undefined.
11053
+ * @return {!proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse} returns this
11054
+ */
11055
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.clearMetadata = function() {
11056
+ return this.setMetadata(undefined);
11057
+ };
11058
+
11059
+
11060
+ /**
11061
+ * Returns whether this field is set.
11062
+ * @return {boolean}
11063
+ */
11064
+ proto.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.prototype.hasMetadata = function() {
11065
+ return jspb.Message.getField(this, 3) != null;
11066
+ };
11067
+
11068
+
11069
+
11070
+ /**
11071
+ * Oneof group definitions for this message. Each group defines the field
11072
+ * numbers belonging to that group. When of these fields' value is set, all
11073
+ * other fields in the group are cleared. During deserialization, if multiple
11074
+ * fields are encountered for a group, only the last value seen will be kept.
11075
+ * @private {!Array<!Array<number>>}
11076
+ * @const
11077
+ */
11078
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.oneofGroups_ = [[6,7]];
11079
+
11080
+ /**
11081
+ * @enum {number}
11082
+ */
11083
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase = {
11084
+ START_NOT_SET: 0,
11085
+ START_AFTER: 6,
11086
+ START_AT: 7
11087
+ };
11088
+
11089
+ /**
11090
+ * @return {proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase}
11091
+ */
11092
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartCase = function() {
11093
+ return /** @type {proto.org.dash.platform.dapi.v0.GetDocumentsRequest.StartCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDocumentsRequest.oneofGroups_[0]));
11094
+ };
11095
+
11096
+
11097
+
11098
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11099
+ /**
11100
+ * Creates an object representation of this proto.
11101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11102
+ * Optional fields that are not set will be set to undefined.
11103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11104
+ * For the list of reserved names please see:
11105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11107
+ * JSPB instance for transitional soy proto support:
11108
+ * http://goto/soy-param-migration
11109
+ * @return {!Object}
11110
+ */
11111
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.toObject = function(opt_includeInstance) {
11112
+ return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.toObject(opt_includeInstance, this);
11113
+ };
11114
+
11115
+
11116
+ /**
11117
+ * Static version of the {@see toObject} method.
11118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11119
+ * the JSPB instance for transitional soy proto support:
11120
+ * http://goto/soy-param-migration
11121
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} msg The msg instance to transform.
11122
+ * @return {!Object}
11123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11124
+ */
11125
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.toObject = function(includeInstance, msg) {
11126
+ var f, obj = {
11127
+ dataContractId: msg.getDataContractId_asB64(),
11128
+ documentType: jspb.Message.getFieldWithDefault(msg, 2, ""),
11129
+ where: msg.getWhere_asB64(),
11130
+ orderBy: msg.getOrderBy_asB64(),
11131
+ limit: jspb.Message.getFieldWithDefault(msg, 5, 0),
11132
+ startAfter: msg.getStartAfter_asB64(),
11133
+ startAt: msg.getStartAt_asB64(),
11134
+ prove: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
11135
+ };
11136
+
11137
+ if (includeInstance) {
11138
+ obj.$jspbMessageInstance = msg;
11139
+ }
11140
+ return obj;
11141
+ };
11142
+ }
11143
+
11144
+
11145
+ /**
11146
+ * Deserializes binary data (in protobuf wire format).
11147
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11148
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest}
11149
+ */
11150
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinary = function(bytes) {
11151
+ var reader = new jspb.BinaryReader(bytes);
11152
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsRequest;
11153
+ return proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader(msg, reader);
11154
+ };
11155
+
11156
+
11157
+ /**
11158
+ * Deserializes binary data (in protobuf wire format) from the
11159
+ * given reader into the given message object.
11160
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} msg The message object to deserialize into.
11161
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11162
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest}
11163
+ */
11164
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.deserializeBinaryFromReader = function(msg, reader) {
11165
+ while (reader.nextField()) {
11166
+ if (reader.isEndGroup()) {
11167
+ break;
11168
+ }
11169
+ var field = reader.getFieldNumber();
11170
+ switch (field) {
11171
+ case 1:
11172
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
11173
+ msg.setDataContractId(value);
11174
+ break;
11175
+ case 2:
11176
+ var value = /** @type {string} */ (reader.readString());
11177
+ msg.setDocumentType(value);
11178
+ break;
11179
+ case 3:
11180
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
11181
+ msg.setWhere(value);
11182
+ break;
11183
+ case 4:
11184
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
11185
+ msg.setOrderBy(value);
11186
+ break;
11187
+ case 5:
11188
+ var value = /** @type {number} */ (reader.readUint32());
11189
+ msg.setLimit(value);
11190
+ break;
11191
+ case 6:
11192
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
11193
+ msg.setStartAfter(value);
11194
+ break;
11195
+ case 7:
11196
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
11197
+ msg.setStartAt(value);
11198
+ break;
11199
+ case 8:
11200
+ var value = /** @type {boolean} */ (reader.readBool());
11201
+ msg.setProve(value);
11202
+ break;
11203
+ default:
11204
+ reader.skipField();
11205
+ break;
11206
+ }
11207
+ }
11208
+ return msg;
11209
+ };
11210
+
11211
+
11212
+ /**
11213
+ * Serializes the message to binary data (in protobuf wire format).
11214
+ * @return {!Uint8Array}
11215
+ */
11216
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.serializeBinary = function() {
11217
+ var writer = new jspb.BinaryWriter();
11218
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.serializeBinaryToWriter(this, writer);
11219
+ return writer.getResultBuffer();
11220
+ };
11221
+
11222
+
11223
+ /**
11224
+ * Serializes the given message to binary data (in protobuf wire
11225
+ * format), writing to the given BinaryWriter.
11226
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} message
11227
+ * @param {!jspb.BinaryWriter} writer
11228
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11229
+ */
11230
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.serializeBinaryToWriter = function(message, writer) {
11231
+ var f = undefined;
11232
+ f = message.getDataContractId_asU8();
11233
+ if (f.length > 0) {
11234
+ writer.writeBytes(
11235
+ 1,
11236
+ f
11237
+ );
11238
+ }
11239
+ f = message.getDocumentType();
11240
+ if (f.length > 0) {
11241
+ writer.writeString(
11242
+ 2,
11243
+ f
11244
+ );
11245
+ }
11246
+ f = message.getWhere_asU8();
11247
+ if (f.length > 0) {
11248
+ writer.writeBytes(
11249
+ 3,
11250
+ f
11251
+ );
11252
+ }
11253
+ f = message.getOrderBy_asU8();
11254
+ if (f.length > 0) {
11255
+ writer.writeBytes(
11256
+ 4,
11257
+ f
11258
+ );
11259
+ }
11260
+ f = message.getLimit();
11261
+ if (f !== 0) {
11262
+ writer.writeUint32(
11263
+ 5,
11264
+ f
11265
+ );
11266
+ }
11267
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 6));
11268
+ if (f != null) {
11269
+ writer.writeBytes(
11270
+ 6,
11271
+ f
11272
+ );
11273
+ }
11274
+ f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7));
11275
+ if (f != null) {
11276
+ writer.writeBytes(
11277
+ 7,
11278
+ f
11279
+ );
11280
+ }
11281
+ f = message.getProve();
11282
+ if (f) {
11283
+ writer.writeBool(
11284
+ 8,
11285
+ f
11286
+ );
11287
+ }
11288
+ };
11289
+
11290
+
11291
+ /**
11292
+ * optional bytes data_contract_id = 1;
11293
+ * @return {string}
11294
+ */
11295
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDataContractId = function() {
11296
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11297
+ };
11298
+
11299
+
11300
+ /**
11301
+ * optional bytes data_contract_id = 1;
11302
+ * This is a type-conversion wrapper around `getDataContractId()`
11303
+ * @return {string}
11304
+ */
11305
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDataContractId_asB64 = function() {
11306
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
11307
+ this.getDataContractId()));
11308
+ };
11309
+
11310
+
11311
+ /**
11312
+ * optional bytes data_contract_id = 1;
11313
+ * Note that Uint8Array is not supported on all browsers.
11314
+ * @see http://caniuse.com/Uint8Array
11315
+ * This is a type-conversion wrapper around `getDataContractId()`
11316
+ * @return {!Uint8Array}
11317
+ */
11318
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDataContractId_asU8 = function() {
11319
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
11320
+ this.getDataContractId()));
11321
+ };
11322
+
11323
+
11324
+ /**
11325
+ * @param {!(string|Uint8Array)} value
11326
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
11327
+ */
11328
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setDataContractId = function(value) {
11329
+ return jspb.Message.setProto3BytesField(this, 1, value);
11330
+ };
11331
+
11332
+
11333
+ /**
11334
+ * optional string document_type = 2;
11335
+ * @return {string}
11336
+ */
11337
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getDocumentType = function() {
11338
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
11339
+ };
11340
+
11341
+
11342
+ /**
11343
+ * @param {string} value
11344
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
11345
+ */
11346
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setDocumentType = function(value) {
11347
+ return jspb.Message.setProto3StringField(this, 2, value);
11348
+ };
11349
+
11350
+
11351
+ /**
11352
+ * optional bytes where = 3;
11353
+ * @return {string}
11354
+ */
11355
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getWhere = function() {
11356
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
11357
+ };
11358
+
11359
+
11360
+ /**
11361
+ * optional bytes where = 3;
11362
+ * This is a type-conversion wrapper around `getWhere()`
11363
+ * @return {string}
11364
+ */
11365
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getWhere_asB64 = function() {
11366
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
11367
+ this.getWhere()));
11368
+ };
11369
+
11370
+
11371
+ /**
11372
+ * optional bytes where = 3;
11373
+ * Note that Uint8Array is not supported on all browsers.
11374
+ * @see http://caniuse.com/Uint8Array
11375
+ * This is a type-conversion wrapper around `getWhere()`
11376
+ * @return {!Uint8Array}
11377
+ */
11378
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getWhere_asU8 = function() {
11379
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
11380
+ this.getWhere()));
11381
+ };
11382
+
11383
+
11384
+ /**
11385
+ * @param {!(string|Uint8Array)} value
11386
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
11387
+ */
11388
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setWhere = function(value) {
11389
+ return jspb.Message.setProto3BytesField(this, 3, value);
11390
+ };
11391
+
11392
+
11393
+ /**
11394
+ * optional bytes order_by = 4;
11395
+ * @return {string}
11396
+ */
11397
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getOrderBy = function() {
11398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
11399
+ };
11400
+
11401
+
11402
+ /**
11403
+ * optional bytes order_by = 4;
11404
+ * This is a type-conversion wrapper around `getOrderBy()`
11405
+ * @return {string}
11406
+ */
11407
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getOrderBy_asB64 = function() {
11408
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
11409
+ this.getOrderBy()));
11410
+ };
11411
+
11412
+
11413
+ /**
11414
+ * optional bytes order_by = 4;
11415
+ * Note that Uint8Array is not supported on all browsers.
11416
+ * @see http://caniuse.com/Uint8Array
11417
+ * This is a type-conversion wrapper around `getOrderBy()`
11418
+ * @return {!Uint8Array}
11419
+ */
11420
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getOrderBy_asU8 = function() {
11421
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
11422
+ this.getOrderBy()));
11423
+ };
11424
+
11425
+
11426
+ /**
11427
+ * @param {!(string|Uint8Array)} value
11428
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
11429
+ */
11430
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setOrderBy = function(value) {
11431
+ return jspb.Message.setProto3BytesField(this, 4, value);
11432
+ };
11433
+
11434
+
11435
+ /**
11436
+ * optional uint32 limit = 5;
11437
+ * @return {number}
11438
+ */
11439
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getLimit = function() {
11440
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
11441
+ };
11442
+
11443
+
11444
+ /**
11445
+ * @param {number} value
11446
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsRequest} returns this
11447
+ */
11448
+ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setLimit = function(value) {
11449
+ return jspb.Message.setProto3IntField(this, 5, value);
11450
+ };
11451
+
11452
+
11453
+ /**
11454
+ * optional bytes start_after = 6;
11455
+ * @return {string}
9993
11456
  */
9994
11457
  proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.getStartAfter = function() {
9995
11458
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
@@ -10126,12 +11589,180 @@ proto.org.dash.platform.dapi.v0.GetDocumentsRequest.prototype.setProve = functio
10126
11589
 
10127
11590
 
10128
11591
 
11592
+ /**
11593
+ * Oneof group definitions for this message. Each group defines the field
11594
+ * numbers belonging to that group. When of these fields' value is set, all
11595
+ * other fields in the group are cleared. During deserialization, if multiple
11596
+ * fields are encountered for a group, only the last value seen will be kept.
11597
+ * @private {!Array<!Array<number>>}
11598
+ * @const
11599
+ */
11600
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.oneofGroups_ = [[1,2]];
11601
+
11602
+ /**
11603
+ * @enum {number}
11604
+ */
11605
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.ResultCase = {
11606
+ RESULT_NOT_SET: 0,
11607
+ DOCUMENTS: 1,
11608
+ PROOF: 2
11609
+ };
11610
+
11611
+ /**
11612
+ * @return {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.ResultCase}
11613
+ */
11614
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getResultCase = function() {
11615
+ return /** @type {proto.org.dash.platform.dapi.v0.GetDocumentsResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.oneofGroups_[0]));
11616
+ };
11617
+
11618
+
11619
+
11620
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11621
+ /**
11622
+ * Creates an object representation of this proto.
11623
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11624
+ * Optional fields that are not set will be set to undefined.
11625
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11626
+ * For the list of reserved names please see:
11627
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11628
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11629
+ * JSPB instance for transitional soy proto support:
11630
+ * http://goto/soy-param-migration
11631
+ * @return {!Object}
11632
+ */
11633
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.toObject = function(opt_includeInstance) {
11634
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.toObject(opt_includeInstance, this);
11635
+ };
11636
+
11637
+
11638
+ /**
11639
+ * Static version of the {@see toObject} method.
11640
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11641
+ * the JSPB instance for transitional soy proto support:
11642
+ * http://goto/soy-param-migration
11643
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} msg The msg instance to transform.
11644
+ * @return {!Object}
11645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11646
+ */
11647
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.toObject = function(includeInstance, msg) {
11648
+ var f, obj = {
11649
+ documents: (f = msg.getDocuments()) && proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.toObject(includeInstance, f),
11650
+ proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
11651
+ metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
11652
+ };
11653
+
11654
+ if (includeInstance) {
11655
+ obj.$jspbMessageInstance = msg;
11656
+ }
11657
+ return obj;
11658
+ };
11659
+ }
11660
+
11661
+
11662
+ /**
11663
+ * Deserializes binary data (in protobuf wire format).
11664
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11665
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse}
11666
+ */
11667
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinary = function(bytes) {
11668
+ var reader = new jspb.BinaryReader(bytes);
11669
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse;
11670
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinaryFromReader(msg, reader);
11671
+ };
11672
+
11673
+
11674
+ /**
11675
+ * Deserializes binary data (in protobuf wire format) from the
11676
+ * given reader into the given message object.
11677
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} msg The message object to deserialize into.
11678
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11679
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse}
11680
+ */
11681
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
11682
+ while (reader.nextField()) {
11683
+ if (reader.isEndGroup()) {
11684
+ break;
11685
+ }
11686
+ var field = reader.getFieldNumber();
11687
+ switch (field) {
11688
+ case 1:
11689
+ var value = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents;
11690
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.deserializeBinaryFromReader);
11691
+ msg.setDocuments(value);
11692
+ break;
11693
+ case 2:
11694
+ var value = new proto.org.dash.platform.dapi.v0.Proof;
11695
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
11696
+ msg.setProof(value);
11697
+ break;
11698
+ case 3:
11699
+ var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata;
11700
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader);
11701
+ msg.setMetadata(value);
11702
+ break;
11703
+ default:
11704
+ reader.skipField();
11705
+ break;
11706
+ }
11707
+ }
11708
+ return msg;
11709
+ };
11710
+
11711
+
11712
+ /**
11713
+ * Serializes the message to binary data (in protobuf wire format).
11714
+ * @return {!Uint8Array}
11715
+ */
11716
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.serializeBinary = function() {
11717
+ var writer = new jspb.BinaryWriter();
11718
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.serializeBinaryToWriter(this, writer);
11719
+ return writer.getResultBuffer();
11720
+ };
11721
+
11722
+
11723
+ /**
11724
+ * Serializes the given message to binary data (in protobuf wire
11725
+ * format), writing to the given BinaryWriter.
11726
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} message
11727
+ * @param {!jspb.BinaryWriter} writer
11728
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11729
+ */
11730
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.serializeBinaryToWriter = function(message, writer) {
11731
+ var f = undefined;
11732
+ f = message.getDocuments();
11733
+ if (f != null) {
11734
+ writer.writeMessage(
11735
+ 1,
11736
+ f,
11737
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.serializeBinaryToWriter
11738
+ );
11739
+ }
11740
+ f = message.getProof();
11741
+ if (f != null) {
11742
+ writer.writeMessage(
11743
+ 2,
11744
+ f,
11745
+ proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
11746
+ );
11747
+ }
11748
+ f = message.getMetadata();
11749
+ if (f != null) {
11750
+ writer.writeMessage(
11751
+ 3,
11752
+ f,
11753
+ proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter
11754
+ );
11755
+ }
11756
+ };
11757
+
11758
+
11759
+
10129
11760
  /**
10130
11761
  * List of repeated fields within this message type.
10131
11762
  * @private {!Array<number>}
10132
11763
  * @const
10133
11764
  */
10134
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.repeatedFields_ = [1];
11765
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.repeatedFields_ = [1];
10135
11766
 
10136
11767
 
10137
11768
 
@@ -10148,8 +11779,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
10148
11779
  * http://goto/soy-param-migration
10149
11780
  * @return {!Object}
10150
11781
  */
10151
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.toObject = function(opt_includeInstance) {
10152
- return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.toObject(opt_includeInstance, this);
11782
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.toObject = function(opt_includeInstance) {
11783
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.toObject(opt_includeInstance, this);
10153
11784
  };
10154
11785
 
10155
11786
 
@@ -10158,15 +11789,13 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.toObject = functi
10158
11789
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10159
11790
  * the JSPB instance for transitional soy proto support:
10160
11791
  * http://goto/soy-param-migration
10161
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} msg The msg instance to transform.
11792
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} msg The msg instance to transform.
10162
11793
  * @return {!Object}
10163
11794
  * @suppress {unusedLocalVariables} f is only used for nested messages
10164
11795
  */
10165
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.toObject = function(includeInstance, msg) {
11796
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.toObject = function(includeInstance, msg) {
10166
11797
  var f, obj = {
10167
- documentsList: msg.getDocumentsList_asB64(),
10168
- proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
10169
- metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
11798
+ documentsList: msg.getDocumentsList_asB64()
10170
11799
  };
10171
11800
 
10172
11801
  if (includeInstance) {
@@ -10180,23 +11809,23 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.toObject = function(include
10180
11809
  /**
10181
11810
  * Deserializes binary data (in protobuf wire format).
10182
11811
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
10183
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse}
11812
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents}
10184
11813
  */
10185
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinary = function(bytes) {
11814
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.deserializeBinary = function(bytes) {
10186
11815
  var reader = new jspb.BinaryReader(bytes);
10187
- var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse;
10188
- return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinaryFromReader(msg, reader);
11816
+ var msg = new proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents;
11817
+ return proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.deserializeBinaryFromReader(msg, reader);
10189
11818
  };
10190
11819
 
10191
11820
 
10192
11821
  /**
10193
11822
  * Deserializes binary data (in protobuf wire format) from the
10194
11823
  * given reader into the given message object.
10195
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} msg The message object to deserialize into.
11824
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} msg The message object to deserialize into.
10196
11825
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10197
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse}
11826
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents}
10198
11827
  */
10199
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinaryFromReader = function(msg, reader) {
11828
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.deserializeBinaryFromReader = function(msg, reader) {
10200
11829
  while (reader.nextField()) {
10201
11830
  if (reader.isEndGroup()) {
10202
11831
  break;
@@ -10207,16 +11836,6 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinaryFromReader
10207
11836
  var value = /** @type {!Uint8Array} */ (reader.readBytes());
10208
11837
  msg.addDocuments(value);
10209
11838
  break;
10210
- case 2:
10211
- var value = new proto.org.dash.platform.dapi.v0.Proof;
10212
- reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader);
10213
- msg.setProof(value);
10214
- break;
10215
- case 3:
10216
- var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata;
10217
- reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader);
10218
- msg.setMetadata(value);
10219
- break;
10220
11839
  default:
10221
11840
  reader.skipField();
10222
11841
  break;
@@ -10230,9 +11849,9 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.deserializeBinaryFromReader
10230
11849
  * Serializes the message to binary data (in protobuf wire format).
10231
11850
  * @return {!Uint8Array}
10232
11851
  */
10233
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.serializeBinary = function() {
11852
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.serializeBinary = function() {
10234
11853
  var writer = new jspb.BinaryWriter();
10235
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.serializeBinaryToWriter(this, writer);
11854
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.serializeBinaryToWriter(this, writer);
10236
11855
  return writer.getResultBuffer();
10237
11856
  };
10238
11857
 
@@ -10240,11 +11859,11 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.serializeBinary =
10240
11859
  /**
10241
11860
  * Serializes the given message to binary data (in protobuf wire
10242
11861
  * format), writing to the given BinaryWriter.
10243
- * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} message
11862
+ * @param {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} message
10244
11863
  * @param {!jspb.BinaryWriter} writer
10245
11864
  * @suppress {unusedLocalVariables} f is only used for nested messages
10246
11865
  */
10247
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.serializeBinaryToWriter = function(message, writer) {
11866
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.serializeBinaryToWriter = function(message, writer) {
10248
11867
  var f = undefined;
10249
11868
  f = message.getDocumentsList_asU8();
10250
11869
  if (f.length > 0) {
@@ -10253,22 +11872,6 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.serializeBinaryToWriter = f
10253
11872
  f
10254
11873
  );
10255
11874
  }
10256
- f = message.getProof();
10257
- if (f != null) {
10258
- writer.writeMessage(
10259
- 2,
10260
- f,
10261
- proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter
10262
- );
10263
- }
10264
- f = message.getMetadata();
10265
- if (f != null) {
10266
- writer.writeMessage(
10267
- 3,
10268
- f,
10269
- proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter
10270
- );
10271
- }
10272
11875
  };
10273
11876
 
10274
11877
 
@@ -10276,7 +11879,7 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.serializeBinaryToWriter = f
10276
11879
  * repeated bytes documents = 1;
10277
11880
  * @return {!Array<string>}
10278
11881
  */
10279
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocumentsList = function() {
11882
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.getDocumentsList = function() {
10280
11883
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
10281
11884
  };
10282
11885
 
@@ -10286,7 +11889,7 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocumentsList
10286
11889
  * This is a type-conversion wrapper around `getDocumentsList()`
10287
11890
  * @return {!Array<string>}
10288
11891
  */
10289
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocumentsList_asB64 = function() {
11892
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.getDocumentsList_asB64 = function() {
10290
11893
  return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
10291
11894
  this.getDocumentsList()));
10292
11895
  };
@@ -10299,7 +11902,7 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocumentsList_
10299
11902
  * This is a type-conversion wrapper around `getDocumentsList()`
10300
11903
  * @return {!Array<!Uint8Array>}
10301
11904
  */
10302
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocumentsList_asU8 = function() {
11905
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.getDocumentsList_asU8 = function() {
10303
11906
  return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
10304
11907
  this.getDocumentsList()));
10305
11908
  };
@@ -10307,9 +11910,9 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocumentsList_
10307
11910
 
10308
11911
  /**
10309
11912
  * @param {!(Array<!Uint8Array>|Array<string>)} value
10310
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} returns this
11913
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} returns this
10311
11914
  */
10312
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.setDocumentsList = function(value) {
11915
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.setDocumentsList = function(value) {
10313
11916
  return jspb.Message.setField(this, 1, value || []);
10314
11917
  };
10315
11918
 
@@ -10317,22 +11920,59 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.setDocumentsList
10317
11920
  /**
10318
11921
  * @param {!(string|Uint8Array)} value
10319
11922
  * @param {number=} opt_index
10320
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} returns this
11923
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} returns this
10321
11924
  */
10322
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.addDocuments = function(value, opt_index) {
11925
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.addDocuments = function(value, opt_index) {
10323
11926
  return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
10324
11927
  };
10325
11928
 
10326
11929
 
10327
11930
  /**
10328
11931
  * Clears the list making it empty but non-null.
10329
- * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} returns this
11932
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} returns this
10330
11933
  */
10331
- proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.clearDocumentsList = function() {
11934
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents.prototype.clearDocumentsList = function() {
10332
11935
  return this.setDocumentsList([]);
10333
11936
  };
10334
11937
 
10335
11938
 
11939
+ /**
11940
+ * optional Documents documents = 1;
11941
+ * @return {?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents}
11942
+ */
11943
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getDocuments = function() {
11944
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents} */ (
11945
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents, 1));
11946
+ };
11947
+
11948
+
11949
+ /**
11950
+ * @param {?proto.org.dash.platform.dapi.v0.GetDocumentsResponse.Documents|undefined} value
11951
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} returns this
11952
+ */
11953
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.setDocuments = function(value) {
11954
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.oneofGroups_[0], value);
11955
+ };
11956
+
11957
+
11958
+ /**
11959
+ * Clears the message field making it undefined.
11960
+ * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} returns this
11961
+ */
11962
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.clearDocuments = function() {
11963
+ return this.setDocuments(undefined);
11964
+ };
11965
+
11966
+
11967
+ /**
11968
+ * Returns whether this field is set.
11969
+ * @return {boolean}
11970
+ */
11971
+ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.hasDocuments = function() {
11972
+ return jspb.Message.getField(this, 1) != null;
11973
+ };
11974
+
11975
+
10336
11976
  /**
10337
11977
  * optional Proof proof = 2;
10338
11978
  * @return {?proto.org.dash.platform.dapi.v0.Proof}
@@ -10348,7 +11988,7 @@ proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.getProof = functi
10348
11988
  * @return {!proto.org.dash.platform.dapi.v0.GetDocumentsResponse} returns this
10349
11989
  */
10350
11990
  proto.org.dash.platform.dapi.v0.GetDocumentsResponse.prototype.setProof = function(value) {
10351
- return jspb.Message.setWrapperField(this, 2, value);
11991
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetDocumentsResponse.oneofGroups_[0], value);
10352
11992
  };
10353
11993
 
10354
11994
 
@@ -10619,11 +12259,30 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesRequest.prototype.
10619
12259
 
10620
12260
 
10621
12261
  /**
10622
- * List of repeated fields within this message type.
10623
- * @private {!Array<number>}
12262
+ * Oneof group definitions for this message. Each group defines the field
12263
+ * numbers belonging to that group. When of these fields' value is set, all
12264
+ * other fields in the group are cleared. During deserialization, if multiple
12265
+ * fields are encountered for a group, only the last value seen will be kept.
12266
+ * @private {!Array<!Array<number>>}
10624
12267
  * @const
10625
12268
  */
10626
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.repeatedFields_ = [1];
12269
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.oneofGroups_ = [[1,2]];
12270
+
12271
+ /**
12272
+ * @enum {number}
12273
+ */
12274
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.ResultCase = {
12275
+ RESULT_NOT_SET: 0,
12276
+ IDENTITIES: 1,
12277
+ PROOF: 2
12278
+ };
12279
+
12280
+ /**
12281
+ * @return {proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.ResultCase}
12282
+ */
12283
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.getResultCase = function() {
12284
+ return /** @type {proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.oneofGroups_[0]));
12285
+ };
10627
12286
 
10628
12287
 
10629
12288
 
@@ -10656,7 +12315,7 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10656
12315
  */
10657
12316
  proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.toObject = function(includeInstance, msg) {
10658
12317
  var f, obj = {
10659
- identitiesList: msg.getIdentitiesList_asB64(),
12318
+ identities: (f = msg.getIdentities()) && proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.toObject(includeInstance, f),
10660
12319
  proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f),
10661
12320
  metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f)
10662
12321
  };
@@ -10696,8 +12355,9 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.deseriali
10696
12355
  var field = reader.getFieldNumber();
10697
12356
  switch (field) {
10698
12357
  case 1:
10699
- var value = /** @type {!Uint8Array} */ (reader.readBytes());
10700
- msg.addIdentities(value);
12358
+ var value = new proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities;
12359
+ reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.deserializeBinaryFromReader);
12360
+ msg.setIdentities(value);
10701
12361
  break;
10702
12362
  case 2:
10703
12363
  var value = new proto.org.dash.platform.dapi.v0.Proof;
@@ -10738,11 +12398,12 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10738
12398
  */
10739
12399
  proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.serializeBinaryToWriter = function(message, writer) {
10740
12400
  var f = undefined;
10741
- f = message.getIdentitiesList_asU8();
10742
- if (f.length > 0) {
10743
- writer.writeRepeatedBytes(
12401
+ f = message.getIdentities();
12402
+ if (f != null) {
12403
+ writer.writeMessage(
10744
12404
  1,
10745
- f
12405
+ f,
12406
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.serializeBinaryToWriter
10746
12407
  );
10747
12408
  }
10748
12409
  f = message.getProof();
@@ -10764,11 +12425,130 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.serialize
10764
12425
  };
10765
12426
 
10766
12427
 
12428
+
12429
+ /**
12430
+ * List of repeated fields within this message type.
12431
+ * @private {!Array<number>}
12432
+ * @const
12433
+ */
12434
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.repeatedFields_ = [1];
12435
+
12436
+
12437
+
12438
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12439
+ /**
12440
+ * Creates an object representation of this proto.
12441
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12442
+ * Optional fields that are not set will be set to undefined.
12443
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12444
+ * For the list of reserved names please see:
12445
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12446
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12447
+ * JSPB instance for transitional soy proto support:
12448
+ * http://goto/soy-param-migration
12449
+ * @return {!Object}
12450
+ */
12451
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.toObject = function(opt_includeInstance) {
12452
+ return proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.toObject(opt_includeInstance, this);
12453
+ };
12454
+
12455
+
12456
+ /**
12457
+ * Static version of the {@see toObject} method.
12458
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12459
+ * the JSPB instance for transitional soy proto support:
12460
+ * http://goto/soy-param-migration
12461
+ * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} msg The msg instance to transform.
12462
+ * @return {!Object}
12463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12464
+ */
12465
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.toObject = function(includeInstance, msg) {
12466
+ var f, obj = {
12467
+ identitiesList: msg.getIdentitiesList_asB64()
12468
+ };
12469
+
12470
+ if (includeInstance) {
12471
+ obj.$jspbMessageInstance = msg;
12472
+ }
12473
+ return obj;
12474
+ };
12475
+ }
12476
+
12477
+
12478
+ /**
12479
+ * Deserializes binary data (in protobuf wire format).
12480
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12481
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities}
12482
+ */
12483
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.deserializeBinary = function(bytes) {
12484
+ var reader = new jspb.BinaryReader(bytes);
12485
+ var msg = new proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities;
12486
+ return proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.deserializeBinaryFromReader(msg, reader);
12487
+ };
12488
+
12489
+
12490
+ /**
12491
+ * Deserializes binary data (in protobuf wire format) from the
12492
+ * given reader into the given message object.
12493
+ * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} msg The message object to deserialize into.
12494
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12495
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities}
12496
+ */
12497
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.deserializeBinaryFromReader = function(msg, reader) {
12498
+ while (reader.nextField()) {
12499
+ if (reader.isEndGroup()) {
12500
+ break;
12501
+ }
12502
+ var field = reader.getFieldNumber();
12503
+ switch (field) {
12504
+ case 1:
12505
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
12506
+ msg.addIdentities(value);
12507
+ break;
12508
+ default:
12509
+ reader.skipField();
12510
+ break;
12511
+ }
12512
+ }
12513
+ return msg;
12514
+ };
12515
+
12516
+
12517
+ /**
12518
+ * Serializes the message to binary data (in protobuf wire format).
12519
+ * @return {!Uint8Array}
12520
+ */
12521
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.serializeBinary = function() {
12522
+ var writer = new jspb.BinaryWriter();
12523
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.serializeBinaryToWriter(this, writer);
12524
+ return writer.getResultBuffer();
12525
+ };
12526
+
12527
+
12528
+ /**
12529
+ * Serializes the given message to binary data (in protobuf wire
12530
+ * format), writing to the given BinaryWriter.
12531
+ * @param {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} message
12532
+ * @param {!jspb.BinaryWriter} writer
12533
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12534
+ */
12535
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.serializeBinaryToWriter = function(message, writer) {
12536
+ var f = undefined;
12537
+ f = message.getIdentitiesList_asU8();
12538
+ if (f.length > 0) {
12539
+ writer.writeRepeatedBytes(
12540
+ 1,
12541
+ f
12542
+ );
12543
+ }
12544
+ };
12545
+
12546
+
10767
12547
  /**
10768
12548
  * repeated bytes identities = 1;
10769
12549
  * @return {!Array<string>}
10770
12550
  */
10771
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.getIdentitiesList = function() {
12551
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.getIdentitiesList = function() {
10772
12552
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
10773
12553
  };
10774
12554
 
@@ -10778,7 +12558,7 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10778
12558
  * This is a type-conversion wrapper around `getIdentitiesList()`
10779
12559
  * @return {!Array<string>}
10780
12560
  */
10781
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.getIdentitiesList_asB64 = function() {
12561
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.getIdentitiesList_asB64 = function() {
10782
12562
  return /** @type {!Array<string>} */ (jspb.Message.bytesListAsB64(
10783
12563
  this.getIdentitiesList()));
10784
12564
  };
@@ -10791,7 +12571,7 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10791
12571
  * This is a type-conversion wrapper around `getIdentitiesList()`
10792
12572
  * @return {!Array<!Uint8Array>}
10793
12573
  */
10794
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.getIdentitiesList_asU8 = function() {
12574
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.getIdentitiesList_asU8 = function() {
10795
12575
  return /** @type {!Array<!Uint8Array>} */ (jspb.Message.bytesListAsU8(
10796
12576
  this.getIdentitiesList()));
10797
12577
  };
@@ -10799,9 +12579,9 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10799
12579
 
10800
12580
  /**
10801
12581
  * @param {!(Array<!Uint8Array>|Array<string>)} value
10802
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse} returns this
12582
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} returns this
10803
12583
  */
10804
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.setIdentitiesList = function(value) {
12584
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.setIdentitiesList = function(value) {
10805
12585
  return jspb.Message.setField(this, 1, value || []);
10806
12586
  };
10807
12587
 
@@ -10809,22 +12589,59 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10809
12589
  /**
10810
12590
  * @param {!(string|Uint8Array)} value
10811
12591
  * @param {number=} opt_index
10812
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse} returns this
12592
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} returns this
10813
12593
  */
10814
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.addIdentities = function(value, opt_index) {
12594
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.addIdentities = function(value, opt_index) {
10815
12595
  return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
10816
12596
  };
10817
12597
 
10818
12598
 
10819
12599
  /**
10820
12600
  * Clears the list making it empty but non-null.
10821
- * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse} returns this
12601
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} returns this
10822
12602
  */
10823
- proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.clearIdentitiesList = function() {
12603
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities.prototype.clearIdentitiesList = function() {
10824
12604
  return this.setIdentitiesList([]);
10825
12605
  };
10826
12606
 
10827
12607
 
12608
+ /**
12609
+ * optional Identities identities = 1;
12610
+ * @return {?proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities}
12611
+ */
12612
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.getIdentities = function() {
12613
+ return /** @type{?proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities} */ (
12614
+ jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities, 1));
12615
+ };
12616
+
12617
+
12618
+ /**
12619
+ * @param {?proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.Identities|undefined} value
12620
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse} returns this
12621
+ */
12622
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.setIdentities = function(value) {
12623
+ return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.oneofGroups_[0], value);
12624
+ };
12625
+
12626
+
12627
+ /**
12628
+ * Clears the message field making it undefined.
12629
+ * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse} returns this
12630
+ */
12631
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.clearIdentities = function() {
12632
+ return this.setIdentities(undefined);
12633
+ };
12634
+
12635
+
12636
+ /**
12637
+ * Returns whether this field is set.
12638
+ * @return {boolean}
12639
+ */
12640
+ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.hasIdentities = function() {
12641
+ return jspb.Message.getField(this, 1) != null;
12642
+ };
12643
+
12644
+
10828
12645
  /**
10829
12646
  * optional Proof proof = 2;
10830
12647
  * @return {?proto.org.dash.platform.dapi.v0.Proof}
@@ -10840,7 +12657,7 @@ proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype
10840
12657
  * @return {!proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse} returns this
10841
12658
  */
10842
12659
  proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.prototype.setProof = function(value) {
10843
- return jspb.Message.setWrapperField(this, 2, value);
12660
+ return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetIdentitiesByPublicKeyHashesResponse.oneofGroups_[0], value);
10844
12661
  };
10845
12662
 
10846
12663
 
@@ -11581,17 +13398,17 @@ proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.oneofGroups
11581
13398
  /**
11582
13399
  * @enum {number}
11583
13400
  */
11584
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResponsesCase = {
11585
- RESPONSES_NOT_SET: 0,
13401
+ proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResultCase = {
13402
+ RESULT_NOT_SET: 0,
11586
13403
  ERROR: 1,
11587
13404
  PROOF: 2
11588
13405
  };
11589
13406
 
11590
13407
  /**
11591
- * @return {proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResponsesCase}
13408
+ * @return {proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResultCase}
11592
13409
  */
11593
- proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.prototype.getResponsesCase = function() {
11594
- return /** @type {proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResponsesCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.oneofGroups_[0]));
13410
+ proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.prototype.getResultCase = function() {
13411
+ return /** @type {proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.oneofGroups_[0]));
11595
13412
  };
11596
13413
 
11597
13414