@juzi/wechaty-grpc 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +2 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +2 -0
  3. package/dist/cjs/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  4. package/dist/cjs/out/wechaty/puppet/moment_pb.d.ts +300 -0
  5. package/dist/cjs/out/wechaty/puppet/moment_pb.js +2272 -0
  6. package/dist/cjs/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  7. package/dist/cjs/out/wechaty/puppet/moment_pb_service.js +3 -0
  8. package/dist/cjs/out/wechaty/puppet/post_grpc_pb.js +1 -0
  9. package/dist/cjs/out/wechaty/puppet/post_pb.d.ts +176 -0
  10. package/dist/cjs/out/wechaty/puppet/post_pb.js +1189 -0
  11. package/dist/cjs/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  12. package/dist/cjs/out/wechaty/puppet/post_pb_service.js +3 -0
  13. package/dist/cjs/out/wechaty/puppet.openapi.yaml +286 -1
  14. package/dist/cjs/out/wechaty/puppet.swagger.json +444 -1
  15. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  16. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +238 -0
  17. package/dist/cjs/out/wechaty/puppet_pb.d.ts +2 -0
  18. package/dist/cjs/out/wechaty/puppet_pb.js +4 -0
  19. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +134 -0
  20. package/dist/cjs/out/wechaty/puppet_pb_service.js +281 -0
  21. package/dist/cjs/proto/wechaty/puppet/channel.proto +8 -8
  22. package/dist/cjs/proto/wechaty/puppet/contact.proto +29 -29
  23. package/dist/cjs/proto/wechaty/puppet/friendship.proto +14 -14
  24. package/dist/cjs/proto/wechaty/puppet/location.proto +5 -5
  25. package/dist/cjs/proto/wechaty/puppet/message.proto +42 -43
  26. package/dist/cjs/proto/wechaty/puppet/mini-program.proto +9 -9
  27. package/dist/cjs/proto/wechaty/puppet/moment.proto +66 -0
  28. package/dist/cjs/proto/wechaty/puppet/post.proto +57 -0
  29. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +8 -8
  30. package/dist/cjs/proto/wechaty/puppet/room-member.proto +4 -4
  31. package/dist/cjs/proto/wechaty/puppet/room.proto +11 -11
  32. package/dist/cjs/proto/wechaty/puppet/tag.proto +6 -6
  33. package/dist/cjs/proto/wechaty/puppet/url-link.proto +4 -4
  34. package/dist/cjs/proto/wechaty/puppet.proto +58 -0
  35. package/dist/cjs/src/package-json.js +2 -2
  36. package/dist/cjs/src/package-json.js.map +1 -1
  37. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  38. package/dist/cjs/tests/puppet-server-impl.js +35 -0
  39. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  40. package/dist/esm/commonjs/generated/puppet.cjs +2 -0
  41. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +2 -0
  42. package/dist/esm/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  43. package/dist/esm/out/wechaty/puppet/moment_pb.d.ts +300 -0
  44. package/dist/esm/out/wechaty/puppet/moment_pb.js +2272 -0
  45. package/dist/esm/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  46. package/dist/esm/out/wechaty/puppet/moment_pb_service.js +3 -0
  47. package/dist/esm/out/wechaty/puppet/post_grpc_pb.js +1 -0
  48. package/dist/esm/out/wechaty/puppet/post_pb.d.ts +176 -0
  49. package/dist/esm/out/wechaty/puppet/post_pb.js +1189 -0
  50. package/dist/esm/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  51. package/dist/esm/out/wechaty/puppet/post_pb_service.js +3 -0
  52. package/dist/esm/out/wechaty/puppet.openapi.yaml +286 -1
  53. package/dist/esm/out/wechaty/puppet.swagger.json +444 -1
  54. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  55. package/dist/esm/out/wechaty/puppet_grpc_pb.js +238 -0
  56. package/dist/esm/out/wechaty/puppet_pb.d.ts +2 -0
  57. package/dist/esm/out/wechaty/puppet_pb.js +4 -0
  58. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +134 -0
  59. package/dist/esm/out/wechaty/puppet_pb_service.js +281 -0
  60. package/dist/esm/proto/wechaty/puppet/channel.proto +8 -8
  61. package/dist/esm/proto/wechaty/puppet/contact.proto +29 -29
  62. package/dist/esm/proto/wechaty/puppet/friendship.proto +14 -14
  63. package/dist/esm/proto/wechaty/puppet/location.proto +5 -5
  64. package/dist/esm/proto/wechaty/puppet/message.proto +42 -43
  65. package/dist/esm/proto/wechaty/puppet/mini-program.proto +9 -9
  66. package/dist/esm/proto/wechaty/puppet/moment.proto +66 -0
  67. package/dist/esm/proto/wechaty/puppet/post.proto +57 -0
  68. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +8 -8
  69. package/dist/esm/proto/wechaty/puppet/room-member.proto +4 -4
  70. package/dist/esm/proto/wechaty/puppet/room.proto +11 -11
  71. package/dist/esm/proto/wechaty/puppet/tag.proto +6 -6
  72. package/dist/esm/proto/wechaty/puppet/url-link.proto +4 -4
  73. package/dist/esm/proto/wechaty/puppet.proto +58 -0
  74. package/dist/esm/src/package-json.js +2 -2
  75. package/dist/esm/src/package-json.js.map +1 -1
  76. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  77. package/dist/esm/tests/puppet-server-impl.js +35 -0
  78. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  79. package/out/wechaty/puppet/moment_grpc_pb.js +1 -0
  80. package/out/wechaty/puppet/moment_pb.d.ts +300 -0
  81. package/out/wechaty/puppet/moment_pb.js +2272 -0
  82. package/out/wechaty/puppet/moment_pb_service.d.ts +3 -0
  83. package/out/wechaty/puppet/moment_pb_service.js +3 -0
  84. package/out/wechaty/puppet/post_grpc_pb.js +1 -0
  85. package/out/wechaty/puppet/post_pb.d.ts +176 -0
  86. package/out/wechaty/puppet/post_pb.js +1189 -0
  87. package/out/wechaty/puppet/post_pb_service.d.ts +3 -0
  88. package/out/wechaty/puppet/post_pb_service.js +3 -0
  89. package/out/wechaty/puppet.openapi.yaml +286 -1
  90. package/out/wechaty/puppet.swagger.json +444 -1
  91. package/out/wechaty/puppet_grpc_pb.d.ts +121 -0
  92. package/out/wechaty/puppet_grpc_pb.js +238 -0
  93. package/out/wechaty/puppet_pb.d.ts +2 -0
  94. package/out/wechaty/puppet_pb.js +4 -0
  95. package/out/wechaty/puppet_pb_service.d.ts +134 -0
  96. package/out/wechaty/puppet_pb_service.js +281 -0
  97. package/package.json +1 -1
  98. package/src/package-json.ts +2 -2
