@juzi/wechaty-grpc 1.0.68 → 1.0.70

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 (46) hide show
  1. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +3 -3
  2. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +9 -9
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +80 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +611 -1
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +49 -2
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +75 -2
  7. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  8. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  9. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  10. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  11. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +1 -1
  12. package/dist/cjs/proto/wechaty/puppet/contact.proto +17 -0
  13. package/dist/cjs/proto/wechaty/puppet.proto +10 -0
  14. package/dist/cjs/src/package-json.js +1 -1
  15. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  16. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  17. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  18. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +3 -3
  19. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +9 -9
  20. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +80 -0
  21. package/dist/esm/out/wechaty/puppet/contact_pb.js +611 -1
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +49 -2
  23. package/dist/esm/out/wechaty/puppet.swagger.json +75 -2
  24. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  25. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  26. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  27. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  28. package/dist/esm/proto/wechaty/puppet/chat-history.proto +1 -1
  29. package/dist/esm/proto/wechaty/puppet/contact.proto +17 -0
  30. package/dist/esm/proto/wechaty/puppet.proto +10 -0
  31. package/dist/esm/src/package-json.js +1 -1
  32. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  33. package/dist/esm/tests/puppet-server-impl.js +10 -0
  34. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  35. package/out/wechaty/puppet/chat-history_pb.d.ts +3 -3
  36. package/out/wechaty/puppet/chat-history_pb.js +9 -9
  37. package/out/wechaty/puppet/contact_pb.d.ts +80 -0
  38. package/out/wechaty/puppet/contact_pb.js +611 -1
  39. package/out/wechaty/puppet.openapi.yaml +49 -2
  40. package/out/wechaty/puppet.swagger.json +75 -2
  41. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  42. package/out/wechaty/puppet_grpc_pb.js +66 -0
  43. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  44. package/out/wechaty/puppet_pb_service.js +80 -0
  45. package/package.json +1 -1
  46. package/src/package-json.ts +1 -1
@@ -36,10 +36,14 @@ goog.exportSymbol('proto.wechaty.puppet.ContactPayloadRequest', null, global);
36
36
  goog.exportSymbol('proto.wechaty.puppet.ContactPayloadResponse', null, global);
37
37
  goog.exportSymbol('proto.wechaty.puppet.ContactPhoneRequest', null, global);
38
38
  goog.exportSymbol('proto.wechaty.puppet.ContactPhoneResponse', null, global);
39
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfAkaRequest', null, global);
40
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfAkaResponse', null, global);
39
41
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfNameRequest', null, global);
40
42
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfNameResponse', null, global);
41
43
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfQRCodeRequest', null, global);
42
44
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfQRCodeResponse', null, global);
45
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfRealNameRequest', null, global);
46
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfRealNameResponse', null, global);
43
47
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfRoomAliasRequest', null, global);
44
48
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfRoomAliasResponse', null, global);
45
49
  goog.exportSymbol('proto.wechaty.puppet.ContactSelfSignatureRequest', null, global);
@@ -297,6 +301,90 @@ if (goog.DEBUG && !COMPILED) {
297
301
  */
298
302
  proto.wechaty.puppet.ContactSelfRoomAliasResponse.displayName = 'proto.wechaty.puppet.ContactSelfRoomAliasResponse';
299
303
  }
