@juzi/wechaty-grpc 1.0.12 → 1.0.13

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/event_pb.d.ts +1 -0
  2. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  3. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +119 -35
  4. package/dist/cjs/out/wechaty/puppet/tag_pb.js +790 -144
  5. package/dist/cjs/out/wechaty/puppet.openapi.yaml +75 -14
  6. package/dist/cjs/out/wechaty/puppet.swagger.json +112 -15
  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/event.proto +1 -0
  12. package/dist/cjs/proto/wechaty/puppet/tag.proto +23 -7
  13. package/dist/cjs/proto/wechaty/puppet.proto +14 -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/event_pb.d.ts +1 -0
  19. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  20. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +119 -35
  21. package/dist/esm/out/wechaty/puppet/tag_pb.js +790 -144
  22. package/dist/esm/out/wechaty/puppet.openapi.yaml +75 -14
  23. package/dist/esm/out/wechaty/puppet.swagger.json +112 -15
  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/event.proto +1 -0
  29. package/dist/esm/proto/wechaty/puppet/tag.proto +23 -7
  30. package/dist/esm/proto/wechaty/puppet.proto +14 -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/event_pb.d.ts +1 -0
  36. package/out/wechaty/puppet/event_pb.js +2 -1
  37. package/out/wechaty/puppet/tag_pb.d.ts +119 -35
  38. package/out/wechaty/puppet/tag_pb.js +790 -144
  39. package/out/wechaty/puppet.openapi.yaml +75 -14
  40. package/out/wechaty/puppet.swagger.json +112 -15
  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
@@ -28,10 +28,14 @@ goog.exportSymbol('proto.wechaty.puppet.TagGroupDeleteResponse', null, global);
28
28
  goog.exportSymbol('proto.wechaty.puppet.TagGroupListRequest', null, global);
29
29
  goog.exportSymbol('proto.wechaty.puppet.TagGroupListResponse', null, global);
30
30
  goog.exportSymbol('proto.wechaty.puppet.TagGroupPayload', null, global);
31
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupPayloadRequest', null, global);
32
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupPayloadResponse', null, global);
31
33
  goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListRequest', null, global);
32
34
  goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListResponse', null, global);
33
35
  goog.exportSymbol('proto.wechaty.puppet.TagIdentifier', null, global);
34
36
  goog.exportSymbol('proto.wechaty.puppet.TagPayload', null, global);
37
+ goog.exportSymbol('proto.wechaty.puppet.TagPayloadRequest', null, global);
38
+ goog.exportSymbol('proto.wechaty.puppet.TagPayloadResponse', null, global);
35
39
  goog.exportSymbol('proto.wechaty.puppet.TagTagAddRequest', null, global);
36
40
  goog.exportSymbol('proto.wechaty.puppet.TagTagAddResponse', null, global);
37
41
  goog.exportSymbol('proto.wechaty.puppet.TagTagContactListRequest', null, global);
@@ -566,6 +570,90 @@ if (goog.DEBUG && !COMPILED) {
566
570
  */
567
571
  proto.wechaty.puppet.TagTagContactListResponse.displayName = 'proto.wechaty.puppet.TagTagContactListResponse';
568
572
  }
573
+ /**
574
+ * Generated by JsPbCodeGenerator.
575
+ * @param {Array=} opt_data Optional initial data array, typically from a
576
+ * server response, or constructed directly in Javascript. The array is used
577
+ * in place and becomes part of the constructed object. It is not cloned.
578
+ * If no data is provided, the constructed object will be empty, but still
579
+ * valid.
580
+ * @extends {jspb.Message}
581
+ * @constructor
582
+ */
583
+ proto.wechaty.puppet.TagGroupPayloadRequest = function(opt_data) {
584
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
585
+ };
586
+ goog.inherits(proto.wechaty.puppet.TagGroupPayloadRequest, jspb.Message);
587
+ if (goog.DEBUG && !COMPILED) {
588
+ /**
589
+ * @public
590
+ * @override
591
+ */
592
+ proto.wechaty.puppet.TagGroupPayloadRequest.displayName = 'proto.wechaty.puppet.TagGroupPayloadRequest';
593
+ }
594
+ /**
595
+ * Generated by JsPbCodeGenerator.
596
+ * @param {Array=} opt_data Optional initial data array, typically from a
597
+ * server response, or constructed directly in Javascript. The array is used
598
+ * in place and becomes part of the constructed object. It is not cloned.
599
+ * If no data is provided, the constructed object will be empty, but still
600
+ * valid.
601
+ * @extends {jspb.Message}
602
+ * @constructor
603
+ */
604
+ proto.wechaty.puppet.TagGroupPayloadResponse = function(opt_data) {
605
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
606
+ };
607
+ goog.inherits(proto.wechaty.puppet.TagGroupPayloadResponse, jspb.Message);
608
+ if (goog.DEBUG && !COMPILED) {
609
+ /**
610
+ * @public
611
+ * @override
612
+ */
613
+ proto.wechaty.puppet.TagGroupPayloadResponse.displayName = 'proto.wechaty.puppet.TagGroupPayloadResponse';
614
+ }
615
+ /**
616
+ * Generated by JsPbCodeGenerator.
617
+ * @param {Array=} opt_data Optional initial data array, typically from a
618
+ * server response, or constructed directly in Javascript. The array is used
619
+ * in place and becomes part of the constructed object. It is not cloned.
620
+ * If no data is provided, the constructed object will be empty, but still
621
+ * valid.
622
+ * @extends {jspb.Message}
623
+ * @constructor
624
+ */
625
+ proto.wechaty.puppet.TagPayloadRequest = function(opt_data) {
626
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
627
+ };
628
+ goog.inherits(proto.wechaty.puppet.TagPayloadRequest, jspb.Message);
629
+ if (goog.DEBUG && !COMPILED) {
630
+ /**
631
+ * @public
632
+ * @override
633
+ */
634
+ proto.wechaty.puppet.TagPayloadRequest.displayName = 'proto.wechaty.puppet.TagPayloadRequest';
635
+ }
636
+ /**
637
+ * Generated by JsPbCodeGenerator.
638
+ * @param {Array=} opt_data Optional initial data array, typically from a
639
+ * server response, or constructed directly in Javascript. The array is used
640
+ * in place and becomes part of the constructed object. It is not cloned.
641
+ * If no data is provided, the constructed object will be empty, but still
642
+ * valid.
643
+ * @extends {jspb.Message}
644
+ * @constructor
645
+ */
646
+ proto.wechaty.puppet.TagPayloadResponse = function(opt_data) {
647
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
648
+ };
649
+ goog.inherits(proto.wechaty.puppet.TagPayloadResponse, jspb.Message);
650
+ if (goog.DEBUG && !COMPILED) {
651
+ /**
652
+ * @public
653
+ * @override
654
+ */
655
+ proto.wechaty.puppet.TagPayloadResponse.displayName = 'proto.wechaty.puppet.TagPayloadResponse';
656
+ }
569
657
 
570
658
 
571
659
 
