@ocap/proto 1.14.4 → 1.14.5

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.
package/lib/gen/spec.json CHANGED
@@ -4493,6 +4493,19 @@
4493
4493
  "type": "string",
4494
4494
  "id": 11
4495
4495
  },
4496
+ "display": {
4497
+ "type": "NFTDisplay",
4498
+ "id": 12
4499
+ },
4500
+ "endpoint": {
4501
+ "type": "NFTEndpoint",
4502
+ "id": 13
4503
+ },
4504
+ "tags": {
4505
+ "rule": "repeated",
4506
+ "type": "string",
4507
+ "id": 14
4508
+ },
4496
4509
  "data": {
4497
4510
  "type": "google.protobuf.Any",
4498
4511
  "id": 50
@@ -507,7 +507,7 @@ if (goog.DEBUG && !COMPILED) {
507
507
  * @constructor
508
508
  */
509
509
  proto.ocap.IndexedAssetState = function(opt_data) {
510
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
510
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.IndexedAssetState.repeatedFields_, null);
511
511
  };
512
512
  goog.inherits(proto.ocap.IndexedAssetState, jspb.Message);
513
513
  if (goog.DEBUG && !COMPILED) {
@@ -5091,6 +5091,13 @@ proto.ocap.IndexedAccountState.prototype.clearTokensList = function() {
5091
5091
 
5092
5092
 
5093
5093
 
5094
+ /**
5095
+ * List of repeated fields within this message type.
5096
+ * @private {!Array<number>}
5097
+ * @const
5098
+ */
5099
+ proto.ocap.IndexedAssetState.repeatedFields_ = [14];
5100
+
5094
5101
 
5095
5102
 
5096
5103
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5133,6 +5140,9 @@ proto.ocap.IndexedAssetState.toObject = function(includeInstance, msg) {
5133
5140
  parent: jspb.Message.getFieldWithDefault(msg, 9, ""),
5134
5141
  transferrable: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
5135
5142
  ttl: jspb.Message.getFieldWithDefault(msg, 11, ""),
5143
+ display: (f = msg.getDisplay()) && type_pb.NFTDisplay.toObject(includeInstance, f),
5144
+ endpoint: (f = msg.getEndpoint()) && type_pb.NFTEndpoint.toObject(includeInstance, f),
5145
+ tagsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
5136
5146
  data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
5137
5147
  };
5138
5148
 
@@ -5214,6 +5224,20 @@ proto.ocap.IndexedAssetState.deserializeBinaryFromReader = function(msg, reader)
5214
5224
  var value = /** @type {string} */ (reader.readString());
5215
5225
  msg.setTtl(value);
5216
5226
  break;
5227
+ case 12:
5228
+ var value = new type_pb.NFTDisplay;
5229
+ reader.readMessage(value,type_pb.NFTDisplay.deserializeBinaryFromReader);
5230
+ msg.setDisplay(value);
5231
+ break;
5232
+ case 13:
5233
+ var value = new type_pb.NFTEndpoint;
5234
+ reader.readMessage(value,type_pb.NFTEndpoint.deserializeBinaryFromReader);
5235
+ msg.setEndpoint(value);
5236
+ break;
5237
+ case 14:
5238
+ var value = /** @type {string} */ (reader.readString());
5239
+ msg.addTags(value);
5240
+ break;
5217
5241
  case 50:
5218
5242
  var value = new google_protobuf_any_pb.Any;
5219
5243
  reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
@@ -5325,6 +5349,29 @@ proto.ocap.IndexedAssetState.serializeBinaryToWriter = function(message, writer)
5325
5349
  f
5326
5350
  );
5327
5351
  }
5352
+ f = message.getDisplay();
5353
+ if (f != null) {
5354
+ writer.writeMessage(
5355
+ 12,
5356
+ f,
5357
+ type_pb.NFTDisplay.serializeBinaryToWriter
5358
+ );
5359
+ }
5360
+ f = message.getEndpoint();
5361
+ if (f != null) {
5362
+ writer.writeMessage(
5363
+ 13,
5364
+ f,
5365
+ type_pb.NFTEndpoint.serializeBinaryToWriter
5366
+ );
5367
+ }
5368
+ f = message.getTagsList();
5369
+ if (f.length > 0) {
5370
+ writer.writeRepeatedString(
5371
+ 14,
5372
+ f
5373
+ );
5374
+ }
5328
5375
  f = message.getData();
5329
5376
  if (f != null) {
5330
5377
  writer.writeMessage(
@@ -5534,6 +5581,117 @@ proto.ocap.IndexedAssetState.prototype.setTtl = function(value) {
5534
5581
  };
5535
5582
 
5536
5583
 
5584
+ /**
5585
+ * optional NFTDisplay display = 12;
5586
+ * @return {?proto.ocap.NFTDisplay}
5587
+ */
5588
+ proto.ocap.IndexedAssetState.prototype.getDisplay = function() {
5589
+ return /** @type{?proto.ocap.NFTDisplay} */ (
5590
+ jspb.Message.getWrapperField(this, type_pb.NFTDisplay, 12));
5591
+ };
5592
+
5593
+
5594
+ /**
5595
+ * @param {?proto.ocap.NFTDisplay|undefined} value
5596
+ * @return {!proto.ocap.IndexedAssetState} returns this
5597
+ */
5598
+ proto.ocap.IndexedAssetState.prototype.setDisplay = function(value) {
5599
+ return jspb.Message.setWrapperField(this, 12, value);
5600
+ };
5601
+
5602
+
5603
+ /**
5604
+ * Clears the message field making it undefined.
5605
+ * @return {!proto.ocap.IndexedAssetState} returns this
5606
+ */
5607
+ proto.ocap.IndexedAssetState.prototype.clearDisplay = function() {
5608
+ return this.setDisplay(undefined);
5609
+ };
5610
+
5611
+
5612
+ /**
5613
+ * Returns whether this field is set.
5614
+ * @return {boolean}
5615
+ */
5616
+ proto.ocap.IndexedAssetState.prototype.hasDisplay = function() {
5617
+ return jspb.Message.getField(this, 12) != null;
5618
+ };
5619
+
5620
+
5621
+ /**
5622
+ * optional NFTEndpoint endpoint = 13;
5623
+ * @return {?proto.ocap.NFTEndpoint}
5624
+ */
5625
+ proto.ocap.IndexedAssetState.prototype.getEndpoint = function() {
5626
+ return /** @type{?proto.ocap.NFTEndpoint} */ (
5627
+ jspb.Message.getWrapperField(this, type_pb.NFTEndpoint, 13));
5628
+ };
5629
+
5630
+
5631
+ /**
5632
+ * @param {?proto.ocap.NFTEndpoint|undefined} value
5633
+ * @return {!proto.ocap.IndexedAssetState} returns this
5634
+ */
5635
+ proto.ocap.IndexedAssetState.prototype.setEndpoint = function(value) {
5636
+ return jspb.Message.setWrapperField(this, 13, value);
5637
+ };
5638
+
5639
+
5640
+ /**
5641
+ * Clears the message field making it undefined.
5642
+ * @return {!proto.ocap.IndexedAssetState} returns this
5643
+ */
5644
+ proto.ocap.IndexedAssetState.prototype.clearEndpoint = function() {
5645
+ return this.setEndpoint(undefined);
5646
+ };
5647
+
5648
+
5649
+ /**
5650
+ * Returns whether this field is set.
5651
+ * @return {boolean}
5652
+ */
5653
+ proto.ocap.IndexedAssetState.prototype.hasEndpoint = function() {
5654
+ return jspb.Message.getField(this, 13) != null;
5655
+ };
5656
+
5657
+
5658
+ /**
5659
+ * repeated string tags = 14;
5660
+ * @return {!Array<string>}
5661
+ */
5662
+ proto.ocap.IndexedAssetState.prototype.getTagsList = function() {
5663
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
5664
+ };
5665
+
5666
+
5667
+ /**
5668
+ * @param {!Array<string>} value
5669
+ * @return {!proto.ocap.IndexedAssetState} returns this
5670
+ */
5671
+ proto.ocap.IndexedAssetState.prototype.setTagsList = function(value) {
5672
+ return jspb.Message.setField(this, 14, value || []);
5673
+ };
5674
+
5675
+
5676
+ /**
5677
+ * @param {string} value
5678
+ * @param {number=} opt_index
5679
+ * @return {!proto.ocap.IndexedAssetState} returns this
5680
+ */
5681
+ proto.ocap.IndexedAssetState.prototype.addTags = function(value, opt_index) {
5682
+ return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
5683
+ };
5684
+
5685
+
5686
+ /**
5687
+ * Clears the list making it empty but non-null.
5688
+ * @return {!proto.ocap.IndexedAssetState} returns this
5689
+ */
5690
+ proto.ocap.IndexedAssetState.prototype.clearTagsList = function() {
5691
+ return this.setTagsList([]);
5692
+ };
5693
+
5694
+
5537
5695
  /**
5538
5696
  * optional google.protobuf.Any data = 50;
5539
5697
  * @return {?proto.google.protobuf.Any}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/proto",
3
3
  "description": "Static modules generated from forge-sdk protobuf files",
4
- "version": "1.14.4",
4
+ "version": "1.14.5",
5
5
  "author": {
6
6
  "name": "wangshijun",
7
7
  "email": "shijun@arcblock.io",
@@ -47,5 +47,5 @@
47
47
  "debug": "^4.3.2",
48
48
  "lodash": "^4.17.21"
49
49
  },
50
- "gitHead": "33f7b1d72aa51e58a269b2681bd19e2119d1721e"
50
+ "gitHead": "9a685c7182412efc208a5193c17b92ec299dccb2"
51
51
  }