304
+ /**
305
+ * Generated by JsPbCodeGenerator.
306
+ * @param {Array=} opt_data Optional initial data array, typically from a
307
+ * server response, or constructed directly in Javascript. The array is used
308
+ * in place and becomes part of the constructed object. It is not cloned.
309
+ * If no data is provided, the constructed object will be empty, but still
310
+ * valid.
311
+ * @extends {jspb.Message}
312
+ * @constructor
313
+ */
314
+ proto.wechaty.puppet.ContactSelfRealNameRequest = function(opt_data) {
315
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
316
+ };
317
+ goog.inherits(proto.wechaty.puppet.ContactSelfRealNameRequest, jspb.Message);
318
+ if (goog.DEBUG && !COMPILED) {
319
+ /**
320
+ * @public
321
+ * @override
322
+ */
323
+ proto.wechaty.puppet.ContactSelfRealNameRequest.displayName = 'proto.wechaty.puppet.ContactSelfRealNameRequest';
324
+ }
325
+ /**
326
+ * Generated by JsPbCodeGenerator.
327
+ * @param {Array=} opt_data Optional initial data array, typically from a
328
+ * server response, or constructed directly in Javascript. The array is used
329
+ * in place and becomes part of the constructed object. It is not cloned.
330
+ * If no data is provided, the constructed object will be empty, but still
331
+ * valid.
332
+ * @extends {jspb.Message}
333
+ * @constructor
334
+ */
335
+ proto.wechaty.puppet.ContactSelfRealNameResponse = function(opt_data) {
336
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
337
+ };
338
+ goog.inherits(proto.wechaty.puppet.ContactSelfRealNameResponse, jspb.Message);
339
+ if (goog.DEBUG && !COMPILED) {
340
+ /**
341
+ * @public
342
+ * @override
343
+ */
344
+ proto.wechaty.puppet.ContactSelfRealNameResponse.displayName = 'proto.wechaty.puppet.ContactSelfRealNameResponse';
345
+ }
346
+ /**
347
+ * Generated by JsPbCodeGenerator.
348
+ * @param {Array=} opt_data Optional initial data array, typically from a
349
+ * server response, or constructed directly in Javascript. The array is used
350
+ * in place and becomes part of the constructed object. It is not cloned.
351
+ * If no data is provided, the constructed object will be empty, but still
352
+ * valid.
353
+ * @extends {jspb.Message}
354
+ * @constructor
355
+ */
356
+ proto.wechaty.puppet.ContactSelfAkaRequest = function(opt_data) {
357
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
358
+ };
359
+ goog.inherits(proto.wechaty.puppet.ContactSelfAkaRequest, jspb.Message);
360
+ if (goog.DEBUG && !COMPILED) {
361
+ /**
362
+ * @public
363
+ * @override
364
+ */
365
+ proto.wechaty.puppet.ContactSelfAkaRequest.displayName = 'proto.wechaty.puppet.ContactSelfAkaRequest';
366
+ }
367
+ /**
368
+ * Generated by JsPbCodeGenerator.
369
+ * @param {Array=} opt_data Optional initial data array, typically from a
370
+ * server response, or constructed directly in Javascript. The array is used
371
+ * in place and becomes part of the constructed object. It is not cloned.
372
+ * If no data is provided, the constructed object will be empty, but still
373
+ * valid.
374
+ * @extends {jspb.Message}
375
+ * @constructor
376
+ */
377
+ proto.wechaty.puppet.ContactSelfAkaResponse = function(opt_data) {
378
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
379
+ };
380
+ goog.inherits(proto.wechaty.puppet.ContactSelfAkaResponse, jspb.Message);
381
+ if (goog.DEBUG && !COMPILED) {
382
+ /**
383
+ * @public
384
+ * @override
385
+ */
386
+ proto.wechaty.puppet.ContactSelfAkaResponse.displayName = 'proto.wechaty.puppet.ContactSelfAkaResponse';
387
+ }
300
388
  /**
301
389
  * Generated by JsPbCodeGenerator.
302
390
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1036,7 +1124,9 @@ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance,
1036
1124
  coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
1037
1125
  phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
1038
1126
  additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
1039
- tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
1127
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f,
1128
+ realName: jspb.Message.getFieldWithDefault(msg, 21, ""),
1129
+ aka: jspb.Message.getFieldWithDefault(msg, 22, "")
1040
1130
  };
1041
1131
 
1042
1132
  if (includeInstance) {
@@ -1153,6 +1243,14 @@ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = functi
1153
1243
  var value = /** @type {string} */ (reader.readString());
1154
1244
  msg.addTagIds(value);
1155
1245
  break;
