@juzi/wechaty-grpc 1.0.24 → 1.0.26

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.
Files changed (65) hide show
  1. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  2. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  3. package/dist/cjs/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  5. package/dist/cjs/out/wechaty/puppet/conversation_pb.js +293 -0
  6. package/dist/cjs/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/conversation_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +30 -45
  9. package/dist/cjs/out/wechaty/puppet/post_pb.js +92 -261
  10. package/dist/cjs/out/wechaty/puppet.openapi.yaml +52 -50
  11. package/dist/cjs/out/wechaty/puppet.swagger.json +77 -77
  12. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +32 -31
  13. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +68 -63
  14. package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
  15. package/dist/cjs/out/wechaty/puppet_pb.js +2 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +30 -29
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +47 -46
  18. package/dist/cjs/proto/wechaty/puppet/conversation.proto +12 -0
  19. package/dist/cjs/proto/wechaty/puppet/post.proto +14 -13
  20. package/dist/cjs/proto/wechaty/puppet.proto +14 -8
  21. package/dist/cjs/src/package-json.js +1 -1
  22. package/dist/cjs/tests/puppet-server-impl.js +6 -6
  23. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  24. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  25. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  26. package/dist/esm/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  27. package/dist/esm/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  28. package/dist/esm/out/wechaty/puppet/conversation_pb.js +293 -0
  29. package/dist/esm/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  30. package/dist/esm/out/wechaty/puppet/conversation_pb_service.js +3 -0
  31. package/dist/esm/out/wechaty/puppet/post_pb.d.ts +30 -45
  32. package/dist/esm/out/wechaty/puppet/post_pb.js +92 -261
  33. package/dist/esm/out/wechaty/puppet.openapi.yaml +52 -50
  34. package/dist/esm/out/wechaty/puppet.swagger.json +77 -77
  35. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +32 -31
  36. package/dist/esm/out/wechaty/puppet_grpc_pb.js +68 -63
  37. package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
  38. package/dist/esm/out/wechaty/puppet_pb.js +2 -0
  39. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +30 -29
  40. package/dist/esm/out/wechaty/puppet_pb_service.js +47 -46
  41. package/dist/esm/proto/wechaty/puppet/conversation.proto +12 -0
  42. package/dist/esm/proto/wechaty/puppet/post.proto +14 -13
  43. package/dist/esm/proto/wechaty/puppet.proto +14 -8
  44. package/dist/esm/src/package-json.js +1 -1
  45. package/dist/esm/tests/puppet-server-impl.js +6 -6
  46. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  47. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +13 -0
  48. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +118 -2
  49. package/out/wechaty/puppet/conversation_grpc_pb.js +1 -0
  50. package/out/wechaty/puppet/conversation_pb.d.ts +41 -0
  51. package/out/wechaty/puppet/conversation_pb.js +293 -0
  52. package/out/wechaty/puppet/conversation_pb_service.d.ts +3 -0
  53. package/out/wechaty/puppet/conversation_pb_service.js +3 -0
  54. package/out/wechaty/puppet/post_pb.d.ts +30 -45
  55. package/out/wechaty/puppet/post_pb.js +92 -261
  56. package/out/wechaty/puppet.openapi.yaml +52 -50
  57. package/out/wechaty/puppet.swagger.json +77 -77
  58. package/out/wechaty/puppet_grpc_pb.d.ts +32 -31
  59. package/out/wechaty/puppet_grpc_pb.js +68 -63
  60. package/out/wechaty/puppet_pb.d.ts +1 -0
  61. package/out/wechaty/puppet_pb.js +2 -0
  62. package/out/wechaty/puppet_pb_service.d.ts +30 -29
  63. package/out/wechaty/puppet_pb_service.js +47 -46
  64. package/package.json +1 -1
  65. package/src/package-json.ts +1 -1
@@ -21,9 +21,6 @@ var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
21
21
  goog.object.extend(proto, wechaty_puppet_url$link_pb);
22
22
  var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_channel_pb);