@@ -0,0 +1,2272 @@
1
+ // source: wechaty/puppet/moment.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var wechaty_puppet_post_pb = require('../../wechaty/puppet/post_pb.js');
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
+ goog.exportSymbol('proto.wechaty.puppet.MomentCoverageRequest', null, global);
23
+ 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
+ goog.exportSymbol('proto.wechaty.puppet.MomentPublishRequest', null, global);
31
+ goog.exportSymbol('proto.wechaty.puppet.MomentPublishResponse', null, global);
32
+ goog.exportSymbol('proto.wechaty.puppet.MomentSignatureRequest', null, global);
33
+ goog.exportSymbol('proto.wechaty.puppet.MomentSignatureResponse', null, global);
34
+ /**
35
+ * Generated by JsPbCodeGenerator.
36
+ * @param {Array=} opt_data Optional initial data array, typically from a
37
+ * server response, or constructed directly in Javascript. The array is used
38
+ * in place and becomes part of the constructed object. It is not cloned.
39
+ * If no data is provided, the constructed object will be empty, but still
40
+ * valid.
41
+ * @extends {jspb.Message}
42
+ * @constructor
43
+ */
44
+ proto.wechaty.puppet.MomentPublishRequest = function(opt_data) {
45
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
46
+ };
47
+ goog.inherits(proto.wechaty.puppet.MomentPublishRequest, jspb.Message);
48
+ if (goog.DEBUG && !COMPILED) {
49
+ /**
50
+ * @public
51
+ * @override
52
+ */
53
+ proto.wechaty.puppet.MomentPublishRequest.displayName = 'proto.wechaty.puppet.MomentPublishRequest';
54
+ }
55
+ /**
56
+ * Generated by JsPbCodeGenerator.
57
+ * @param {Array=} opt_data Optional initial data array, typically from a
58
+ * server response, or constructed directly in Javascript. The array is used
59
+ * in place and becomes part of the constructed object. It is not cloned.
60
+ * If no data is provided, the constructed object will be empty, but still
61
+ * valid.
62
+ * @extends {jspb.Message}
63
+ * @constructor
64
+ */
65
+ proto.wechaty.puppet.MomentPublishResponse = function(opt_data) {
66
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
67
+ };
68
+ goog.inherits(proto.wechaty.puppet.MomentPublishResponse, jspb.Message);
69
+ if (goog.DEBUG && !COMPILED) {
70
+ /**
71
+ * @public
72
+ * @override
73
+ */
74
+ proto.wechaty.puppet.MomentPublishResponse.displayName = 'proto.wechaty.puppet.MomentPublishResponse';
75
+ }
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
+ /**
161
+ * Generated by JsPbCodeGenerator.
162
+ * @param {Array=} opt_data Optional initial data array, typically from a
163
+ * server response, or constructed directly in Javascript. The array is used
164
+ * in place and becomes part of the constructed object. It is not cloned.
165
+ * If no data is provided, the constructed object will be empty, but still
166
+ * valid.
167
+ * @extends {jspb.Message}
168
+ * @constructor
169
+ */
170
+ proto.wechaty.puppet.MomentSignatureRequest = function(opt_data) {
171
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
172
+ };
173
+ goog.inherits(proto.wechaty.puppet.MomentSignatureRequest, jspb.Message);
174
+ if (goog.DEBUG && !COMPILED) {
175
+ /**
176
+ * @public
177
+ * @override
178
+ */
179
+ proto.wechaty.puppet.MomentSignatureRequest.displayName = 'proto.wechaty.puppet.MomentSignatureRequest';
180
+ }
181
+ /**
182
+ * Generated by JsPbCodeGenerator.
183
+ * @param {Array=} opt_data Optional initial data array, typically from a
184
+ * server response, or constructed directly in Javascript. The array is used
185
+ * in place and becomes part of the constructed object. It is not cloned.
186
+ * If no data is provided, the constructed object will be empty, but still
187
+ * valid.
188
+ * @extends {jspb.Message}
189
+ * @constructor
190
+ */
191
+ proto.wechaty.puppet.MomentSignatureResponse = function(opt_data) {
192
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
193
+ };
194
+ goog.inherits(proto.wechaty.puppet.MomentSignatureResponse, jspb.Message);
195
+ if (goog.DEBUG && !COMPILED) {
196
+ /**
197
+ * @public
198
+ * @override
199
+ */
200
+ proto.wechaty.puppet.MomentSignatureResponse.displayName = 'proto.wechaty.puppet.MomentSignatureResponse';
201
+ }
202
+ /**
203
+ * Generated by JsPbCodeGenerator.
204
+ * @param {Array=} opt_data Optional initial data array, typically from a
205
+ * server response, or constructed directly in Javascript. The array is used
206
+ * in place and becomes part of the constructed object. It is not cloned.
207
+ * If no data is provided, the constructed object will be empty, but still
208
+ * valid.
209
+ * @extends {jspb.Message}
210
+ * @constructor
211
+ */
212
+ proto.wechaty.puppet.MomentCoverageRequest = function(opt_data) {
213
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ };
215
+ goog.inherits(proto.wechaty.puppet.MomentCoverageRequest, jspb.Message);
216
+ if (goog.DEBUG && !COMPILED) {
217
+ /**
218
+ * @public
219
+ * @override
220
+ */
221
+ proto.wechaty.puppet.MomentCoverageRequest.displayName = 'proto.wechaty.puppet.MomentCoverageRequest';
222
+ }
223
+ /**
224
+ * Generated by JsPbCodeGenerator.
225
+ * @param {Array=} opt_data Optional initial data array, typically from a
226
+ * server response, or constructed directly in Javascript. The array is used
227
+ * in place and becomes part of the constructed object. It is not cloned.
228
+ * If no data is provided, the constructed object will be empty, but still
229
+ * valid.
230
+ * @extends {jspb.Message}
231
+ * @constructor
232
+ */
233
+ proto.wechaty.puppet.MomentCoverageResponse = function(opt_data) {
234
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
235
+ };
236
+ goog.inherits(proto.wechaty.puppet.MomentCoverageResponse, jspb.Message);
237
+ if (goog.DEBUG && !COMPILED) {
238
+ /**
239
+ * @public
240
+ * @override
241
+ */
242
+ proto.wechaty.puppet.MomentCoverageResponse.displayName = 'proto.wechaty.puppet.MomentCoverageResponse';
243
+ }
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
+
329
+
330
+
331
+ if (jspb.Message.GENERATE_TO_OBJECT) {
332
+ /**
333
+ * Creates an object representation of this proto.
334
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
335
+ * Optional fields that are not set will be set to undefined.
336
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
337
+ * For the list of reserved names please see:
338
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
339
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
340
+ * JSPB instance for transitional soy proto support:
341
+ * http://goto/soy-param-migration
342
+ * @return {!Object}
343
+ */
344
+ proto.wechaty.puppet.MomentPublishRequest.prototype.toObject = function(opt_includeInstance) {
345
+ return proto.wechaty.puppet.MomentPublishRequest.toObject(opt_includeInstance, this);
346
+ };
347
+
348
+
349
+ /**
350
+ * Static version of the {@see toObject} method.
351
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
352
+ * the JSPB instance for transitional soy proto support:
353
+ * http://goto/soy-param-migration
354
+ * @param {!proto.wechaty.puppet.MomentPublishRequest} msg The msg instance to transform.
355
+ * @return {!Object}
356
+ * @suppress {unusedLocalVariables} f is only used for nested messages
357
+ */
358
+ proto.wechaty.puppet.MomentPublishRequest.toObject = function(includeInstance, msg) {
359
+ var f, obj = {
360
+ post: (f = msg.getPost()) && wechaty_puppet_post_pb.PostPayloadClient.toObject(includeInstance, f)
361
+ };
362
+
363
+ if (includeInstance) {
364
+ obj.$jspbMessageInstance = msg;
365
+ }
366
+ return obj;
367
+ };
368
+ }
369
+
370
+
371
+ /**
372
+ * Deserializes binary data (in protobuf wire format).
373
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
374
+ * @return {!proto.wechaty.puppet.MomentPublishRequest}
375
+ */
376
+ proto.wechaty.puppet.MomentPublishRequest.deserializeBinary = function(bytes) {
377
+ var reader = new jspb.BinaryReader(bytes);
378
+ var msg = new proto.wechaty.puppet.MomentPublishRequest;
379
+ return proto.wechaty.puppet.MomentPublishRequest.deserializeBinaryFromReader(msg, reader);
380
+ };
381
+
382
+
383
+ /**
384
+ * Deserializes binary data (in protobuf wire format) from the
385
+ * given reader into the given message object.
386
+ * @param {!proto.wechaty.puppet.MomentPublishRequest} msg The message object to deserialize into.
387
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
388
+ * @return {!proto.wechaty.puppet.MomentPublishRequest}
389
+ */
390
+ proto.wechaty.puppet.MomentPublishRequest.deserializeBinaryFromReader = function(msg, reader) {
391
+ while (reader.nextField()) {
392
+ if (reader.isEndGroup()) {
393
+ break;
394
+ }
395
+ var field = reader.getFieldNumber();
396
+ switch (field) {
397
+ case 1:
398
+ var value = new wechaty_puppet_post_pb.PostPayloadClient;
399
+ reader.readMessage(value,wechaty_puppet_post_pb.PostPayloadClient.deserializeBinaryFromReader);
400
+ msg.setPost(value);
401
+ break;
402
+ default:
403
+ reader.skipField();
404
+ break;
405
+ }
406
+ }
407
+ return msg;
408
+ };
409
+
410
+
411
+ /**
412
+ * Serializes the message to binary data (in protobuf wire format).
413
+ * @return {!Uint8Array}
414
+ */
415
+ proto.wechaty.puppet.MomentPublishRequest.prototype.serializeBinary = function() {
416
+ var writer = new jspb.BinaryWriter();
417
+ proto.wechaty.puppet.MomentPublishRequest.serializeBinaryToWriter(this, writer);
418
+ return writer.getResultBuffer();
419
+ };
420
+
421
+
422
+ /**
423
+ * Serializes the given message to binary data (in protobuf wire
424
+ * format), writing to the given BinaryWriter.
425
+ * @param {!proto.wechaty.puppet.MomentPublishRequest} message
426
+ * @param {!jspb.BinaryWriter} writer
427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
428
+ */
429
+ proto.wechaty.puppet.MomentPublishRequest.serializeBinaryToWriter = function(message, writer) {
430
+ var f = undefined;
431
+ f = message.getPost();
432
+ if (f != null) {
433
+ writer.writeMessage(
434
+ 1,
435
+ f,
436
+ wechaty_puppet_post_pb.PostPayloadClient.serializeBinaryToWriter
437
+ );
438
+ }
439
+ };
440
+
441
+
442
+ /**
443
+ * optional PostPayloadClient post = 1;
444
+ * @return {?proto.wechaty.puppet.PostPayloadClient}
445
+ */
446
+ proto.wechaty.puppet.MomentPublishRequest.prototype.getPost = function() {
447
+ return /** @type{?proto.wechaty.puppet.PostPayloadClient} */ (
448
+ jspb.Message.getWrapperField(this, wechaty_puppet_post_pb.PostPayloadClient, 1));
449
+ };
450
+
451
+
452
+ /**
453
+ * @param {?proto.wechaty.puppet.PostPayloadClient|undefined} value
454
+ * @return {!proto.wechaty.puppet.MomentPublishRequest} returns this
455
+ */
456
+ proto.wechaty.puppet.MomentPublishRequest.prototype.setPost = function(value) {
457
+ return jspb.Message.setWrapperField(this, 1, value);
458
+ };
459
+
460
+
461
+ /**
462
+ * Clears the message field making it undefined.
463
+ * @return {!proto.wechaty.puppet.MomentPublishRequest} returns this
464
+ */
465
+ proto.wechaty.puppet.MomentPublishRequest.prototype.clearPost = function() {
466
+ return this.setPost(undefined);
467
+ };
468
+
469
+
470
+ /**
471
+ * Returns whether this field is set.
472
+ * @return {boolean}
473
+ */
474
+ proto.wechaty.puppet.MomentPublishRequest.prototype.hasPost = function() {
475
+ return jspb.Message.getField(this, 1) != null;
476
+ };
477
+
478
+
479
+
480
+
481
+
482
+ if (jspb.Message.GENERATE_TO_OBJECT) {
483
+ /**
484
+ * Creates an object representation of this proto.
485
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
486
+ * Optional fields that are not set will be set to undefined.
487
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
488
+ * For the list of reserved names please see:
489
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
490
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
491
+ * JSPB instance for transitional soy proto support:
492
+ * http://goto/soy-param-migration
493
+ * @return {!Object}
494
+ */
495
+ proto.wechaty.puppet.MomentPublishResponse.prototype.toObject = function(opt_includeInstance) {
496
+ return proto.wechaty.puppet.MomentPublishResponse.toObject(opt_includeInstance, this);
497
+ };
498
+
499
+
500
+ /**
501
+ * Static version of the {@see toObject} method.
502
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
503
+ * the JSPB instance for transitional soy proto support:
504
+ * http://goto/soy-param-migration
505
+ * @param {!proto.wechaty.puppet.MomentPublishResponse} msg The msg instance to transform.
506
+ * @return {!Object}
507
+ * @suppress {unusedLocalVariables} f is only used for nested messages
508
+ */
509
+ proto.wechaty.puppet.MomentPublishResponse.toObject = function(includeInstance, msg) {
510
+ var f, obj = {
511
+ momentId: jspb.Message.getFieldWithDefault(msg, 1, "")
512
+ };
513
+
514
+ if (includeInstance) {
515
+ obj.$jspbMessageInstance = msg;
516
+ }
517
+ return obj;
518
+ };
519
+ }
520
+
521
+
522
+ /**
523
+ * Deserializes binary data (in protobuf wire format).
524
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
525
+ * @return {!proto.wechaty.puppet.MomentPublishResponse}
526
+ */
527
+ proto.wechaty.puppet.MomentPublishResponse.deserializeBinary = function(bytes) {
528
+ var reader = new jspb.BinaryReader(bytes);
529
+ var msg = new proto.wechaty.puppet.MomentPublishResponse;
530
+ return proto.wechaty.puppet.MomentPublishResponse.deserializeBinaryFromReader(msg, reader);
531
+ };
532
+
533
+
534
+ /**
535
+ * Deserializes binary data (in protobuf wire format) from the
536
+ * given reader into the given message object.
537
+ * @param {!proto.wechaty.puppet.MomentPublishResponse} msg The message object to deserialize into.
538
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
539
+ * @return {!proto.wechaty.puppet.MomentPublishResponse}
540
+ */
541
+ proto.wechaty.puppet.MomentPublishResponse.deserializeBinaryFromReader = function(msg, reader) {
542
+ while (reader.nextField()) {
543
+ if (reader.isEndGroup()) {
544
+ break;
545
+ }
546
+ var field = reader.getFieldNumber();
547
+ switch (field) {
548
+ case 1:
549
+ var value = /** @type {string} */ (reader.readString());
550
+ msg.setMomentId(value);
551
+ break;
552
+ default:
553
+ reader.skipField();
554
+ break;
555
+ }
556
+ }
557
+ return msg;
558
+ };
559
+
560
+
561
+ /**
562
+ * Serializes the message to binary data (in protobuf wire format).
563
+ * @return {!Uint8Array}
564
+ */
565
+ proto.wechaty.puppet.MomentPublishResponse.prototype.serializeBinary = function() {
566
+ var writer = new jspb.BinaryWriter();
567
+ proto.wechaty.puppet.MomentPublishResponse.serializeBinaryToWriter(this, writer);
568
+ return writer.getResultBuffer();
569
+ };
570
+
571
+
572
+ /**
573
+ * Serializes the given message to binary data (in protobuf wire
574
+ * format), writing to the given BinaryWriter.
575
+ * @param {!proto.wechaty.puppet.MomentPublishResponse} message
576
+ * @param {!jspb.BinaryWriter} writer
577
+ * @suppress {unusedLocalVariables} f is only used for nested messages
578
+ */
579
+ proto.wechaty.puppet.MomentPublishResponse.serializeBinaryToWriter = function(message, writer) {
580
+ var f = undefined;
581
+ f = message.getMomentId();
582
+ if (f.length > 0) {
583
+ writer.writeString(
584
+ 1,
585
+ f
586
+ );
587
+ }
588
+ };
589
+
590
+
591
+ /**
592
+ * optional string moment_id = 1;
593
+ * @return {string}
594
+ */
595
+ proto.wechaty.puppet.MomentPublishResponse.prototype.getMomentId = function() {
596
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
597
+ };
598
+
599
+
600
+ /**
601
+ * @param {string} value
602
+ * @return {!proto.wechaty.puppet.MomentPublishResponse} returns this
603
+ */
604
+ proto.wechaty.puppet.MomentPublishResponse.prototype.setMomentId = function(value) {
605
+ return jspb.Message.setProto3StringField(this, 1, value);
606
+ };
607
+
608
+
609
+
610
+
611
+
612
+ if (jspb.Message.GENERATE_TO_OBJECT) {
613
+ /**
614
+ * Creates an object representation of this proto.
615
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
616
+ * Optional fields that are not set will be set to undefined.
617
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
618
+ * For the list of reserved names please see:
619
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
620
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
621
+ * JSPB instance for transitional soy proto support:
622
+ * http://goto/soy-param-migration
623
+ * @return {!Object}
624
+ */
625
+ proto.wechaty.puppet.MomentCommentRequest.prototype.toObject = function(opt_includeInstance) {
626
+ return proto.wechaty.puppet.MomentCommentRequest.toObject(opt_includeInstance, this);
627
+ };
628
+
629
+
630
+ /**
631
+ * Static version of the {@see toObject} method.
632
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
633
+ * the JSPB instance for transitional soy proto support:
634
+ * http://goto/soy-param-migration
635
+ * @param {!proto.wechaty.puppet.MomentCommentRequest} msg The msg instance to transform.
636
+ * @return {!Object}
637
+ * @suppress {unusedLocalVariables} f is only used for nested messages
638
+ */
639
+ proto.wechaty.puppet.MomentCommentRequest.toObject = function(includeInstance, msg) {
640
+ var f, obj = {
641
+ momentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
642
+ text: jspb.Message.getFieldWithDefault(msg, 2, ""),
643
+ mentionId: jspb.Message.getFieldWithDefault(msg, 3, "")
644
+ };
645
+
646
+ if (includeInstance) {
647
+ obj.$jspbMessageInstance = msg;
648
+ }
649
+ return obj;
650
+ };
651
+ }
652
+
653
+
654
+ /**
655
+ * Deserializes binary data (in protobuf wire format).
656
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
657
+ * @return {!proto.wechaty.puppet.MomentCommentRequest}
658
+ */
659
+ proto.wechaty.puppet.MomentCommentRequest.deserializeBinary = function(bytes) {
660
+ var reader = new jspb.BinaryReader(bytes);
661
+ var msg = new proto.wechaty.puppet.MomentCommentRequest;
662
+ return proto.wechaty.puppet.MomentCommentRequest.deserializeBinaryFromReader(msg, reader);
663
+ };
664
+
665
+
666
+ /**
667
+ * Deserializes binary data (in protobuf wire format) from the
668
+ * given reader into the given message object.
669
+ * @param {!proto.wechaty.puppet.MomentCommentRequest} msg The message object to deserialize into.
670
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
671
+ * @return {!proto.wechaty.puppet.MomentCommentRequest}
672
+ */
673
+ proto.wechaty.puppet.MomentCommentRequest.deserializeBinaryFromReader = function(msg, reader) {
674
+ while (reader.nextField()) {
675
+ if (reader.isEndGroup()) {
676
+ break;
677
+ }
678
+ var field = reader.getFieldNumber();
679
+ switch (field) {
680
+ case 1:
681
+ var value = /** @type {string} */ (reader.readString());
682
+ msg.setMomentId(value);
683
+ break;
684
+ case 2:
685
+ var value = /** @type {string} */ (reader.readString());
686
+ msg.setText(value);
687
+ break;
688
+ case 3:
689
+ var value = /** @type {string} */ (reader.readString());
690
+ msg.setMentionId(value);
691
+ break;
692
+ default:
693
+ reader.skipField();
694
+ break;
695
+ }
696
+ }
697
+ return msg;
698
+ };
699
+
700
+
701
+ /**
702
+ * Serializes the message to binary data (in protobuf wire format).
703
+ * @return {!Uint8Array}
704
+ */
705
+ proto.wechaty.puppet.MomentCommentRequest.prototype.serializeBinary = function() {
706
+ var writer = new jspb.BinaryWriter();
707
+ proto.wechaty.puppet.MomentCommentRequest.serializeBinaryToWriter(this, writer);
708
+ return writer.getResultBuffer();
709
+ };
710
+
711
+
712
+ /**
713
+ * Serializes the given message to binary data (in protobuf wire
714
+ * format), writing to the given BinaryWriter.
715
+ * @param {!proto.wechaty.puppet.MomentCommentRequest} message
716
+ * @param {!jspb.BinaryWriter} writer
717
+ * @suppress {unusedLocalVariables} f is only used for nested messages
718
+ */
719
+ proto.wechaty.puppet.MomentCommentRequest.serializeBinaryToWriter = function(message, writer) {
720
+ var f = undefined;
721
+ f = message.getMomentId();
722
+ if (f.length > 0) {
723
+ writer.writeString(
724
+ 1,
725
+ f
726
+ );
727
+ }
728
+ f = message.getText();
729
+ if (f.length > 0) {
730
+ writer.writeString(
731
+ 2,
732
+ f
733
+ );
734
+ }
735
+ f = message.getMentionId();
736
+ if (f.length > 0) {
737
+ writer.writeString(
738
+ 3,
739
+ f
740
+ );
741
+ }
742
+ };
743
+
744
+
745
+ /**
746
+ * optional string moment_id = 1;
747
+ * @return {string}
748
+ */
749
+ proto.wechaty.puppet.MomentCommentRequest.prototype.getMomentId = function() {
750
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
751
+ };
752
+
753
+
754
+ /**
755
+ * @param {string} value
756
+ * @return {!proto.wechaty.puppet.MomentCommentRequest} returns this
757
+ */
758
+ proto.wechaty.puppet.MomentCommentRequest.prototype.setMomentId = function(value) {
759
+ return jspb.Message.setProto3StringField(this, 1, value);
760
+ };
761
+
762
+
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
+
800
+
801
+
802
+ if (jspb.Message.GENERATE_TO_OBJECT) {
803
+ /**
804
+ * Creates an object representation of this proto.
805
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
806
+ * Optional fields that are not set will be set to undefined.
807
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
808
+ * For the list of reserved names please see:
809
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
810
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
811
+ * JSPB instance for transitional soy proto support:
812
+ * http://goto/soy-param-migration
813
+ * @return {!Object}
814
+ */
815
+ proto.wechaty.puppet.MomentCommentResponse.prototype.toObject = function(opt_includeInstance) {
816
+ return proto.wechaty.puppet.MomentCommentResponse.toObject(opt_includeInstance, this);
817
+ };
818
+
819
+
820
+ /**
821
+ * Static version of the {@see toObject} method.
822
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
823
+ * the JSPB instance for transitional soy proto support:
824
+ * http://goto/soy-param-migration
825
+ * @param {!proto.wechaty.puppet.MomentCommentResponse} msg The msg instance to transform.
826
+ * @return {!Object}
827
+ * @suppress {unusedLocalVariables} f is only used for nested messages
828
+ */
829
+ proto.wechaty.puppet.MomentCommentResponse.toObject = function(includeInstance, msg) {
830
+ var f, obj = {
831
+ commentId: jspb.Message.getFieldWithDefault(msg, 1, "")
832
+ };
833
+
834
+ if (includeInstance) {
835
+ obj.$jspbMessageInstance = msg;
836
+ }
837
+ return obj;
838
+ };
839
+ }
840
+
841
+
842
+ /**
843
+ * Deserializes binary data (in protobuf wire format).
844
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
845
+ * @return {!proto.wechaty.puppet.MomentCommentResponse}
846
+ */
847
+ proto.wechaty.puppet.MomentCommentResponse.deserializeBinary = function(bytes) {
848
+ var reader = new jspb.BinaryReader(bytes);
849
+ var msg = new proto.wechaty.puppet.MomentCommentResponse;
850
+ return proto.wechaty.puppet.MomentCommentResponse.deserializeBinaryFromReader(msg, reader);
851
+ };
852
+
853
+
854
+ /**
855
+ * Deserializes binary data (in protobuf wire format) from the
856
+ * given reader into the given message object.
857
+ * @param {!proto.wechaty.puppet.MomentCommentResponse} msg The message object to deserialize into.
858
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
859
+ * @return {!proto.wechaty.puppet.MomentCommentResponse}
860
+ */
861
+ proto.wechaty.puppet.MomentCommentResponse.deserializeBinaryFromReader = function(msg, reader) {
862
+ while (reader.nextField()) {
863
+ if (reader.isEndGroup()) {
864
+ break;
865
+ }
866
+ var field = reader.getFieldNumber();
867
+ switch (field) {
868
+ case 1:
869
+ var value = /** @type {string} */ (reader.readString());
870
+ msg.setCommentId(value);
871
+ break;
872
+ default:
873
+ reader.skipField();
874
+ break;
875
+ }
876
+ }
877
+ return msg;
878
+ };
879
+
880
+
881
+ /**
882
+ * Serializes the message to binary data (in protobuf wire format).
883
+ * @return {!Uint8Array}
884
+ */
885
+ proto.wechaty.puppet.MomentCommentResponse.prototype.serializeBinary = function() {
886
+ var writer = new jspb.BinaryWriter();
887
+ proto.wechaty.puppet.MomentCommentResponse.serializeBinaryToWriter(this, writer);
888
+ return writer.getResultBuffer();
889
+ };
890
+
891
+
892
+ /**
893
+ * Serializes the given message to binary data (in protobuf wire
894
+ * format), writing to the given BinaryWriter.
895
+ * @param {!proto.wechaty.puppet.MomentCommentResponse} message
896
+ * @param {!jspb.BinaryWriter} writer
897
+ * @suppress {unusedLocalVariables} f is only used for nested messages
898
+ */
899
+ proto.wechaty.puppet.MomentCommentResponse.serializeBinaryToWriter = function(message, writer) {
900
+ var f = undefined;
901
+ f = message.getCommentId();
902
+ if (f.length > 0) {
903
+ writer.writeString(
904
+ 1,
905
+ f
906
+ );
907
+ }
908
+ };
909
+
910
+
911
+ /**
912
+ * optional string comment_id = 1;
913
+ * @return {string}
914
+ */
915
+ proto.wechaty.puppet.MomentCommentResponse.prototype.getCommentId = function() {
916
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
917
+ };
918
+
919
+
920
+ /**
921
+ * @param {string} value
922
+ * @return {!proto.wechaty.puppet.MomentCommentResponse} returns this
923
+ */
924
+ proto.wechaty.puppet.MomentCommentResponse.prototype.setCommentId = function(value) {
925
+ return jspb.Message.setProto3StringField(this, 1, value);
926
+ };
927
+
928
+
929
+
930
+
931
+
932
+ if (jspb.Message.GENERATE_TO_OBJECT) {
933
+ /**
934
+ * Creates an object representation of this proto.
935
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
936
+ * Optional fields that are not set will be set to undefined.
937
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
938
+ * For the list of reserved names please see:
939
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
940
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
941
+ * JSPB instance for transitional soy proto support:
942
+ * http://goto/soy-param-migration
943
+ * @return {!Object}
944
+ */
945
+ proto.wechaty.puppet.MomentLikeRequest.prototype.toObject = function(opt_includeInstance) {
946
+ return proto.wechaty.puppet.MomentLikeRequest.toObject(opt_includeInstance, this);
947
+ };
948
+
949
+
950
+ /**
951
+ * Static version of the {@see toObject} method.
952
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
953
+ * the JSPB instance for transitional soy proto support:
954
+ * http://goto/soy-param-migration
955
+ * @param {!proto.wechaty.puppet.MomentLikeRequest} msg The msg instance to transform.
956
+ * @return {!Object}
957
+ * @suppress {unusedLocalVariables} f is only used for nested messages
958
+ */
959
+ proto.wechaty.puppet.MomentLikeRequest.toObject = function(includeInstance, msg) {
960
+ var f, obj = {
961
+ momentId: jspb.Message.getFieldWithDefault(msg, 1, "")
962
+ };
963
+
964
+ if (includeInstance) {
965
+ obj.$jspbMessageInstance = msg;
966
+ }
967
+ return obj;
968
+ };
969
+ }
970
+
971
+
972
+ /**
973
+ * Deserializes binary data (in protobuf wire format).
974
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
975
+ * @return {!proto.wechaty.puppet.MomentLikeRequest}
976
+ */
977
+ proto.wechaty.puppet.MomentLikeRequest.deserializeBinary = function(bytes) {
978
+ var reader = new jspb.BinaryReader(bytes);
979
+ var msg = new proto.wechaty.puppet.MomentLikeRequest;
980
+ return proto.wechaty.puppet.MomentLikeRequest.deserializeBinaryFromReader(msg, reader);
981
+ };
982
+
983
+
984
+ /**
985
+ * Deserializes binary data (in protobuf wire format) from the
986
+ * given reader into the given message object.
987
+ * @param {!proto.wechaty.puppet.MomentLikeRequest} msg The message object to deserialize into.
988
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
989
+ * @return {!proto.wechaty.puppet.MomentLikeRequest}
990
+ */
991
+ proto.wechaty.puppet.MomentLikeRequest.deserializeBinaryFromReader = function(msg, reader) {
992
+ while (reader.nextField()) {
993
+ if (reader.isEndGroup()) {
994
+ break;
995
+ }
996
+ var field = reader.getFieldNumber();
997
+ switch (field) {
998
+ case 1:
999
+ var value = /** @type {string} */ (reader.readString());
1000
+ msg.setMomentId(value);
1001
+ break;
1002
+ default:
1003
+ reader.skipField();
1004
+ break;
1005
+ }
1006
+ }
1007
+ return msg;
1008
+ };
1009
+
1010
+
1011
+ /**
1012
+ * Serializes the message to binary data (in protobuf wire format).
1013
+ * @return {!Uint8Array}
1014
+ */
1015
+ proto.wechaty.puppet.MomentLikeRequest.prototype.serializeBinary = function() {
1016
+ var writer = new jspb.BinaryWriter();
1017
+ proto.wechaty.puppet.MomentLikeRequest.serializeBinaryToWriter(this, writer);
1018
+ return writer.getResultBuffer();
1019
+ };
1020
+
1021
+
1022
+ /**
1023
+ * Serializes the given message to binary data (in protobuf wire
1024
+ * format), writing to the given BinaryWriter.
1025
+ * @param {!proto.wechaty.puppet.MomentLikeRequest} message
1026
+ * @param {!jspb.BinaryWriter} writer
1027
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1028
+ */
1029
+ proto.wechaty.puppet.MomentLikeRequest.serializeBinaryToWriter = function(message, writer) {
1030
+ var f = undefined;
1031
+ f = message.getMomentId();
1032
+ if (f.length > 0) {
1033
+ writer.writeString(
1034
+ 1,
1035
+ f
1036
+ );
1037
+ }
1038
+ };
1039
+
1040
+
1041
+ /**
1042
+ * optional string moment_id = 1;
1043
+ * @return {string}
1044
+ */
1045
+ proto.wechaty.puppet.MomentLikeRequest.prototype.getMomentId = function() {
1046
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1047
+ };
1048
+
1049
+
1050
+ /**
1051
+ * @param {string} value
1052
+ * @return {!proto.wechaty.puppet.MomentLikeRequest} returns this
1053
+ */
1054
+ proto.wechaty.puppet.MomentLikeRequest.prototype.setMomentId = function(value) {
1055
+ return jspb.Message.setProto3StringField(this, 1, value);
1056
+ };
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1063
+ /**
1064
+ * Creates an object representation of this proto.
1065
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1066
+ * Optional fields that are not set will be set to undefined.
1067
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1068
+ * For the list of reserved names please see:
1069
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1070
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1071
+ * JSPB instance for transitional soy proto support:
1072
+ * http://goto/soy-param-migration
1073
+ * @return {!Object}
1074
+ */
1075
+ proto.wechaty.puppet.MomentLikeResponse.prototype.toObject = function(opt_includeInstance) {
1076
+ return proto.wechaty.puppet.MomentLikeResponse.toObject(opt_includeInstance, this);
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);
1979
+ };
1980
+
1981
+
1982
+ /**
1983
+ * Static version of the {@see toObject} method.
1984
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1985
+ * the JSPB instance for transitional soy proto support:
1986
+ * http://goto/soy-param-migration
1987
+ * @param {!proto.wechaty.puppet.MomentPayloadSayableRequest} msg The msg instance to transform.
1988
+ * @return {!Object}
1989
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1990
+ */
1991
+ proto.wechaty.puppet.MomentPayloadSayableRequest.toObject = function(includeInstance, msg) {
1992
+ var f, obj = {
1993
+ momentId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1994
+ sayableId: jspb.Message.getFieldWithDefault(msg, 2, "")
1995
+ };
1996
+
1997
+ if (includeInstance) {
1998
+ obj.$jspbMessageInstance = msg;
1999
+ }
2000
+ return obj;
2001
+ };
2002
+ }
2003
+
2004
+
2005
+ /**
2006
+ * Deserializes binary data (in protobuf wire format).
2007
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2008
+ * @return {!proto.wechaty.puppet.MomentPayloadSayableRequest}
2009
+ */
2010
+ proto.wechaty.puppet.MomentPayloadSayableRequest.deserializeBinary = function(bytes) {
2011
+ var reader = new jspb.BinaryReader(bytes);
2012
+ var msg = new proto.wechaty.puppet.MomentPayloadSayableRequest;
2013
+ return proto.wechaty.puppet.MomentPayloadSayableRequest.deserializeBinaryFromReader(msg, reader);
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * Deserializes binary data (in protobuf wire format) from the
2019
+ * given reader into the given message object.
2020
+ * @param {!proto.wechaty.puppet.MomentPayloadSayableRequest} msg The message object to deserialize into.
2021
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2022
+ * @return {!proto.wechaty.puppet.MomentPayloadSayableRequest}
2023
+ */
2024
+ proto.wechaty.puppet.MomentPayloadSayableRequest.deserializeBinaryFromReader = function(msg, reader) {
2025
+ while (reader.nextField()) {
2026
+ if (reader.isEndGroup()) {
2027
+ break;
2028
+ }
2029
+ var field = reader.getFieldNumber();
2030
+ switch (field) {
2031
+ case 1:
2032
+ var value = /** @type {string} */ (reader.readString());
2033
+ msg.setMomentId(value);
2034
+ break;
2035
+ case 2:
2036
+ var value = /** @type {string} */ (reader.readString());
2037
+ msg.setSayableId(value);
2038
+ break;
2039
+ default:
2040
+ reader.skipField();
2041
+ break;
2042
+ }
2043
+ }
2044
+ return msg;
2045
+ };
2046
+
2047
+
2048
+ /**
2049
+ * Serializes the message to binary data (in protobuf wire format).
2050
+ * @return {!Uint8Array}
2051
+ */
2052
+ proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.serializeBinary = function() {
2053
+ var writer = new jspb.BinaryWriter();
2054
+ proto.wechaty.puppet.MomentPayloadSayableRequest.serializeBinaryToWriter(this, writer);
2055
+ return writer.getResultBuffer();
2056
+ };
2057
+
2058
+
2059
+ /**
2060
+ * Serializes the given message to binary data (in protobuf wire
2061
+ * format), writing to the given BinaryWriter.
2062
+ * @param {!proto.wechaty.puppet.MomentPayloadSayableRequest} message
2063
+ * @param {!jspb.BinaryWriter} writer
2064
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2065
+ */
2066
+ proto.wechaty.puppet.MomentPayloadSayableRequest.serializeBinaryToWriter = function(message, writer) {
2067
+ var f = undefined;
2068
+ f = message.getMomentId();
2069
+ if (f.length > 0) {
2070
+ writer.writeString(
2071
+ 1,
2072
+ f
2073
+ );
2074
+ }
2075
+ f = message.getSayableId();
2076
+ if (f.length > 0) {
2077
+ writer.writeString(
2078
+ 2,
2079
+ f
2080
+ );
2081
+ }
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * optional string moment_id = 1;
2087
+ * @return {string}
2088
+ */
2089
+ proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.getMomentId = function() {
2090
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2091
+ };
2092
+
2093
+
2094
+ /**
2095
+ * @param {string} value
2096
+ * @return {!proto.wechaty.puppet.MomentPayloadSayableRequest} returns this
2097
+ */
2098
+ proto.wechaty.puppet.MomentPayloadSayableRequest.prototype.setMomentId = function(value) {
2099
+ return jspb.Message.setProto3StringField(this, 1, value);
2100
+ };
2101
+
2102
+
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
+ goog.object.extend(exports, proto.wechaty.puppet);