@juzi/wechaty-grpc 1.0.18 → 1.0.20
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/event_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +3 -1
- package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +0 -172
- package/dist/cjs/out/wechaty/puppet/moment_pb.js +87 -1406
- package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +172 -0
- package/dist/cjs/out/wechaty/puppet/post_pb.js +1319 -0
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +74 -72
- package/dist/cjs/out/wechaty/puppet.swagger.json +100 -98
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +56 -56
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +103 -103
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +41 -40
- package/dist/cjs/out/wechaty/puppet_pb_service.js +25 -24
- package/dist/cjs/proto/wechaty/puppet/event.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/moment.proto +0 -33
- package/dist/cjs/proto/wechaty/puppet/post.proto +34 -0
- package/dist/cjs/proto/wechaty/puppet.proto +9 -9
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +4 -4
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +3 -1
- package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +0 -172
- package/dist/esm/out/wechaty/puppet/moment_pb.js +87 -1406
- package/dist/esm/out/wechaty/puppet/post_pb.d.ts +172 -0
- package/dist/esm/out/wechaty/puppet/post_pb.js +1319 -0
- package/dist/esm/out/wechaty/puppet.openapi.yaml +74 -72
- package/dist/esm/out/wechaty/puppet.swagger.json +100 -98
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +56 -56
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +103 -103
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +41 -40
- package/dist/esm/out/wechaty/puppet_pb_service.js +25 -24
- package/dist/esm/proto/wechaty/puppet/event.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/moment.proto +0 -33
- package/dist/esm/proto/wechaty/puppet/post.proto +34 -0
- package/dist/esm/proto/wechaty/puppet.proto +9 -9
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.js +4 -4
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/out/wechaty/puppet/event_pb.js +3 -1
- package/out/wechaty/puppet/moment_pb.d.ts +0 -172
- package/out/wechaty/puppet/moment_pb.js +87 -1406
- package/out/wechaty/puppet/post_pb.d.ts +172 -0
- package/out/wechaty/puppet/post_pb.js +1319 -0
- package/out/wechaty/puppet.openapi.yaml +74 -72
- package/out/wechaty/puppet.swagger.json +100 -98
- package/out/wechaty/puppet_grpc_pb.d.ts +56 -56
- package/out/wechaty/puppet_grpc_pb.js +103 -103
- package/out/wechaty/puppet_pb_service.d.ts +41 -40
- package/out/wechaty/puppet_pb_service.js +25 -24
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -17,16 +17,8 @@ var global = (function() { return this || window || global || self || Function('
|
|
|
17
17
|
|
|
18
18
|
var wechaty_puppet_post_pb = require('../../wechaty/puppet/post_pb.js');
|
|
19
19
|
goog.object.extend(proto, wechaty_puppet_post_pb);
|
|
20
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentCommentRequest', null, global);
|
|
21
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentCommentResponse', null, global);
|
|
22
20
|
goog.exportSymbol('proto.wechaty.puppet.MomentCoverageRequest', null, global);
|
|
23
21
|
goog.exportSymbol('proto.wechaty.puppet.MomentCoverageResponse', null, global);
|
|
24
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentLikeRequest', null, global);
|
|
25
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentLikeResponse', null, global);
|
|
26
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentPayloadRequest', null, global);
|
|
27
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentPayloadResponse', null, global);
|
|
28
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentPayloadSayableRequest', null, global);
|
|
29
|
-
goog.exportSymbol('proto.wechaty.puppet.MomentPayloadSayableResponse', null, global);
|
|
30
22
|
goog.exportSymbol('proto.wechaty.puppet.MomentPublishRequest', null, global);
|
|
31
23
|
goog.exportSymbol('proto.wechaty.puppet.MomentPublishResponse', null, global);
|
|
32
24
|
goog.exportSymbol('proto.wechaty.puppet.MomentSignatureRequest', null, global);
|
|
@@ -73,90 +65,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
73
65
|
*/
|
|
74
66
|
proto.wechaty.puppet.MomentPublishResponse.displayName = 'proto.wechaty.puppet.MomentPublishResponse';
|
|
75
67
|
}
|
|
76
|
-
/**
|
|
77
|
-
* Generated by JsPbCodeGenerator.
|
|
78
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
79
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
80
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
81
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
82
|
-
* valid.
|
|
83
|
-
* @extends {jspb.Message}
|
|
84
|
-
* @constructor
|
|
85
|
-
*/
|
|
86
|
-
proto.wechaty.puppet.MomentCommentRequest = function(opt_data) {
|
|
87
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
88
|
-
};
|
|
89
|
-
goog.inherits(proto.wechaty.puppet.MomentCommentRequest, jspb.Message);
|
|
90
|
-
if (goog.DEBUG && !COMPILED) {
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
* @override
|
|
94
|
-
*/
|
|
95
|
-
proto.wechaty.puppet.MomentCommentRequest.displayName = 'proto.wechaty.puppet.MomentCommentRequest';
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Generated by JsPbCodeGenerator.
|
|
99
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
100
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
101
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
102
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
103
|
-
* valid.
|
|
104
|
-
* @extends {jspb.Message}
|
|
105
|
-
* @constructor
|
|
106
|
-
*/
|
|
107
|
-
proto.wechaty.puppet.MomentCommentResponse = function(opt_data) {
|
|
108
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
109
|
-
};
|
|
110
|
-
goog.inherits(proto.wechaty.puppet.MomentCommentResponse, jspb.Message);
|
|
111
|
-
if (goog.DEBUG && !COMPILED) {
|
|
112
|
-
/**
|
|
113
|
-
* @public
|
|
114
|
-
* @override
|
|
115
|
-
*/
|
|
116
|
-
proto.wechaty.puppet.MomentCommentResponse.displayName = 'proto.wechaty.puppet.MomentCommentResponse';
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Generated by JsPbCodeGenerator.
|
|
120
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
121
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
122
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
123
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
124
|
-
* valid.
|
|
125
|
-
* @extends {jspb.Message}
|
|
126
|
-
* @constructor
|
|
127
|
-
*/
|
|
128
|
-
proto.wechaty.puppet.MomentLikeRequest = function(opt_data) {
|
|
129
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
130
|
-
};
|
|
131
|
-
goog.inherits(proto.wechaty.puppet.MomentLikeRequest, jspb.Message);
|
|
132
|
-
if (goog.DEBUG && !COMPILED) {
|
|
133
|
-
/**
|
|
134
|
-
* @public
|
|
135
|
-
* @override
|
|
136
|
-
*/
|
|
137
|
-
proto.wechaty.puppet.MomentLikeRequest.displayName = 'proto.wechaty.puppet.MomentLikeRequest';
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Generated by JsPbCodeGenerator.
|
|
141
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
142
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
143
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
144
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
145
|
-
* valid.
|
|
146
|
-
* @extends {jspb.Message}
|
|
147
|
-
* @constructor
|
|
148
|
-
*/
|
|
149
|
-
proto.wechaty.puppet.MomentLikeResponse = function(opt_data) {
|
|
150
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
151
|
-
};
|
|
152
|
-
goog.inherits(proto.wechaty.puppet.MomentLikeResponse, jspb.Message);
|
|
153
|
-
if (goog.DEBUG && !COMPILED) {
|
|
154
|
-
/**
|
|
155
|
-
* @public
|
|
156
|
-
* @override
|
|
157
|
-
*/
|
|
158
|
-
proto.wechaty.puppet.MomentLikeResponse.displayName = 'proto.wechaty.puppet.MomentLikeResponse';
|
|
159
|
-
}
|
|
160
68
|
/**
|
|
161
69
|
* Generated by JsPbCodeGenerator.
|
|
162
70
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -241,90 +149,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
241
149
|
*/
|
|
242
150
|
proto.wechaty.puppet.MomentCoverageResponse.displayName = 'proto.wechaty.puppet.MomentCoverageResponse';
|
|
243
151
|
}
|
|
244
|
-
/**
|
|
245
|
-
* Generated by JsPbCodeGenerator.
|
|
246
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
247
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
248
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
249
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
250
|
-
* valid.
|
|
251
|
-
* @extends {jspb.Message}
|
|
252
|
-
* @constructor
|
|
253
|
-
*/
|
|
254
|
-
proto.wechaty.puppet.MomentPayloadRequest = function(opt_data) {
|
|
255
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
256
|
-
};
|
|
257
|
-
goog.inherits(proto.wechaty.puppet.MomentPayloadRequest, jspb.Message);
|
|
258
|
-
if (goog.DEBUG && !COMPILED) {
|
|
259
|
-
/**
|
|
260
|
-
* @public
|
|
261
|
-
* @override
|
|
262
|
-
*/
|
|
263
|
-
proto.wechaty.puppet.MomentPayloadRequest.displayName = 'proto.wechaty.puppet.MomentPayloadRequest';
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Generated by JsPbCodeGenerator.
|
|
267
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
268
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
269
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
270
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
271
|
-
* valid.
|
|
272
|
-
* @extends {jspb.Message}
|
|
273
|
-
* @constructor
|
|
274
|
-
*/
|
|
275
|
-
proto.wechaty.puppet.MomentPayloadResponse = function(opt_data) {
|
|
276
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
277
|
-
};
|
|
278
|
-
goog.inherits(proto.wechaty.puppet.MomentPayloadResponse, jspb.Message);
|
|
279
|
-
if (goog.DEBUG && !COMPILED) {
|
|
280
|
-
/**
|
|
281
|
-
* @public
|
|
282
|
-
* @override
|
|
283
|
-
*/
|
|
284
|
-
proto.wechaty.puppet.MomentPayloadResponse.displayName = 'proto.wechaty.puppet.MomentPayloadResponse';
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Generated by JsPbCodeGenerator.
|
|
288
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
289
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
290
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
291
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
292
|
-
* valid.
|
|
293
|
-
* @extends {jspb.Message}
|
|
294
|
-
* @constructor
|
|
295
|
-
*/
|
|
296
|
-
proto.wechaty.puppet.MomentPayloadSayableRequest = function(opt_data) {
|
|
297
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
298
|
-
};
|
|
299
|
-
goog.inherits(proto.wechaty.puppet.MomentPayloadSayableRequest, jspb.Message);
|
|
300
|
-
if (goog.DEBUG && !COMPILED) {
|
|
301
|
-
/**
|
|
302
|
-
* @public
|
|
303
|
-
* @override
|
|
304
|
-
*/
|
|
305
|
-
proto.wechaty.puppet.MomentPayloadSayableRequest.displayName = 'proto.wechaty.puppet.MomentPayloadSayableRequest';
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Generated by JsPbCodeGenerator.
|
|
309
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
310
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
311
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
312
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
313
|
-
* valid.
|
|
314
|
-
* @extends {jspb.Message}
|
|
315
|
-
* @constructor
|
|
316
|
-
*/
|
|
317
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse = function(opt_data) {
|
|
318
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
319
|
-
};
|
|
320
|
-
goog.inherits(proto.wechaty.puppet.MomentPayloadSayableResponse, jspb.Message);
|
|
321
|
-
if (goog.DEBUG && !COMPILED) {
|
|
322
|
-
/**
|
|
323
|
-
* @public
|
|
324
|
-
* @override
|
|
325
|
-
*/
|
|
326
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.displayName = 'proto.wechaty.puppet.MomentPayloadSayableResponse';
|
|
327
|
-
}
|
|
328
152
|
|
|
329
153
|
|
|
330
154
|
|
|
@@ -622,8 +446,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
622
446
|
* http://goto/soy-param-migration
|
|
623
447
|
* @return {!Object}
|
|
624
448
|
*/
|
|
625
|
-
proto.wechaty.puppet.
|
|
626
|
-
return proto.wechaty.puppet.
|
|
449
|
+
proto.wechaty.puppet.MomentSignatureRequest.prototype.toObject = function(opt_includeInstance) {
|
|
450
|
+
return proto.wechaty.puppet.MomentSignatureRequest.toObject(opt_includeInstance, this);
|
|
627
451
|
};
|
|
628
452
|
|
|
629
453
|
|
|
@@ -632,15 +456,13 @@ proto.wechaty.puppet.MomentCommentRequest.prototype.toObject = function(opt_incl
|
|
|
632
456
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
633
457
|
* the JSPB instance for transitional soy proto support:
|
|
634
458
|
* http://goto/soy-param-migration
|
|
635
|
-
* @param {!proto.wechaty.puppet.
|
|
459
|
+
* @param {!proto.wechaty.puppet.MomentSignatureRequest} msg The msg instance to transform.
|
|
636
460
|
* @return {!Object}
|
|
637
461
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
638
462
|
*/
|
|
639
|
-
proto.wechaty.puppet.
|
|
463
|
+
proto.wechaty.puppet.MomentSignatureRequest.toObject = function(includeInstance, msg) {
|
|
640
464
|
var f, obj = {
|
|
641
|
-
|
|
642
|
-
text: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
643
|
-
mentionId: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
465
|
+
text: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
644
466
|
};
|
|
645
467
|
|
|
646
468
|
if (includeInstance) {
|
|
@@ -654,23 +476,23 @@ proto.wechaty.puppet.MomentCommentRequest.toObject = function(includeInstance, m
|
|
|
654
476
|
/**
|
|
655
477
|
* Deserializes binary data (in protobuf wire format).
|
|
656
478
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
657
|
-
* @return {!proto.wechaty.puppet.
|
|
479
|
+
* @return {!proto.wechaty.puppet.MomentSignatureRequest}
|
|
658
480
|
*/
|
|
659
|
-
proto.wechaty.puppet.
|
|
481
|
+
proto.wechaty.puppet.MomentSignatureRequest.deserializeBinary = function(bytes) {
|
|
660
482
|
var reader = new jspb.BinaryReader(bytes);
|
|
661
|
-
var msg = new proto.wechaty.puppet.
|
|
662
|
-
return proto.wechaty.puppet.
|
|
483
|
+
var msg = new proto.wechaty.puppet.MomentSignatureRequest;
|
|
484
|
+
return proto.wechaty.puppet.MomentSignatureRequest.deserializeBinaryFromReader(msg, reader);
|
|
663
485
|
};
|
|
664
486
|
|
|
665
487
|
|
|
666
488
|
/**
|
|
667
489
|
* Deserializes binary data (in protobuf wire format) from the
|
|
668
490
|
* given reader into the given message object.
|
|
669
|
-
* @param {!proto.wechaty.puppet.
|
|
491
|
+
* @param {!proto.wechaty.puppet.MomentSignatureRequest} msg The message object to deserialize into.
|
|
670
492
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
671
|
-
* @return {!proto.wechaty.puppet.
|
|
493
|
+
* @return {!proto.wechaty.puppet.MomentSignatureRequest}
|
|
672
494
|
*/
|
|
673
|
-
proto.wechaty.puppet.
|
|
495
|
+
proto.wechaty.puppet.MomentSignatureRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
674
496
|
while (reader.nextField()) {
|
|
675
497
|
if (reader.isEndGroup()) {
|
|
676
498
|
break;
|
|
@@ -678,17 +500,9 @@ proto.wechaty.puppet.MomentCommentRequest.deserializeBinaryFromReader = function
|
|
|
678
500
|
var field = reader.getFieldNumber();
|
|
679
501
|
switch (field) {
|
|
680
502
|
case 1:
|
|
681
|
-
var value = /** @type {string} */ (reader.readString());
|
|
682
|
-
msg.setMomentId(value);
|
|
683
|
-
break;
|
|
684
|
-
case 2:
|
|
685
503
|
var value = /** @type {string} */ (reader.readString());
|
|
686
504
|
msg.setText(value);
|
|
687
505
|
break;
|
|
688
|
-
case 3:
|
|
689
|
-
var value = /** @type {string} */ (reader.readString());
|
|
690
|
-
msg.setMentionId(value);
|
|
691
|
-
break;
|
|
692
506
|
default:
|
|
693
507
|
reader.skipField();
|
|
694
508
|
break;
|
|
@@ -702,9 +516,9 @@ proto.wechaty.puppet.MomentCommentRequest.deserializeBinaryFromReader = function
|
|
|
702
516
|
* Serializes the message to binary data (in protobuf wire format).
|
|
703
517
|
* @return {!Uint8Array}
|
|
704
518
|
*/
|
|
705
|
-
proto.wechaty.puppet.
|
|
519
|
+
proto.wechaty.puppet.MomentSignatureRequest.prototype.serializeBinary = function() {
|
|
706
520
|
var writer = new jspb.BinaryWriter();
|
|
707
|
-
proto.wechaty.puppet.
|
|
521
|
+
proto.wechaty.puppet.MomentSignatureRequest.serializeBinaryToWriter(this, writer);
|
|
708
522
|
return writer.getResultBuffer();
|
|
709
523
|
};
|
|
710
524
|
|
|
@@ -712,30 +526,16 @@ proto.wechaty.puppet.MomentCommentRequest.prototype.serializeBinary = function()
|
|
|
712
526
|
/**
|
|
713
527
|
* Serializes the given message to binary data (in protobuf wire
|
|
714
528
|
* format), writing to the given BinaryWriter.
|
|
715
|
-
* @param {!proto.wechaty.puppet.
|
|
529
|
+
* @param {!proto.wechaty.puppet.MomentSignatureRequest} message
|
|
716
530
|
* @param {!jspb.BinaryWriter} writer
|
|
717
531
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
718
532
|
*/
|
|
719
|
-
proto.wechaty.puppet.
|
|
533
|
+
proto.wechaty.puppet.MomentSignatureRequest.serializeBinaryToWriter = function(message, writer) {
|
|
720
534
|
var f = undefined;
|
|
721
|
-
f = message.getMomentId();
|
|
722
|
-
if (f.length > 0) {
|
|
723
|
-
writer.writeString(
|
|
724
|
-
1,
|
|
725
|
-
f
|
|
726
|
-
);
|
|
727
|
-
}
|
|
728
535
|
f = message.getText();
|
|
729
536
|
if (f.length > 0) {
|
|
730
537
|
writer.writeString(
|
|
731
|
-
|
|
732
|
-
f
|
|
733
|
-
);
|
|
734
|
-
}
|
|
735
|
-
f = message.getMentionId();
|
|
736
|
-
if (f.length > 0) {
|
|
737
|
-
writer.writeString(
|
|
738
|
-
3,
|
|
538
|
+
1,
|
|
739
539
|
f
|
|
740
540
|
);
|
|
741
541
|
}
|
|
@@ -743,59 +543,23 @@ proto.wechaty.puppet.MomentCommentRequest.serializeBinaryToWriter = function(mes
|
|
|
743
543
|
|
|
744
544
|
|
|
745
545
|
/**
|
|
746
|
-
* optional string
|
|
546
|
+
* optional string text = 1;
|
|
747
547
|
* @return {string}
|
|
748
548
|
*/
|
|
749
|
-
proto.wechaty.puppet.
|
|
549
|
+
proto.wechaty.puppet.MomentSignatureRequest.prototype.getText = function() {
|
|
750
550
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
751
551
|
};
|
|
752
552
|
|
|
753
553
|
|
|
754
554
|
/**
|
|
755
555
|
* @param {string} value
|
|
756
|
-
* @return {!proto.wechaty.puppet.
|
|
556
|
+
* @return {!proto.wechaty.puppet.MomentSignatureRequest} returns this
|
|
757
557
|
*/
|
|
758
|
-
proto.wechaty.puppet.
|
|
558
|
+
proto.wechaty.puppet.MomentSignatureRequest.prototype.setText = function(value) {
|
|
759
559
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
760
560
|
};
|
|
761
561
|
|
|
762
562
|
|
|
763
|
-
/**
|
|
764
|
-
* optional string text = 2;
|
|
765
|
-
* @return {string}
|
|
766
|
-
*/
|
|
767
|
-
proto.wechaty.puppet.MomentCommentRequest.prototype.getText = function() {
|
|
768
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
769
|
-
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
/**
|
|
773
|
-
* @param {string} value
|
|
774
|
-
* @return {!proto.wechaty.puppet.MomentCommentRequest} returns this
|
|
775
|
-
*/
|
|
776
|
-
proto.wechaty.puppet.MomentCommentRequest.prototype.setText = function(value) {
|
|
777
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
778
|
-
};
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* optional string mention_id = 3;
|
|
783
|
-
* @return {string}
|
|
784
|
-
*/
|
|
785
|
-
proto.wechaty.puppet.MomentCommentRequest.prototype.getMentionId = function() {
|
|
786
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
787
|
-
};
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
/**
|
|
791
|
-
* @param {string} value
|
|
792
|
-
* @return {!proto.wechaty.puppet.MomentCommentRequest} returns this
|
|
793
|
-
*/
|
|
794
|
-
proto.wechaty.puppet.MomentCommentRequest.prototype.setMentionId = function(value) {
|
|
795
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
|
|
799
563
|
|
|
800
564
|
|
|
801
565
|
|
|
@@ -812,8 +576,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
812
576
|
* http://goto/soy-param-migration
|
|
813
577
|
* @return {!Object}
|
|
814
578
|
*/
|
|
815
|
-
proto.wechaty.puppet.
|
|
816
|
-
return proto.wechaty.puppet.
|
|
579
|
+
proto.wechaty.puppet.MomentSignatureResponse.prototype.toObject = function(opt_includeInstance) {
|
|
580
|
+
return proto.wechaty.puppet.MomentSignatureResponse.toObject(opt_includeInstance, this);
|
|
817
581
|
};
|
|
818
582
|
|
|
819
583
|
|
|
@@ -822,13 +586,13 @@ proto.wechaty.puppet.MomentCommentResponse.prototype.toObject = function(opt_inc
|
|
|
822
586
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
823
587
|
* the JSPB instance for transitional soy proto support:
|
|
824
588
|
* http://goto/soy-param-migration
|
|
825
|
-
* @param {!proto.wechaty.puppet.
|
|
589
|
+
* @param {!proto.wechaty.puppet.MomentSignatureResponse} msg The msg instance to transform.
|
|
826
590
|
* @return {!Object}
|
|
827
591
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
828
592
|
*/
|
|
829
|
-
proto.wechaty.puppet.
|
|
593
|
+
proto.wechaty.puppet.MomentSignatureResponse.toObject = function(includeInstance, msg) {
|
|
830
594
|
var f, obj = {
|
|
831
|
-
|
|
595
|
+
text: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
832
596
|
};
|
|
833
597
|
|
|
834
598
|
if (includeInstance) {
|
|
@@ -842,23 +606,23 @@ proto.wechaty.puppet.MomentCommentResponse.toObject = function(includeInstance,
|
|
|
842
606
|
/**
|
|
843
607
|
* Deserializes binary data (in protobuf wire format).
|
|
844
608
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
845
|
-
* @return {!proto.wechaty.puppet.
|
|
609
|
+
* @return {!proto.wechaty.puppet.MomentSignatureResponse}
|
|
846
610
|
*/
|
|
847
|
-
proto.wechaty.puppet.
|
|
611
|
+
proto.wechaty.puppet.MomentSignatureResponse.deserializeBinary = function(bytes) {
|
|
848
612
|
var reader = new jspb.BinaryReader(bytes);
|
|
849
|
-
var msg = new proto.wechaty.puppet.
|
|
850
|
-
return proto.wechaty.puppet.
|
|
613
|
+
var msg = new proto.wechaty.puppet.MomentSignatureResponse;
|
|
614
|
+
return proto.wechaty.puppet.MomentSignatureResponse.deserializeBinaryFromReader(msg, reader);
|
|
851
615
|
};
|
|
852
616
|
|
|
853
617
|
|
|
854
618
|
/**
|
|
855
619
|
* Deserializes binary data (in protobuf wire format) from the
|
|
856
620
|
* given reader into the given message object.
|
|
857
|
-
* @param {!proto.wechaty.puppet.
|
|
621
|
+
* @param {!proto.wechaty.puppet.MomentSignatureResponse} msg The message object to deserialize into.
|
|
858
622
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
859
|
-
* @return {!proto.wechaty.puppet.
|
|
623
|
+
* @return {!proto.wechaty.puppet.MomentSignatureResponse}
|
|
860
624
|
*/
|
|
861
|
-
proto.wechaty.puppet.
|
|
625
|
+
proto.wechaty.puppet.MomentSignatureResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
862
626
|
while (reader.nextField()) {
|
|
863
627
|
if (reader.isEndGroup()) {
|
|
864
628
|
break;
|
|
@@ -867,7 +631,7 @@ proto.wechaty.puppet.MomentCommentResponse.deserializeBinaryFromReader = functio
|
|
|
867
631
|
switch (field) {
|
|
868
632
|
case 1:
|
|
869
633
|
var value = /** @type {string} */ (reader.readString());
|
|
870
|
-
msg.
|
|
634
|
+
msg.setText(value);
|
|
871
635
|
break;
|
|
872
636
|
default:
|
|
873
637
|
reader.skipField();
|
|
@@ -882,9 +646,9 @@ proto.wechaty.puppet.MomentCommentResponse.deserializeBinaryFromReader = functio
|
|
|
882
646
|
* Serializes the message to binary data (in protobuf wire format).
|
|
883
647
|
* @return {!Uint8Array}
|
|
884
648
|
*/
|
|
885
|
-
proto.wechaty.puppet.
|
|
649
|
+
proto.wechaty.puppet.MomentSignatureResponse.prototype.serializeBinary = function() {
|
|
886
650
|
var writer = new jspb.BinaryWriter();
|
|
887
|
-
proto.wechaty.puppet.
|
|
651
|
+
proto.wechaty.puppet.MomentSignatureResponse.serializeBinaryToWriter(this, writer);
|
|
888
652
|
return writer.getResultBuffer();
|
|
889
653
|
};
|
|
890
654
|
|
|
@@ -892,13 +656,13 @@ proto.wechaty.puppet.MomentCommentResponse.prototype.serializeBinary = function(
|
|
|
892
656
|
/**
|
|
893
657
|
* Serializes the given message to binary data (in protobuf wire
|
|
894
658
|
* format), writing to the given BinaryWriter.
|
|
895
|
-
* @param {!proto.wechaty.puppet.
|
|
659
|
+
* @param {!proto.wechaty.puppet.MomentSignatureResponse} message
|
|
896
660
|
* @param {!jspb.BinaryWriter} writer
|
|
897
661
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
898
662
|
*/
|
|
899
|
-
proto.wechaty.puppet.
|
|
663
|
+
proto.wechaty.puppet.MomentSignatureResponse.serializeBinaryToWriter = function(message, writer) {
|
|
900
664
|
var f = undefined;
|
|
901
|
-
f = message.
|
|
665
|
+
f = message.getText();
|
|
902
666
|
if (f.length > 0) {
|
|
903
667
|
writer.writeString(
|
|
904
668
|
1,
|
|
@@ -909,19 +673,19 @@ proto.wechaty.puppet.MomentCommentResponse.serializeBinaryToWriter = function(me
|
|
|
909
673
|
|
|
910
674
|
|
|
911
675
|
/**
|
|
912
|
-
* optional string
|
|
676
|
+
* optional string text = 1;
|
|
913
677
|
* @return {string}
|
|
914
678
|
*/
|
|
915
|
-
proto.wechaty.puppet.
|
|
679
|
+
proto.wechaty.puppet.MomentSignatureResponse.prototype.getText = function() {
|
|
916
680
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
917
681
|
};
|
|
918
682
|
|
|
919
683
|
|
|
920
684
|
/**
|
|
921
685
|
* @param {string} value
|
|
922
|
-
* @return {!proto.wechaty.puppet.
|
|
686
|
+
* @return {!proto.wechaty.puppet.MomentSignatureResponse} returns this
|
|
923
687
|
*/
|
|
924
|
-
proto.wechaty.puppet.
|
|
688
|
+
proto.wechaty.puppet.MomentSignatureResponse.prototype.setText = function(value) {
|
|
925
689
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
926
690
|
};
|
|
927
691
|
|
|
@@ -942,8 +706,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
942
706
|
* http://goto/soy-param-migration
|
|
943
707
|
* @return {!Object}
|
|
944
708
|
*/
|
|
945
|
-
proto.wechaty.puppet.
|
|
946
|
-
return proto.wechaty.puppet.
|
|
709
|
+
proto.wechaty.puppet.MomentCoverageRequest.prototype.toObject = function(opt_includeInstance) {
|
|
710
|
+
return proto.wechaty.puppet.MomentCoverageRequest.toObject(opt_includeInstance, this);
|
|
947
711
|
};
|
|
948
712
|
|
|
949
713
|
|
|
@@ -952,13 +716,13 @@ proto.wechaty.puppet.MomentLikeRequest.prototype.toObject = function(opt_include
|
|
|
952
716
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
953
717
|
* the JSPB instance for transitional soy proto support:
|
|
954
718
|
* http://goto/soy-param-migration
|
|
955
|
-
* @param {!proto.wechaty.puppet.
|
|
719
|
+
* @param {!proto.wechaty.puppet.MomentCoverageRequest} msg The msg instance to transform.
|
|
956
720
|
* @return {!Object}
|
|
957
721
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
958
722
|
*/
|
|
959
|
-
proto.wechaty.puppet.
|
|
723
|
+
proto.wechaty.puppet.MomentCoverageRequest.toObject = function(includeInstance, msg) {
|
|
960
724
|
var f, obj = {
|
|
961
|
-
|
|
725
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
962
726
|
};
|
|
963
727
|
|
|
964
728
|
if (includeInstance) {
|
|
@@ -972,23 +736,23 @@ proto.wechaty.puppet.MomentLikeRequest.toObject = function(includeInstance, msg)
|
|
|
972
736
|
/**
|
|
973
737
|
* Deserializes binary data (in protobuf wire format).
|
|
974
738
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
975
|
-
* @return {!proto.wechaty.puppet.
|
|
739
|
+
* @return {!proto.wechaty.puppet.MomentCoverageRequest}
|
|
976
740
|
*/
|
|
977
|
-
proto.wechaty.puppet.
|
|
741
|
+
proto.wechaty.puppet.MomentCoverageRequest.deserializeBinary = function(bytes) {
|
|
978
742
|
var reader = new jspb.BinaryReader(bytes);
|
|
979
|
-
var msg = new proto.wechaty.puppet.
|
|
980
|
-
return proto.wechaty.puppet.
|
|
743
|
+
var msg = new proto.wechaty.puppet.MomentCoverageRequest;
|
|
744
|
+
return proto.wechaty.puppet.MomentCoverageRequest.deserializeBinaryFromReader(msg, reader);
|
|
981
745
|
};
|
|
982
746
|
|
|
983
747
|
|
|
984
748
|
/**
|
|
985
749
|
* Deserializes binary data (in protobuf wire format) from the
|
|
986
750
|
* given reader into the given message object.
|
|
987
|
-
* @param {!proto.wechaty.puppet.
|
|
751
|
+
* @param {!proto.wechaty.puppet.MomentCoverageRequest} msg The message object to deserialize into.
|
|
988
752
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
989
|
-
* @return {!proto.wechaty.puppet.
|
|
753
|
+
* @return {!proto.wechaty.puppet.MomentCoverageRequest}
|
|
990
754
|
*/
|
|
991
|
-
proto.wechaty.puppet.
|
|
755
|
+
proto.wechaty.puppet.MomentCoverageRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
992
756
|
while (reader.nextField()) {
|
|
993
757
|
if (reader.isEndGroup()) {
|
|
994
758
|
break;
|
|
@@ -997,7 +761,7 @@ proto.wechaty.puppet.MomentLikeRequest.deserializeBinaryFromReader = function(ms
|
|
|
997
761
|
switch (field) {
|
|
998
762
|
case 1:
|
|
999
763
|
var value = /** @type {string} */ (reader.readString());
|
|
1000
|
-
msg.
|
|
764
|
+
msg.setFileBox(value);
|
|
1001
765
|
break;
|
|
1002
766
|
default:
|
|
1003
767
|
reader.skipField();
|
|
@@ -1012,9 +776,9 @@ proto.wechaty.puppet.MomentLikeRequest.deserializeBinaryFromReader = function(ms
|
|
|
1012
776
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1013
777
|
* @return {!Uint8Array}
|
|
1014
778
|
*/
|
|
1015
|
-
proto.wechaty.puppet.
|
|
779
|
+
proto.wechaty.puppet.MomentCoverageRequest.prototype.serializeBinary = function() {
|
|
1016
780
|
var writer = new jspb.BinaryWriter();
|
|
1017
|
-
proto.wechaty.puppet.
|
|
781
|
+
proto.wechaty.puppet.MomentCoverageRequest.serializeBinaryToWriter(this, writer);
|
|
1018
782
|
return writer.getResultBuffer();
|
|
1019
783
|
};
|
|
1020
784
|
|
|
@@ -1022,13 +786,13 @@ proto.wechaty.puppet.MomentLikeRequest.prototype.serializeBinary = function() {
|
|
|
1022
786
|
/**
|
|
1023
787
|
* Serializes the given message to binary data (in protobuf wire
|
|
1024
788
|
* format), writing to the given BinaryWriter.
|
|
1025
|
-
* @param {!proto.wechaty.puppet.
|
|
789
|
+
* @param {!proto.wechaty.puppet.MomentCoverageRequest} message
|
|
1026
790
|
* @param {!jspb.BinaryWriter} writer
|
|
1027
791
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1028
792
|
*/
|
|
1029
|
-
proto.wechaty.puppet.
|
|
793
|
+
proto.wechaty.puppet.MomentCoverageRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1030
794
|
var f = undefined;
|
|
1031
|
-
f = message.
|
|
795
|
+
f = message.getFileBox();
|
|
1032
796
|
if (f.length > 0) {
|
|
1033
797
|
writer.writeString(
|
|
1034
798
|
1,
|
|
@@ -1039,19 +803,19 @@ proto.wechaty.puppet.MomentLikeRequest.serializeBinaryToWriter = function(messag
|
|
|
1039
803
|
|
|
1040
804
|
|
|
1041
805
|
/**
|
|
1042
|
-
* optional string
|
|
806
|
+
* optional string file_box = 1;
|
|
1043
807
|
* @return {string}
|
|
1044
808
|
*/
|
|
1045
|
-
proto.wechaty.puppet.
|
|
809
|
+
proto.wechaty.puppet.MomentCoverageRequest.prototype.getFileBox = function() {
|
|
1046
810
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1047
811
|
};
|
|
1048
812
|
|
|
1049
813
|
|
|
1050
814
|
/**
|
|
1051
815
|
* @param {string} value
|
|
1052
|
-
* @return {!proto.wechaty.puppet.
|
|
816
|
+
* @return {!proto.wechaty.puppet.MomentCoverageRequest} returns this
|
|
1053
817
|
*/
|
|
1054
|
-
proto.wechaty.puppet.
|
|
818
|
+
proto.wechaty.puppet.MomentCoverageRequest.prototype.setFileBox = function(value) {
|
|
1055
819
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1056
820
|
};
|
|
1057
821
|
|
|
@@ -1072,910 +836,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1072
836
|
* http://goto/soy-param-migration
|
|
1073
837
|
* @return {!Object}
|
|
1074
838
|
*/
|
|
1075
|
-
proto.wechaty.puppet.
|
|
1076
|
-
return proto.wechaty.puppet.
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
/**
|
|
1081
|
-
* Static version of the {@see toObject} method.
|
|
1082
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1083
|
-
* the JSPB instance for transitional soy proto support:
|
|
1084
|
-
* http://goto/soy-param-migration
|
|
1085
|
-
* @param {!proto.wechaty.puppet.MomentLikeResponse} msg The msg instance to transform.
|
|
1086
|
-
* @return {!Object}
|
|
1087
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1088
|
-
*/
|
|
1089
|
-
proto.wechaty.puppet.MomentLikeResponse.toObject = function(includeInstance, msg) {
|
|
1090
|
-
var f, obj = {
|
|
1091
|
-
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
if (includeInstance) {
|
|
1095
|
-
obj.$jspbMessageInstance = msg;
|
|
1096
|
-
}
|
|
1097
|
-
return obj;
|
|
1098
|
-
};
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
/**
|
|
1103
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1104
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1105
|
-
* @return {!proto.wechaty.puppet.MomentLikeResponse}
|
|
1106
|
-
*/
|
|
1107
|
-
proto.wechaty.puppet.MomentLikeResponse.deserializeBinary = function(bytes) {
|
|
1108
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1109
|
-
var msg = new proto.wechaty.puppet.MomentLikeResponse;
|
|
1110
|
-
return proto.wechaty.puppet.MomentLikeResponse.deserializeBinaryFromReader(msg, reader);
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
/**
|
|
1115
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1116
|
-
* given reader into the given message object.
|
|
1117
|
-
* @param {!proto.wechaty.puppet.MomentLikeResponse} msg The message object to deserialize into.
|
|
1118
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1119
|
-
* @return {!proto.wechaty.puppet.MomentLikeResponse}
|
|
1120
|
-
*/
|
|
1121
|
-
proto.wechaty.puppet.MomentLikeResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1122
|
-
while (reader.nextField()) {
|
|
1123
|
-
if (reader.isEndGroup()) {
|
|
1124
|
-
break;
|
|
1125
|
-
}
|
|
1126
|
-
var field = reader.getFieldNumber();
|
|
1127
|
-
switch (field) {
|
|
1128
|
-
default:
|
|
1129
|
-
reader.skipField();
|
|
1130
|
-
break;
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
return msg;
|
|
1134
|
-
};
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
/**
|
|
1138
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1139
|
-
* @return {!Uint8Array}
|
|
1140
|
-
*/
|
|
1141
|
-
proto.wechaty.puppet.MomentLikeResponse.prototype.serializeBinary = function() {
|
|
1142
|
-
var writer = new jspb.BinaryWriter();
|
|
1143
|
-
proto.wechaty.puppet.MomentLikeResponse.serializeBinaryToWriter(this, writer);
|
|
1144
|
-
return writer.getResultBuffer();
|
|
1145
|
-
};
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1150
|
-
* format), writing to the given BinaryWriter.
|
|
1151
|
-
* @param {!proto.wechaty.puppet.MomentLikeResponse} message
|
|
1152
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1153
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1154
|
-
*/
|
|
1155
|
-
proto.wechaty.puppet.MomentLikeResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1156
|
-
var f = undefined;
|
|
1157
|
-
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1164
|
-
/**
|
|
1165
|
-
* Creates an object representation of this proto.
|
|
1166
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1167
|
-
* Optional fields that are not set will be set to undefined.
|
|
1168
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1169
|
-
* For the list of reserved names please see:
|
|
1170
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1171
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1172
|
-
* JSPB instance for transitional soy proto support:
|
|
1173
|
-
* http://goto/soy-param-migration
|
|
1174
|
-
* @return {!Object}
|
|
1175
|
-
*/
|
|
1176
|
-
proto.wechaty.puppet.MomentSignatureRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1177
|
-
return proto.wechaty.puppet.MomentSignatureRequest.toObject(opt_includeInstance, this);
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
/**
|
|
1182
|
-
* Static version of the {@see toObject} method.
|
|
1183
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1184
|
-
* the JSPB instance for transitional soy proto support:
|
|
1185
|
-
* http://goto/soy-param-migration
|
|
1186
|
-
* @param {!proto.wechaty.puppet.MomentSignatureRequest} msg The msg instance to transform.
|
|
1187
|
-
* @return {!Object}
|
|
1188
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1189
|
-
*/
|
|
1190
|
-
proto.wechaty.puppet.MomentSignatureRequest.toObject = function(includeInstance, msg) {
|
|
1191
|
-
var f, obj = {
|
|
1192
|
-
text: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
|
-
if (includeInstance) {
|
|
1196
|
-
obj.$jspbMessageInstance = msg;
|
|
1197
|
-
}
|
|
1198
|
-
return obj;
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
/**
|
|
1204
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1205
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1206
|
-
* @return {!proto.wechaty.puppet.MomentSignatureRequest}
|
|
1207
|
-
*/
|
|
1208
|
-
proto.wechaty.puppet.MomentSignatureRequest.deserializeBinary = function(bytes) {
|
|
1209
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1210
|
-
var msg = new proto.wechaty.puppet.MomentSignatureRequest;
|
|
1211
|
-
return proto.wechaty.puppet.MomentSignatureRequest.deserializeBinaryFromReader(msg, reader);
|
|
1212
|
-
};
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1217
|
-
* given reader into the given message object.
|
|
1218
|
-
* @param {!proto.wechaty.puppet.MomentSignatureRequest} msg The message object to deserialize into.
|
|
1219
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1220
|
-
* @return {!proto.wechaty.puppet.MomentSignatureRequest}
|
|
1221
|
-
*/
|
|
1222
|
-
proto.wechaty.puppet.MomentSignatureRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1223
|
-
while (reader.nextField()) {
|
|
1224
|
-
if (reader.isEndGroup()) {
|
|
1225
|
-
break;
|
|
1226
|
-
}
|
|
1227
|
-
var field = reader.getFieldNumber();
|
|
1228
|
-
switch (field) {
|
|
1229
|
-
case 1:
|
|
1230
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1231
|
-
msg.setText(value);
|
|
1232
|
-
break;
|
|
1233
|
-
default:
|
|
1234
|
-
reader.skipField();
|
|
1235
|
-
break;
|
|
1236
|
-
}
|
|
1237
|
-
}
|
|
1238
|
-
return msg;
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
/**
|
|
1243
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1244
|
-
* @return {!Uint8Array}
|
|
1245
|
-
*/
|
|
1246
|
-
proto.wechaty.puppet.MomentSignatureRequest.prototype.serializeBinary = function() {
|
|
1247
|
-
var writer = new jspb.BinaryWriter();
|
|
1248
|
-
proto.wechaty.puppet.MomentSignatureRequest.serializeBinaryToWriter(this, writer);
|
|
1249
|
-
return writer.getResultBuffer();
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
/**
|
|
1254
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1255
|
-
* format), writing to the given BinaryWriter.
|
|
1256
|
-
* @param {!proto.wechaty.puppet.MomentSignatureRequest} message
|
|
1257
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1258
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1259
|
-
*/
|
|
1260
|
-
proto.wechaty.puppet.MomentSignatureRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1261
|
-
var f = undefined;
|
|
1262
|
-
f = message.getText();
|
|
1263
|
-
if (f.length > 0) {
|
|
1264
|
-
writer.writeString(
|
|
1265
|
-
1,
|
|
1266
|
-
f
|
|
1267
|
-
);
|
|
1268
|
-
}
|
|
1269
|
-
};
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
/**
|
|
1273
|
-
* optional string text = 1;
|
|
1274
|
-
* @return {string}
|
|
1275
|
-
*/
|
|
1276
|
-
proto.wechaty.puppet.MomentSignatureRequest.prototype.getText = function() {
|
|
1277
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1278
|
-
};
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* @param {string} value
|
|
1283
|
-
* @return {!proto.wechaty.puppet.MomentSignatureRequest} returns this
|
|
1284
|
-
*/
|
|
1285
|
-
proto.wechaty.puppet.MomentSignatureRequest.prototype.setText = function(value) {
|
|
1286
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1287
|
-
};
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1294
|
-
/**
|
|
1295
|
-
* Creates an object representation of this proto.
|
|
1296
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1297
|
-
* Optional fields that are not set will be set to undefined.
|
|
1298
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1299
|
-
* For the list of reserved names please see:
|
|
1300
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1301
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1302
|
-
* JSPB instance for transitional soy proto support:
|
|
1303
|
-
* http://goto/soy-param-migration
|
|
1304
|
-
* @return {!Object}
|
|
1305
|
-
*/
|
|
1306
|
-
proto.wechaty.puppet.MomentSignatureResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1307
|
-
return proto.wechaty.puppet.MomentSignatureResponse.toObject(opt_includeInstance, this);
|
|
1308
|
-
};
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
/**
|
|
1312
|
-
* Static version of the {@see toObject} method.
|
|
1313
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1314
|
-
* the JSPB instance for transitional soy proto support:
|
|
1315
|
-
* http://goto/soy-param-migration
|
|
1316
|
-
* @param {!proto.wechaty.puppet.MomentSignatureResponse} msg The msg instance to transform.
|
|
1317
|
-
* @return {!Object}
|
|
1318
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1319
|
-
*/
|
|
1320
|
-
proto.wechaty.puppet.MomentSignatureResponse.toObject = function(includeInstance, msg) {
|
|
1321
|
-
var f, obj = {
|
|
1322
|
-
text: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
if (includeInstance) {
|
|
1326
|
-
obj.$jspbMessageInstance = msg;
|
|
1327
|
-
}
|
|
1328
|
-
return obj;
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
/**
|
|
1334
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1335
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1336
|
-
* @return {!proto.wechaty.puppet.MomentSignatureResponse}
|
|
1337
|
-
*/
|
|
1338
|
-
proto.wechaty.puppet.MomentSignatureResponse.deserializeBinary = function(bytes) {
|
|
1339
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1340
|
-
var msg = new proto.wechaty.puppet.MomentSignatureResponse;
|
|
1341
|
-
return proto.wechaty.puppet.MomentSignatureResponse.deserializeBinaryFromReader(msg, reader);
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
/**
|
|
1346
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1347
|
-
* given reader into the given message object.
|
|
1348
|
-
* @param {!proto.wechaty.puppet.MomentSignatureResponse} msg The message object to deserialize into.
|
|
1349
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1350
|
-
* @return {!proto.wechaty.puppet.MomentSignatureResponse}
|
|
1351
|
-
*/
|
|
1352
|
-
proto.wechaty.puppet.MomentSignatureResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1353
|
-
while (reader.nextField()) {
|
|
1354
|
-
if (reader.isEndGroup()) {
|
|
1355
|
-
break;
|
|
1356
|
-
}
|
|
1357
|
-
var field = reader.getFieldNumber();
|
|
1358
|
-
switch (field) {
|
|
1359
|
-
case 1:
|
|
1360
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1361
|
-
msg.setText(value);
|
|
1362
|
-
break;
|
|
1363
|
-
default:
|
|
1364
|
-
reader.skipField();
|
|
1365
|
-
break;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
return msg;
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1374
|
-
* @return {!Uint8Array}
|
|
1375
|
-
*/
|
|
1376
|
-
proto.wechaty.puppet.MomentSignatureResponse.prototype.serializeBinary = function() {
|
|
1377
|
-
var writer = new jspb.BinaryWriter();
|
|
1378
|
-
proto.wechaty.puppet.MomentSignatureResponse.serializeBinaryToWriter(this, writer);
|
|
1379
|
-
return writer.getResultBuffer();
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1385
|
-
* format), writing to the given BinaryWriter.
|
|
1386
|
-
* @param {!proto.wechaty.puppet.MomentSignatureResponse} message
|
|
1387
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1388
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1389
|
-
*/
|
|
1390
|
-
proto.wechaty.puppet.MomentSignatureResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1391
|
-
var f = undefined;
|
|
1392
|
-
f = message.getText();
|
|
1393
|
-
if (f.length > 0) {
|
|
1394
|
-
writer.writeString(
|
|
1395
|
-
1,
|
|
1396
|
-
f
|
|
1397
|
-
);
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* optional string text = 1;
|
|
1404
|
-
* @return {string}
|
|
1405
|
-
*/
|
|
1406
|
-
proto.wechaty.puppet.MomentSignatureResponse.prototype.getText = function() {
|
|
1407
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
/**
|
|
1412
|
-
* @param {string} value
|
|
1413
|
-
* @return {!proto.wechaty.puppet.MomentSignatureResponse} returns this
|
|
1414
|
-
*/
|
|
1415
|
-
proto.wechaty.puppet.MomentSignatureResponse.prototype.setText = function(value) {
|
|
1416
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1424
|
-
/**
|
|
1425
|
-
* Creates an object representation of this proto.
|
|
1426
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1427
|
-
* Optional fields that are not set will be set to undefined.
|
|
1428
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1429
|
-
* For the list of reserved names please see:
|
|
1430
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1431
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1432
|
-
* JSPB instance for transitional soy proto support:
|
|
1433
|
-
* http://goto/soy-param-migration
|
|
1434
|
-
* @return {!Object}
|
|
1435
|
-
*/
|
|
1436
|
-
proto.wechaty.puppet.MomentCoverageRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1437
|
-
return proto.wechaty.puppet.MomentCoverageRequest.toObject(opt_includeInstance, this);
|
|
1438
|
-
};
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* Static version of the {@see toObject} method.
|
|
1443
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1444
|
-
* the JSPB instance for transitional soy proto support:
|
|
1445
|
-
* http://goto/soy-param-migration
|
|
1446
|
-
* @param {!proto.wechaty.puppet.MomentCoverageRequest} msg The msg instance to transform.
|
|
1447
|
-
* @return {!Object}
|
|
1448
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1449
|
-
*/
|
|
1450
|
-
proto.wechaty.puppet.MomentCoverageRequest.toObject = function(includeInstance, msg) {
|
|
1451
|
-
var f, obj = {
|
|
1452
|
-
fileBox: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1453
|
-
};
|
|
1454
|
-
|
|
1455
|
-
if (includeInstance) {
|
|
1456
|
-
obj.$jspbMessageInstance = msg;
|
|
1457
|
-
}
|
|
1458
|
-
return obj;
|
|
1459
|
-
};
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
/**
|
|
1464
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1465
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1466
|
-
* @return {!proto.wechaty.puppet.MomentCoverageRequest}
|
|
1467
|
-
*/
|
|
1468
|
-
proto.wechaty.puppet.MomentCoverageRequest.deserializeBinary = function(bytes) {
|
|
1469
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1470
|
-
var msg = new proto.wechaty.puppet.MomentCoverageRequest;
|
|
1471
|
-
return proto.wechaty.puppet.MomentCoverageRequest.deserializeBinaryFromReader(msg, reader);
|
|
1472
|
-
};
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
/**
|
|
1476
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1477
|
-
* given reader into the given message object.
|
|
1478
|
-
* @param {!proto.wechaty.puppet.MomentCoverageRequest} msg The message object to deserialize into.
|
|
1479
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1480
|
-
* @return {!proto.wechaty.puppet.MomentCoverageRequest}
|
|
1481
|
-
*/
|
|
1482
|
-
proto.wechaty.puppet.MomentCoverageRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1483
|
-
while (reader.nextField()) {
|
|
1484
|
-
if (reader.isEndGroup()) {
|
|
1485
|
-
break;
|
|
1486
|
-
}
|
|
1487
|
-
var field = reader.getFieldNumber();
|
|
1488
|
-
switch (field) {
|
|
1489
|
-
case 1:
|
|
1490
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1491
|
-
msg.setFileBox(value);
|
|
1492
|
-
break;
|
|
1493
|
-
default:
|
|
1494
|
-
reader.skipField();
|
|
1495
|
-
break;
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
return msg;
|
|
1499
|
-
};
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
/**
|
|
1503
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1504
|
-
* @return {!Uint8Array}
|
|
1505
|
-
*/
|
|
1506
|
-
proto.wechaty.puppet.MomentCoverageRequest.prototype.serializeBinary = function() {
|
|
1507
|
-
var writer = new jspb.BinaryWriter();
|
|
1508
|
-
proto.wechaty.puppet.MomentCoverageRequest.serializeBinaryToWriter(this, writer);
|
|
1509
|
-
return writer.getResultBuffer();
|
|
1510
|
-
};
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1515
|
-
* format), writing to the given BinaryWriter.
|
|
1516
|
-
* @param {!proto.wechaty.puppet.MomentCoverageRequest} message
|
|
1517
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1518
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1519
|
-
*/
|
|
1520
|
-
proto.wechaty.puppet.MomentCoverageRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1521
|
-
var f = undefined;
|
|
1522
|
-
f = message.getFileBox();
|
|
1523
|
-
if (f.length > 0) {
|
|
1524
|
-
writer.writeString(
|
|
1525
|
-
1,
|
|
1526
|
-
f
|
|
1527
|
-
);
|
|
1528
|
-
}
|
|
1529
|
-
};
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
/**
|
|
1533
|
-
* optional string file_box = 1;
|
|
1534
|
-
* @return {string}
|
|
1535
|
-
*/
|
|
1536
|
-
proto.wechaty.puppet.MomentCoverageRequest.prototype.getFileBox = function() {
|
|
1537
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1538
|
-
};
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
/**
|
|
1542
|
-
* @param {string} value
|
|
1543
|
-
* @return {!proto.wechaty.puppet.MomentCoverageRequest} returns this
|
|
1544
|
-
*/
|
|
1545
|
-
proto.wechaty.puppet.MomentCoverageRequest.prototype.setFileBox = function(value) {
|
|
1546
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1547
|
-
};
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1554
|
-
/**
|
|
1555
|
-
* Creates an object representation of this proto.
|
|
1556
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1557
|
-
* Optional fields that are not set will be set to undefined.
|
|
1558
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1559
|
-
* For the list of reserved names please see:
|
|
1560
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1561
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1562
|
-
* JSPB instance for transitional soy proto support:
|
|
1563
|
-
* http://goto/soy-param-migration
|
|
1564
|
-
* @return {!Object}
|
|
1565
|
-
*/
|
|
1566
|
-
proto.wechaty.puppet.MomentCoverageResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1567
|
-
return proto.wechaty.puppet.MomentCoverageResponse.toObject(opt_includeInstance, this);
|
|
1568
|
-
};
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
/**
|
|
1572
|
-
* Static version of the {@see toObject} method.
|
|
1573
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1574
|
-
* the JSPB instance for transitional soy proto support:
|
|
1575
|
-
* http://goto/soy-param-migration
|
|
1576
|
-
* @param {!proto.wechaty.puppet.MomentCoverageResponse} msg The msg instance to transform.
|
|
1577
|
-
* @return {!Object}
|
|
1578
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1579
|
-
*/
|
|
1580
|
-
proto.wechaty.puppet.MomentCoverageResponse.toObject = function(includeInstance, msg) {
|
|
1581
|
-
var f, obj = {
|
|
1582
|
-
fileBox: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1583
|
-
};
|
|
1584
|
-
|
|
1585
|
-
if (includeInstance) {
|
|
1586
|
-
obj.$jspbMessageInstance = msg;
|
|
1587
|
-
}
|
|
1588
|
-
return obj;
|
|
1589
|
-
};
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
/**
|
|
1594
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1595
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1596
|
-
* @return {!proto.wechaty.puppet.MomentCoverageResponse}
|
|
1597
|
-
*/
|
|
1598
|
-
proto.wechaty.puppet.MomentCoverageResponse.deserializeBinary = function(bytes) {
|
|
1599
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1600
|
-
var msg = new proto.wechaty.puppet.MomentCoverageResponse;
|
|
1601
|
-
return proto.wechaty.puppet.MomentCoverageResponse.deserializeBinaryFromReader(msg, reader);
|
|
1602
|
-
};
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
/**
|
|
1606
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1607
|
-
* given reader into the given message object.
|
|
1608
|
-
* @param {!proto.wechaty.puppet.MomentCoverageResponse} msg The message object to deserialize into.
|
|
1609
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1610
|
-
* @return {!proto.wechaty.puppet.MomentCoverageResponse}
|
|
1611
|
-
*/
|
|
1612
|
-
proto.wechaty.puppet.MomentCoverageResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1613
|
-
while (reader.nextField()) {
|
|
1614
|
-
if (reader.isEndGroup()) {
|
|
1615
|
-
break;
|
|
1616
|
-
}
|
|
1617
|
-
var field = reader.getFieldNumber();
|
|
1618
|
-
switch (field) {
|
|
1619
|
-
case 1:
|
|
1620
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1621
|
-
msg.setFileBox(value);
|
|
1622
|
-
break;
|
|
1623
|
-
default:
|
|
1624
|
-
reader.skipField();
|
|
1625
|
-
break;
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
return msg;
|
|
1629
|
-
};
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
/**
|
|
1633
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1634
|
-
* @return {!Uint8Array}
|
|
1635
|
-
*/
|
|
1636
|
-
proto.wechaty.puppet.MomentCoverageResponse.prototype.serializeBinary = function() {
|
|
1637
|
-
var writer = new jspb.BinaryWriter();
|
|
1638
|
-
proto.wechaty.puppet.MomentCoverageResponse.serializeBinaryToWriter(this, writer);
|
|
1639
|
-
return writer.getResultBuffer();
|
|
1640
|
-
};
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
/**
|
|
1644
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1645
|
-
* format), writing to the given BinaryWriter.
|
|
1646
|
-
* @param {!proto.wechaty.puppet.MomentCoverageResponse} message
|
|
1647
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1648
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1649
|
-
*/
|
|
1650
|
-
proto.wechaty.puppet.MomentCoverageResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1651
|
-
var f = undefined;
|
|
1652
|
-
f = message.getFileBox();
|
|
1653
|
-
if (f.length > 0) {
|
|
1654
|
-
writer.writeString(
|
|
1655
|
-
1,
|
|
1656
|
-
f
|
|
1657
|
-
);
|
|
1658
|
-
}
|
|
1659
|
-
};
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* optional string file_box = 1;
|
|
1664
|
-
* @return {string}
|
|
1665
|
-
*/
|
|
1666
|
-
proto.wechaty.puppet.MomentCoverageResponse.prototype.getFileBox = function() {
|
|
1667
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1668
|
-
};
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* @param {string} value
|
|
1673
|
-
* @return {!proto.wechaty.puppet.MomentCoverageResponse} returns this
|
|
1674
|
-
*/
|
|
1675
|
-
proto.wechaty.puppet.MomentCoverageResponse.prototype.setFileBox = function(value) {
|
|
1676
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1677
|
-
};
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1684
|
-
/**
|
|
1685
|
-
* Creates an object representation of this proto.
|
|
1686
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1687
|
-
* Optional fields that are not set will be set to undefined.
|
|
1688
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1689
|
-
* For the list of reserved names please see:
|
|
1690
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1691
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1692
|
-
* JSPB instance for transitional soy proto support:
|
|
1693
|
-
* http://goto/soy-param-migration
|
|
1694
|
-
* @return {!Object}
|
|
1695
|
-
*/
|
|
1696
|
-
proto.wechaty.puppet.MomentPayloadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1697
|
-
return proto.wechaty.puppet.MomentPayloadRequest.toObject(opt_includeInstance, this);
|
|
1698
|
-
};
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
/**
|
|
1702
|
-
* Static version of the {@see toObject} method.
|
|
1703
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1704
|
-
* the JSPB instance for transitional soy proto support:
|
|
1705
|
-
* http://goto/soy-param-migration
|
|
1706
|
-
* @param {!proto.wechaty.puppet.MomentPayloadRequest} msg The msg instance to transform.
|
|
1707
|
-
* @return {!Object}
|
|
1708
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1709
|
-
*/
|
|
1710
|
-
proto.wechaty.puppet.MomentPayloadRequest.toObject = function(includeInstance, msg) {
|
|
1711
|
-
var f, obj = {
|
|
1712
|
-
momentId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1713
|
-
};
|
|
1714
|
-
|
|
1715
|
-
if (includeInstance) {
|
|
1716
|
-
obj.$jspbMessageInstance = msg;
|
|
1717
|
-
}
|
|
1718
|
-
return obj;
|
|
1719
|
-
};
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
/**
|
|
1724
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1725
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1726
|
-
* @return {!proto.wechaty.puppet.MomentPayloadRequest}
|
|
1727
|
-
*/
|
|
1728
|
-
proto.wechaty.puppet.MomentPayloadRequest.deserializeBinary = function(bytes) {
|
|
1729
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1730
|
-
var msg = new proto.wechaty.puppet.MomentPayloadRequest;
|
|
1731
|
-
return proto.wechaty.puppet.MomentPayloadRequest.deserializeBinaryFromReader(msg, reader);
|
|
1732
|
-
};
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
/**
|
|
1736
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1737
|
-
* given reader into the given message object.
|
|
1738
|
-
* @param {!proto.wechaty.puppet.MomentPayloadRequest} msg The message object to deserialize into.
|
|
1739
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1740
|
-
* @return {!proto.wechaty.puppet.MomentPayloadRequest}
|
|
1741
|
-
*/
|
|
1742
|
-
proto.wechaty.puppet.MomentPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1743
|
-
while (reader.nextField()) {
|
|
1744
|
-
if (reader.isEndGroup()) {
|
|
1745
|
-
break;
|
|
1746
|
-
}
|
|
1747
|
-
var field = reader.getFieldNumber();
|
|
1748
|
-
switch (field) {
|
|
1749
|
-
case 1:
|
|
1750
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1751
|
-
msg.setMomentId(value);
|
|
1752
|
-
break;
|
|
1753
|
-
default:
|
|
1754
|
-
reader.skipField();
|
|
1755
|
-
break;
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
return msg;
|
|
1759
|
-
};
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
/**
|
|
1763
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1764
|
-
* @return {!Uint8Array}
|
|
1765
|
-
*/
|
|
1766
|
-
proto.wechaty.puppet.MomentPayloadRequest.prototype.serializeBinary = function() {
|
|
1767
|
-
var writer = new jspb.BinaryWriter();
|
|
1768
|
-
proto.wechaty.puppet.MomentPayloadRequest.serializeBinaryToWriter(this, writer);
|
|
1769
|
-
return writer.getResultBuffer();
|
|
1770
|
-
};
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
/**
|
|
1774
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1775
|
-
* format), writing to the given BinaryWriter.
|
|
1776
|
-
* @param {!proto.wechaty.puppet.MomentPayloadRequest} message
|
|
1777
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1778
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1779
|
-
*/
|
|
1780
|
-
proto.wechaty.puppet.MomentPayloadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1781
|
-
var f = undefined;
|
|
1782
|
-
f = message.getMomentId();
|
|
1783
|
-
if (f.length > 0) {
|
|
1784
|
-
writer.writeString(
|
|
1785
|
-
1,
|
|
1786
|
-
f
|
|
1787
|
-
);
|
|
1788
|
-
}
|
|
1789
|
-
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
/**
|
|
1793
|
-
* optional string moment_id = 1;
|
|
1794
|
-
* @return {string}
|
|
1795
|
-
*/
|
|
1796
|
-
proto.wechaty.puppet.MomentPayloadRequest.prototype.getMomentId = function() {
|
|
1797
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
/**
|
|
1802
|
-
* @param {string} value
|
|
1803
|
-
* @return {!proto.wechaty.puppet.MomentPayloadRequest} returns this
|
|
1804
|
-
*/
|
|
1805
|
-
proto.wechaty.puppet.MomentPayloadRequest.prototype.setMomentId = function(value) {
|
|
1806
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1807
|
-
};
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1814
|
-
/**
|
|
1815
|
-
* Creates an object representation of this proto.
|
|
1816
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1817
|
-
* Optional fields that are not set will be set to undefined.
|
|
1818
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1819
|
-
* For the list of reserved names please see:
|
|
1820
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1821
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1822
|
-
* JSPB instance for transitional soy proto support:
|
|
1823
|
-
* http://goto/soy-param-migration
|
|
1824
|
-
* @return {!Object}
|
|
1825
|
-
*/
|
|
1826
|
-
proto.wechaty.puppet.MomentPayloadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1827
|
-
return proto.wechaty.puppet.MomentPayloadResponse.toObject(opt_includeInstance, this);
|
|
1828
|
-
};
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Static version of the {@see toObject} method.
|
|
1833
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1834
|
-
* the JSPB instance for transitional soy proto support:
|
|
1835
|
-
* http://goto/soy-param-migration
|
|
1836
|
-
* @param {!proto.wechaty.puppet.MomentPayloadResponse} msg The msg instance to transform.
|
|
1837
|
-
* @return {!Object}
|
|
1838
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1839
|
-
*/
|
|
1840
|
-
proto.wechaty.puppet.MomentPayloadResponse.toObject = function(includeInstance, msg) {
|
|
1841
|
-
var f, obj = {
|
|
1842
|
-
moment: (f = msg.getMoment()) && wechaty_puppet_post_pb.PostPayloadServer.toObject(includeInstance, f)
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
if (includeInstance) {
|
|
1846
|
-
obj.$jspbMessageInstance = msg;
|
|
1847
|
-
}
|
|
1848
|
-
return obj;
|
|
1849
|
-
};
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
/**
|
|
1854
|
-
* Deserializes binary data (in protobuf wire format).
|
|
1855
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1856
|
-
* @return {!proto.wechaty.puppet.MomentPayloadResponse}
|
|
1857
|
-
*/
|
|
1858
|
-
proto.wechaty.puppet.MomentPayloadResponse.deserializeBinary = function(bytes) {
|
|
1859
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
1860
|
-
var msg = new proto.wechaty.puppet.MomentPayloadResponse;
|
|
1861
|
-
return proto.wechaty.puppet.MomentPayloadResponse.deserializeBinaryFromReader(msg, reader);
|
|
1862
|
-
};
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
/**
|
|
1866
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
1867
|
-
* given reader into the given message object.
|
|
1868
|
-
* @param {!proto.wechaty.puppet.MomentPayloadResponse} msg The message object to deserialize into.
|
|
1869
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1870
|
-
* @return {!proto.wechaty.puppet.MomentPayloadResponse}
|
|
1871
|
-
*/
|
|
1872
|
-
proto.wechaty.puppet.MomentPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1873
|
-
while (reader.nextField()) {
|
|
1874
|
-
if (reader.isEndGroup()) {
|
|
1875
|
-
break;
|
|
1876
|
-
}
|
|
1877
|
-
var field = reader.getFieldNumber();
|
|
1878
|
-
switch (field) {
|
|
1879
|
-
case 1:
|
|
1880
|
-
var value = new wechaty_puppet_post_pb.PostPayloadServer;
|
|
1881
|
-
reader.readMessage(value,wechaty_puppet_post_pb.PostPayloadServer.deserializeBinaryFromReader);
|
|
1882
|
-
msg.setMoment(value);
|
|
1883
|
-
break;
|
|
1884
|
-
default:
|
|
1885
|
-
reader.skipField();
|
|
1886
|
-
break;
|
|
1887
|
-
}
|
|
1888
|
-
}
|
|
1889
|
-
return msg;
|
|
1890
|
-
};
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
/**
|
|
1894
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
1895
|
-
* @return {!Uint8Array}
|
|
1896
|
-
*/
|
|
1897
|
-
proto.wechaty.puppet.MomentPayloadResponse.prototype.serializeBinary = function() {
|
|
1898
|
-
var writer = new jspb.BinaryWriter();
|
|
1899
|
-
proto.wechaty.puppet.MomentPayloadResponse.serializeBinaryToWriter(this, writer);
|
|
1900
|
-
return writer.getResultBuffer();
|
|
1901
|
-
};
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
/**
|
|
1905
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
1906
|
-
* format), writing to the given BinaryWriter.
|
|
1907
|
-
* @param {!proto.wechaty.puppet.MomentPayloadResponse} message
|
|
1908
|
-
* @param {!jspb.BinaryWriter} writer
|
|
1909
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1910
|
-
*/
|
|
1911
|
-
proto.wechaty.puppet.MomentPayloadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1912
|
-
var f = undefined;
|
|
1913
|
-
f = message.getMoment();
|
|
1914
|
-
if (f != null) {
|
|
1915
|
-
writer.writeMessage(
|
|
1916
|
-
1,
|
|
1917
|
-
f,
|
|
1918
|
-
wechaty_puppet_post_pb.PostPayloadServer.serializeBinaryToWriter
|
|
1919
|
-
);
|
|
1920
|
-
}
|
|
1921
|
-
};
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
/**
|
|
1925
|
-
* optional PostPayloadServer moment = 1;
|
|
1926
|
-
* @return {?proto.wechaty.puppet.PostPayloadServer}
|
|
1927
|
-
*/
|
|
1928
|
-
proto.wechaty.puppet.MomentPayloadResponse.prototype.getMoment = function() {
|
|
1929
|
-
return /** @type{?proto.wechaty.puppet.PostPayloadServer} */ (
|
|
1930
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadServer, 1));
|
|
1931
|
-
};
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* @param {?proto.wechaty.puppet.PostPayloadServer|undefined} value
|
|
1936
|
-
* @return {!proto.wechaty.puppet.MomentPayloadResponse} returns this
|
|
1937
|
-
*/
|
|
1938
|
-
proto.wechaty.puppet.MomentPayloadResponse.prototype.setMoment = function(value) {
|
|
1939
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
1940
|
-
};
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
/**
|
|
1944
|
-
* Clears the message field making it undefined.
|
|
1945
|
-
* @return {!proto.wechaty.puppet.MomentPayloadResponse} returns this
|
|
1946
|
-
*/
|
|
1947
|
-
proto.wechaty.puppet.MomentPayloadResponse.prototype.clearMoment = function() {
|
|
1948
|
-
return this.setMoment(undefined);
|
|
1949
|
-
};
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
/**
|
|
1953
|
-
* Returns whether this field is set.
|
|
1954
|
-
* @return {boolean}
|
|
1955
|
-
*/
|
|
1956
|
-
proto.wechaty.puppet.MomentPayloadResponse.prototype.hasMoment = function() {
|
|
1957
|
-
return jspb.Message.getField(this, 1) != null;
|
|
1958
|
-
};
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1965
|
-
/**
|
|
1966
|
-
* Creates an object representation of this proto.
|
|
1967
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1968
|
-
* Optional fields that are not set will be set to undefined.
|
|
1969
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1970
|
-
* For the list of reserved names please see:
|
|
1971
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1972
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1973
|
-
* JSPB instance for transitional soy proto support:
|
|
1974
|
-
* http://goto/soy-param-migration
|
|
1975
|
-
* @return {!Object}
|
|
1976
|
-
*/
|
|
1977
|
-
proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1978
|
-
return proto.wechaty.puppet.MomentPayloadSayableRequest.toObject(opt_includeInstance, this);
|
|
839
|
+
proto.wechaty.puppet.MomentCoverageResponse.prototype.toObject = function(opt_includeInstance) {
|
|
840
|
+
return proto.wechaty.puppet.MomentCoverageResponse.toObject(opt_includeInstance, this);
|
|
1979
841
|
};
|
|
1980
842
|
|
|
1981
843
|
|
|
@@ -1984,14 +846,13 @@ proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.toObject = function(o
|
|
|
1984
846
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1985
847
|
* the JSPB instance for transitional soy proto support:
|
|
1986
848
|
* http://goto/soy-param-migration
|
|
1987
|
-
* @param {!proto.wechaty.puppet.
|
|
849
|
+
* @param {!proto.wechaty.puppet.MomentCoverageResponse} msg The msg instance to transform.
|
|
1988
850
|
* @return {!Object}
|
|
1989
851
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1990
852
|
*/
|
|
1991
|
-
proto.wechaty.puppet.
|
|
853
|
+
proto.wechaty.puppet.MomentCoverageResponse.toObject = function(includeInstance, msg) {
|
|
1992
854
|
var f, obj = {
|
|
1993
|
-
|
|
1994
|
-
sayableId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
855
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1995
856
|
};
|
|
1996
857
|
|
|
1997
858
|
if (includeInstance) {
|
|
@@ -2005,23 +866,23 @@ proto.wechaty.puppet.MomentPayloadSayableRequest.toObject = function(includeInst
|
|
|
2005
866
|
/**
|
|
2006
867
|
* Deserializes binary data (in protobuf wire format).
|
|
2007
868
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2008
|
-
* @return {!proto.wechaty.puppet.
|
|
869
|
+
* @return {!proto.wechaty.puppet.MomentCoverageResponse}
|
|
2009
870
|
*/
|
|
2010
|
-
proto.wechaty.puppet.
|
|
871
|
+
proto.wechaty.puppet.MomentCoverageResponse.deserializeBinary = function(bytes) {
|
|
2011
872
|
var reader = new jspb.BinaryReader(bytes);
|
|
2012
|
-
var msg = new proto.wechaty.puppet.
|
|
2013
|
-
return proto.wechaty.puppet.
|
|
873
|
+
var msg = new proto.wechaty.puppet.MomentCoverageResponse;
|
|
874
|
+
return proto.wechaty.puppet.MomentCoverageResponse.deserializeBinaryFromReader(msg, reader);
|
|
2014
875
|
};
|
|
2015
876
|
|
|
2016
877
|
|
|
2017
878
|
/**
|
|
2018
879
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2019
880
|
* given reader into the given message object.
|
|
2020
|
-
* @param {!proto.wechaty.puppet.
|
|
881
|
+
* @param {!proto.wechaty.puppet.MomentCoverageResponse} msg The message object to deserialize into.
|
|
2021
882
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2022
|
-
* @return {!proto.wechaty.puppet.
|
|
883
|
+
* @return {!proto.wechaty.puppet.MomentCoverageResponse}
|
|
2023
884
|
*/
|
|
2024
|
-
proto.wechaty.puppet.
|
|
885
|
+
proto.wechaty.puppet.MomentCoverageResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2025
886
|
while (reader.nextField()) {
|
|
2026
887
|
if (reader.isEndGroup()) {
|
|
2027
888
|
break;
|
|
@@ -2030,11 +891,7 @@ proto.wechaty.puppet.MomentPayloadSayableRequest.deserializeBinaryFromReader = f
|
|
|
2030
891
|
switch (field) {
|
|
2031
892
|
case 1:
|
|
2032
893
|
var value = /** @type {string} */ (reader.readString());
|
|
2033
|
-
msg.
|
|
2034
|
-
break;
|
|
2035
|
-
case 2:
|
|
2036
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2037
|
-
msg.setSayableId(value);
|
|
894
|
+
msg.setFileBox(value);
|
|
2038
895
|
break;
|
|
2039
896
|
default:
|
|
2040
897
|
reader.skipField();
|
|
@@ -2049,9 +906,9 @@ proto.wechaty.puppet.MomentPayloadSayableRequest.deserializeBinaryFromReader = f
|
|
|
2049
906
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2050
907
|
* @return {!Uint8Array}
|
|
2051
908
|
*/
|
|
2052
|
-
proto.wechaty.puppet.
|
|
909
|
+
proto.wechaty.puppet.MomentCoverageResponse.prototype.serializeBinary = function() {
|
|
2053
910
|
var writer = new jspb.BinaryWriter();
|
|
2054
|
-
proto.wechaty.puppet.
|
|
911
|
+
proto.wechaty.puppet.MomentCoverageResponse.serializeBinaryToWriter(this, writer);
|
|
2055
912
|
return writer.getResultBuffer();
|
|
2056
913
|
};
|
|
2057
914
|
|
|
@@ -2059,214 +916,38 @@ proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.serializeBinary = fun
|
|
|
2059
916
|
/**
|
|
2060
917
|
* Serializes the given message to binary data (in protobuf wire
|
|
2061
918
|
* format), writing to the given BinaryWriter.
|
|
2062
|
-
* @param {!proto.wechaty.puppet.
|
|
919
|
+
* @param {!proto.wechaty.puppet.MomentCoverageResponse} message
|
|
2063
920
|
* @param {!jspb.BinaryWriter} writer
|
|
2064
921
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2065
922
|
*/
|
|
2066
|
-
proto.wechaty.puppet.
|
|
923
|
+
proto.wechaty.puppet.MomentCoverageResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2067
924
|
var f = undefined;
|
|
2068
|
-
f = message.
|
|
925
|
+
f = message.getFileBox();
|
|
2069
926
|
if (f.length > 0) {
|
|
2070
927
|
writer.writeString(
|
|
2071
928
|
1,
|
|
2072
929
|
f
|
|
2073
930
|
);
|
|
2074
931
|
}
|
|
2075
|
-
f = message.getSayableId();
|
|
2076
|
-
if (f.length > 0) {
|
|
2077
|
-
writer.writeString(
|
|
2078
|
-
2,
|
|
2079
|
-
f
|
|
2080
|
-
);
|
|
2081
|
-
}
|
|
2082
932
|
};
|
|
2083
933
|
|
|
2084
934
|
|
|
2085
935
|
/**
|
|
2086
|
-
* optional string
|
|
936
|
+
* optional string file_box = 1;
|
|
2087
937
|
* @return {string}
|
|
2088
938
|
*/
|
|
2089
|
-
proto.wechaty.puppet.
|
|
939
|
+
proto.wechaty.puppet.MomentCoverageResponse.prototype.getFileBox = function() {
|
|
2090
940
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2091
941
|
};
|
|
2092
942
|
|
|
2093
943
|
|
|
2094
944
|
/**
|
|
2095
945
|
* @param {string} value
|
|
2096
|
-
* @return {!proto.wechaty.puppet.
|
|
946
|
+
* @return {!proto.wechaty.puppet.MomentCoverageResponse} returns this
|
|
2097
947
|
*/
|
|
2098
|
-
proto.wechaty.puppet.
|
|
948
|
+
proto.wechaty.puppet.MomentCoverageResponse.prototype.setFileBox = function(value) {
|
|
2099
949
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2100
950
|
};
|
|
2101
951
|
|
|
2102
952
|
|
|
2103
|
-
/**
|
|
2104
|
-
* optional string sayable_id = 2;
|
|
2105
|
-
* @return {string}
|
|
2106
|
-
*/
|
|
2107
|
-
proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.getSayableId = function() {
|
|
2108
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2109
|
-
};
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
/**
|
|
2113
|
-
* @param {string} value
|
|
2114
|
-
* @return {!proto.wechaty.puppet.MomentPayloadSayableRequest} returns this
|
|
2115
|
-
*/
|
|
2116
|
-
proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.setSayableId = function(value) {
|
|
2117
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2118
|
-
};
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2125
|
-
/**
|
|
2126
|
-
* Creates an object representation of this proto.
|
|
2127
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2128
|
-
* Optional fields that are not set will be set to undefined.
|
|
2129
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2130
|
-
* For the list of reserved names please see:
|
|
2131
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2132
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2133
|
-
* JSPB instance for transitional soy proto support:
|
|
2134
|
-
* http://goto/soy-param-migration
|
|
2135
|
-
* @return {!Object}
|
|
2136
|
-
*/
|
|
2137
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2138
|
-
return proto.wechaty.puppet.MomentPayloadSayableResponse.toObject(opt_includeInstance, this);
|
|
2139
|
-
};
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
/**
|
|
2143
|
-
* Static version of the {@see toObject} method.
|
|
2144
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2145
|
-
* the JSPB instance for transitional soy proto support:
|
|
2146
|
-
* http://goto/soy-param-migration
|
|
2147
|
-
* @param {!proto.wechaty.puppet.MomentPayloadSayableResponse} msg The msg instance to transform.
|
|
2148
|
-
* @return {!Object}
|
|
2149
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2150
|
-
*/
|
|
2151
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.toObject = function(includeInstance, msg) {
|
|
2152
|
-
var f, obj = {
|
|
2153
|
-
sayable: (f = msg.getSayable()) && wechaty_puppet_post_pb.PostSayable.toObject(includeInstance, f)
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
if (includeInstance) {
|
|
2157
|
-
obj.$jspbMessageInstance = msg;
|
|
2158
|
-
}
|
|
2159
|
-
return obj;
|
|
2160
|
-
};
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
/**
|
|
2165
|
-
* Deserializes binary data (in protobuf wire format).
|
|
2166
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2167
|
-
* @return {!proto.wechaty.puppet.MomentPayloadSayableResponse}
|
|
2168
|
-
*/
|
|
2169
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.deserializeBinary = function(bytes) {
|
|
2170
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
2171
|
-
var msg = new proto.wechaty.puppet.MomentPayloadSayableResponse;
|
|
2172
|
-
return proto.wechaty.puppet.MomentPayloadSayableResponse.deserializeBinaryFromReader(msg, reader);
|
|
2173
|
-
};
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
/**
|
|
2177
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
2178
|
-
* given reader into the given message object.
|
|
2179
|
-
* @param {!proto.wechaty.puppet.MomentPayloadSayableResponse} msg The message object to deserialize into.
|
|
2180
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2181
|
-
* @return {!proto.wechaty.puppet.MomentPayloadSayableResponse}
|
|
2182
|
-
*/
|
|
2183
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2184
|
-
while (reader.nextField()) {
|
|
2185
|
-
if (reader.isEndGroup()) {
|
|
2186
|
-
break;
|
|
2187
|
-
}
|
|
2188
|
-
var field = reader.getFieldNumber();
|
|
2189
|
-
switch (field) {
|
|
2190
|
-
case 1:
|
|
2191
|
-
var value = new wechaty_puppet_post_pb.PostSayable;
|
|
2192
|
-
reader.readMessage(value,wechaty_puppet_post_pb.PostSayable.deserializeBinaryFromReader);
|
|
2193
|
-
msg.setSayable(value);
|
|
2194
|
-
break;
|
|
2195
|
-
default:
|
|
2196
|
-
reader.skipField();
|
|
2197
|
-
break;
|
|
2198
|
-
}
|
|
2199
|
-
}
|
|
2200
|
-
return msg;
|
|
2201
|
-
};
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
/**
|
|
2205
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
2206
|
-
* @return {!Uint8Array}
|
|
2207
|
-
*/
|
|
2208
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.prototype.serializeBinary = function() {
|
|
2209
|
-
var writer = new jspb.BinaryWriter();
|
|
2210
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.serializeBinaryToWriter(this, writer);
|
|
2211
|
-
return writer.getResultBuffer();
|
|
2212
|
-
};
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
2217
|
-
* format), writing to the given BinaryWriter.
|
|
2218
|
-
* @param {!proto.wechaty.puppet.MomentPayloadSayableResponse} message
|
|
2219
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2220
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2221
|
-
*/
|
|
2222
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2223
|
-
var f = undefined;
|
|
2224
|
-
f = message.getSayable();
|
|
2225
|
-
if (f != null) {
|
|
2226
|
-
writer.writeMessage(
|
|
2227
|
-
1,
|
|
2228
|
-
f,
|
|
2229
|
-
wechaty_puppet_post_pb.PostSayable.serializeBinaryToWriter
|
|
2230
|
-
);
|
|
2231
|
-
}
|
|
2232
|
-
};
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
/**
|
|
2236
|
-
* optional PostSayable sayable = 1;
|
|
2237
|
-
* @return {?proto.wechaty.puppet.PostSayable}
|
|
2238
|
-
*/
|
|
2239
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.prototype.getSayable = function() {
|
|
2240
|
-
return /** @type{?proto.wechaty.puppet.PostSayable} */ (
|
|
2241
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostSayable, 1));
|
|
2242
|
-
};
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
/**
|
|
2246
|
-
* @param {?proto.wechaty.puppet.PostSayable|undefined} value
|
|
2247
|
-
* @return {!proto.wechaty.puppet.MomentPayloadSayableResponse} returns this
|
|
2248
|
-
*/
|
|
2249
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.prototype.setSayable = function(value) {
|
|
2250
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2251
|
-
};
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
/**
|
|
2255
|
-
* Clears the message field making it undefined.
|
|
2256
|
-
* @return {!proto.wechaty.puppet.MomentPayloadSayableResponse} returns this
|
|
2257
|
-
*/
|
|
2258
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.prototype.clearSayable = function() {
|
|
2259
|
-
return this.setSayable(undefined);
|
|
2260
|
-
};
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
/**
|
|
2264
|
-
* Returns whether this field is set.
|
|
2265
|
-
* @return {boolean}
|
|
2266
|
-
*/
|
|
2267
|
-
proto.wechaty.puppet.MomentPayloadSayableResponse.prototype.hasSayable = function() {
|
|
2268
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2269
|
-
};
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
953
|
goog.object.extend(exports, proto.wechaty.puppet);
|