1246
+ case 21:
1247
+ var value = /** @type {string} */ (reader.readString());
1248
+ msg.setRealName(value);
1249
+ break;
1250
+ case 22:
1251
+ var value = /** @type {string} */ (reader.readString());
1252
+ msg.setAka(value);
1253
+ break;
1156
1254
  default:
1157
1255
  reader.skipField();
1158
1256
  break;
@@ -1322,6 +1420,20 @@ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(m
1322
1420
  f
1323
1421
  );
1324
1422
  }
1423
+ f = message.getRealName();
1424
+ if (f.length > 0) {
1425
+ writer.writeString(
1426
+ 21,
1427
+ f
1428
+ );
1429
+ }
1430
+ f = message.getAka();
1431
+ if (f.length > 0) {
1432
+ writer.writeString(
1433
+ 22,
1434
+ f
1435
+ );
1436
+ }
1325
1437
  };
1326
1438
 
1327
1439
 
@@ -1723,6 +1835,42 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearTagIdsList = function
1723
1835
  };
1724
1836
 
1725
1837
 
1838
+ /**
1839
+ * optional string real_name = 21;
1840
+ * @return {string}
1841
+ */
1842
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getRealName = function() {
1843
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1844
+ };
1845
+
1846
+
1847
+ /**
1848
+ * @param {string} value
1849
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1850
+ */
1851
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setRealName = function(value) {
1852
+ return jspb.Message.setProto3StringField(this, 21, value);
1853
+ };
1854
+
1855
+
1856
+ /**
1857
+ * optional string aka = 22;
1858
+ * @return {string}
1859
+ */
1860
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getAka = function() {
1861
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1862
+ };
1863
+
1864
+
1865
+ /**
1866
+ * @param {string} value
1867
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1868
+ */
1869
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAka = function(value) {
1870
+ return jspb.Message.setProto3StringField(this, 22, value);
1871
+ };
1872
+
1873
+
1726
1874
 
1727
1875
 
1728
1876
 
@@ -2680,6 +2828,468 @@ proto.wechaty.puppet.ContactSelfRoomAliasResponse.serializeBinaryToWriter = func
2680
2828
 
2681
2829
 
2682
2830
 