@@ -1888,7 +1976,7 @@ proto.wechaty.puppet.TagGroupAddResponse.prototype.toObject = function(opt_inclu
1888
1976
  */
1889
1977
  proto.wechaty.puppet.TagGroupAddResponse.toObject = function(includeInstance, msg) {
1890
1978
  var f, obj = {
1891
- payload: (f = msg.getPayload()) && proto.wechaty.puppet.TagGroupPayload.toObject(includeInstance, f)
1979
+ tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, "")
1892
1980
  };
1893
1981
 
1894
1982
  if (includeInstance) {
@@ -1926,9 +2014,8 @@ proto.wechaty.puppet.TagGroupAddResponse.deserializeBinaryFromReader = function(
1926
2014
  var field = reader.getFieldNumber();
1927
2015
  switch (field) {
1928
2016
  case 1:
1929
- var value = new proto.wechaty.puppet.TagGroupPayload;
1930
- reader.readMessage(value,proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader);
1931
- msg.setPayload(value);
2017
+ var value = /** @type {string} */ (reader.readString());
2018
+ msg.setTagGroupId(value);
1932
2019
  break;
1933
2020
  default:
1934
2021
  reader.skipField();
@@ -1959,51 +2046,31 @@ proto.wechaty.puppet.TagGroupAddResponse.prototype.serializeBinary = function()
1959
2046
  */
1960
2047
  proto.wechaty.puppet.TagGroupAddResponse.serializeBinaryToWriter = function(message, writer) {
1961
2048
  var f = undefined;
1962
- f = message.getPayload();
1963
- if (f != null) {
1964
- writer.writeMessage(
2049
+ f = message.getTagGroupId();
2050
+ if (f.length > 0) {
2051
+ writer.writeString(
1965
2052
  1,
1966
- f,
1967
- proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter
2053
+ f
1968
2054
  );
1969
2055
  }
1970
2056
  };
1971
2057
 
1972
2058
 
1973
2059
  /**
1974
- * optional TagGroupPayload payload = 1;
1975
- * @return {?proto.wechaty.puppet.TagGroupPayload}
2060
+ * optional string tag_group_id = 1;
2061
+ * @return {string}
1976
2062
  */
1977
- proto.wechaty.puppet.TagGroupAddResponse.prototype.getPayload = function() {
1978
- return /** @type{?proto.wechaty.puppet.TagGroupPayload} */ (
1979
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagGroupPayload, 1));
1980
- };
1981
-
1982
-
1983
- /**
1984
- * @param {?proto.wechaty.puppet.TagGroupPayload|undefined} value
1985
- * @return {!proto.wechaty.puppet.TagGroupAddResponse} returns this
1986
- */
1987
- proto.wechaty.puppet.TagGroupAddResponse.prototype.setPayload = function(value) {
1988
- return jspb.Message.setWrapperField(this, 1, value);
2063
+ proto.wechaty.puppet.TagGroupAddResponse.prototype.getTagGroupId = function() {
2064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1989
2065
  };
1990
2066
 
1991
2067
 
1992
2068
  /**
1993
- * Clears the message field making it undefined.
2069
+ * @param {string} value
1994
2070
  * @return {!proto.wechaty.puppet.TagGroupAddResponse} returns this
1995
2071
  */
1996
- proto.wechaty.puppet.TagGroupAddResponse.prototype.clearPayload = function() {
1997
- return this.setPayload(undefined);
1998
- };
1999
-
2000
-
2001
- /**
2002
- * Returns whether this field is set.
2003
- * @return {boolean}
2004
- */
2005
- proto.wechaty.puppet.TagGroupAddResponse.prototype.hasPayload = function() {
2006
- return jspb.Message.getField(this, 1) != null;
2072
+ proto.wechaty.puppet.TagGroupAddResponse.prototype.setTagGroupId = function(value) {
2073
+ return jspb.Message.setProto3StringField(this, 1, value);
2007
2074
  };
2008
2075
 
2009
2076
 
@@ -2430,7 +2497,7 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.toObject = function(opt_include
2430
2497
  */
2431
2498
  proto.wechaty.puppet.TagTagAddResponse.toObject = function(includeInstance, msg) {
2432
2499
  var f, obj = {
2433
- payload: (f = msg.getPayload()) && proto.wechaty.puppet.TagPayload.toObject(includeInstance, f)
2500
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
2434
2501
  };
2435
2502
 
2436
2503
  if (includeInstance) {
@@ -2468,9 +2535,9 @@ proto.wechaty.puppet.TagTagAddResponse.deserializeBinaryFromReader = function(ms
2468
2535
  var field = reader.getFieldNumber();
2469
2536
  switch (field) {
2470
2537
  case 1:
2471
- var value = new proto.wechaty.puppet.TagPayload;
2472
- reader.readMessage(value,proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader);
2473
- msg.setPayload(value);
2538
+ var value = new proto.wechaty.puppet.TagIdentifier;
2539
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
2540
+ msg.setTag(value);
2474
2541
  break;
2475
2542
  default:
2476
2543
  reader.skipField();
@@ -2501,32 +2568,32 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.serializeBinary = function() {
2501
2568
  */
2502
2569
  proto.wechaty.puppet.TagTagAddResponse.serializeBinaryToWriter = function(message, writer) {
2503
2570
  var f = undefined;
2504
- f = message.getPayload();
2571
+ f = message.getTag();
2505
2572
  if (f != null) {
2506
2573
  writer.writeMessage(
2507
2574
  1,
2508
2575
  f,
2509
- proto.wechaty.puppet.TagPayload.serializeBinaryToWriter
2576
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
2510
2577
  );
2511
2578
  }
2512
2579
  };
2513
2580
 
2514
2581
 
2515
2582
  /**
2516
- * optional TagPayload payload = 1;
2517
- * @return {?proto.wechaty.puppet.TagPayload}
2583
+ * optional TagIdentifier tag = 1;
2584
+ * @return {?proto.wechaty.puppet.TagIdentifier}
2518
2585
  */
2519
- proto.wechaty.puppet.TagTagAddResponse.prototype.getPayload = function() {
2520
- return /** @type{?proto.wechaty.puppet.TagPayload} */ (
2521
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagPayload, 1));
2586
+ proto.wechaty.puppet.TagTagAddResponse.prototype.getTag = function() {
2587
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
2588
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
2522
2589
  };
2523
2590
 
2524
2591
 
2525
2592
  /**
2526
- * @param {?proto.wechaty.puppet.TagPayload|undefined} value
2593
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
2527
2594
  * @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
2528
2595
  */
2529
- proto.wechaty.puppet.TagTagAddResponse.prototype.setPayload = function(value) {
2596
+ proto.wechaty.puppet.TagTagAddResponse.prototype.setTag = function(value) {
2530
2597
  return jspb.Message.setWrapperField(this, 1, value);
2531
2598
  };
2532
2599
 
@@ -2535,8 +2602,8 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.setPayload = function(value) {
2535
2602
  * Clears the message field making it undefined.
2536
2603
  * @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
2537
2604
  */
2538
- proto.wechaty.puppet.TagTagAddResponse.prototype.clearPayload = function() {
2539
- return this.setPayload(undefined);
2605
+ proto.wechaty.puppet.TagTagAddResponse.prototype.clearTag = function() {
2606
+ return this.setTag(undefined);
2540
2607
  };
2541
2608
 
2542
2609
 
@@ -2544,7 +2611,7 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.clearPayload = function() {
2544
2611
  * Returns whether this field is set.
2545
2612
  * @return {boolean}
2546
2613
  */
2547
- proto.wechaty.puppet.TagTagAddResponse.prototype.hasPayload = function() {
2614
+ proto.wechaty.puppet.TagTagAddResponse.prototype.hasTag = function() {
2548
2615
  return jspb.Message.getField(this, 1) != null;
2549
2616
  };
2550
2617
 
@@ -2941,8 +3008,7 @@ proto.wechaty.puppet.TagGroupListResponse.prototype.toObject = function(opt_incl
2941
3008
  */
2942
3009
  proto.wechaty.puppet.TagGroupListResponse.toObject = function(includeInstance, msg) {
2943
3010
  var f, obj = {
2944
- payloadsList: jspb.Message.toObjectList(msg.getPayloadsList(),
2945
- proto.wechaty.puppet.TagGroupPayload.toObject, includeInstance)
3011
+ tagGroupIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2946
3012
  };
2947
3013
 
2948
3014
  if (includeInstance) {
@@ -2980,9 +3046,8 @@ proto.wechaty.puppet.TagGroupListResponse.deserializeBinaryFromReader = function
2980
3046
  var field = reader.getFieldNumber();
2981
3047
  switch (field) {
2982
3048
  case 1:
2983
- var value = new proto.wechaty.puppet.TagGroupPayload;
2984
- reader.readMessage(value,proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader);
2985
- msg.addPayloads(value);
3049
+ var value = /** @type {string} */ (reader.readString());
3050
+ msg.addTagGroupIds(value);
2986
3051
  break;
2987
3052
  default:
2988
3053
  reader.skipField();
@@ -3013,43 +3078,41 @@ proto.wechaty.puppet.TagGroupListResponse.prototype.serializeBinary = function()
3013
3078
  */
3014
3079
  proto.wechaty.puppet.TagGroupListResponse.serializeBinaryToWriter = function(message, writer) {
3015
3080
  var f = undefined;
3016
- f = message.getPayloadsList();
3081
+ f = message.getTagGroupIdsList();
3017
3082
  if (f.length > 0) {
3018
- writer.writeRepeatedMessage(
3083
+ writer.writeRepeatedString(
3019
3084
  1,
3020
- f,
3021
- proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter
3085
+ f
3022
3086
  );
3023
3087
  }
3024
3088
  };
3025
3089
 
3026
3090
 
3027
3091
  /**
3028
- * repeated TagGroupPayload payloads = 1;
3029
- * @return {!Array<!proto.wechaty.puppet.TagGroupPayload>}
3092
+ * repeated string tag_group_ids = 1;
3093
+ * @return {!Array<string>}
3030
3094
  */
3031
- proto.wechaty.puppet.TagGroupListResponse.prototype.getPayloadsList = function() {
3032
- return /** @type{!Array<!proto.wechaty.puppet.TagGroupPayload>} */ (
3033
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagGroupPayload, 1));
3095
+ proto.wechaty.puppet.TagGroupListResponse.prototype.getTagGroupIdsList = function() {
3096
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3034
3097
  };
3035
3098
 
3036
3099
 
3037
3100
  /**
3038
- * @param {!Array<!proto.wechaty.puppet.TagGroupPayload>} value
3101
+ * @param {!Array<string>} value
3039
3102
  * @return {!proto.wechaty.puppet.TagGroupListResponse} returns this
3040
- */
3041
- proto.wechaty.puppet.TagGroupListResponse.prototype.setPayloadsList = function(value) {
3042
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3103
+ */
3104
+ proto.wechaty.puppet.TagGroupListResponse.prototype.setTagGroupIdsList = function(value) {
3105
+ return jspb.Message.setField(this, 1, value || []);
3043
3106
  };
3044
3107
 
3045
3108
 
3046
3109
  /**
3047
- * @param {!proto.wechaty.puppet.TagGroupPayload=} opt_value
3110
+ * @param {string} value
3048
3111
  * @param {number=} opt_index
3049
- * @return {!proto.wechaty.puppet.TagGroupPayload}
3112
+ * @return {!proto.wechaty.puppet.TagGroupListResponse} returns this
3050
3113
  */
3051
- proto.wechaty.puppet.TagGroupListResponse.prototype.addPayloads = function(opt_value, opt_index) {
3052
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagGroupPayload, opt_index);
3114
+ proto.wechaty.puppet.TagGroupListResponse.prototype.addTagGroupIds = function(value, opt_index) {
3115
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3053
3116
  };
3054
3117
 
3055
3118
 
@@ -3057,8 +3120,8 @@ proto.wechaty.puppet.TagGroupListResponse.prototype.addPayloads = function(opt_v
3057
3120
  * Clears the list making it empty but non-null.
3058
3121
  * @return {!proto.wechaty.puppet.TagGroupListResponse} returns this
3059
3122
  */
3060
- proto.wechaty.puppet.TagGroupListResponse.prototype.clearPayloadsList = function() {
3061
- return this.setPayloadsList([]);
3123
+ proto.wechaty.puppet.TagGroupListResponse.prototype.clearTagGroupIdsList = function() {
3124
+ return this.setTagGroupIdsList([]);
3062
3125
  };
3063
3126
 
3064
3127
 
@@ -3231,8 +3294,8 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.toObject = function(opt_i
3231
3294
  */
3232
3295
  proto.wechaty.puppet.TagGroupTagListResponse.toObject = function(includeInstance, msg) {
3233
3296
  var f, obj = {
3234
- payloadsList: jspb.Message.toObjectList(msg.getPayloadsList(),
3235
- proto.wechaty.puppet.TagPayload.toObject, includeInstance)
3297
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3298
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3236
3299
  };
3237
3300
 
3238
3301
  if (includeInstance) {
@@ -3270,9 +3333,9 @@ proto.wechaty.puppet.TagGroupTagListResponse.deserializeBinaryFromReader = funct
3270
3333
  var field = reader.getFieldNumber();
3271
3334
  switch (field) {
3272
3335
  case 1:
3273
- var value = new proto.wechaty.puppet.TagPayload;
3274
- reader.readMessage(value,proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader);
3275
- msg.addPayloads(value);
3336
+ var value = new proto.wechaty.puppet.TagIdentifier;
3337
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3338
+ msg.addTags(value);
3276
3339
  break;
3277
3340
  default:
3278
3341
  reader.skipField();
@@ -3303,43 +3366,43 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.serializeBinary = functio
3303
3366
  */
3304
3367
  proto.wechaty.puppet.TagGroupTagListResponse.serializeBinaryToWriter = function(message, writer) {
3305
3368
  var f = undefined;
3306
- f = message.getPayloadsList();
3369
+ f = message.getTagsList();
3307
3370
  if (f.length > 0) {
3308
3371
  writer.writeRepeatedMessage(
3309
3372
  1,
3310
3373
  f,
3311
- proto.wechaty.puppet.TagPayload.serializeBinaryToWriter
3374
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3312
3375
  );
3313
3376
  }
3314
3377
  };
3315
3378
 
3316
3379
 
3317
3380
  /**
3318
- * repeated TagPayload payloads = 1;
3319
- * @return {!Array<!proto.wechaty.puppet.TagPayload>}
3381
+ * repeated TagIdentifier tags = 1;
3382
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3320
3383
  */
3321
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.getPayloadsList = function() {
3322
- return /** @type{!Array<!proto.wechaty.puppet.TagPayload>} */ (
3323
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagPayload, 1));
3384
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.getTagsList = function() {
3385
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3386
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3324
3387
  };
3325
3388
 
3326
3389
 
3327
3390
  /**
3328
- * @param {!Array<!proto.wechaty.puppet.TagPayload>} value
3391
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3329
3392
  * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3330
3393
  */
3331
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.setPayloadsList = function(value) {
3394
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.setTagsList = function(value) {
3332
3395
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
3333
3396
  };
3334
3397
 
3335
3398
 
3336
3399
  /**
3337
- * @param {!proto.wechaty.puppet.TagPayload=} opt_value
3400
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3338
3401
  * @param {number=} opt_index
3339
- * @return {!proto.wechaty.puppet.TagPayload}
3402
+ * @return {!proto.wechaty.puppet.TagIdentifier}
3340
3403
  */
3341
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.addPayloads = function(opt_value, opt_index) {
3342
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagPayload, opt_index);
3404
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3405
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3343
3406
  };
3344
3407
 
3345
3408
 
@@ -3347,8 +3410,8 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.addPayloads = function(op
3347
3410
  * Clears the list making it empty but non-null.
3348
3411
  * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3349
3412
  */
3350
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.clearPayloadsList = function() {
3351
- return this.setPayloadsList([]);
3413
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.clearTagsList = function() {
3414
+ return this.setTagsList([]);
3352
3415
  };
3353
3416
 
3354
3417
 
@@ -3492,8 +3555,8 @@ proto.wechaty.puppet.TagTagListResponse.prototype.toObject = function(opt_includ
3492
3555
  */
3493
3556
  proto.wechaty.puppet.TagTagListResponse.toObject = function(includeInstance, msg) {
3494
3557
  var f, obj = {
3495
- payloadsList: jspb.Message.toObjectList(msg.getPayloadsList(),
3496
- proto.wechaty.puppet.TagPayload.toObject, includeInstance)
3558
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3559
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3497
3560
  };
3498
3561
 
3499
3562
  if (includeInstance) {
@@ -3531,9 +3594,9 @@ proto.wechaty.puppet.TagTagListResponse.deserializeBinaryFromReader = function(m
3531
3594
  var field = reader.getFieldNumber();
3532
3595
  switch (field) {
3533
3596
  case 1:
3534
- var value = new proto.wechaty.puppet.TagPayload;
3535
- reader.readMessage(value,proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader);
3536
- msg.addPayloads(value);
3597
+ var value = new proto.wechaty.puppet.TagIdentifier;
3598
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3599
+ msg.addTags(value);
3537
3600
  break;
3538
3601
  default:
3539
3602
  reader.skipField();
@@ -3564,43 +3627,43 @@ proto.wechaty.puppet.TagTagListResponse.prototype.serializeBinary = function() {
3564
3627
  */
3565
3628
  proto.wechaty.puppet.TagTagListResponse.serializeBinaryToWriter = function(message, writer) {
3566
3629
  var f = undefined;
3567
- f = message.getPayloadsList();
3630
+ f = message.getTagsList();
3568
3631
  if (f.length > 0) {
3569
3632
  writer.writeRepeatedMessage(
3570
3633
  1,
3571
3634
  f,
3572
- proto.wechaty.puppet.TagPayload.serializeBinaryToWriter
3635
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3573
3636
  );
3574
3637
  }
3575
3638
  };
3576
3639
 
3577
3640
 
3578
3641
  /**
3579
- * repeated TagPayload payloads = 1;
3580
- * @return {!Array<!proto.wechaty.puppet.TagPayload>}
3642
+ * repeated TagIdentifier tags = 1;
3643
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3581
3644
  */
3582
- proto.wechaty.puppet.TagTagListResponse.prototype.getPayloadsList = function() {
3583
- return /** @type{!Array<!proto.wechaty.puppet.TagPayload>} */ (
3584
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagPayload, 1));
3645
+ proto.wechaty.puppet.TagTagListResponse.prototype.getTagsList = function() {
3646
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3647
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3585
3648
  };
3586
3649
 
3587
3650
 
3588
3651
  /**
3589
- * @param {!Array<!proto.wechaty.puppet.TagPayload>} value
3652
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3590
3653
  * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
3591
3654
  */
3592
- proto.wechaty.puppet.TagTagListResponse.prototype.setPayloadsList = function(value) {
3655
+ proto.wechaty.puppet.TagTagListResponse.prototype.setTagsList = function(value) {
3593
3656
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
3594
3657
  };
3595
3658
 
3596
3659
 
3597
3660
  /**
3598
- * @param {!proto.wechaty.puppet.TagPayload=} opt_value
3661
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3599
3662
  * @param {number=} opt_index
3600
- * @return {!proto.wechaty.puppet.TagPayload}
3663
+ * @return {!proto.wechaty.puppet.TagIdentifier}
3601
3664
  */
3602
- proto.wechaty.puppet.TagTagListResponse.prototype.addPayloads = function(opt_value, opt_index) {
3603
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagPayload, opt_index);
3665
+ proto.wechaty.puppet.TagTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3666
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3604
3667
  };
3605
3668
 
3606
3669
 
@@ -3608,8 +3671,8 @@ proto.wechaty.puppet.TagTagListResponse.prototype.addPayloads = function(opt_val
3608
3671
  * Clears the list making it empty but non-null.
3609
3672
  * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
3610
3673
  */
3611
- proto.wechaty.puppet.TagTagListResponse.prototype.clearPayloadsList = function() {
3612
- return this.setPayloadsList([]);
3674
+ proto.wechaty.puppet.TagTagListResponse.prototype.clearTagsList = function() {
3675
+ return this.setTagsList([]);
3613
3676
  };
3614
3677
 
3615
3678
 
@@ -3782,8 +3845,8 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.toObject = function(opt
3782
3845
  */
3783
3846
  proto.wechaty.puppet.TagContactTagListResponse.toObject = function(includeInstance, msg) {
3784
3847
  var f, obj = {
3785
- payloadsList: jspb.Message.toObjectList(msg.getPayloadsList(),
3786
- proto.wechaty.puppet.TagPayload.toObject, includeInstance)
3848
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3849
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3787
3850
  };
3788
3851
 
3789
3852
  if (includeInstance) {
@@ -3821,9 +3884,9 @@ proto.wechaty.puppet.TagContactTagListResponse.deserializeBinaryFromReader = fun
3821
3884
  var field = reader.getFieldNumber();
3822
3885
  switch (field) {
3823
3886
  case 1:
3824
- var value = new proto.wechaty.puppet.TagPayload;
3825
- reader.readMessage(value,proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader);
3826
- msg.addPayloads(value);
3887
+ var value = new proto.wechaty.puppet.TagIdentifier;
3888
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3889
+ msg.addTags(value);
3827
3890
  break;
3828
3891
  default:
3829
3892
  reader.skipField();
@@ -3854,43 +3917,43 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.serializeBinary = funct
3854
3917
  */
3855
3918
  proto.wechaty.puppet.TagContactTagListResponse.serializeBinaryToWriter = function(message, writer) {
3856
3919
  var f = undefined;
3857
- f = message.getPayloadsList();
3920
+ f = message.getTagsList();
3858
3921
  if (f.length > 0) {
3859
3922
  writer.writeRepeatedMessage(
3860
3923
  1,
3861
3924
  f,
3862
- proto.wechaty.puppet.TagPayload.serializeBinaryToWriter
3925
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3863
3926
  );
3864
3927
  }
3865
3928
  };
3866
3929
 
3867
3930
 
3868
3931
  /**
3869
- * repeated TagPayload payloads = 1;
3870
- * @return {!Array<!proto.wechaty.puppet.TagPayload>}
3932
+ * repeated TagIdentifier tags = 1;
3933
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3871
3934
  */
3872
- proto.wechaty.puppet.TagContactTagListResponse.prototype.getPayloadsList = function() {
3873
- return /** @type{!Array<!proto.wechaty.puppet.TagPayload>} */ (
3874
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagPayload, 1));
3935
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.getTagsList = function() {
3936
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3937
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3875
3938
  };
3876
3939
 
3877
3940
 
3878
3941
  /**
3879
- * @param {!Array<!proto.wechaty.puppet.TagPayload>} value
3942
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3880
3943
  * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3881
3944
  */
3882
- proto.wechaty.puppet.TagContactTagListResponse.prototype.setPayloadsList = function(value) {
3945
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.setTagsList = function(value) {
3883
3946
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
3884
3947
  };
3885
3948
 
3886
3949
 
3887
3950
  /**
3888
- * @param {!proto.wechaty.puppet.TagPayload=} opt_value
3951
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3889
3952
  * @param {number=} opt_index
3890
- * @return {!proto.wechaty.puppet.TagPayload}
3953
+ * @return {!proto.wechaty.puppet.TagIdentifier}
3891
3954
  */
3892
- proto.wechaty.puppet.TagContactTagListResponse.prototype.addPayloads = function(opt_value, opt_index) {
3893
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagPayload, opt_index);
3955
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3956
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3894
3957
  };
3895
3958
 
3896
3959
 
@@ -3898,8 +3961,8 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.addPayloads = function(
3898
3961
  * Clears the list making it empty but non-null.
3899
3962
  * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3900
3963
  */
3901
- proto.wechaty.puppet.TagContactTagListResponse.prototype.clearPayloadsList = function() {
3902
- return this.setPayloadsList([]);
3964
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.clearTagsList = function() {
3965
+ return this.setTagsList([]);
3903
3966
  };
3904
3967
 
3905
3968
 
@@ -4093,7 +4156,7 @@ proto.wechaty.puppet.TagTagContactListResponse.prototype.toObject = function(opt
4093
4156
  */
4094
4157
  proto.wechaty.puppet.TagTagContactListResponse.toObject = function(includeInstance, msg) {
4095
4158
  var f, obj = {
4096
- payloadsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
4159
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
4097
4160
  };
4098
4161
 
4099
4162
  if (includeInstance) {
@@ -4132,7 +4195,7 @@ proto.wechaty.puppet.TagTagContactListResponse.deserializeBinaryFromReader = fun
4132
4195
  switch (field) {
4133
4196
  case 1:
4134
4197
  var value = /** @type {string} */ (reader.readString());
4135
- msg.addPayloads(value);
4198
+ msg.addContactIds(value);
4136
4199
  break;
4137
4200
  default:
4138
4201
  reader.skipField();
@@ -4163,7 +4226,7 @@ proto.wechaty.puppet.TagTagContactListResponse.prototype.serializeBinary = funct
4163
4226
  */
4164
4227
  proto.wechaty.puppet.TagTagContactListResponse.serializeBinaryToWriter = function(message, writer) {
4165
4228
  var f = undefined;
4166
- f = message.getPayloadsList();
4229
+ f = message.getContactIdsList();
4167
4230
  if (f.length > 0) {
4168
4231
  writer.writeRepeatedString(
4169
4232
  1,
@@ -4174,10 +4237,10 @@ proto.wechaty.puppet.TagTagContactListResponse.serializeBinaryToWriter = functio
4174
4237
 
4175
4238
 
4176
4239
  /**
4177
- * repeated string payloads = 1;
4240
+ * repeated string contact_ids = 1;
4178
4241
  * @return {!Array<string>}
4179
4242
  */
4180
- proto.wechaty.puppet.TagTagContactListResponse.prototype.getPayloadsList = function() {
4243
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.getContactIdsList = function() {
4181
4244
  return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4182
4245
  };
4183
4246
 
@@ -4186,7 +4249,7 @@ proto.wechaty.puppet.TagTagContactListResponse.prototype.getPayloadsList = funct
4186
4249
  * @param {!Array<string>} value
4187
4250
  * @return {!proto.wechaty.puppet.TagTagContactListResponse} returns this
4188
4251
  */
4189
- proto.wechaty.puppet.TagTagContactListResponse.prototype.setPayloadsList = function(value) {
4252
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.setContactIdsList = function(value) {
4190
4253
  return jspb.Message.setField(this, 1, value || []);
4191
4254
  };
4192
4255
 
@@ -4196,7 +4259,7 @@ proto.wechaty.puppet.TagTagContactListResponse.prototype.setPayloadsList = funct
4196
4259
  * @param {number=} opt_index
4197
4260
  * @return {!proto.wechaty.puppet.TagTagContactListResponse} returns this
4198
4261
  */
4199
- proto.wechaty.puppet.TagTagContactListResponse.prototype.addPayloads = function(value, opt_index) {
4262
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.addContactIds = function(value, opt_index) {
4200
4263
  return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4201
4264
  };
4202
4265
 
@@ -4205,8 +4268,591 @@ proto.wechaty.puppet.TagTagContactListResponse.prototype.addPayloads = function(
4205
4268
  * Clears the list making it empty but non-null.
4206
4269
  * @return {!proto.wechaty.puppet.TagTagContactListResponse} returns this
4207
4270
  */
4208
- proto.wechaty.puppet.TagTagContactListResponse.prototype.clearPayloadsList = function() {
4209
- return this.setPayloadsList([]);
4271
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.clearContactIdsList = function() {
4272
+ return this.setContactIdsList([]);
4273
+ };
4274
+
4275
+
4276
+
4277
+
4278
+
4279
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4280
+ /**
4281
+ * Creates an object representation of this proto.
4282
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4283
+ * Optional fields that are not set will be set to undefined.
4284
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4285
+ * For the list of reserved names please see:
4286
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4287
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4288
+ * JSPB instance for transitional soy proto support:
4289
+ * http://goto/soy-param-migration
4290
+ * @return {!Object}
4291
+ */
4292
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.toObject = function(opt_includeInstance) {
4293
+ return proto.wechaty.puppet.TagGroupPayloadRequest.toObject(opt_includeInstance, this);
4294
+ };
4295
+
4296
+
4297
+ /**
4298
+ * Static version of the {@see toObject} method.
4299
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4300
+ * the JSPB instance for transitional soy proto support:
4301
+ * http://goto/soy-param-migration
4302
+ * @param {!proto.wechaty.puppet.TagGroupPayloadRequest} msg The msg instance to transform.
4303
+ * @return {!Object}
4304
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4305
+ */
4306
+ proto.wechaty.puppet.TagGroupPayloadRequest.toObject = function(includeInstance, msg) {
4307
+ var f, obj = {
4308
+ groupId: jspb.Message.getFieldWithDefault(msg, 1, "")
4309
+ };
4310
+
4311
+ if (includeInstance) {
4312
+ obj.$jspbMessageInstance = msg;
4313
+ }
4314
+ return obj;
4315
+ };
4316
+ }
4317
+
4318
+
4319
+ /**
4320
+ * Deserializes binary data (in protobuf wire format).
4321
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4322
+ * @return {!proto.wechaty.puppet.TagGroupPayloadRequest}
4323
+ */
4324
+ proto.wechaty.puppet.TagGroupPayloadRequest.deserializeBinary = function(bytes) {
4325
+ var reader = new jspb.BinaryReader(bytes);
4326
+ var msg = new proto.wechaty.puppet.TagGroupPayloadRequest;
4327
+ return proto.wechaty.puppet.TagGroupPayloadRequest.deserializeBinaryFromReader(msg, reader);
4328
+ };
4329
+
4330
+
4331
+ /**
4332
+ * Deserializes binary data (in protobuf wire format) from the
4333
+ * given reader into the given message object.
4334
+ * @param {!proto.wechaty.puppet.TagGroupPayloadRequest} msg The message object to deserialize into.
4335
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4336
+ * @return {!proto.wechaty.puppet.TagGroupPayloadRequest}
4337
+ */
4338
+ proto.wechaty.puppet.TagGroupPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
4339
+ while (reader.nextField()) {
4340
+ if (reader.isEndGroup()) {
4341
+ break;
4342
+ }
4343
+ var field = reader.getFieldNumber();
4344
+ switch (field) {
4345
+ case 1:
4346
+ var value = /** @type {string} */ (reader.readString());
4347
+ msg.setGroupId(value);
4348
+ break;
4349
+ default:
4350
+ reader.skipField();
4351
+ break;
4352
+ }
4353
+ }
4354
+ return msg;
4355
+ };
4356
+
4357
+
4358
+ /**
4359
+ * Serializes the message to binary data (in protobuf wire format).
4360
+ * @return {!Uint8Array}
4361
+ */
4362
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.serializeBinary = function() {
4363
+ var writer = new jspb.BinaryWriter();
4364
+ proto.wechaty.puppet.TagGroupPayloadRequest.serializeBinaryToWriter(this, writer);
4365
+ return writer.getResultBuffer();
4366
+ };
4367
+
4368
+
4369
+ /**
4370
+ * Serializes the given message to binary data (in protobuf wire
4371
+ * format), writing to the given BinaryWriter.
4372
+ * @param {!proto.wechaty.puppet.TagGroupPayloadRequest} message
4373
+ * @param {!jspb.BinaryWriter} writer
4374
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4375
+ */
4376
+ proto.wechaty.puppet.TagGroupPayloadRequest.serializeBinaryToWriter = function(message, writer) {
4377
+ var f = undefined;
4378
+ f = message.getGroupId();
4379
+ if (f.length > 0) {
4380
+ writer.writeString(
4381
+ 1,
4382
+ f
4383
+ );
4384
+ }
4385
+ };
4386
+
4387
+
4388
+ /**
4389
+ * optional string group_id = 1;
4390
+ * @return {string}
4391
+ */
4392
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.getGroupId = function() {
4393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4394
+ };
4395
+
4396
+
4397
+ /**
4398
+ * @param {string} value
4399
+ * @return {!proto.wechaty.puppet.TagGroupPayloadRequest} returns this
4400
+ */
4401
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.setGroupId = function(value) {
4402
+ return jspb.Message.setProto3StringField(this, 1, value);
4403
+ };
4404
+
4405
+
4406
+
4407
+
4408
+
4409
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4410
+ /**
4411
+ * Creates an object representation of this proto.
4412
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4413
+ * Optional fields that are not set will be set to undefined.
4414
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4415
+ * For the list of reserved names please see:
4416
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4417
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4418
+ * JSPB instance for transitional soy proto support:
4419
+ * http://goto/soy-param-migration
4420
+ * @return {!Object}
4421
+ */
4422
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.toObject = function(opt_includeInstance) {
4423
+ return proto.wechaty.puppet.TagGroupPayloadResponse.toObject(opt_includeInstance, this);
4424
+ };
4425
+
4426
+
4427
+ /**
4428
+ * Static version of the {@see toObject} method.
4429
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4430
+ * the JSPB instance for transitional soy proto support:
4431
+ * http://goto/soy-param-migration
4432
+ * @param {!proto.wechaty.puppet.TagGroupPayloadResponse} msg The msg instance to transform.
4433
+ * @return {!Object}
4434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4435
+ */
4436
+ proto.wechaty.puppet.TagGroupPayloadResponse.toObject = function(includeInstance, msg) {
4437
+ var f, obj = {
4438
+ payload: (f = msg.getPayload()) && proto.wechaty.puppet.TagGroupPayload.toObject(includeInstance, f)
4439
+ };
4440
+
4441
+ if (includeInstance) {
4442
+ obj.$jspbMessageInstance = msg;
4443
+ }
4444
+ return obj;
4445
+ };
4446
+ }
4447
+
4448
+
4449
+ /**
4450
+ * Deserializes binary data (in protobuf wire format).
4451
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4452
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse}
4453
+ */
4454
+ proto.wechaty.puppet.TagGroupPayloadResponse.deserializeBinary = function(bytes) {
4455
+ var reader = new jspb.BinaryReader(bytes);
4456
+ var msg = new proto.wechaty.puppet.TagGroupPayloadResponse;
4457
+ return proto.wechaty.puppet.TagGroupPayloadResponse.deserializeBinaryFromReader(msg, reader);
4458
+ };
4459
+
4460
+
4461
+ /**
4462
+ * Deserializes binary data (in protobuf wire format) from the
4463
+ * given reader into the given message object.
4464
+ * @param {!proto.wechaty.puppet.TagGroupPayloadResponse} msg The message object to deserialize into.
4465
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4466
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse}
4467
+ */
4468
+ proto.wechaty.puppet.TagGroupPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
4469
+ while (reader.nextField()) {
4470
+ if (reader.isEndGroup()) {
4471
+ break;
4472
+ }
4473
+ var field = reader.getFieldNumber();
4474
+ switch (field) {
4475
+ case 1:
4476
+ var value = new proto.wechaty.puppet.TagGroupPayload;
4477
+ reader.readMessage(value,proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader);
4478
+ msg.setPayload(value);
4479
+ break;
4480
+ default:
4481
+ reader.skipField();
4482
+ break;
4483
+ }
4484
+ }
4485
+ return msg;
4486
+ };
4487
+
4488
+
4489
+ /**
4490
+ * Serializes the message to binary data (in protobuf wire format).
4491
+ * @return {!Uint8Array}
4492
+ */
4493
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.serializeBinary = function() {
4494
+ var writer = new jspb.BinaryWriter();
4495
+ proto.wechaty.puppet.TagGroupPayloadResponse.serializeBinaryToWriter(this, writer);
4496
+ return writer.getResultBuffer();
4497
+ };
4498
+
4499
+
4500
+ /**
4501
+ * Serializes the given message to binary data (in protobuf wire
4502
+ * format), writing to the given BinaryWriter.
4503
+ * @param {!proto.wechaty.puppet.TagGroupPayloadResponse} message
4504
+ * @param {!jspb.BinaryWriter} writer
4505
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4506
+ */
4507
+ proto.wechaty.puppet.TagGroupPayloadResponse.serializeBinaryToWriter = function(message, writer) {
4508
+ var f = undefined;
4509
+ f = message.getPayload();
4510
+ if (f != null) {
4511
+ writer.writeMessage(
4512
+ 1,
4513
+ f,
4514
+ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter
4515
+ );
4516
+ }
4517
+ };
4518
+
4519
+
4520
+ /**
4521
+ * optional TagGroupPayload payload = 1;
4522
+ * @return {?proto.wechaty.puppet.TagGroupPayload}
4523
+ */
4524
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.getPayload = function() {
4525
+ return /** @type{?proto.wechaty.puppet.TagGroupPayload} */ (
4526
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagGroupPayload, 1));
4527
+ };
4528
+
4529
+
4530
+ /**
4531
+ * @param {?proto.wechaty.puppet.TagGroupPayload|undefined} value
4532
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse} returns this
4533
+ */
4534
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.setPayload = function(value) {
4535
+ return jspb.Message.setWrapperField(this, 1, value);
4536
+ };
4537
+
4538
+
4539
+ /**
4540
+ * Clears the message field making it undefined.
4541
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse} returns this
4542
+ */
4543
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.clearPayload = function() {
4544
+ return this.setPayload(undefined);
4545
+ };
4546
+
4547
+
4548
+ /**
4549
+ * Returns whether this field is set.
4550
+ * @return {boolean}
4551
+ */
4552
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.hasPayload = function() {
4553
+ return jspb.Message.getField(this, 1) != null;
4554
+ };
4555
+
4556
+
4557
+
4558
+
4559
+
4560
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4561
+ /**
4562
+ * Creates an object representation of this proto.
4563
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4564
+ * Optional fields that are not set will be set to undefined.
4565
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4566
+ * For the list of reserved names please see:
4567
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4568
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4569
+ * JSPB instance for transitional soy proto support:
4570
+ * http://goto/soy-param-migration
4571
+ * @return {!Object}
4572
+ */
4573
+ proto.wechaty.puppet.TagPayloadRequest.prototype.toObject = function(opt_includeInstance) {
4574
+ return proto.wechaty.puppet.TagPayloadRequest.toObject(opt_includeInstance, this);
4575
+ };
4576
+
4577
+
4578
+ /**
4579
+ * Static version of the {@see toObject} method.
4580
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4581
+ * the JSPB instance for transitional soy proto support:
4582
+ * http://goto/soy-param-migration
4583
+ * @param {!proto.wechaty.puppet.TagPayloadRequest} msg The msg instance to transform.
4584
+ * @return {!Object}
4585
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4586
+ */
4587
+ proto.wechaty.puppet.TagPayloadRequest.toObject = function(includeInstance, msg) {
4588
+ var f, obj = {
4589
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
4590
+ };
4591
+
4592
+ if (includeInstance) {
4593
+ obj.$jspbMessageInstance = msg;
4594
+ }
4595
+ return obj;
4596
+ };
4597
+ }
4598
+
4599
+
4600
+ /**
4601
+ * Deserializes binary data (in protobuf wire format).
4602
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4603
+ * @return {!proto.wechaty.puppet.TagPayloadRequest}
4604
+ */
4605
+ proto.wechaty.puppet.TagPayloadRequest.deserializeBinary = function(bytes) {
4606
+ var reader = new jspb.BinaryReader(bytes);
4607
+ var msg = new proto.wechaty.puppet.TagPayloadRequest;
4608
+ return proto.wechaty.puppet.TagPayloadRequest.deserializeBinaryFromReader(msg, reader);
4609
+ };
4610
+
4611
+
4612
+ /**
4613
+ * Deserializes binary data (in protobuf wire format) from the
4614
+ * given reader into the given message object.
4615
+ * @param {!proto.wechaty.puppet.TagPayloadRequest} msg The message object to deserialize into.
4616
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4617
+ * @return {!proto.wechaty.puppet.TagPayloadRequest}
4618
+ */
4619
+ proto.wechaty.puppet.TagPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
4620
+ while (reader.nextField()) {
4621
+ if (reader.isEndGroup()) {
4622
+ break;
4623
+ }
4624
+ var field = reader.getFieldNumber();
4625
+ switch (field) {
4626
+ case 1:
4627
+ var value = new proto.wechaty.puppet.TagIdentifier;
4628
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
4629
+ msg.setTag(value);
4630
+ break;
4631
+ default:
4632
+ reader.skipField();
4633
+ break;
4634
+ }
4635
+ }
4636
+ return msg;
4637
+ };
4638
+
4639
+
4640
+ /**
4641
+ * Serializes the message to binary data (in protobuf wire format).
4642
+ * @return {!Uint8Array}
4643
+ */
4644
+ proto.wechaty.puppet.TagPayloadRequest.prototype.serializeBinary = function() {
4645
+ var writer = new jspb.BinaryWriter();
4646
+ proto.wechaty.puppet.TagPayloadRequest.serializeBinaryToWriter(this, writer);
4647
+ return writer.getResultBuffer();
4648
+ };
4649
+
4650
+
4651
+ /**
4652
+ * Serializes the given message to binary data (in protobuf wire
4653
+ * format), writing to the given BinaryWriter.
4654
+ * @param {!proto.wechaty.puppet.TagPayloadRequest} message
4655
+ * @param {!jspb.BinaryWriter} writer
4656
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4657
+ */
4658
+ proto.wechaty.puppet.TagPayloadRequest.serializeBinaryToWriter = function(message, writer) {
4659
+ var f = undefined;
4660
+ f = message.getTag();
4661
+ if (f != null) {
4662
+ writer.writeMessage(
4663
+ 1,
4664
+ f,
4665
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
4666
+ );
4667
+ }
4668
+ };
4669
+
4670
+
4671
+ /**
4672
+ * optional TagIdentifier tag = 1;
4673
+ * @return {?proto.wechaty.puppet.TagIdentifier}
4674
+ */
4675
+ proto.wechaty.puppet.TagPayloadRequest.prototype.getTag = function() {
4676
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
4677
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
4678
+ };
4679
+
4680
+
4681
+ /**
4682
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
4683
+ * @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
4684
+ */
4685
+ proto.wechaty.puppet.TagPayloadRequest.prototype.setTag = function(value) {
4686
+ return jspb.Message.setWrapperField(this, 1, value);
4687
+ };
4688
+
4689
+
4690
+ /**
4691
+ * Clears the message field making it undefined.
4692
+ * @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
4693
+ */
4694
+ proto.wechaty.puppet.TagPayloadRequest.prototype.clearTag = function() {
4695
+ return this.setTag(undefined);
4696
+ };
4697
+
4698
+
4699
+ /**
4700
+ * Returns whether this field is set.
4701
+ * @return {boolean}
4702
+ */
4703
+ proto.wechaty.puppet.TagPayloadRequest.prototype.hasTag = function() {
4704
+ return jspb.Message.getField(this, 1) != null;
4705
+ };
4706
+
4707
+
4708
+
4709
+
4710
+
4711
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4712
+ /**
4713
+ * Creates an object representation of this proto.
4714
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4715
+ * Optional fields that are not set will be set to undefined.
4716
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4717
+ * For the list of reserved names please see:
4718
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4719
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4720
+ * JSPB instance for transitional soy proto support:
4721
+ * http://goto/soy-param-migration
4722
+ * @return {!Object}
4723
+ */
4724
+ proto.wechaty.puppet.TagPayloadResponse.prototype.toObject = function(opt_includeInstance) {
4725
+ return proto.wechaty.puppet.TagPayloadResponse.toObject(opt_includeInstance, this);
4726
+ };
4727
+
4728
+
4729
+ /**
4730
+ * Static version of the {@see toObject} method.
4731
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4732
+ * the JSPB instance for transitional soy proto support:
4733
+ * http://goto/soy-param-migration
4734
+ * @param {!proto.wechaty.puppet.TagPayloadResponse} msg The msg instance to transform.
4735
+ * @return {!Object}
4736
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4737
+ */
4738
+ proto.wechaty.puppet.TagPayloadResponse.toObject = function(includeInstance, msg) {
4739
+ var f, obj = {
4740
+ payload: (f = msg.getPayload()) && proto.wechaty.puppet.TagPayload.toObject(includeInstance, f)
4741
+ };
4742
+
4743
+ if (includeInstance) {
4744
+ obj.$jspbMessageInstance = msg;
4745
+ }
4746
+ return obj;
4747
+ };
4748
+ }
4749
+
4750
+
4751
+ /**
4752
+ * Deserializes binary data (in protobuf wire format).
4753
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4754
+ * @return {!proto.wechaty.puppet.TagPayloadResponse}
4755
+ */
4756
+ proto.wechaty.puppet.TagPayloadResponse.deserializeBinary = function(bytes) {
4757
+ var reader = new jspb.BinaryReader(bytes);
4758
+ var msg = new proto.wechaty.puppet.TagPayloadResponse;
4759
+ return proto.wechaty.puppet.TagPayloadResponse.deserializeBinaryFromReader(msg, reader);
4760
+ };
4761
+
4762
+
4763
+ /**
4764
+ * Deserializes binary data (in protobuf wire format) from the
4765
+ * given reader into the given message object.
4766
+ * @param {!proto.wechaty.puppet.TagPayloadResponse} msg The message object to deserialize into.
4767
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4768
+ * @return {!proto.wechaty.puppet.TagPayloadResponse}
4769
+ */
4770
+ proto.wechaty.puppet.TagPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
4771
+ while (reader.nextField()) {
4772
+ if (reader.isEndGroup()) {
4773
+ break;
4774
+ }
4775
+ var field = reader.getFieldNumber();
4776
+ switch (field) {
4777
+ case 1:
4778
+ var value = new proto.wechaty.puppet.TagPayload;
4779
+ reader.readMessage(value,proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader);
4780
+ msg.setPayload(value);
4781
+ break;
4782
+ default:
4783
+ reader.skipField();
4784
+ break;
4785
+ }
4786
+ }
4787
+ return msg;
4788
+ };
4789
+
4790
+
4791
+ /**
4792
+ * Serializes the message to binary data (in protobuf wire format).
4793
+ * @return {!Uint8Array}
4794
+ */
4795
+ proto.wechaty.puppet.TagPayloadResponse.prototype.serializeBinary = function() {
4796
+ var writer = new jspb.BinaryWriter();
4797
+ proto.wechaty.puppet.TagPayloadResponse.serializeBinaryToWriter(this, writer);
4798
+ return writer.getResultBuffer();
4799
+ };
4800
+
4801
+
4802
+ /**
4803
+ * Serializes the given message to binary data (in protobuf wire
4804
+ * format), writing to the given BinaryWriter.
4805
+ * @param {!proto.wechaty.puppet.TagPayloadResponse} message
4806
+ * @param {!jspb.BinaryWriter} writer
4807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4808
+ */
4809
+ proto.wechaty.puppet.TagPayloadResponse.serializeBinaryToWriter = function(message, writer) {
4810
+ var f = undefined;
4811
+ f = message.getPayload();
4812
+ if (f != null) {
4813
+ writer.writeMessage(
4814
+ 1,
4815
+ f,
4816
+ proto.wechaty.puppet.TagPayload.serializeBinaryToWriter
4817
+ );
4818
+ }
4819
+ };
4820
+
4821
+
4822
+ /**
4823
+ * optional TagPayload payload = 1;
4824
+ * @return {?proto.wechaty.puppet.TagPayload}
4825
+ */
4826
+ proto.wechaty.puppet.TagPayloadResponse.prototype.getPayload = function() {
4827
+ return /** @type{?proto.wechaty.puppet.TagPayload} */ (
4828
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagPayload, 1));
4829
+ };
4830
+
4831
+
4832
+ /**
4833
+ * @param {?proto.wechaty.puppet.TagPayload|undefined} value
4834
+ * @return {!proto.wechaty.puppet.TagPayloadResponse} returns this
4835
+ */
4836
+ proto.wechaty.puppet.TagPayloadResponse.prototype.setPayload = function(value) {
4837
+ return jspb.Message.setWrapperField(this, 1, value);
4838
+ };
4839
+
4840
+
4841
+ /**
4842
+ * Clears the message field making it undefined.
4843
+ * @return {!proto.wechaty.puppet.TagPayloadResponse} returns this
4844
+ */
4845
+ proto.wechaty.puppet.TagPayloadResponse.prototype.clearPayload = function() {
4846
+ return this.setPayload(undefined);
4847
+ };
4848
+
4849
+
4850
+ /**
4851
+ * Returns whether this field is set.
4852
+ * @return {boolean}
4853
+ */
4854
+ proto.wechaty.puppet.TagPayloadResponse.prototype.hasPayload = function() {
4855
+ return jspb.Message.getField(this, 1) != null;
4210
4856
  };
4211
4857
 
4212
4858