@ocap/proto 1.13.38 → 1.13.39

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
@@ -535,6 +535,10 @@
535
535
  "txFilter": {
536
536
  "type": "TxFilter",
537
537
  "id": 10
538
+ },
539
+ "rollupFilter": {
540
+ "type": "RollupFilter",
541
+ "id": 11
538
542
  }
539
543
  }
540
544
  },
@@ -4311,6 +4315,15 @@
4311
4315
  }
4312
4316
  }
4313
4317
  },
4318
+ "RollupFilter": {
4319
+ "fields": {
4320
+ "rollups": {
4321
+ "rule": "repeated",
4322
+ "type": "string",
4323
+ "id": 1
4324
+ }
4325
+ }
4326
+ },
4314
4327
  "ValidatorFilter": {
4315
4328
  "fields": {
4316
4329
  "validators": {
@@ -51,6 +51,7 @@ goog.exportSymbol('proto.ocap.Page', null, global);
51
51
  goog.exportSymbol('proto.ocap.PageInfo', null, global);
52
52
  goog.exportSymbol('proto.ocap.PageOrder', null, global);
53
53
  goog.exportSymbol('proto.ocap.RangeFilter', null, global);
54
+ goog.exportSymbol('proto.ocap.RollupFilter', null, global);
54
55
  goog.exportSymbol('proto.ocap.SearchResult', null, global);
55
56
  goog.exportSymbol('proto.ocap.StorageStatus', null, global);
56
57
  goog.exportSymbol('proto.ocap.TimeFilter', null, global);
@@ -229,6 +230,27 @@ if (goog.DEBUG && !COMPILED) {
229
230
  */
230
231
  proto.ocap.TxFilter.displayName = 'proto.ocap.TxFilter';
231
232
  }
233
+ /**
234
+ * Generated by JsPbCodeGenerator.
235
+ * @param {Array=} opt_data Optional initial data array, typically from a
236
+ * server response, or constructed directly in Javascript. The array is used
237
+ * in place and becomes part of the constructed object. It is not cloned.
238
+ * If no data is provided, the constructed object will be empty, but still
239
+ * valid.
240
+ * @extends {jspb.Message}
241
+ * @constructor
242
+ */
243
+ proto.ocap.RollupFilter = function(opt_data) {
244
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.RollupFilter.repeatedFields_, null);
245
+ };
246
+ goog.inherits(proto.ocap.RollupFilter, jspb.Message);
247
+ if (goog.DEBUG && !COMPILED) {
248
+ /**
249
+ * @public
250
+ * @override
251
+ */
252
+ proto.ocap.RollupFilter.displayName = 'proto.ocap.RollupFilter';
253
+ }
232
254
  /**
233
255
  * Generated by JsPbCodeGenerator.
234
256
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2134,6 +2156,162 @@ proto.ocap.TxFilter.prototype.clearTxsList = function() {
2134
2156
 
2135
2157
 
2136
2158
 
2159
+ /**
2160
+ * List of repeated fields within this message type.
2161
+ * @private {!Array<number>}
2162
+ * @const
2163
+ */
2164
+ proto.ocap.RollupFilter.repeatedFields_ = [1];
2165
+
2166
+
2167
+
2168
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2169
+ /**
2170
+ * Creates an object representation of this proto.
2171
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2172
+ * Optional fields that are not set will be set to undefined.
2173
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2174
+ * For the list of reserved names please see:
2175
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2176
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2177
+ * JSPB instance for transitional soy proto support:
2178
+ * http://goto/soy-param-migration
2179
+ * @return {!Object}
2180
+ */
2181
+ proto.ocap.RollupFilter.prototype.toObject = function(opt_includeInstance) {
2182
+ return proto.ocap.RollupFilter.toObject(opt_includeInstance, this);
2183
+ };
2184
+
2185
+
2186
+ /**
2187
+ * Static version of the {@see toObject} method.
2188
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2189
+ * the JSPB instance for transitional soy proto support:
2190
+ * http://goto/soy-param-migration
2191
+ * @param {!proto.ocap.RollupFilter} msg The msg instance to transform.
2192
+ * @return {!Object}
2193
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2194
+ */
2195
+ proto.ocap.RollupFilter.toObject = function(includeInstance, msg) {
2196
+ var f, obj = {
2197
+ rollupsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2198
+ };
2199
+
2200
+ if (includeInstance) {
2201
+ obj.$jspbMessageInstance = msg;
2202
+ }
2203
+ return obj;
2204
+ };
2205
+ }
2206
+
2207
+
2208
+ /**
2209
+ * Deserializes binary data (in protobuf wire format).
2210
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2211
+ * @return {!proto.ocap.RollupFilter}
2212
+ */
2213
+ proto.ocap.RollupFilter.deserializeBinary = function(bytes) {
2214
+ var reader = new jspb.BinaryReader(bytes);
2215
+ var msg = new proto.ocap.RollupFilter;
2216
+ return proto.ocap.RollupFilter.deserializeBinaryFromReader(msg, reader);
2217
+ };
2218
+
2219
+
2220
+ /**
2221
+ * Deserializes binary data (in protobuf wire format) from the
2222
+ * given reader into the given message object.
2223
+ * @param {!proto.ocap.RollupFilter} msg The message object to deserialize into.
2224
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2225
+ * @return {!proto.ocap.RollupFilter}
2226
+ */
2227
+ proto.ocap.RollupFilter.deserializeBinaryFromReader = function(msg, reader) {
2228
+ while (reader.nextField()) {
2229
+ if (reader.isEndGroup()) {
2230
+ break;
2231
+ }
2232
+ var field = reader.getFieldNumber();
2233
+ switch (field) {
2234
+ case 1:
2235
+ var value = /** @type {string} */ (reader.readString());
2236
+ msg.addRollups(value);
2237
+ break;
2238
+ default:
2239
+ reader.skipField();
2240
+ break;
2241
+ }
2242
+ }
2243
+ return msg;
2244
+ };
2245
+
2246
+
2247
+ /**
2248
+ * Serializes the message to binary data (in protobuf wire format).
2249
+ * @return {!Uint8Array}
2250
+ */
2251
+ proto.ocap.RollupFilter.prototype.serializeBinary = function() {
2252
+ var writer = new jspb.BinaryWriter();
2253
+ proto.ocap.RollupFilter.serializeBinaryToWriter(this, writer);
2254
+ return writer.getResultBuffer();
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * Serializes the given message to binary data (in protobuf wire
2260
+ * format), writing to the given BinaryWriter.
2261
+ * @param {!proto.ocap.RollupFilter} message
2262
+ * @param {!jspb.BinaryWriter} writer
2263
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2264
+ */
2265
+ proto.ocap.RollupFilter.serializeBinaryToWriter = function(message, writer) {
2266
+ var f = undefined;
2267
+ f = message.getRollupsList();
2268
+ if (f.length > 0) {
2269
+ writer.writeRepeatedString(
2270
+ 1,
2271
+ f
2272
+ );
2273
+ }
2274
+ };
2275
+
2276
+
2277
+ /**
2278
+ * repeated string rollups = 1;
2279
+ * @return {!Array<string>}
2280
+ */
2281
+ proto.ocap.RollupFilter.prototype.getRollupsList = function() {
2282
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2283
+ };
2284
+
2285
+
2286
+ /**
2287
+ * @param {!Array<string>} value
2288
+ * @return {!proto.ocap.RollupFilter} returns this
2289
+ */
2290
+ proto.ocap.RollupFilter.prototype.setRollupsList = function(value) {
2291
+ return jspb.Message.setField(this, 1, value || []);
2292
+ };
2293
+
2294
+
2295
+ /**
2296
+ * @param {string} value
2297
+ * @param {number=} opt_index
2298
+ * @return {!proto.ocap.RollupFilter} returns this
2299
+ */
2300
+ proto.ocap.RollupFilter.prototype.addRollups = function(value, opt_index) {
2301
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * Clears the list making it empty but non-null.
2307
+ * @return {!proto.ocap.RollupFilter} returns this
2308
+ */
2309
+ proto.ocap.RollupFilter.prototype.clearRollupsList = function() {
2310
+ return this.setRollupsList([]);
2311
+ };
2312
+
2313
+
2314
+
2137
2315
  /**
2138
2316
  * List of repeated fields within this message type.
2139
2317
  * @private {!Array<number>}
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.13.38",
4
+ "version": "1.13.39",
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": "1a63d4006790a3a995317552e6f332be8d523e67"
50
+ "gitHead": "ceba4163485223e1a4157f2c3ca49752c09c20e0"
51
51
  }