24
- goog.exportSymbol('proto.wechaty.puppet.PostCommentRequest', null, global);
25
- goog.exportSymbol('proto.wechaty.puppet.PostCommentResponse', null, global);
26
- goog.exportSymbol('proto.wechaty.puppet.PostLikeRequest', null, global);
27
24
  goog.exportSymbol('proto.wechaty.puppet.PostLikeResponse', null, global);
28
25
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadClient', null, global);
29
26
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadRequest', null, global);
@@ -32,8 +29,11 @@ goog.exportSymbol('proto.wechaty.puppet.PostPayloadSayableRequest', null, global
32
29
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadSayableResponse', null, global);
33
30
  goog.exportSymbol('proto.wechaty.puppet.PostPayloadServer', null, global);
34
31
  goog.exportSymbol('proto.wechaty.puppet.PostSayable', null, global);
32
+ goog.exportSymbol('proto.wechaty.puppet.PostTapRequest', null, global);
33
+ goog.exportSymbol('proto.wechaty.puppet.PostTapResponse', null, global);
35
34
  goog.exportSymbol('proto.wechaty.puppet.PostType', null, global);
36
35
  goog.exportSymbol('proto.wechaty.puppet.SayableType', null, global);
36
+ goog.exportSymbol('proto.wechaty.puppet.TapType', null, global);
37
37
  /**
38
38
  * Generated by JsPbCodeGenerator.
39
39
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -107,37 +107,16 @@ if (goog.DEBUG && !COMPILED) {
107
107
  * @extends {jspb.Message}
108
108
  * @constructor
109
109
  */
110
- proto.wechaty.puppet.PostCommentRequest = function(opt_data) {
111
- jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.PostCommentRequest.repeatedFields_, null);
112
- };
113
- goog.inherits(proto.wechaty.puppet.PostCommentRequest, jspb.Message);
114
- if (goog.DEBUG && !COMPILED) {
115
- /**
116
- * @public
117
- * @override
118
- */
119
- proto.wechaty.puppet.PostCommentRequest.displayName = 'proto.wechaty.puppet.PostCommentRequest';
120
- }
121
- /**
122
- * Generated by JsPbCodeGenerator.
123
- * @param {Array=} opt_data Optional initial data array, typically from a
124
- * server response, or constructed directly in Javascript. The array is used
125
- * in place and becomes part of the constructed object. It is not cloned.
126
- * If no data is provided, the constructed object will be empty, but still
127
- * valid.
128
- * @extends {jspb.Message}
129
- * @constructor
130
- */
131
- proto.wechaty.puppet.PostCommentResponse = function(opt_data) {
110
+ proto.wechaty.puppet.PostTapRequest = function(opt_data) {
132
111
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
133
112
  };
134
- goog.inherits(proto.wechaty.puppet.PostCommentResponse, jspb.Message);
113
+ goog.inherits(proto.wechaty.puppet.PostTapRequest, jspb.Message);
135
114
  if (goog.DEBUG && !COMPILED) {
136
115
  /**
137
116
  * @public
138
117
  * @override
139
118
  */
140
- proto.wechaty.puppet.PostCommentResponse.displayName = 'proto.wechaty.puppet.PostCommentResponse';
119
+ proto.wechaty.puppet.PostTapRequest.displayName = 'proto.wechaty.puppet.PostTapRequest';
141
120
  }
142
121
  /**
143
122
  * Generated by JsPbCodeGenerator.
@@ -149,16 +128,16 @@ if (goog.DEBUG && !COMPILED) {
149
128
  * @extends {jspb.Message}
150
129
  * @constructor
151
130
  */
152
- proto.wechaty.puppet.PostLikeRequest = function(opt_data) {
131
+ proto.wechaty.puppet.PostTapResponse = function(opt_data) {
153
132
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
133
  };
155
- goog.inherits(proto.wechaty.puppet.PostLikeRequest, jspb.Message);
134
+ goog.inherits(proto.wechaty.puppet.PostTapResponse, jspb.Message);
156
135
  if (goog.DEBUG && !COMPILED) {
157
136
  /**
158
137
  * @public
159
138
  * @override
160
139
  */
161
- proto.wechaty.puppet.PostLikeRequest.displayName = 'proto.wechaty.puppet.PostLikeRequest';
140
+ proto.wechaty.puppet.PostTapResponse.displayName = 'proto.wechaty.puppet.PostTapResponse';
162
141
  }
163
142
  /**
164
143
  * Generated by JsPbCodeGenerator.
@@ -1315,13 +1294,6 @@ proto.wechaty.puppet.PostPayloadServer.prototype.setLike = function(value) {
1315
1294
 
1316
1295
 
1317
1296
 
1318
- /**
1319
- * List of repeated fields within this message type.
1320
- * @private {!Array<number>}
1321
- * @const
1322
- */
1323
- proto.wechaty.puppet.PostCommentRequest.repeatedFields_ = [3];
1324
-
1325
1297
 
1326
1298
 
1327
1299
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1337,8 +1309,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1337
1309
  * http://goto/soy-param-migration
1338
1310
  * @return {!Object}
1339
1311
  */
1340
- proto.wechaty.puppet.PostCommentRequest.prototype.toObject = function(opt_includeInstance) {
1341
- return proto.wechaty.puppet.PostCommentRequest.toObject(opt_includeInstance, this);
1312
+ proto.wechaty.puppet.PostTapRequest.prototype.toObject = function(opt_includeInstance) {
1313
+ return proto.wechaty.puppet.PostTapRequest.toObject(opt_includeInstance, this);
1342
1314
  };
1343
1315
 
1344
1316
 
@@ -1347,15 +1319,15 @@ proto.wechaty.puppet.PostCommentRequest.prototype.toObject = function(opt_includ
1347
1319
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1348
1320
  * the JSPB instance for transitional soy proto support:
1349
1321
  * http://goto/soy-param-migration
1350
- * @param {!proto.wechaty.puppet.PostCommentRequest} msg The msg instance to transform.
1322
+ * @param {!proto.wechaty.puppet.PostTapRequest} msg The msg instance to transform.
1351
1323
  * @return {!Object}
1352
1324
  * @suppress {unusedLocalVariables} f is only used for nested messages
1353
1325
  */
1354
- proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg) {
1326
+ proto.wechaty.puppet.PostTapRequest.toObject = function(includeInstance, msg) {
1355
1327
  var f, obj = {
1356
1328
  postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1357
- text: jspb.Message.getFieldWithDefault(msg, 2, ""),
1358
- mentionIdListList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1329
+ type: jspb.Message.getFieldWithDefault(msg, 2, 0),
1330
+ tap: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
1359
1331
  };
1360
1332
 
1361
1333
  if (includeInstance) {
@@ -1369,23 +1341,23 @@ proto.wechaty.puppet.PostCommentRequest.toObject = function(includeInstance, msg
1369
1341
  /**
1370
1342
  * Deserializes binary data (in protobuf wire format).
1371
1343
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1372
- * @return {!proto.wechaty.puppet.PostCommentRequest}
1344
+ * @return {!proto.wechaty.puppet.PostTapRequest}
1373
1345
  */
1374
- proto.wechaty.puppet.PostCommentRequest.deserializeBinary = function(bytes) {
1346
+ proto.wechaty.puppet.PostTapRequest.deserializeBinary = function(bytes) {
1375
1347
  var reader = new jspb.BinaryReader(bytes);
1376
- var msg = new proto.wechaty.puppet.PostCommentRequest;
1377
- return proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader(msg, reader);
1348
+ var msg = new proto.wechaty.puppet.PostTapRequest;
1349
+ return proto.wechaty.puppet.PostTapRequest.deserializeBinaryFromReader(msg, reader);
1378
1350
  };
1379
1351
 
1380
1352
 
1381
1353
  /**
1382
1354
  * Deserializes binary data (in protobuf wire format) from the
1383
1355
  * given reader into the given message object.
1384
- * @param {!proto.wechaty.puppet.PostCommentRequest} msg The message object to deserialize into.
1356
+ * @param {!proto.wechaty.puppet.PostTapRequest} msg The message object to deserialize into.
1385
1357
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1386
- * @return {!proto.wechaty.puppet.PostCommentRequest}
1358
+ * @return {!proto.wechaty.puppet.PostTapRequest}
1387
1359
  */
1388
- proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(msg, reader) {
1360
+ proto.wechaty.puppet.PostTapRequest.deserializeBinaryFromReader = function(msg, reader) {
1389
1361
  while (reader.nextField()) {
1390
1362
  if (reader.isEndGroup()) {
1391
1363
  break;
@@ -1397,12 +1369,12 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1397
1369
  msg.setPostId(value);
1398
1370
  break;
1399
1371
  case 2:
1400
- var value = /** @type {string} */ (reader.readString());
1401
- msg.setText(value);
1372
+ var value = /** @type {!proto.wechaty.puppet.TapType} */ (reader.readEnum());
1373
+ msg.setType(value);
1402
1374
  break;
1403
1375
  case 3:
1404
- var value = /** @type {string} */ (reader.readString());
1405
- msg.addMentionIdList(value);
1376
+ var value = /** @type {boolean} */ (reader.readBool());
1377
+ msg.setTap(value);
1406
1378
  break;
1407
1379
  default:
1408
1380
  reader.skipField();
@@ -1417,9 +1389,9 @@ proto.wechaty.puppet.PostCommentRequest.deserializeBinaryFromReader = function(m
1417
1389
  * Serializes the message to binary data (in protobuf wire format).
1418
1390
  * @return {!Uint8Array}
1419
1391
  */
1420
- proto.wechaty.puppet.PostCommentRequest.prototype.serializeBinary = function() {
1392
+ proto.wechaty.puppet.PostTapRequest.prototype.serializeBinary = function() {
1421
1393
  var writer = new jspb.BinaryWriter();
1422
- proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter(this, writer);
1394
+ proto.wechaty.puppet.PostTapRequest.serializeBinaryToWriter(this, writer);
1423
1395
  return writer.getResultBuffer();
1424
1396
  };
1425
1397
 
@@ -1427,11 +1399,11 @@ proto.wechaty.puppet.PostCommentRequest.prototype.serializeBinary = function() {
1427
1399
  /**
1428
1400
  * Serializes the given message to binary data (in protobuf wire
1429
1401
  * format), writing to the given BinaryWriter.
1430
- * @param {!proto.wechaty.puppet.PostCommentRequest} message
1402
+ * @param {!proto.wechaty.puppet.PostTapRequest} message
1431
1403
  * @param {!jspb.BinaryWriter} writer
1432
1404
  * @suppress {unusedLocalVariables} f is only used for nested messages
1433
1405
  */
1434
- proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(message, writer) {
1406
+ proto.wechaty.puppet.PostTapRequest.serializeBinaryToWriter = function(message, writer) {
1435
1407
  var f = undefined;
1436
1408
  f = message.getPostId();
1437
1409
  if (f.length > 0) {
@@ -1440,16 +1412,16 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1440
1412
  f
1441
1413
  );
1442
1414
  }
1443
- f = message.getText();
1444
- if (f.length > 0) {
1445
- writer.writeString(
1415
+ f = message.getType();
1416
+ if (f !== 0.0) {
1417
+ writer.writeEnum(
1446
1418
  2,
1447
1419
  f
1448
1420
  );
1449
1421
  }
1450
- f = message.getMentionIdListList();
1451
- if (f.length > 0) {
1452
- writer.writeRepeatedString(
1422
+ f = message.getTap();
1423
+ if (f) {
1424
+ writer.writeBool(
1453
1425
  3,
1454
1426
  f
1455
1427
  );
@@ -1461,202 +1433,53 @@ proto.wechaty.puppet.PostCommentRequest.serializeBinaryToWriter = function(messa
1461
1433
  * optional string post_id = 1;
1462
1434
  * @return {string}
1463
1435
  */
1464
- proto.wechaty.puppet.PostCommentRequest.prototype.getPostId = function() {
1436
+ proto.wechaty.puppet.PostTapRequest.prototype.getPostId = function() {
1465
1437
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1466
1438
  };
1467
1439
 
1468
1440
 
1469
1441
  /**
1470
1442
  * @param {string} value
1471
- * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1443
+ * @return {!proto.wechaty.puppet.PostTapRequest} returns this
1472
1444
  */
1473
- proto.wechaty.puppet.PostCommentRequest.prototype.setPostId = function(value) {
1445
+ proto.wechaty.puppet.PostTapRequest.prototype.setPostId = function(value) {
1474
1446
  return jspb.Message.setProto3StringField(this, 1, value);
1475
1447
  };
1476
1448
 
1477
1449
 
1478
1450
  /**
1479
- * optional string text = 2;
1480
- * @return {string}
1481
- */
1482
- proto.wechaty.puppet.PostCommentRequest.prototype.getText = function() {
1483
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1484
- };
1485
-
1486
-
1487
- /**
1488
- * @param {string} value
1489
- * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1490
- */
1491
- proto.wechaty.puppet.PostCommentRequest.prototype.setText = function(value) {
1492
- return jspb.Message.setProto3StringField(this, 2, value);
1493
- };
1494
-
1495
-
1496
- /**
1497
- * repeated string mention_id_list = 3;
1498
- * @return {!Array<string>}
1499
- */
1500
- proto.wechaty.puppet.PostCommentRequest.prototype.getMentionIdListList = function() {
1501
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1502
- };
1503
-
1504
-
1505
- /**
1506
- * @param {!Array<string>} value
1507
- * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1508
- */
1509
- proto.wechaty.puppet.PostCommentRequest.prototype.setMentionIdListList = function(value) {
1510
- return jspb.Message.setField(this, 3, value || []);
1511
- };
1512
-
1513
-
1514
- /**
1515
- * @param {string} value
1516
- * @param {number=} opt_index
1517
- * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1518
- */
1519
- proto.wechaty.puppet.PostCommentRequest.prototype.addMentionIdList = function(value, opt_index) {
1520
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1521
- };
1522
-
1523
-
1524
- /**
1525
- * Clears the list making it empty but non-null.
1526
- * @return {!proto.wechaty.puppet.PostCommentRequest} returns this
1451
+ * optional TapType type = 2;
1452
+ * @return {!proto.wechaty.puppet.TapType}
1527
1453
  */
1528
- proto.wechaty.puppet.PostCommentRequest.prototype.clearMentionIdListList = function() {
1529
- return this.setMentionIdListList([]);
1454
+ proto.wechaty.puppet.PostTapRequest.prototype.getType = function() {
1455
+ return /** @type {!proto.wechaty.puppet.TapType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1530
1456
  };
1531
1457
 
1532
1458
 
1533
-
1534
-
1535
-
1536
- if (jspb.Message.GENERATE_TO_OBJECT) {
1537
1459
  /**
1538
- * Creates an object representation of this proto.
1539
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1540
- * Optional fields that are not set will be set to undefined.
1541
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1542
- * For the list of reserved names please see:
1543
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1544
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1545
- * JSPB instance for transitional soy proto support:
1546
- * http://goto/soy-param-migration
1547
- * @return {!Object}
1460
+ * @param {!proto.wechaty.puppet.TapType} value
1461
+ * @return {!proto.wechaty.puppet.PostTapRequest} returns this
1548
1462
  */
1549
- proto.wechaty.puppet.PostCommentResponse.prototype.toObject = function(opt_includeInstance) {
1550
- return proto.wechaty.puppet.PostCommentResponse.toObject(opt_includeInstance, this);
1463
+ proto.wechaty.puppet.PostTapRequest.prototype.setType = function(value) {
1464
+ return jspb.Message.setProto3EnumField(this, 2, value);
1551
1465
  };
1552
1466
 
1553
1467
 
1554
1468
  /**
1555
- * Static version of the {@see toObject} method.
1556
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1557
- * the JSPB instance for transitional soy proto support:
1558
- * http://goto/soy-param-migration
1559
- * @param {!proto.wechaty.puppet.PostCommentResponse} msg The msg instance to transform.
1560
- * @return {!Object}
1561
- * @suppress {unusedLocalVariables} f is only used for nested messages
1562
- */
1563
- proto.wechaty.puppet.PostCommentResponse.toObject = function(includeInstance, msg) {
1564
- var f, obj = {
1565
- commentId: jspb.Message.getFieldWithDefault(msg, 1, "")
1566
- };
1567
-
1568
- if (includeInstance) {
1569
- obj.$jspbMessageInstance = msg;
1570
- }
1571
- return obj;
1572
- };
1573
- }
1574
-
1575
-
1576
- /**
1577
- * Deserializes binary data (in protobuf wire format).
1578
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1579
- * @return {!proto.wechaty.puppet.PostCommentResponse}
1580
- */
1581
- proto.wechaty.puppet.PostCommentResponse.deserializeBinary = function(bytes) {
1582
- var reader = new jspb.BinaryReader(bytes);
1583
- var msg = new proto.wechaty.puppet.PostCommentResponse;
1584
- return proto.wechaty.puppet.PostCommentResponse.deserializeBinaryFromReader(msg, reader);
1585
- };
1586
-
1587
-
1588
- /**
1589
- * Deserializes binary data (in protobuf wire format) from the
1590
- * given reader into the given message object.
1591
- * @param {!proto.wechaty.puppet.PostCommentResponse} msg The message object to deserialize into.
1592
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1593
- * @return {!proto.wechaty.puppet.PostCommentResponse}
1594
- */
1595
- proto.wechaty.puppet.PostCommentResponse.deserializeBinaryFromReader = function(msg, reader) {
1596
- while (reader.nextField()) {
1597
- if (reader.isEndGroup()) {
1598
- break;
1599
- }
1600
- var field = reader.getFieldNumber();
1601
- switch (field) {
1602
- case 1:
1603
- var value = /** @type {string} */ (reader.readString());
1604
- msg.setCommentId(value);
1605
- break;
1606
- default:
1607
- reader.skipField();
1608
- break;
1609
- }
1610
- }
1611
- return msg;
1612
- };
1613
-
1614
-
1615
- /**
1616
- * Serializes the message to binary data (in protobuf wire format).
1617
- * @return {!Uint8Array}
1618
- */
1619
- proto.wechaty.puppet.PostCommentResponse.prototype.serializeBinary = function() {
1620
- var writer = new jspb.BinaryWriter();
1621
- proto.wechaty.puppet.PostCommentResponse.serializeBinaryToWriter(this, writer);
1622
- return writer.getResultBuffer();
1623
- };
1624
-
1625
-
1626
- /**
1627
- * Serializes the given message to binary data (in protobuf wire
1628
- * format), writing to the given BinaryWriter.
1629
- * @param {!proto.wechaty.puppet.PostCommentResponse} message
1630
- * @param {!jspb.BinaryWriter} writer
1631
- * @suppress {unusedLocalVariables} f is only used for nested messages
1632
- */
1633
- proto.wechaty.puppet.PostCommentResponse.serializeBinaryToWriter = function(message, writer) {
1634
- var f = undefined;
1635
- f = message.getCommentId();
1636
- if (f.length > 0) {
1637
- writer.writeString(
1638
- 1,
1639
- f
1640
- );
1641
- }
1642
- };
1643
-
1644
-
1645
- /**
1646
- * optional string comment_id = 1;
1647
- * @return {string}
1469
+ * optional bool tap = 3;
1470
+ * @return {boolean}
1648
1471
  */
1649
- proto.wechaty.puppet.PostCommentResponse.prototype.getCommentId = function() {
1650
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1472
+ proto.wechaty.puppet.PostTapRequest.prototype.getTap = function() {
1473
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1651
1474
  };
1652
1475
 
1653
1476
 
1654
1477
  /**
1655
- * @param {string} value
1656
- * @return {!proto.wechaty.puppet.PostCommentResponse} returns this
1478
+ * @param {boolean} value
1479
+ * @return {!proto.wechaty.puppet.PostTapRequest} returns this
1657
1480
  */
1658
- proto.wechaty.puppet.PostCommentResponse.prototype.setCommentId = function(value) {
1659
- return jspb.Message.setProto3StringField(this, 1, value);
1481
+ proto.wechaty.puppet.PostTapRequest.prototype.setTap = function(value) {
1482
+ return jspb.Message.setProto3BooleanField(this, 3, value);
1660
1483
  };
1661
1484
 
1662
1485
 
@@ -1676,8 +1499,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1676
1499
  * http://goto/soy-param-migration
1677
1500
  * @return {!Object}
1678
1501
  */
1679
- proto.wechaty.puppet.PostLikeRequest.prototype.toObject = function(opt_includeInstance) {
1680
- return proto.wechaty.puppet.PostLikeRequest.toObject(opt_includeInstance, this);
1502
+ proto.wechaty.puppet.PostTapResponse.prototype.toObject = function(opt_includeInstance) {
1503
+ return proto.wechaty.puppet.PostTapResponse.toObject(opt_includeInstance, this);
1681
1504
  };
1682
1505
 
1683
1506
 
@@ -1686,13 +1509,13 @@ proto.wechaty.puppet.PostLikeRequest.prototype.toObject = function(opt_includeIn
1686
1509
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1687
1510
  * the JSPB instance for transitional soy proto support:
1688
1511
  * http://goto/soy-param-migration
1689
- * @param {!proto.wechaty.puppet.PostLikeRequest} msg The msg instance to transform.
1512
+ * @param {!proto.wechaty.puppet.PostTapResponse} msg The msg instance to transform.
1690
1513
  * @return {!Object}
1691
1514
  * @suppress {unusedLocalVariables} f is only used for nested messages
1692
1515
  */
1693
- proto.wechaty.puppet.PostLikeRequest.toObject = function(includeInstance, msg) {
1516
+ proto.wechaty.puppet.PostTapResponse.toObject = function(includeInstance, msg) {
1694
1517
  var f, obj = {
1695
- postId: jspb.Message.getFieldWithDefault(msg, 1, "")
1518
+ tap: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
1696
1519
  };
1697
1520
 
1698
1521
  if (includeInstance) {
@@ -1706,23 +1529,23 @@ proto.wechaty.puppet.PostLikeRequest.toObject = function(includeInstance, msg) {
1706
1529
  /**
1707
1530
  * Deserializes binary data (in protobuf wire format).
1708
1531
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1709
- * @return {!proto.wechaty.puppet.PostLikeRequest}
1532
+ * @return {!proto.wechaty.puppet.PostTapResponse}
1710
1533
  */
1711
- proto.wechaty.puppet.PostLikeRequest.deserializeBinary = function(bytes) {
1534
+ proto.wechaty.puppet.PostTapResponse.deserializeBinary = function(bytes) {
1712
1535
  var reader = new jspb.BinaryReader(bytes);
1713
- var msg = new proto.wechaty.puppet.PostLikeRequest;
1714
- return proto.wechaty.puppet.PostLikeRequest.deserializeBinaryFromReader(msg, reader);
1536
+ var msg = new proto.wechaty.puppet.PostTapResponse;
1537
+ return proto.wechaty.puppet.PostTapResponse.deserializeBinaryFromReader(msg, reader);
1715
1538
  };
1716
1539
 
1717
1540
 
1718
1541
  /**
1719
1542
  * Deserializes binary data (in protobuf wire format) from the
1720
1543
  * given reader into the given message object.
1721
- * @param {!proto.wechaty.puppet.PostLikeRequest} msg The message object to deserialize into.
1544
+ * @param {!proto.wechaty.puppet.PostTapResponse} msg The message object to deserialize into.
1722
1545
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1723
- * @return {!proto.wechaty.puppet.PostLikeRequest}
1546
+ * @return {!proto.wechaty.puppet.PostTapResponse}
1724
1547
  */
1725
- proto.wechaty.puppet.PostLikeRequest.deserializeBinaryFromReader = function(msg, reader) {
1548
+ proto.wechaty.puppet.PostTapResponse.deserializeBinaryFromReader = function(msg, reader) {
1726
1549
  while (reader.nextField()) {
1727
1550
  if (reader.isEndGroup()) {
1728
1551
  break;
@@ -1730,8 +1553,8 @@ proto.wechaty.puppet.PostLikeRequest.deserializeBinaryFromReader = function(msg,
1730
1553
  var field = reader.getFieldNumber();
1731
1554
  switch (field) {
1732
1555
  case 1:
1733
- var value = /** @type {string} */ (reader.readString());
1734
- msg.setPostId(value);
1556
+ var value = /** @type {boolean} */ (reader.readBool());
1557
+ msg.setTap(value);
1735
1558
  break;
1736
1559
  default:
1737
1560
  reader.skipField();
@@ -1746,9 +1569,9 @@ proto.wechaty.puppet.PostLikeRequest.deserializeBinaryFromReader = function(msg,
1746
1569
  * Serializes the message to binary data (in protobuf wire format).
1747
1570
  * @return {!Uint8Array}
1748
1571
  */
1749
- proto.wechaty.puppet.PostLikeRequest.prototype.serializeBinary = function() {
1572
+ proto.wechaty.puppet.PostTapResponse.prototype.serializeBinary = function() {
1750
1573
  var writer = new jspb.BinaryWriter();
1751
- proto.wechaty.puppet.PostLikeRequest.serializeBinaryToWriter(this, writer);
1574
+ proto.wechaty.puppet.PostTapResponse.serializeBinaryToWriter(this, writer);
1752
1575
  return writer.getResultBuffer();
1753
1576
  };
1754
1577
 
@@ -1756,15 +1579,15 @@ proto.wechaty.puppet.PostLikeRequest.prototype.serializeBinary = function() {
1756
1579
  /**
1757
1580
  * Serializes the given message to binary data (in protobuf wire
1758
1581
  * format), writing to the given BinaryWriter.
1759
- * @param {!proto.wechaty.puppet.PostLikeRequest} message
1582
+ * @param {!proto.wechaty.puppet.PostTapResponse} message
1760
1583
  * @param {!jspb.BinaryWriter} writer
1761
1584
  * @suppress {unusedLocalVariables} f is only used for nested messages
1762
1585
  */
1763
- proto.wechaty.puppet.PostLikeRequest.serializeBinaryToWriter = function(message, writer) {
1586
+ proto.wechaty.puppet.PostTapResponse.serializeBinaryToWriter = function(message, writer) {
1764
1587
  var f = undefined;
1765
- f = message.getPostId();
1766
- if (f.length > 0) {
1767
- writer.writeString(
1588
+ f = message.getTap();
1589
+ if (f) {
1590
+ writer.writeBool(
1768
1591
  1,
1769
1592
  f
1770
1593
  );
@@ -1773,20 +1596,20 @@ proto.wechaty.puppet.PostLikeRequest.serializeBinaryToWriter = function(message,
1773
1596
 
1774
1597
 
1775
1598
  /**
1776
- * optional string post_id = 1;
1777
- * @return {string}
1599
+ * optional bool tap = 1;
1600
+ * @return {boolean}
1778
1601
  */
1779
- proto.wechaty.puppet.PostLikeRequest.prototype.getPostId = function() {
1780
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1602
+ proto.wechaty.puppet.PostTapResponse.prototype.getTap = function() {
1603
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1781
1604
  };
1782
1605
 
1783
1606
 
1784
1607
  /**
1785
- * @param {string} value
1786
- * @return {!proto.wechaty.puppet.PostLikeRequest} returns this
1608
+ * @param {boolean} value
1609
+ * @return {!proto.wechaty.puppet.PostTapResponse} returns this
1787
1610
  */
1788
- proto.wechaty.puppet.PostLikeRequest.prototype.setPostId = function(value) {
1789
- return jspb.Message.setProto3StringField(this, 1, value);
1611
+ proto.wechaty.puppet.PostTapResponse.prototype.setTap = function(value) {
1612
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1790
1613
  };
1791
1614
 
1792
1615
 
@@ -2532,4 +2355,12 @@ proto.wechaty.puppet.SayableType = {
2532
2355
  SAYABLE_TYPE_CHANNEL: 3
2533
2356
  };
2534
2357
 
2358
+ /**
2359
+ * @enum {number}
2360
+ */
2361
+ proto.wechaty.puppet.TapType = {
2362
+ TAP_TYPE_UNSPECIFIED: 0,
2363
+ TAP_TYPE_LIKE: 1
2364
+ };
2365
+
2535
2366
  goog.object.extend(exports, proto.wechaty.puppet);