2831
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2832
+ /**
2833
+ * Creates an object representation of this proto.
2834
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2835
+ * Optional fields that are not set will be set to undefined.
2836
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2837
+ * For the list of reserved names please see:
2838
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2839
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2840
+ * JSPB instance for transitional soy proto support:
2841
+ * http://goto/soy-param-migration
2842
+ * @return {!Object}
2843
+ */
2844
+ proto.wechaty.puppet.ContactSelfRealNameRequest.prototype.toObject = function(opt_includeInstance) {
2845
+ return proto.wechaty.puppet.ContactSelfRealNameRequest.toObject(opt_includeInstance, this);
2846
+ };
2847
+
2848
+
2849
+ /**
2850
+ * Static version of the {@see toObject} method.
2851
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2852
+ * the JSPB instance for transitional soy proto support:
2853
+ * http://goto/soy-param-migration
2854
+ * @param {!proto.wechaty.puppet.ContactSelfRealNameRequest} msg The msg instance to transform.
2855
+ * @return {!Object}
2856
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2857
+ */
2858
+ proto.wechaty.puppet.ContactSelfRealNameRequest.toObject = function(includeInstance, msg) {
2859
+ var f, obj = {
2860
+ realName: jspb.Message.getFieldWithDefault(msg, 1, "")
2861
+ };
2862
+
2863
+ if (includeInstance) {
2864
+ obj.$jspbMessageInstance = msg;
2865
+ }
2866
+ return obj;
2867
+ };
2868
+ }
2869
+
2870
+
2871
+ /**
2872
+ * Deserializes binary data (in protobuf wire format).
2873
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2874
+ * @return {!proto.wechaty.puppet.ContactSelfRealNameRequest}
2875
+ */
2876
+ proto.wechaty.puppet.ContactSelfRealNameRequest.deserializeBinary = function(bytes) {
2877
+ var reader = new jspb.BinaryReader(bytes);
2878
+ var msg = new proto.wechaty.puppet.ContactSelfRealNameRequest;
2879
+ return proto.wechaty.puppet.ContactSelfRealNameRequest.deserializeBinaryFromReader(msg, reader);
2880
+ };
2881
+
2882
+
2883
+ /**
2884
+ * Deserializes binary data (in protobuf wire format) from the
2885
+ * given reader into the given message object.
2886
+ * @param {!proto.wechaty.puppet.ContactSelfRealNameRequest} msg The message object to deserialize into.
2887
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2888
+ * @return {!proto.wechaty.puppet.ContactSelfRealNameRequest}
2889
+ */
2890
+ proto.wechaty.puppet.ContactSelfRealNameRequest.deserializeBinaryFromReader = function(msg, reader) {
2891
+ while (reader.nextField()) {
2892
+ if (reader.isEndGroup()) {
2893
+ break;
2894
+ }
2895
+ var field = reader.getFieldNumber();
2896
+ switch (field) {
2897
+ case 1:
2898
+ var value = /** @type {string} */ (reader.readString());
2899
+ msg.setRealName(value);
2900
+ break;
2901
+ default:
2902
+ reader.skipField();
2903
+ break;
2904
+ }
2905
+ }
2906
+ return msg;
2907
+ };
2908
+
2909
+
2910
+ /**
2911
+ * Serializes the message to binary data (in protobuf wire format).
2912
+ * @return {!Uint8Array}
2913
+ */
2914
+ proto.wechaty.puppet.ContactSelfRealNameRequest.prototype.serializeBinary = function() {
2915
+ var writer = new jspb.BinaryWriter();
2916
+ proto.wechaty.puppet.ContactSelfRealNameRequest.serializeBinaryToWriter(this, writer);
2917
+ return writer.getResultBuffer();
2918
+ };
2919
+
2920
+
2921
+ /**
2922
+ * Serializes the given message to binary data (in protobuf wire
2923
+ * format), writing to the given BinaryWriter.
2924
+ * @param {!proto.wechaty.puppet.ContactSelfRealNameRequest} message
2925
+ * @param {!jspb.BinaryWriter} writer
2926
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2927
+ */
2928
+ proto.wechaty.puppet.ContactSelfRealNameRequest.serializeBinaryToWriter = function(message, writer) {
2929
+ var f = undefined;
2930
+ f = message.getRealName();
2931
+ if (f.length > 0) {
2932
+ writer.writeString(
2933
+ 1,
2934
+ f
2935
+ );
2936
+ }
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * optional string real_name = 1;
2942
+ * @return {string}
2943
+ */
2944
+ proto.wechaty.puppet.ContactSelfRealNameRequest.prototype.getRealName = function() {
2945
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * @param {string} value
2951
+ * @return {!proto.wechaty.puppet.ContactSelfRealNameRequest} returns this
2952
+ */
2953
+ proto.wechaty.puppet.ContactSelfRealNameRequest.prototype.setRealName = function(value) {
2954
+ return jspb.Message.setProto3StringField(this, 1, value);
2955
+ };
2956
+
2957
+
2958
+
2959
+
2960
+
2961
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2962
+ /**
2963
+ * Creates an object representation of this proto.
2964
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2965
+ * Optional fields that are not set will be set to undefined.
2966
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2967
+ * For the list of reserved names please see:
2968
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2969
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2970
+ * JSPB instance for transitional soy proto support:
2971
+ * http://goto/soy-param-migration
2972
+ * @return {!Object}
2973
+ */
2974
+ proto.wechaty.puppet.ContactSelfRealNameResponse.prototype.toObject = function(opt_includeInstance) {
2975
+ return proto.wechaty.puppet.ContactSelfRealNameResponse.toObject(opt_includeInstance, this);
2976
+ };
2977
+
2978
+
2979
+ /**
2980
+ * Static version of the {@see toObject} method.
2981
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2982
+ * the JSPB instance for transitional soy proto support:
2983
+ * http://goto/soy-param-migration
2984
+ * @param {!proto.wechaty.puppet.ContactSelfRealNameResponse} msg The msg instance to transform.
2985
+ * @return {!Object}
2986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2987
+ */
2988
+ proto.wechaty.puppet.ContactSelfRealNameResponse.toObject = function(includeInstance, msg) {
2989
+ var f, obj = {
2990
+
2991
+ };
2992
+
2993
+ if (includeInstance) {
2994
+ obj.$jspbMessageInstance = msg;
2995
+ }
2996
+ return obj;
2997
+ };
2998
+ }
2999
+
3000
+
3001
+ /**
3002
+ * Deserializes binary data (in protobuf wire format).
3003
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3004
+ * @return {!proto.wechaty.puppet.ContactSelfRealNameResponse}
3005
+ */
3006
+ proto.wechaty.puppet.ContactSelfRealNameResponse.deserializeBinary = function(bytes) {
3007
+ var reader = new jspb.BinaryReader(bytes);
3008
+ var msg = new proto.wechaty.puppet.ContactSelfRealNameResponse;
3009
+ return proto.wechaty.puppet.ContactSelfRealNameResponse.deserializeBinaryFromReader(msg, reader);
3010
+ };
3011
+
3012
+
3013
+ /**
3014
+ * Deserializes binary data (in protobuf wire format) from the
3015
+ * given reader into the given message object.
3016
+ * @param {!proto.wechaty.puppet.ContactSelfRealNameResponse} msg The message object to deserialize into.
3017
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3018
+ * @return {!proto.wechaty.puppet.ContactSelfRealNameResponse}
3019
+ */
3020
+ proto.wechaty.puppet.ContactSelfRealNameResponse.deserializeBinaryFromReader = function(msg, reader) {
3021
+ while (reader.nextField()) {
3022
+ if (reader.isEndGroup()) {
3023
+ break;
3024
+ }
3025
+ var field = reader.getFieldNumber();
3026
+ switch (field) {
3027
+ default:
3028
+ reader.skipField();
3029
+ break;
3030
+ }
3031
+ }
3032
+ return msg;
3033
+ };
3034
+
3035
+
3036
+ /**
3037
+ * Serializes the message to binary data (in protobuf wire format).
3038
+ * @return {!Uint8Array}
3039
+ */
3040
+ proto.wechaty.puppet.ContactSelfRealNameResponse.prototype.serializeBinary = function() {
3041
+ var writer = new jspb.BinaryWriter();
3042
+ proto.wechaty.puppet.ContactSelfRealNameResponse.serializeBinaryToWriter(this, writer);
3043
+ return writer.getResultBuffer();
3044
+ };
3045
+
3046
+
3047
+ /**
3048
+ * Serializes the given message to binary data (in protobuf wire
3049
+ * format), writing to the given BinaryWriter.
3050
+ * @param {!proto.wechaty.puppet.ContactSelfRealNameResponse} message
3051
+ * @param {!jspb.BinaryWriter} writer
3052
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3053
+ */
3054
+ proto.wechaty.puppet.ContactSelfRealNameResponse.serializeBinaryToWriter = function(message, writer) {
3055
+ var f = undefined;
3056
+ };
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3063
+ /**
3064
+ * Creates an object representation of this proto.
3065
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3066
+ * Optional fields that are not set will be set to undefined.
3067
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3068
+ * For the list of reserved names please see:
3069
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3070
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3071
+ * JSPB instance for transitional soy proto support:
3072
+ * http://goto/soy-param-migration
3073
+ * @return {!Object}
3074
+ */
3075
+ proto.wechaty.puppet.ContactSelfAkaRequest.prototype.toObject = function(opt_includeInstance) {
3076
+ return proto.wechaty.puppet.ContactSelfAkaRequest.toObject(opt_includeInstance, this);
3077
+ };
3078
+
3079
+
3080
+ /**
3081
+ * Static version of the {@see toObject} method.
3082
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3083
+ * the JSPB instance for transitional soy proto support:
3084
+ * http://goto/soy-param-migration
3085
+ * @param {!proto.wechaty.puppet.ContactSelfAkaRequest} msg The msg instance to transform.
3086
+ * @return {!Object}
3087
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3088
+ */
3089
+ proto.wechaty.puppet.ContactSelfAkaRequest.toObject = function(includeInstance, msg) {
3090
+ var f, obj = {
3091
+ aka: jspb.Message.getFieldWithDefault(msg, 1, "")
3092
+ };
3093
+
3094
+ if (includeInstance) {
3095
+ obj.$jspbMessageInstance = msg;
3096
+ }
3097
+ return obj;
3098
+ };
3099
+ }
3100
+
3101
+
3102
+ /**
3103
+ * Deserializes binary data (in protobuf wire format).
3104
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3105
+ * @return {!proto.wechaty.puppet.ContactSelfAkaRequest}
3106
+ */
3107
+ proto.wechaty.puppet.ContactSelfAkaRequest.deserializeBinary = function(bytes) {
3108
+ var reader = new jspb.BinaryReader(bytes);
3109
+ var msg = new proto.wechaty.puppet.ContactSelfAkaRequest;
3110
+ return proto.wechaty.puppet.ContactSelfAkaRequest.deserializeBinaryFromReader(msg, reader);
3111
+ };
3112
+
3113
+
3114
+ /**
3115
+ * Deserializes binary data (in protobuf wire format) from the
3116
+ * given reader into the given message object.
3117
+ * @param {!proto.wechaty.puppet.ContactSelfAkaRequest} msg The message object to deserialize into.
3118
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3119
+ * @return {!proto.wechaty.puppet.ContactSelfAkaRequest}
3120
+ */
3121
+ proto.wechaty.puppet.ContactSelfAkaRequest.deserializeBinaryFromReader = function(msg, reader) {
3122
+ while (reader.nextField()) {
3123
+ if (reader.isEndGroup()) {
3124
+ break;
3125
+ }
3126
+ var field = reader.getFieldNumber();
3127
+ switch (field) {
3128
+ case 1:
3129
+ var value = /** @type {string} */ (reader.readString());
3130
+ msg.setAka(value);
3131
+ break;
3132
+ default:
3133
+ reader.skipField();
3134
+ break;
3135
+ }
3136
+ }
3137
+ return msg;
3138
+ };
3139
+
3140
+
3141
+ /**
3142
+ * Serializes the message to binary data (in protobuf wire format).
3143
+ * @return {!Uint8Array}
3144
+ */
3145
+ proto.wechaty.puppet.ContactSelfAkaRequest.prototype.serializeBinary = function() {
3146
+ var writer = new jspb.BinaryWriter();
3147
+ proto.wechaty.puppet.ContactSelfAkaRequest.serializeBinaryToWriter(this, writer);
3148
+ return writer.getResultBuffer();
3149
+ };
3150
+
3151
+
3152
+ /**
3153
+ * Serializes the given message to binary data (in protobuf wire
3154
+ * format), writing to the given BinaryWriter.
3155
+ * @param {!proto.wechaty.puppet.ContactSelfAkaRequest} message
3156
+ * @param {!jspb.BinaryWriter} writer
3157
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3158
+ */
3159
+ proto.wechaty.puppet.ContactSelfAkaRequest.serializeBinaryToWriter = function(message, writer) {
3160
+ var f = undefined;
3161
+ f = message.getAka();
3162
+ if (f.length > 0) {
3163
+ writer.writeString(
3164
+ 1,
3165
+ f
3166
+ );
3167
+ }
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * optional string aka = 1;
3173
+ * @return {string}
3174
+ */
3175
+ proto.wechaty.puppet.ContactSelfAkaRequest.prototype.getAka = function() {
3176
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * @param {string} value
3182
+ * @return {!proto.wechaty.puppet.ContactSelfAkaRequest} returns this
3183
+ */
3184
+ proto.wechaty.puppet.ContactSelfAkaRequest.prototype.setAka = function(value) {
3185
+ return jspb.Message.setProto3StringField(this, 1, value);
3186
+ };
3187
+
3188
+
3189
+
3190
+
3191
+
3192
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3193
+ /**
3194
+ * Creates an object representation of this proto.
3195
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3196
+ * Optional fields that are not set will be set to undefined.
3197
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3198
+ * For the list of reserved names please see:
3199
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3200
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3201
+ * JSPB instance for transitional soy proto support:
3202
+ * http://goto/soy-param-migration
3203
+ * @return {!Object}
3204
+ */
3205
+ proto.wechaty.puppet.ContactSelfAkaResponse.prototype.toObject = function(opt_includeInstance) {
3206
+ return proto.wechaty.puppet.ContactSelfAkaResponse.toObject(opt_includeInstance, this);
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * Static version of the {@see toObject} method.
3212
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3213
+ * the JSPB instance for transitional soy proto support:
3214
+ * http://goto/soy-param-migration
3215
+ * @param {!proto.wechaty.puppet.ContactSelfAkaResponse} msg The msg instance to transform.
3216
+ * @return {!Object}
3217
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3218
+ */
3219
+ proto.wechaty.puppet.ContactSelfAkaResponse.toObject = function(includeInstance, msg) {
3220
+ var f, obj = {
3221
+
3222
+ };
3223
+
3224
+ if (includeInstance) {
3225
+ obj.$jspbMessageInstance = msg;
3226
+ }
3227
+ return obj;
3228
+ };
3229
+ }
3230
+
3231
+
3232
+ /**
3233
+ * Deserializes binary data (in protobuf wire format).
3234
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3235
+ * @return {!proto.wechaty.puppet.ContactSelfAkaResponse}
3236
+ */
3237
+ proto.wechaty.puppet.ContactSelfAkaResponse.deserializeBinary = function(bytes) {
3238
+ var reader = new jspb.BinaryReader(bytes);
3239
+ var msg = new proto.wechaty.puppet.ContactSelfAkaResponse;
3240
+ return proto.wechaty.puppet.ContactSelfAkaResponse.deserializeBinaryFromReader(msg, reader);
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * Deserializes binary data (in protobuf wire format) from the
3246
+ * given reader into the given message object.
3247
+ * @param {!proto.wechaty.puppet.ContactSelfAkaResponse} msg The message object to deserialize into.
3248
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3249
+ * @return {!proto.wechaty.puppet.ContactSelfAkaResponse}
3250
+ */
3251
+ proto.wechaty.puppet.ContactSelfAkaResponse.deserializeBinaryFromReader = function(msg, reader) {
3252
+ while (reader.nextField()) {
3253
+ if (reader.isEndGroup()) {
3254
+ break;
3255
+ }
3256
+ var field = reader.getFieldNumber();
3257
+ switch (field) {
3258
+ default:
3259
+ reader.skipField();
3260
+ break;
3261
+ }
3262
+ }
3263
+ return msg;
3264
+ };
3265
+
3266
+
3267
+ /**
3268
+ * Serializes the message to binary data (in protobuf wire format).
3269
+ * @return {!Uint8Array}
3270
+ */
3271
+ proto.wechaty.puppet.ContactSelfAkaResponse.prototype.serializeBinary = function() {
3272
+ var writer = new jspb.BinaryWriter();
3273
+ proto.wechaty.puppet.ContactSelfAkaResponse.serializeBinaryToWriter(this, writer);
3274
+ return writer.getResultBuffer();
3275
+ };
3276
+
3277
+
3278
+ /**
3279
+ * Serializes the given message to binary data (in protobuf wire
3280
+ * format), writing to the given BinaryWriter.
3281
+ * @param {!proto.wechaty.puppet.ContactSelfAkaResponse} message
3282
+ * @param {!jspb.BinaryWriter} writer
3283
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3284
+ */
3285
+ proto.wechaty.puppet.ContactSelfAkaResponse.serializeBinaryToWriter = function(message, writer) {
3286
+ var f = undefined;
3287
+ };
3288
+
3289
+
3290
+
3291
+
3292
+
2683
3293
  if (jspb.Message.GENERATE_TO_OBJECT) {
2684
3294
  /**
2685
3295
  * Creates an object representation of this proto.