@juzi/wechaty-grpc 1.0.23 → 1.0.25
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/dist/cjs/out/wechaty/puppet/post_pb.d.ts +34 -45
- package/dist/cjs/out/wechaty/puppet/post_pb.js +114 -254
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +24 -47
- package/dist/cjs/out/wechaty/puppet.swagger.json +34 -72
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +14 -31
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +30 -63
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +10 -29
- package/dist/cjs/out/wechaty/puppet_pb_service.js +6 -46
- package/dist/cjs/proto/wechaty/puppet/post.proto +15 -13
- package/dist/cjs/proto/wechaty/puppet.proto +1 -8
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +1 -6
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/post_pb.d.ts +34 -45
- package/dist/esm/out/wechaty/puppet/post_pb.js +114 -254
- package/dist/esm/out/wechaty/puppet.openapi.yaml +24 -47
- package/dist/esm/out/wechaty/puppet.swagger.json +34 -72
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +14 -31
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +30 -63
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +10 -29
- package/dist/esm/out/wechaty/puppet_pb_service.js +6 -46
- package/dist/esm/proto/wechaty/puppet/post.proto +15 -13
- package/dist/esm/proto/wechaty/puppet.proto +1 -8
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +1 -6
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/post_pb.d.ts +34 -45
- package/out/wechaty/puppet/post_pb.js +114 -254
- package/out/wechaty/puppet.openapi.yaml +24 -47
- package/out/wechaty/puppet.swagger.json +34 -72
- package/out/wechaty/puppet_grpc_pb.d.ts +14 -31
- package/out/wechaty/puppet_grpc_pb.js +30 -63
- package/out/wechaty/puppet_pb_service.d.ts +10 -29
- package/out/wechaty/puppet_pb_service.js +6 -46
- package/package.json +1 -1
- 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
1341
|
-
return proto.wechaty.puppet.
|
|
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.
|
|
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.
|
|
1326
|
+
proto.wechaty.puppet.PostTapRequest.toObject = function(includeInstance, msg) {
|
|
1355
1327
|
var f, obj = {
|
|
1356
1328
|
postId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1357
|
-
|
|
1358
|
-
|
|
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.
|
|
1344
|
+
* @return {!proto.wechaty.puppet.PostTapRequest}
|
|
1373
1345
|
*/
|
|
1374
|
-
proto.wechaty.puppet.
|
|
1346
|
+
proto.wechaty.puppet.PostTapRequest.deserializeBinary = function(bytes) {
|
|
1375
1347
|
var reader = new jspb.BinaryReader(bytes);
|
|
1376
|
-
var msg = new proto.wechaty.puppet.
|
|
1377
|
-
return proto.wechaty.puppet.
|
|
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.
|
|
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.
|
|
1358
|
+
* @return {!proto.wechaty.puppet.PostTapRequest}
|
|
1387
1359
|
*/
|
|
1388
|
-
proto.wechaty.puppet.
|
|
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 {
|
|
1401
|
-
msg.
|
|
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 {
|
|
1405
|
-
msg.
|
|
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.
|
|
1392
|
+
proto.wechaty.puppet.PostTapRequest.prototype.serializeBinary = function() {
|
|
1421
1393
|
var writer = new jspb.BinaryWriter();
|
|
1422
|
-
proto.wechaty.puppet.
|
|
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.
|
|
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.
|
|
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.
|
|
1444
|
-
if (f
|
|
1445
|
-
writer.
|
|
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.
|
|
1451
|
-
if (f
|
|
1452
|
-
writer.
|
|
1422
|
+
f = message.getTap();
|
|
1423
|
+
if (f) {
|
|
1424
|
+
writer.writeBool(
|
|
1453
1425
|
3,
|
|
1454
1426
|
f
|
|
1455
1427
|
);
|
|
@@ -1461,72 +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.
|
|
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.
|
|
1443
|
+
* @return {!proto.wechaty.puppet.PostTapRequest} returns this
|
|
1472
1444
|
*/
|
|
1473
|
-
proto.wechaty.puppet.
|
|
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
|
|
1480
|
-
* @return {
|
|
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>}
|
|
1451
|
+
* optional TapType type = 2;
|
|
1452
|
+
* @return {!proto.wechaty.puppet.TapType}
|
|
1499
1453
|
*/
|
|
1500
|
-
proto.wechaty.puppet.
|
|
1501
|
-
return /** @type {!
|
|
1454
|
+
proto.wechaty.puppet.PostTapRequest.prototype.getType = function() {
|
|
1455
|
+
return /** @type {!proto.wechaty.puppet.TapType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1502
1456
|
};
|
|
1503
1457
|
|
|
1504
1458
|
|
|
1505
1459
|
/**
|
|
1506
|
-
* @param {!
|
|
1507
|
-
* @return {!proto.wechaty.puppet.
|
|
1460
|
+
* @param {!proto.wechaty.puppet.TapType} value
|
|
1461
|
+
* @return {!proto.wechaty.puppet.PostTapRequest} returns this
|
|
1508
1462
|
*/
|
|
1509
|
-
proto.wechaty.puppet.
|
|
1510
|
-
return jspb.Message.
|
|
1463
|
+
proto.wechaty.puppet.PostTapRequest.prototype.setType = function(value) {
|
|
1464
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
1511
1465
|
};
|
|
1512
1466
|
|
|
1513
1467
|
|
|
1514
1468
|
/**
|
|
1515
|
-
*
|
|
1516
|
-
* @
|
|
1517
|
-
* @return {!proto.wechaty.puppet.PostCommentRequest} returns this
|
|
1469
|
+
* optional bool tap = 3;
|
|
1470
|
+
* @return {boolean}
|
|
1518
1471
|
*/
|
|
1519
|
-
proto.wechaty.puppet.
|
|
1520
|
-
return jspb.Message.
|
|
1472
|
+
proto.wechaty.puppet.PostTapRequest.prototype.getTap = function() {
|
|
1473
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
1521
1474
|
};
|
|
1522
1475
|
|
|
1523
1476
|
|
|
1524
1477
|
/**
|
|
1525
|
-
*
|
|
1526
|
-
* @return {!proto.wechaty.puppet.
|
|
1478
|
+
* @param {boolean} value
|
|
1479
|
+
* @return {!proto.wechaty.puppet.PostTapRequest} returns this
|
|
1527
1480
|
*/
|
|
1528
|
-
proto.wechaty.puppet.
|
|
1529
|
-
return
|
|
1481
|
+
proto.wechaty.puppet.PostTapRequest.prototype.setTap = function(value) {
|
|
1482
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
1530
1483
|
};
|
|
1531
1484
|
|
|
1532
1485
|
|
|
@@ -1546,8 +1499,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1546
1499
|
* http://goto/soy-param-migration
|
|
1547
1500
|
* @return {!Object}
|
|
1548
1501
|
*/
|
|
1549
|
-
proto.wechaty.puppet.
|
|
1550
|
-
return proto.wechaty.puppet.
|
|
1502
|
+
proto.wechaty.puppet.PostTapResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1503
|
+
return proto.wechaty.puppet.PostTapResponse.toObject(opt_includeInstance, this);
|
|
1551
1504
|
};
|
|
1552
1505
|
|
|
1553
1506
|
|
|
@@ -1556,13 +1509,13 @@ proto.wechaty.puppet.PostCommentResponse.prototype.toObject = function(opt_inclu
|
|
|
1556
1509
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1557
1510
|
* the JSPB instance for transitional soy proto support:
|
|
1558
1511
|
* http://goto/soy-param-migration
|
|
1559
|
-
* @param {!proto.wechaty.puppet.
|
|
1512
|
+
* @param {!proto.wechaty.puppet.PostTapResponse} msg The msg instance to transform.
|
|
1560
1513
|
* @return {!Object}
|
|
1561
1514
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1562
1515
|
*/
|
|
1563
|
-
proto.wechaty.puppet.
|
|
1516
|
+
proto.wechaty.puppet.PostTapResponse.toObject = function(includeInstance, msg) {
|
|
1564
1517
|
var f, obj = {
|
|
1565
|
-
|
|
1518
|
+
tap: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
1566
1519
|
};
|
|
1567
1520
|
|
|
1568
1521
|
if (includeInstance) {
|
|
@@ -1576,23 +1529,23 @@ proto.wechaty.puppet.PostCommentResponse.toObject = function(includeInstance, ms
|
|
|
1576
1529
|
/**
|
|
1577
1530
|
* Deserializes binary data (in protobuf wire format).
|
|
1578
1531
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1579
|
-
* @return {!proto.wechaty.puppet.
|
|
1532
|
+
* @return {!proto.wechaty.puppet.PostTapResponse}
|
|
1580
1533
|
*/
|
|
1581
|
-
proto.wechaty.puppet.
|
|
1534
|
+
proto.wechaty.puppet.PostTapResponse.deserializeBinary = function(bytes) {
|
|
1582
1535
|
var reader = new jspb.BinaryReader(bytes);
|
|
1583
|
-
var msg = new proto.wechaty.puppet.
|
|
1584
|
-
return proto.wechaty.puppet.
|
|
1536
|
+
var msg = new proto.wechaty.puppet.PostTapResponse;
|
|
1537
|
+
return proto.wechaty.puppet.PostTapResponse.deserializeBinaryFromReader(msg, reader);
|
|
1585
1538
|
};
|
|
1586
1539
|
|
|
1587
1540
|
|
|
1588
1541
|
/**
|
|
1589
1542
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1590
1543
|
* given reader into the given message object.
|
|
1591
|
-
* @param {!proto.wechaty.puppet.
|
|
1544
|
+
* @param {!proto.wechaty.puppet.PostTapResponse} msg The message object to deserialize into.
|
|
1592
1545
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1593
|
-
* @return {!proto.wechaty.puppet.
|
|
1546
|
+
* @return {!proto.wechaty.puppet.PostTapResponse}
|
|
1594
1547
|
*/
|
|
1595
|
-
proto.wechaty.puppet.
|
|
1548
|
+
proto.wechaty.puppet.PostTapResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1596
1549
|
while (reader.nextField()) {
|
|
1597
1550
|
if (reader.isEndGroup()) {
|
|
1598
1551
|
break;
|
|
@@ -1600,8 +1553,8 @@ proto.wechaty.puppet.PostCommentResponse.deserializeBinaryFromReader = function(
|
|
|
1600
1553
|
var field = reader.getFieldNumber();
|
|
1601
1554
|
switch (field) {
|
|
1602
1555
|
case 1:
|
|
1603
|
-
var value = /** @type {
|
|
1604
|
-
msg.
|
|
1556
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
1557
|
+
msg.setTap(value);
|
|
1605
1558
|
break;
|
|
1606
1559
|
default:
|
|
1607
1560
|
reader.skipField();
|
|
@@ -1616,9 +1569,9 @@ proto.wechaty.puppet.PostCommentResponse.deserializeBinaryFromReader = function(
|
|
|
1616
1569
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1617
1570
|
* @return {!Uint8Array}
|
|
1618
1571
|
*/
|
|
1619
|
-
proto.wechaty.puppet.
|
|
1572
|
+
proto.wechaty.puppet.PostTapResponse.prototype.serializeBinary = function() {
|
|
1620
1573
|
var writer = new jspb.BinaryWriter();
|
|
1621
|
-
proto.wechaty.puppet.
|
|
1574
|
+
proto.wechaty.puppet.PostTapResponse.serializeBinaryToWriter(this, writer);
|
|
1622
1575
|
return writer.getResultBuffer();
|
|
1623
1576
|
};
|
|
1624
1577
|
|
|
@@ -1626,15 +1579,15 @@ proto.wechaty.puppet.PostCommentResponse.prototype.serializeBinary = function()
|
|
|
1626
1579
|
/**
|
|
1627
1580
|
* Serializes the given message to binary data (in protobuf wire
|
|
1628
1581
|
* format), writing to the given BinaryWriter.
|
|
1629
|
-
* @param {!proto.wechaty.puppet.
|
|
1582
|
+
* @param {!proto.wechaty.puppet.PostTapResponse} message
|
|
1630
1583
|
* @param {!jspb.BinaryWriter} writer
|
|
1631
1584
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1632
1585
|
*/
|
|
1633
|
-
proto.wechaty.puppet.
|
|
1586
|
+
proto.wechaty.puppet.PostTapResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1634
1587
|
var f = undefined;
|
|
1635
|
-
f = message.
|
|
1636
|
-
if (f
|
|
1637
|
-
writer.
|
|
1588
|
+
f = message.getTap();
|
|
1589
|
+
if (f) {
|
|
1590
|
+
writer.writeBool(
|
|
1638
1591
|
1,
|
|
1639
1592
|
f
|
|
1640
1593
|
);
|
|
@@ -1643,20 +1596,20 @@ proto.wechaty.puppet.PostCommentResponse.serializeBinaryToWriter = function(mess
|
|
|
1643
1596
|
|
|
1644
1597
|
|
|
1645
1598
|
/**
|
|
1646
|
-
* optional
|
|
1647
|
-
* @return {
|
|
1599
|
+
* optional bool tap = 1;
|
|
1600
|
+
* @return {boolean}
|
|
1648
1601
|
*/
|
|
1649
|
-
proto.wechaty.puppet.
|
|
1650
|
-
return /** @type {
|
|
1602
|
+
proto.wechaty.puppet.PostTapResponse.prototype.getTap = function() {
|
|
1603
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
1651
1604
|
};
|
|
1652
1605
|
|
|
1653
1606
|
|
|
1654
1607
|
/**
|
|
1655
|
-
* @param {
|
|
1656
|
-
* @return {!proto.wechaty.puppet.
|
|
1608
|
+
* @param {boolean} value
|
|
1609
|
+
* @return {!proto.wechaty.puppet.PostTapResponse} returns this
|
|
1657
1610
|
*/
|
|
1658
|
-
proto.wechaty.puppet.
|
|
1659
|
-
return jspb.Message.
|
|
1611
|
+
proto.wechaty.puppet.PostTapResponse.prototype.setTap = function(value) {
|
|
1612
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
1660
1613
|
};
|
|
1661
1614
|
|
|
1662
1615
|
|
|
@@ -1676,8 +1629,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1676
1629
|
* http://goto/soy-param-migration
|
|
1677
1630
|
* @return {!Object}
|
|
1678
1631
|
*/
|
|
1679
|
-
proto.wechaty.puppet.
|
|
1680
|
-
return proto.wechaty.puppet.
|
|
1632
|
+
proto.wechaty.puppet.PostLikeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1633
|
+
return proto.wechaty.puppet.PostLikeResponse.toObject(opt_includeInstance, this);
|
|
1681
1634
|
};
|
|
1682
1635
|
|
|
1683
1636
|
|
|
@@ -1686,13 +1639,13 @@ proto.wechaty.puppet.PostLikeRequest.prototype.toObject = function(opt_includeIn
|
|
|
1686
1639
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1687
1640
|
* the JSPB instance for transitional soy proto support:
|
|
1688
1641
|
* http://goto/soy-param-migration
|
|
1689
|
-
* @param {!proto.wechaty.puppet.
|
|
1642
|
+
* @param {!proto.wechaty.puppet.PostLikeResponse} msg The msg instance to transform.
|
|
1690
1643
|
* @return {!Object}
|
|
1691
1644
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1692
1645
|
*/
|
|
1693
|
-
proto.wechaty.puppet.
|
|
1646
|
+
proto.wechaty.puppet.PostLikeResponse.toObject = function(includeInstance, msg) {
|
|
1694
1647
|
var f, obj = {
|
|
1695
|
-
|
|
1648
|
+
tapId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1696
1649
|
};
|
|
1697
1650
|
|
|
1698
1651
|
if (includeInstance) {
|
|
@@ -1706,23 +1659,23 @@ proto.wechaty.puppet.PostLikeRequest.toObject = function(includeInstance, msg) {
|
|
|
1706
1659
|
/**
|
|
1707
1660
|
* Deserializes binary data (in protobuf wire format).
|
|
1708
1661
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1709
|
-
* @return {!proto.wechaty.puppet.
|
|
1662
|
+
* @return {!proto.wechaty.puppet.PostLikeResponse}
|
|
1710
1663
|
*/
|
|
1711
|
-
proto.wechaty.puppet.
|
|
1664
|
+
proto.wechaty.puppet.PostLikeResponse.deserializeBinary = function(bytes) {
|
|
1712
1665
|
var reader = new jspb.BinaryReader(bytes);
|
|
1713
|
-
var msg = new proto.wechaty.puppet.
|
|
1714
|
-
return proto.wechaty.puppet.
|
|
1666
|
+
var msg = new proto.wechaty.puppet.PostLikeResponse;
|
|
1667
|
+
return proto.wechaty.puppet.PostLikeResponse.deserializeBinaryFromReader(msg, reader);
|
|
1715
1668
|
};
|
|
1716
1669
|
|
|
1717
1670
|
|
|
1718
1671
|
/**
|
|
1719
1672
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1720
1673
|
* given reader into the given message object.
|
|
1721
|
-
* @param {!proto.wechaty.puppet.
|
|
1674
|
+
* @param {!proto.wechaty.puppet.PostLikeResponse} msg The message object to deserialize into.
|
|
1722
1675
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1723
|
-
* @return {!proto.wechaty.puppet.
|
|
1676
|
+
* @return {!proto.wechaty.puppet.PostLikeResponse}
|
|
1724
1677
|
*/
|
|
1725
|
-
proto.wechaty.puppet.
|
|
1678
|
+
proto.wechaty.puppet.PostLikeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1726
1679
|
while (reader.nextField()) {
|
|
1727
1680
|
if (reader.isEndGroup()) {
|
|
1728
1681
|
break;
|
|
@@ -1731,7 +1684,7 @@ proto.wechaty.puppet.PostLikeRequest.deserializeBinaryFromReader = function(msg,
|
|
|
1731
1684
|
switch (field) {
|
|
1732
1685
|
case 1:
|
|
1733
1686
|
var value = /** @type {string} */ (reader.readString());
|
|
1734
|
-
msg.
|
|
1687
|
+
msg.setTapId(value);
|
|
1735
1688
|
break;
|
|
1736
1689
|
default:
|
|
1737
1690
|
reader.skipField();
|
|
@@ -1746,9 +1699,9 @@ proto.wechaty.puppet.PostLikeRequest.deserializeBinaryFromReader = function(msg,
|
|
|
1746
1699
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1747
1700
|
* @return {!Uint8Array}
|
|
1748
1701
|
*/
|
|
1749
|
-
proto.wechaty.puppet.
|
|
1702
|
+
proto.wechaty.puppet.PostLikeResponse.prototype.serializeBinary = function() {
|
|
1750
1703
|
var writer = new jspb.BinaryWriter();
|
|
1751
|
-
proto.wechaty.puppet.
|
|
1704
|
+
proto.wechaty.puppet.PostLikeResponse.serializeBinaryToWriter(this, writer);
|
|
1752
1705
|
return writer.getResultBuffer();
|
|
1753
1706
|
};
|
|
1754
1707
|
|
|
@@ -1756,13 +1709,13 @@ proto.wechaty.puppet.PostLikeRequest.prototype.serializeBinary = function() {
|
|
|
1756
1709
|
/**
|
|
1757
1710
|
* Serializes the given message to binary data (in protobuf wire
|
|
1758
1711
|
* format), writing to the given BinaryWriter.
|
|
1759
|
-
* @param {!proto.wechaty.puppet.
|
|
1712
|
+
* @param {!proto.wechaty.puppet.PostLikeResponse} message
|
|
1760
1713
|
* @param {!jspb.BinaryWriter} writer
|
|
1761
1714
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1762
1715
|
*/
|
|
1763
|
-
proto.wechaty.puppet.
|
|
1716
|
+
proto.wechaty.puppet.PostLikeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1764
1717
|
var f = undefined;
|
|
1765
|
-
f = message.
|
|
1718
|
+
f = message.getTapId();
|
|
1766
1719
|
if (f.length > 0) {
|
|
1767
1720
|
writer.writeString(
|
|
1768
1721
|
1,
|
|
@@ -1773,19 +1726,19 @@ proto.wechaty.puppet.PostLikeRequest.serializeBinaryToWriter = function(message,
|
|
|
1773
1726
|
|
|
1774
1727
|
|
|
1775
1728
|
/**
|
|
1776
|
-
* optional string
|
|
1729
|
+
* optional string tap_id = 1;
|
|
1777
1730
|
* @return {string}
|
|
1778
1731
|
*/
|
|
1779
|
-
proto.wechaty.puppet.
|
|
1732
|
+
proto.wechaty.puppet.PostLikeResponse.prototype.getTapId = function() {
|
|
1780
1733
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1781
1734
|
};
|
|
1782
1735
|
|
|
1783
1736
|
|
|
1784
1737
|
/**
|
|
1785
1738
|
* @param {string} value
|
|
1786
|
-
* @return {!proto.wechaty.puppet.
|
|
1739
|
+
* @return {!proto.wechaty.puppet.PostLikeResponse} returns this
|
|
1787
1740
|
*/
|
|
1788
|
-
proto.wechaty.puppet.
|
|
1741
|
+
proto.wechaty.puppet.PostLikeResponse.prototype.setTapId = function(value) {
|
|
1789
1742
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1790
1743
|
};
|
|
1791
1744
|
|
|
@@ -1793,107 +1746,6 @@ proto.wechaty.puppet.PostLikeRequest.prototype.setPostId = function(value) {
|
|
|
1793
1746
|
|
|
1794
1747
|
|
|
1795
1748
|
|
|
1796
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1797
|
-
/**
|
|
1798
|
-
* Creates an object representation of this proto.
|
|
1799
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1800
|
-
* Optional fields that are not set will be set to undefined.
|
|
1801
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1802
|
-
* For the list of reserved names please see:
|
|
1803
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1804
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1805
|
-
* JSPB instance for transitional soy proto support:
|
|
1806
|
-
* http://goto/soy-param-migration
|
|
1807
|
-
* @return {!Object}
|
|
1808
|
-
*/
|
|
1809
|
-
proto.wechaty.puppet.PostLikeResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1810
|
-
return proto.wechaty.puppet.PostLikeResponse.toObject(opt_includeInstance, this);
|
|
1811
|
-
};
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
* Static version of the {@see toObject} method.
|
|
1816
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1817
|
-
* the JSPB instance for transitional soy proto support:
|
|
1818
|
-
* http://goto/soy-param-migration
|
|
1819
|
-
* @param {!proto.wechaty.puppet.PostLikeResponse} msg The msg instance to transform.
|
|
1820
|
-
* @return {!Object}
|
|
1821
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1822
|
-
*/
|
|
1823
|
-
proto.wechaty.puppet.PostLikeResponse.toObject = function(includeInstance, msg) {
|
|
1824
|
-
var f, obj = {
|
|
1825
|
-
|
|
1826
|
-
};
|
|
1827
|
-
|
|
1828
|
-
if (includeInstance) {
|
|
1829
|
-
obj.$jspbMessageInstance = msg;
|
|
1830
|
-
}
|
|
1831
|
-
return obj;
|
|
1832
|
-
};
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1838
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1839
|
-
* @return {!proto.wechaty.puppet.PostLikeResponse}
|
|
1840
|
-
*/
|
|
1841
|
-
proto.wechaty.puppet.PostLikeResponse.deserializeBinary = function(bytes) {
|
|
1842
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1843
|
-
var msg = new proto.wechaty.puppet.PostLikeResponse;
|
|
1844
|
-
return proto.wechaty.puppet.PostLikeResponse.deserializeBinaryFromReader(msg, reader);
|
|
1845
|
-
};
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
/**
|
|
1849
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1850
|
-
* given reader into the given message object.
|
|
1851
|
-
* @param {!proto.wechaty.puppet.PostLikeResponse} msg The message object to deserialize into.
|
|
1852
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1853
|
-
* @return {!proto.wechaty.puppet.PostLikeResponse}
|
|
1854
|
-
*/
|
|
1855
|
-
proto.wechaty.puppet.PostLikeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1856
|
-
while (reader.nextField()) {
|
|
1857
|
-
if (reader.isEndGroup()) {
|
|
1858
|
-
break;
|
|
1859
|
-
}
|
|
1860
|
-
var field = reader.getFieldNumber();
|
|
1861
|
-
switch (field) {
|
|
1862
|
-
default:
|
|
1863
|
-
reader.skipField();
|
|
1864
|
-
break;
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
return msg;
|
|
1868
|
-
};
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
/**
|
|
1872
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1873
|
-
* @return {!Uint8Array}
|
|
1874
|
-
*/
|
|
1875
|
-
proto.wechaty.puppet.PostLikeResponse.prototype.serializeBinary = function() {
|
|
1876
|
-
var writer = new jspb.BinaryWriter();
|
|
1877
|
-
proto.wechaty.puppet.PostLikeResponse.serializeBinaryToWriter(this, writer);
|
|
1878
|
-
return writer.getResultBuffer();
|
|
1879
|
-
};
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1884
|
-
* format), writing to the given BinaryWriter.
|
|
1885
|
-
* @param {!proto.wechaty.puppet.PostLikeResponse} message
|
|
1886
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1887
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1888
|
-
*/
|
|
1889
|
-
proto.wechaty.puppet.PostLikeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1890
|
-
var f = undefined;
|
|
1891
|
-
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
1749
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1898
1750
|
/**
|
|
1899
1751
|
* Creates an object representation of this proto.
|
|
@@ -2503,4 +2355,12 @@ proto.wechaty.puppet.SayableType = {
|
|
|
2503
2355
|
SAYABLE_TYPE_CHANNEL: 3
|
|
2504
2356
|
};
|
|
2505
2357
|
|
|
2358
|
+
/**
|
|
2359
|
+
* @enum {number}
|
|
2360
|
+
*/
|
|
2361
|
+
proto.wechaty.puppet.TapType = {
|
|
2362
|
+
TAP_TYPE_UNSPECIFIED: 0,
|
|
2363
|
+
TAP_TYPE_LIKE: 1
|
|
2364
|
+
};
|
|
2365
|
+
|
|
2506
2366
|
goog.object.extend(exports, proto.wechaty.puppet);
|