@juzi/wechaty-grpc 1.0.50 → 1.0.51

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.
@@ -4600,113 +4600,113 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
4600
4600
  f
4601
4601
  );
4602
4602
  }
4603
- f = message.getGender();
4604
- if (f !== 0.0) {
4603
+ f = /** @type {!proto.wechaty.puppet.ContactGender} */ (jspb.Message.getField(message, 2));
4604
+ if (f != null) {
4605
4605
  writer.writeEnum(
4606
4606
  2,
4607
4607
  f
4608
4608
  );
4609
4609
  }
4610
- f = message.getType();
4611
- if (f !== 0.0) {
4610
+ f = /** @type {!proto.wechaty.puppet.ContactType} */ (jspb.Message.getField(message, 3));
4611
+ if (f != null) {
4612
4612
  writer.writeEnum(
4613
4613
  3,
4614
4614
  f
4615
4615
  );
4616
4616
  }
4617
- f = message.getName();
4618
- if (f.length > 0) {
4617
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
4618
+ if (f != null) {
4619
4619
  writer.writeString(
4620
4620
  4,
4621
4621
  f
4622
4622
  );
4623
4623
  }
4624
- f = message.getAvatar();
4625
- if (f.length > 0) {
4624
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
4625
+ if (f != null) {
4626
4626
  writer.writeString(
4627
4627
  5,
4628
4628
  f
4629
4629
  );
4630
4630
  }
4631
- f = message.getAddress();
4632
- if (f.length > 0) {
4631
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
4632
+ if (f != null) {
4633
4633
  writer.writeString(
4634
4634
  6,
4635
4635
  f
4636
4636
  );
4637
4637
  }
4638
- f = message.getAlias();
4639
- if (f.length > 0) {
4638
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
4639
+ if (f != null) {
4640
4640
  writer.writeString(
4641
4641
  7,
4642
4642
  f
4643
4643
  );
4644
4644
  }
4645
- f = message.getCity();
4646
- if (f.length > 0) {
4645
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
4646
+ if (f != null) {
4647
4647
  writer.writeString(
4648
4648
  8,
4649
4649
  f
4650
4650
  );
4651
4651
  }
4652
- f = message.getFriend();
4653
- if (f) {
4652
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 9));
4653
+ if (f != null) {
4654
4654
  writer.writeBool(
4655
4655
  9,
4656
4656
  f
4657
4657
  );
4658
4658
  }
4659
- f = message.getProvince();
4660
- if (f.length > 0) {
4659
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
4660
+ if (f != null) {
4661
4661
  writer.writeString(
4662
4662
  10,
4663
4663
  f
4664
4664
  );
4665
4665
  }
4666
- f = message.getSignature();
4667
- if (f.length > 0) {
4666
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
4667
+ if (f != null) {
4668
4668
  writer.writeString(
4669
4669
  11,
4670
4670
  f
4671
4671
  );
4672
4672
  }
4673
- f = message.getStar();
4674
- if (f) {
4673
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 12));
4674
+ if (f != null) {
4675
4675
  writer.writeBool(
4676
4676
  12,
4677
4677
  f
4678
4678
  );
4679
4679
  }
4680
- f = message.getWeixin();
4681
- if (f.length > 0) {
4680
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
4681
+ if (f != null) {
4682
4682
  writer.writeString(
4683
4683
  13,
4684
4684
  f
4685
4685
  );
4686
4686
  }
4687
- f = message.getCorporation();
4688
- if (f.length > 0) {
4687
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
4688
+ if (f != null) {
4689
4689
  writer.writeString(
4690
4690
  14,
4691
4691
  f
4692
4692
  );
4693
4693
  }
4694
- f = message.getTitle();
4695
- if (f.length > 0) {
4694
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
4695
+ if (f != null) {
4696
4696
  writer.writeString(
4697
4697
  15,
4698
4698
  f
4699
4699
  );
4700
4700
  }
4701
- f = message.getDescription();
4702
- if (f.length > 0) {
4701
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
4702
+ if (f != null) {
4703
4703
  writer.writeString(
4704
4704
  16,
4705
4705
  f
4706
4706
  );
4707
4707
  }
4708
- f = message.getCoworker();
4709
- if (f) {
4708
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
4709
+ if (f != null) {
4710
4710
  writer.writeBool(
4711
4711
  17,
4712
4712
  f
@@ -4719,8 +4719,8 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = funct
4719
4719
  f
4720
4720
  );
4721
4721
  }
4722
- f = message.getAdditionalInfo();
4723
- if (f.length > 0) {
4722
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
4723
+ if (f != null) {
4724
4724
  writer.writeString(
4725
4725
  19,
4726
4726
  f
@@ -4768,7 +4768,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getGender = function(
4768
4768
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4769
4769
  */
4770
4770
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setGender = function(value) {
4771
- return jspb.Message.setProto3EnumField(this, 2, value);
4771
+ return jspb.Message.setField(this, 2, value);
4772
+ };
4773
+
4774
+
4775
+ /**
4776
+ * Clears the field making it undefined.
4777
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4778
+ */
4779
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearGender = function() {
4780
+ return jspb.Message.setField(this, 2, undefined);
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * Returns whether this field is set.
4786
+ * @return {boolean}
4787
+ */
4788
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasGender = function() {
4789
+ return jspb.Message.getField(this, 2) != null;
4772
4790
  };
4773
4791
 
4774
4792
 
@@ -4786,7 +4804,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getType = function()
4786
4804
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4787
4805
  */
4788
4806
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setType = function(value) {
4789
- return jspb.Message.setProto3EnumField(this, 3, value);
4807
+ return jspb.Message.setField(this, 3, value);
4808
+ };
4809
+
4810
+
4811
+ /**
4812
+ * Clears the field making it undefined.
4813
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4814
+ */
4815
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearType = function() {
4816
+ return jspb.Message.setField(this, 3, undefined);
4817
+ };
4818
+
4819
+
4820
+ /**
4821
+ * Returns whether this field is set.
4822
+ * @return {boolean}
4823
+ */
4824
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasType = function() {
4825
+ return jspb.Message.getField(this, 3) != null;
4790
4826
  };
4791
4827
 
4792
4828
 
@@ -4804,7 +4840,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getName = function()
4804
4840
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4805
4841
  */
4806
4842
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setName = function(value) {
4807
- return jspb.Message.setProto3StringField(this, 4, value);
4843
+ return jspb.Message.setField(this, 4, value);
4844
+ };
4845
+
4846
+
4847
+ /**
4848
+ * Clears the field making it undefined.
4849
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4850
+ */
4851
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearName = function() {
4852
+ return jspb.Message.setField(this, 4, undefined);
4853
+ };
4854
+
4855
+
4856
+ /**
4857
+ * Returns whether this field is set.
4858
+ * @return {boolean}
4859
+ */
4860
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasName = function() {
4861
+ return jspb.Message.getField(this, 4) != null;
4808
4862
  };
4809
4863
 
4810
4864
 
@@ -4822,7 +4876,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAvatar = function(
4822
4876
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4823
4877
  */
4824
4878
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAvatar = function(value) {
4825
- return jspb.Message.setProto3StringField(this, 5, value);
4879
+ return jspb.Message.setField(this, 5, value);
4880
+ };
4881
+
4882
+
4883
+ /**
4884
+ * Clears the field making it undefined.
4885
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4886
+ */
4887
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearAvatar = function() {
4888
+ return jspb.Message.setField(this, 5, undefined);
4889
+ };
4890
+
4891
+
4892
+ /**
4893
+ * Returns whether this field is set.
4894
+ * @return {boolean}
4895
+ */
4896
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasAvatar = function() {
4897
+ return jspb.Message.getField(this, 5) != null;
4826
4898
  };
4827
4899
 
4828
4900
 
@@ -4840,7 +4912,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAddress = function
4840
4912
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4841
4913
  */
4842
4914
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAddress = function(value) {
4843
- return jspb.Message.setProto3StringField(this, 6, value);
4915
+ return jspb.Message.setField(this, 6, value);
4916
+ };
4917
+
4918
+
4919
+ /**
4920
+ * Clears the field making it undefined.
4921
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4922
+ */
4923
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearAddress = function() {
4924
+ return jspb.Message.setField(this, 6, undefined);
4925
+ };
4926
+
4927
+
4928
+ /**
4929
+ * Returns whether this field is set.
4930
+ * @return {boolean}
4931
+ */
4932
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasAddress = function() {
4933
+ return jspb.Message.getField(this, 6) != null;
4844
4934
  };
4845
4935
 
4846
4936
 
@@ -4858,7 +4948,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAlias = function()
4858
4948
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4859
4949
  */
4860
4950
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAlias = function(value) {
4861
- return jspb.Message.setProto3StringField(this, 7, value);
4951
+ return jspb.Message.setField(this, 7, value);
4952
+ };
4953
+
4954
+
4955
+ /**
4956
+ * Clears the field making it undefined.
4957
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4958
+ */
4959
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearAlias = function() {
4960
+ return jspb.Message.setField(this, 7, undefined);
4961
+ };
4962
+
4963
+
4964
+ /**
4965
+ * Returns whether this field is set.
4966
+ * @return {boolean}
4967
+ */
4968
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasAlias = function() {
4969
+ return jspb.Message.getField(this, 7) != null;
4862
4970
  };
4863
4971
 
4864
4972
 
@@ -4876,7 +4984,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCity = function()
4876
4984
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4877
4985
  */
4878
4986
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCity = function(value) {
4879
- return jspb.Message.setProto3StringField(this, 8, value);
4987
+ return jspb.Message.setField(this, 8, value);
4988
+ };
4989
+
4990
+
4991
+ /**
4992
+ * Clears the field making it undefined.
4993
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4994
+ */
4995
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearCity = function() {
4996
+ return jspb.Message.setField(this, 8, undefined);
4997
+ };
4998
+
4999
+
5000
+ /**
5001
+ * Returns whether this field is set.
5002
+ * @return {boolean}
5003
+ */
5004
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasCity = function() {
5005
+ return jspb.Message.getField(this, 8) != null;
4880
5006
  };
4881
5007
 
4882
5008
 
@@ -4894,7 +5020,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getFriend = function(
4894
5020
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4895
5021
  */
4896
5022
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setFriend = function(value) {
4897
- return jspb.Message.setProto3BooleanField(this, 9, value);
5023
+ return jspb.Message.setField(this, 9, value);
5024
+ };
5025
+
5026
+
5027
+ /**
5028
+ * Clears the field making it undefined.
5029
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5030
+ */
5031
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearFriend = function() {
5032
+ return jspb.Message.setField(this, 9, undefined);
5033
+ };
5034
+
5035
+
5036
+ /**
5037
+ * Returns whether this field is set.
5038
+ * @return {boolean}
5039
+ */
5040
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasFriend = function() {
5041
+ return jspb.Message.getField(this, 9) != null;
4898
5042
  };
4899
5043
 
4900
5044
 
@@ -4912,7 +5056,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getProvince = functio
4912
5056
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4913
5057
  */
4914
5058
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setProvince = function(value) {
4915
- return jspb.Message.setProto3StringField(this, 10, value);
5059
+ return jspb.Message.setField(this, 10, value);
5060
+ };
5061
+
5062
+
5063
+ /**
5064
+ * Clears the field making it undefined.
5065
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5066
+ */
5067
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearProvince = function() {
5068
+ return jspb.Message.setField(this, 10, undefined);
5069
+ };
5070
+
5071
+
5072
+ /**
5073
+ * Returns whether this field is set.
5074
+ * @return {boolean}
5075
+ */
5076
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasProvince = function() {
5077
+ return jspb.Message.getField(this, 10) != null;
4916
5078
  };
4917
5079
 
4918
5080
 
@@ -4930,7 +5092,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getSignature = functi
4930
5092
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4931
5093
  */
4932
5094
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setSignature = function(value) {
4933
- return jspb.Message.setProto3StringField(this, 11, value);
5095
+ return jspb.Message.setField(this, 11, value);
5096
+ };
5097
+
5098
+
5099
+ /**
5100
+ * Clears the field making it undefined.
5101
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5102
+ */
5103
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearSignature = function() {
5104
+ return jspb.Message.setField(this, 11, undefined);
5105
+ };
5106
+
5107
+
5108
+ /**
5109
+ * Returns whether this field is set.
5110
+ * @return {boolean}
5111
+ */
5112
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasSignature = function() {
5113
+ return jspb.Message.getField(this, 11) != null;
4934
5114
  };
4935
5115
 
4936
5116
 
@@ -4948,7 +5128,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getStar = function()
4948
5128
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4949
5129
  */
4950
5130
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setStar = function(value) {
4951
- return jspb.Message.setProto3BooleanField(this, 12, value);
5131
+ return jspb.Message.setField(this, 12, value);
5132
+ };
5133
+
5134
+
5135
+ /**
5136
+ * Clears the field making it undefined.
5137
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5138
+ */
5139
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearStar = function() {
5140
+ return jspb.Message.setField(this, 12, undefined);
5141
+ };
5142
+
5143
+
5144
+ /**
5145
+ * Returns whether this field is set.
5146
+ * @return {boolean}
5147
+ */
5148
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasStar = function() {
5149
+ return jspb.Message.getField(this, 12) != null;
4952
5150
  };
4953
5151
 
4954
5152
 
@@ -4966,7 +5164,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getWeixin = function(
4966
5164
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4967
5165
  */
4968
5166
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setWeixin = function(value) {
4969
- return jspb.Message.setProto3StringField(this, 13, value);
5167
+ return jspb.Message.setField(this, 13, value);
5168
+ };
5169
+
5170
+
5171
+ /**
5172
+ * Clears the field making it undefined.
5173
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5174
+ */
5175
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearWeixin = function() {
5176
+ return jspb.Message.setField(this, 13, undefined);
5177
+ };
5178
+
5179
+
5180
+ /**
5181
+ * Returns whether this field is set.
5182
+ * @return {boolean}
5183
+ */
5184
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasWeixin = function() {
5185
+ return jspb.Message.getField(this, 13) != null;
4970
5186
  };
4971
5187
 
4972
5188
 
@@ -4984,7 +5200,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCorporation = func
4984
5200
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4985
5201
  */
4986
5202
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCorporation = function(value) {
4987
- return jspb.Message.setProto3StringField(this, 14, value);
5203
+ return jspb.Message.setField(this, 14, value);
5204
+ };
5205
+
5206
+
5207
+ /**
5208
+ * Clears the field making it undefined.
5209
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5210
+ */
5211
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearCorporation = function() {
5212
+ return jspb.Message.setField(this, 14, undefined);
5213
+ };
5214
+
5215
+
5216
+ /**
5217
+ * Returns whether this field is set.
5218
+ * @return {boolean}
5219
+ */
5220
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasCorporation = function() {
5221
+ return jspb.Message.getField(this, 14) != null;
4988
5222
  };
4989
5223
 
4990
5224
 
@@ -5002,7 +5236,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTitle = function()
5002
5236
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5003
5237
  */
5004
5238
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTitle = function(value) {
5005
- return jspb.Message.setProto3StringField(this, 15, value);
5239
+ return jspb.Message.setField(this, 15, value);
5240
+ };
5241
+
5242
+
5243
+ /**
5244
+ * Clears the field making it undefined.
5245
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5246
+ */
5247
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTitle = function() {
5248
+ return jspb.Message.setField(this, 15, undefined);
5249
+ };
5250
+
5251
+
5252
+ /**
5253
+ * Returns whether this field is set.
5254
+ * @return {boolean}
5255
+ */
5256
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasTitle = function() {
5257
+ return jspb.Message.getField(this, 15) != null;
5006
5258
  };
5007
5259
 
5008
5260
 
@@ -5020,7 +5272,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getDescription = func
5020
5272
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5021
5273
  */
5022
5274
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setDescription = function(value) {
5023
- return jspb.Message.setProto3StringField(this, 16, value);
5275
+ return jspb.Message.setField(this, 16, value);
5276
+ };
5277
+
5278
+
5279
+ /**
5280
+ * Clears the field making it undefined.
5281
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5282
+ */
5283
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearDescription = function() {
5284
+ return jspb.Message.setField(this, 16, undefined);
5285
+ };
5286
+
5287
+
5288
+ /**
5289
+ * Returns whether this field is set.
5290
+ * @return {boolean}
5291
+ */
5292
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasDescription = function() {
5293
+ return jspb.Message.getField(this, 16) != null;
5024
5294
  };
5025
5295
 
5026
5296
 
@@ -5038,7 +5308,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCoworker = functio
5038
5308
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5039
5309
  */
5040
5310
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCoworker = function(value) {
5041
- return jspb.Message.setProto3BooleanField(this, 17, value);
5311
+ return jspb.Message.setField(this, 17, value);
5312
+ };
5313
+
5314
+
5315
+ /**
5316
+ * Clears the field making it undefined.
5317
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5318
+ */
5319
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearCoworker = function() {
5320
+ return jspb.Message.setField(this, 17, undefined);
5321
+ };
5322
+
5323
+
5324
+ /**
5325
+ * Returns whether this field is set.
5326
+ * @return {boolean}
5327
+ */
5328
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasCoworker = function() {
5329
+ return jspb.Message.getField(this, 17) != null;
5042
5330
  };
5043
5331
 
5044
5332
 
@@ -5093,7 +5381,25 @@ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAdditionalInfo = f
5093
5381
  * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5094
5382
  */
5095
5383
  proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = function(value) {
5096
- return jspb.Message.setProto3StringField(this, 19, value);
5384
+ return jspb.Message.setField(this, 19, value);
5385
+ };
5386
+
5387
+
5388
+ /**
5389
+ * Clears the field making it undefined.
5390
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5391
+ */
5392
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearAdditionalInfo = function() {
5393
+ return jspb.Message.setField(this, 19, undefined);
5394
+ };
5395
+
5396
+
5397
+ /**
5398
+ * Returns whether this field is set.
5399
+ * @return {boolean}
5400
+ */
5401
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.hasAdditionalInfo = function() {
5402
+ return jspb.Message.getField(this, 19) != null;
5097
5403
  };
5098
5404
 
5099
5405
 
@@ -9,7 +9,7 @@ info:
9
9
 
10
10
  Wechaty Puppet Service is the RESTful API for Wechaty API, which is build on
11
11
  top of the Wechaty Puppet Abstraction and the gRPC proto definition.
12
- version: 1.0.50
12
+ version: 1.0.51
13
13
  contact:
14
14
  name: Wechaty
15
15
  url: 'https://github.com/wechaty/openapi'
@@ -2612,6 +2612,7 @@ definitions:
2612
2612
  detail:
2613
2613
  type: array
2614
2614
  items:
2615
+ type: object
2615
2616
  $ref: '#/definitions/puppetBroadcastTarget'
2616
2617
  puppetGetMessageBroadcastTargetResponse:
2617
2618
  type: object
@@ -3017,6 +3018,7 @@ definitions:
3017
3018
  sayableList:
3018
3019
  type: array
3019
3020
  items:
3021
+ type: object
3020
3022
  $ref: '#/definitions/puppetPostSayable'
3021
3023
  visibleList:
3022
3024
  type: array
@@ -3060,6 +3062,7 @@ definitions:
3060
3062
  sayableList:
3061
3063
  type: array
3062
3064
  items:
3065
+ type: object
3063
3066
  $ref: '#/definitions/puppetPostSayable'
3064
3067
  contactId:
3065
3068
  type: string
@@ -3532,5 +3535,6 @@ definitions:
3532
3535
  details:
3533
3536
  type: array
3534
3537
  items:
3538
+ type: object
3535
3539
  $ref: '#/definitions/protobufAny'
3536
3540
 
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "Wechaty Puppet Service OpenAPI Specification",
5
5
  "description": "Wechaty is a Conversational RPA SDK for chatbot makers. With only 6 lines of code, you can create a bot on the most popular IMs like WeChat, Whatsapp, WeCom, Gitter, etc.\n\nWechaty Puppet Service is the RESTful API for Wechaty API, which is build on top of the Wechaty Puppet Abstraction and the gRPC proto definition.",
6
- "version": "1.0.50",
6
+ "version": "1.0.51",
7
7
  "contact": {
8
8
  "name": "Wechaty",
9
9
  "url": "https://github.com/wechaty/openapi",
@@ -3779,6 +3779,7 @@
3779
3779
  "detail": {
3780
3780
  "type": "array",
3781
3781
  "items": {
3782
+ "type": "object",
3782
3783
  "$ref": "#/definitions/puppetBroadcastTarget"
3783
3784
  }
3784
3785
  }
@@ -4267,6 +4268,7 @@
4267
4268
  "sayableList": {
4268
4269
  "type": "array",
4269
4270
  "items": {
4271
+ "type": "object",
4270
4272
  "$ref": "#/definitions/puppetPostSayable"
4271
4273
  }
4272
4274
  },
@@ -4333,6 +4335,7 @@
4333
4335
  "sayableList": {
4334
4336
  "type": "array",
4335
4337
  "items": {
4338
+ "type": "object",
4336
4339
  "$ref": "#/definitions/puppetPostSayable"
4337
4340
  }
4338
4341
  },
@@ -5004,6 +5007,7 @@
5004
5007
  "details": {
5005
5008
  "type": "array",
5006
5009
  "items": {
5010
+ "type": "object",
5007
5011
  "$ref": "#/definitions/protobufAny"
5008
5012
  }
5009
5013
  }