@juzi/wechaty-grpc 1.0.39 → 1.0.41

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 (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +116 -0
  2. package/dist/cjs/out/wechaty/puppet/contact_pb.js +890 -0
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +89 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +126 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/contact.proto +25 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +116 -0
  16. package/dist/esm/out/wechaty/puppet/contact_pb.js +890 -0
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +89 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +126 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  23. package/dist/esm/proto/wechaty/puppet/contact.proto +25 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +5 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/contact_pb.d.ts +116 -0
  30. package/out/wechaty/puppet/contact_pb.js +890 -0
  31. package/out/wechaty/puppet.openapi.yaml +89 -1
  32. package/out/wechaty/puppet.swagger.json +126 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  34. package/out/wechaty/puppet_grpc_pb.js +33 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  36. package/out/wechaty/puppet_pb_service.js +40 -0
  37. package/package.json +1 -1
  38. package/src/package-json.ts +1 -1
@@ -30,6 +30,8 @@ goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionResponse', null, globa
30
30
  goog.exportSymbol('proto.wechaty.puppet.ContactGender', null, global);
31
31
  goog.exportSymbol('proto.wechaty.puppet.ContactListRequest', null, global);
32
32
  goog.exportSymbol('proto.wechaty.puppet.ContactListResponse', null, global);
33
+ goog.exportSymbol('proto.wechaty.puppet.ContactPayloadModifyRequest', null, global);
34
+ goog.exportSymbol('proto.wechaty.puppet.ContactPayloadModifyResponse', null, global);
33
35
  goog.exportSymbol('proto.wechaty.puppet.ContactPayloadRequest', null, global);
34
36
  goog.exportSymbol('proto.wechaty.puppet.ContactPayloadResponse', null, global);
35
37
  goog.exportSymbol('proto.wechaty.puppet.ContactPhoneRequest', null, global);
@@ -503,6 +505,48 @@ if (goog.DEBUG && !COMPILED) {
503
505
  */
504
506
  proto.wechaty.puppet.ContactDeleteResponse.displayName = 'proto.wechaty.puppet.ContactDeleteResponse';
505
507
  }
508
+ /**
509
+ * Generated by JsPbCodeGenerator.
510
+ * @param {Array=} opt_data Optional initial data array, typically from a
511
+ * server response, or constructed directly in Javascript. The array is used
512
+ * in place and becomes part of the constructed object. It is not cloned.
513
+ * If no data is provided, the constructed object will be empty, but still
514
+ * valid.
515
+ * @extends {jspb.Message}
516
+ * @constructor
517
+ */
518
+ proto.wechaty.puppet.ContactPayloadModifyRequest = function(opt_data) {
519
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_, null);
520
+ };
521
+ goog.inherits(proto.wechaty.puppet.ContactPayloadModifyRequest, jspb.Message);
522
+ if (goog.DEBUG && !COMPILED) {
523
+ /**
524
+ * @public
525
+ * @override
526
+ */
527
+ proto.wechaty.puppet.ContactPayloadModifyRequest.displayName = 'proto.wechaty.puppet.ContactPayloadModifyRequest';
528
+ }
529
+ /**
530
+ * Generated by JsPbCodeGenerator.
531
+ * @param {Array=} opt_data Optional initial data array, typically from a
532
+ * server response, or constructed directly in Javascript. The array is used
533
+ * in place and becomes part of the constructed object. It is not cloned.
534
+ * If no data is provided, the constructed object will be empty, but still
535
+ * valid.
536
+ * @extends {jspb.Message}
537
+ * @constructor
538
+ */
539
+ proto.wechaty.puppet.ContactPayloadModifyResponse = function(opt_data) {
540
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
541
+ };
542
+ goog.inherits(proto.wechaty.puppet.ContactPayloadModifyResponse, jspb.Message);
543
+ if (goog.DEBUG && !COMPILED) {
544
+ /**
545
+ * @public
546
+ * @override
547
+ */
548
+ proto.wechaty.puppet.ContactPayloadModifyResponse.displayName = 'proto.wechaty.puppet.ContactPayloadModifyResponse';
549
+ }
506
550
 
507
551
 
508
552
 
@@ -4345,6 +4389,852 @@ proto.wechaty.puppet.ContactDeleteResponse.serializeBinaryToWriter = function(me
4345
4389
  };
4346
4390
 
4347
4391
 
4392
+
4393
+ /**
4394
+ * List of repeated fields within this message type.
4395
+ * @private {!Array<number>}
4396
+ * @const
4397
+ */
4398
+ proto.wechaty.puppet.ContactPayloadModifyRequest.repeatedFields_ = [18,20];
4399
+
4400
+
4401
+
4402
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4403
+ /**
4404
+ * Creates an object representation of this proto.
4405
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4406
+ * Optional fields that are not set will be set to undefined.
4407
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4408
+ * For the list of reserved names please see:
4409
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4410
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4411
+ * JSPB instance for transitional soy proto support:
4412
+ * http://goto/soy-param-migration
4413
+ * @return {!Object}
4414
+ */
4415
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.toObject = function(opt_includeInstance) {
4416
+ return proto.wechaty.puppet.ContactPayloadModifyRequest.toObject(opt_includeInstance, this);
4417
+ };
4418
+
4419
+
4420
+ /**
4421
+ * Static version of the {@see toObject} method.
4422
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4423
+ * the JSPB instance for transitional soy proto support:
4424
+ * http://goto/soy-param-migration
4425
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyRequest} msg The msg instance to transform.
4426
+ * @return {!Object}
4427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4428
+ */
4429
+ proto.wechaty.puppet.ContactPayloadModifyRequest.toObject = function(includeInstance, msg) {
4430
+ var f, obj = {
4431
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
4432
+ gender: jspb.Message.getFieldWithDefault(msg, 2, 0),
4433
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
4434
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
4435
+ avatar: jspb.Message.getFieldWithDefault(msg, 5, ""),
4436
+ address: jspb.Message.getFieldWithDefault(msg, 6, ""),
4437
+ alias: jspb.Message.getFieldWithDefault(msg, 7, ""),
4438
+ city: jspb.Message.getFieldWithDefault(msg, 8, ""),
4439
+ friend: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
4440
+ province: jspb.Message.getFieldWithDefault(msg, 10, ""),
4441
+ signature: jspb.Message.getFieldWithDefault(msg, 11, ""),
4442
+ star: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
4443
+ weixin: jspb.Message.getFieldWithDefault(msg, 13, ""),
4444
+ corporation: jspb.Message.getFieldWithDefault(msg, 14, ""),
4445
+ title: jspb.Message.getFieldWithDefault(msg, 15, ""),
4446
+ description: jspb.Message.getFieldWithDefault(msg, 16, ""),
4447
+ coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
4448
+ phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f,
4449
+ additionalInfo: jspb.Message.getFieldWithDefault(msg, 19, ""),
4450
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 20)) == null ? undefined : f
4451
+ };
4452
+
4453
+ if (includeInstance) {
4454
+ obj.$jspbMessageInstance = msg;
4455
+ }
4456
+ return obj;
4457
+ };
4458
+ }
4459
+
4460
+
4461
+ /**
4462
+ * Deserializes binary data (in protobuf wire format).
4463
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4464
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest}
4465
+ */
4466
+ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinary = function(bytes) {
4467
+ var reader = new jspb.BinaryReader(bytes);
4468
+ var msg = new proto.wechaty.puppet.ContactPayloadModifyRequest;
4469
+ return proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader(msg, reader);
4470
+ };
4471
+
4472
+
4473
+ /**
4474
+ * Deserializes binary data (in protobuf wire format) from the
4475
+ * given reader into the given message object.
4476
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyRequest} msg The message object to deserialize into.
4477
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4478
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest}
4479
+ */
4480
+ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = function(msg, reader) {
4481
+ while (reader.nextField()) {
4482
+ if (reader.isEndGroup()) {
4483
+ break;
4484
+ }
4485
+ var field = reader.getFieldNumber();
4486
+ switch (field) {
4487
+ case 1:
4488
+ var value = /** @type {string} */ (reader.readString());
4489
+ msg.setId(value);
4490
+ break;
4491
+ case 2:
4492
+ var value = /** @type {!proto.wechaty.puppet.ContactGender} */ (reader.readEnum());
4493
+ msg.setGender(value);
4494
+ break;
4495
+ case 3:
4496
+ var value = /** @type {!proto.wechaty.puppet.ContactType} */ (reader.readEnum());
4497
+ msg.setType(value);
4498
+ break;
4499
+ case 4:
4500
+ var value = /** @type {string} */ (reader.readString());
4501
+ msg.setName(value);
4502
+ break;
4503
+ case 5:
4504
+ var value = /** @type {string} */ (reader.readString());
4505
+ msg.setAvatar(value);
4506
+ break;
4507
+ case 6:
4508
+ var value = /** @type {string} */ (reader.readString());
4509
+ msg.setAddress(value);
4510
+ break;
4511
+ case 7:
4512
+ var value = /** @type {string} */ (reader.readString());
4513
+ msg.setAlias(value);
4514
+ break;
4515
+ case 8:
4516
+ var value = /** @type {string} */ (reader.readString());
4517
+ msg.setCity(value);
4518
+ break;
4519
+ case 9:
4520
+ var value = /** @type {boolean} */ (reader.readBool());
4521
+ msg.setFriend(value);
4522
+ break;
4523
+ case 10:
4524
+ var value = /** @type {string} */ (reader.readString());
4525
+ msg.setProvince(value);
4526
+ break;
4527
+ case 11:
4528
+ var value = /** @type {string} */ (reader.readString());
4529
+ msg.setSignature(value);
4530
+ break;
4531
+ case 12:
4532
+ var value = /** @type {boolean} */ (reader.readBool());
4533
+ msg.setStar(value);
4534
+ break;
4535
+ case 13:
4536
+ var value = /** @type {string} */ (reader.readString());
4537
+ msg.setWeixin(value);
4538
+ break;
4539
+ case 14:
4540
+ var value = /** @type {string} */ (reader.readString());
4541
+ msg.setCorporation(value);
4542
+ break;
4543
+ case 15:
4544
+ var value = /** @type {string} */ (reader.readString());
4545
+ msg.setTitle(value);
4546
+ break;
4547
+ case 16:
4548
+ var value = /** @type {string} */ (reader.readString());
4549
+ msg.setDescription(value);
4550
+ break;
4551
+ case 17:
4552
+ var value = /** @type {boolean} */ (reader.readBool());
4553
+ msg.setCoworker(value);
4554
+ break;
4555
+ case 18:
4556
+ var value = /** @type {string} */ (reader.readString());
4557
+ msg.addPhones(value);
4558
+ break;
4559
+ case 19:
4560
+ var value = /** @type {string} */ (reader.readString());
4561
+ msg.setAdditionalInfo(value);
4562
+ break;
4563
+ case 20:
4564
+ var value = /** @type {string} */ (reader.readString());
4565
+ msg.addTagIds(value);
4566
+ break;
4567
+ default:
4568
+ reader.skipField();
4569
+ break;
4570
+ }
4571
+ }
4572
+ return msg;
4573
+ };
4574
+
4575
+
4576
+ /**
4577
+ * Serializes the message to binary data (in protobuf wire format).
4578
+ * @return {!Uint8Array}
4579
+ */
4580
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.serializeBinary = function() {
4581
+ var writer = new jspb.BinaryWriter();
4582
+ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter(this, writer);
4583
+ return writer.getResultBuffer();
4584
+ };
4585
+
4586
+
4587
+ /**
4588
+ * Serializes the given message to binary data (in protobuf wire
4589
+ * format), writing to the given BinaryWriter.
4590
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyRequest} message
4591
+ * @param {!jspb.BinaryWriter} writer
4592
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4593
+ */
4594
+ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = function(message, writer) {
4595
+ var f = undefined;
4596
+ f = message.getId();
4597
+ if (f.length > 0) {
4598
+ writer.writeString(
4599
+ 1,
4600
+ f
4601
+ );
4602
+ }
4603
+ f = message.getGender();
4604
+ if (f !== 0.0) {
4605
+ writer.writeEnum(
4606
+ 2,
4607
+ f
4608
+ );
4609
+ }
4610
+ f = message.getType();
4611
+ if (f !== 0.0) {
4612
+ writer.writeEnum(
4613
+ 3,
4614
+ f
4615
+ );
4616
+ }
4617
+ f = message.getName();
4618
+ if (f.length > 0) {
4619
+ writer.writeString(
4620
+ 4,
4621
+ f
4622
+ );
4623
+ }
4624
+ f = message.getAvatar();
4625
+ if (f.length > 0) {
4626
+ writer.writeString(
4627
+ 5,
4628
+ f
4629
+ );
4630
+ }
4631
+ f = message.getAddress();
4632
+ if (f.length > 0) {
4633
+ writer.writeString(
4634
+ 6,
4635
+ f
4636
+ );
4637
+ }
4638
+ f = message.getAlias();
4639
+ if (f.length > 0) {
4640
+ writer.writeString(
4641
+ 7,
4642
+ f
4643
+ );
4644
+ }
4645
+ f = message.getCity();
4646
+ if (f.length > 0) {
4647
+ writer.writeString(
4648
+ 8,
4649
+ f
4650
+ );
4651
+ }
4652
+ f = message.getFriend();
4653
+ if (f) {
4654
+ writer.writeBool(
4655
+ 9,
4656
+ f
4657
+ );
4658
+ }
4659
+ f = message.getProvince();
4660
+ if (f.length > 0) {
4661
+ writer.writeString(
4662
+ 10,
4663
+ f
4664
+ );
4665
+ }
4666
+ f = message.getSignature();
4667
+ if (f.length > 0) {
4668
+ writer.writeString(
4669
+ 11,
4670
+ f
4671
+ );
4672
+ }
4673
+ f = message.getStar();
4674
+ if (f) {
4675
+ writer.writeBool(
4676
+ 12,
4677
+ f
4678
+ );
4679
+ }
4680
+ f = message.getWeixin();
4681
+ if (f.length > 0) {
4682
+ writer.writeString(
4683
+ 13,
4684
+ f
4685
+ );
4686
+ }
4687
+ f = message.getCorporation();
4688
+ if (f.length > 0) {
4689
+ writer.writeString(
4690
+ 14,
4691
+ f
4692
+ );
4693
+ }
4694
+ f = message.getTitle();
4695
+ if (f.length > 0) {
4696
+ writer.writeString(
4697
+ 15,
4698
+ f
4699
+ );
4700
+ }
4701
+ f = message.getDescription();
4702
+ if (f.length > 0) {
4703
+ writer.writeString(
4704
+ 16,
4705
+ f
4706
+ );
4707
+ }
4708
+ f = message.getCoworker();
4709
+ if (f) {
4710
+ writer.writeBool(
4711
+ 17,
4712
+ f
4713
+ );
4714
+ }
4715
+ f = message.getPhonesList();
4716
+ if (f.length > 0) {
4717
+ writer.writeRepeatedString(
4718
+ 18,
4719
+ f
4720
+ );
4721
+ }
4722
+ f = message.getAdditionalInfo();
4723
+ if (f.length > 0) {
4724
+ writer.writeString(
4725
+ 19,
4726
+ f
4727
+ );
4728
+ }
4729
+ f = message.getTagIdsList();
4730
+ if (f.length > 0) {
4731
+ writer.writeRepeatedString(
4732
+ 20,
4733
+ f
4734
+ );
4735
+ }
4736
+ };
4737
+
4738
+
4739
+ /**
4740
+ * optional string id = 1;
4741
+ * @return {string}
4742
+ */
4743
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getId = function() {
4744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4745
+ };
4746
+
4747
+
4748
+ /**
4749
+ * @param {string} value
4750
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4751
+ */
4752
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setId = function(value) {
4753
+ return jspb.Message.setProto3StringField(this, 1, value);
4754
+ };
4755
+
4756
+
4757
+ /**
4758
+ * optional ContactGender gender = 2;
4759
+ * @return {!proto.wechaty.puppet.ContactGender}
4760
+ */
4761
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getGender = function() {
4762
+ return /** @type {!proto.wechaty.puppet.ContactGender} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4763
+ };
4764
+
4765
+
4766
+ /**
4767
+ * @param {!proto.wechaty.puppet.ContactGender} value
4768
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4769
+ */
4770
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setGender = function(value) {
4771
+ return jspb.Message.setProto3EnumField(this, 2, value);
4772
+ };
4773
+
4774
+
4775
+ /**
4776
+ * optional ContactType type = 3;
4777
+ * @return {!proto.wechaty.puppet.ContactType}
4778
+ */
4779
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getType = function() {
4780
+ return /** @type {!proto.wechaty.puppet.ContactType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4781
+ };
4782
+
4783
+
4784
+ /**
4785
+ * @param {!proto.wechaty.puppet.ContactType} value
4786
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4787
+ */
4788
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setType = function(value) {
4789
+ return jspb.Message.setProto3EnumField(this, 3, value);
4790
+ };
4791
+
4792
+
4793
+ /**
4794
+ * optional string name = 4;
4795
+ * @return {string}
4796
+ */
4797
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getName = function() {
4798
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4799
+ };
4800
+
4801
+
4802
+ /**
4803
+ * @param {string} value
4804
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4805
+ */
4806
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setName = function(value) {
4807
+ return jspb.Message.setProto3StringField(this, 4, value);
4808
+ };
4809
+
4810
+
4811
+ /**
4812
+ * optional string avatar = 5;
4813
+ * @return {string}
4814
+ */
4815
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAvatar = function() {
4816
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4817
+ };
4818
+
4819
+
4820
+ /**
4821
+ * @param {string} value
4822
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4823
+ */
4824
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAvatar = function(value) {
4825
+ return jspb.Message.setProto3StringField(this, 5, value);
4826
+ };
4827
+
4828
+
4829
+ /**
4830
+ * optional string address = 6;
4831
+ * @return {string}
4832
+ */
4833
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAddress = function() {
4834
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4835
+ };
4836
+
4837
+
4838
+ /**
4839
+ * @param {string} value
4840
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4841
+ */
4842
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAddress = function(value) {
4843
+ return jspb.Message.setProto3StringField(this, 6, value);
4844
+ };
4845
+
4846
+
4847
+ /**
4848
+ * optional string alias = 7;
4849
+ * @return {string}
4850
+ */
4851
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAlias = function() {
4852
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4853
+ };
4854
+
4855
+
4856
+ /**
4857
+ * @param {string} value
4858
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4859
+ */
4860
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAlias = function(value) {
4861
+ return jspb.Message.setProto3StringField(this, 7, value);
4862
+ };
4863
+
4864
+
4865
+ /**
4866
+ * optional string city = 8;
4867
+ * @return {string}
4868
+ */
4869
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCity = function() {
4870
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4871
+ };
4872
+
4873
+
4874
+ /**
4875
+ * @param {string} value
4876
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4877
+ */
4878
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCity = function(value) {
4879
+ return jspb.Message.setProto3StringField(this, 8, value);
4880
+ };
4881
+
4882
+
4883
+ /**
4884
+ * optional bool friend = 9;
4885
+ * @return {boolean}
4886
+ */
4887
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getFriend = function() {
4888
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
4889
+ };
4890
+
4891
+
4892
+ /**
4893
+ * @param {boolean} value
4894
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4895
+ */
4896
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setFriend = function(value) {
4897
+ return jspb.Message.setProto3BooleanField(this, 9, value);
4898
+ };
4899
+
4900
+
4901
+ /**
4902
+ * optional string province = 10;
4903
+ * @return {string}
4904
+ */
4905
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getProvince = function() {
4906
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4907
+ };
4908
+
4909
+
4910
+ /**
4911
+ * @param {string} value
4912
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4913
+ */
4914
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setProvince = function(value) {
4915
+ return jspb.Message.setProto3StringField(this, 10, value);
4916
+ };
4917
+
4918
+
4919
+ /**
4920
+ * optional string signature = 11;
4921
+ * @return {string}
4922
+ */
4923
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getSignature = function() {
4924
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
4925
+ };
4926
+
4927
+
4928
+ /**
4929
+ * @param {string} value
4930
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4931
+ */
4932
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setSignature = function(value) {
4933
+ return jspb.Message.setProto3StringField(this, 11, value);
4934
+ };
4935
+
4936
+
4937
+ /**
4938
+ * optional bool star = 12;
4939
+ * @return {boolean}
4940
+ */
4941
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getStar = function() {
4942
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
4943
+ };
4944
+
4945
+
4946
+ /**
4947
+ * @param {boolean} value
4948
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4949
+ */
4950
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setStar = function(value) {
4951
+ return jspb.Message.setProto3BooleanField(this, 12, value);
4952
+ };
4953
+
4954
+
4955
+ /**
4956
+ * optional string weixin = 13;
4957
+ * @return {string}
4958
+ */
4959
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getWeixin = function() {
4960
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
4961
+ };
4962
+
4963
+
4964
+ /**
4965
+ * @param {string} value
4966
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4967
+ */
4968
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setWeixin = function(value) {
4969
+ return jspb.Message.setProto3StringField(this, 13, value);
4970
+ };
4971
+
4972
+
4973
+ /**
4974
+ * optional string corporation = 14;
4975
+ * @return {string}
4976
+ */
4977
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCorporation = function() {
4978
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
4979
+ };
4980
+
4981
+
4982
+ /**
4983
+ * @param {string} value
4984
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4985
+ */
4986
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCorporation = function(value) {
4987
+ return jspb.Message.setProto3StringField(this, 14, value);
4988
+ };
4989
+
4990
+
4991
+ /**
4992
+ * optional string title = 15;
4993
+ * @return {string}
4994
+ */
4995
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTitle = function() {
4996
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
4997
+ };
4998
+
4999
+
5000
+ /**
5001
+ * @param {string} value
5002
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5003
+ */
5004
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTitle = function(value) {
5005
+ return jspb.Message.setProto3StringField(this, 15, value);
5006
+ };
5007
+
5008
+
5009
+ /**
5010
+ * optional string description = 16;
5011
+ * @return {string}
5012
+ */
5013
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getDescription = function() {
5014
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
5015
+ };
5016
+
5017
+
5018
+ /**
5019
+ * @param {string} value
5020
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5021
+ */
5022
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setDescription = function(value) {
5023
+ return jspb.Message.setProto3StringField(this, 16, value);
5024
+ };
5025
+
5026
+
5027
+ /**
5028
+ * optional bool coworker = 17;
5029
+ * @return {boolean}
5030
+ */
5031
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCoworker = function() {
5032
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
5033
+ };
5034
+
5035
+
5036
+ /**
5037
+ * @param {boolean} value
5038
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5039
+ */
5040
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCoworker = function(value) {
5041
+ return jspb.Message.setProto3BooleanField(this, 17, value);
5042
+ };
5043
+
5044
+
5045
+ /**
5046
+ * repeated string phones = 18;
5047
+ * @return {!Array<string>}
5048
+ */
5049
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getPhonesList = function() {
5050
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 18));
5051
+ };
5052
+
5053
+
5054
+ /**
5055
+ * @param {!Array<string>} value
5056
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5057
+ */
5058
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setPhonesList = function(value) {
5059
+ return jspb.Message.setField(this, 18, value || []);
5060
+ };
5061
+
5062
+
5063
+ /**
5064
+ * @param {string} value
5065
+ * @param {number=} opt_index
5066
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5067
+ */
5068
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addPhones = function(value, opt_index) {
5069
+ return jspb.Message.addToRepeatedField(this, 18, value, opt_index);
5070
+ };
5071
+
5072
+
5073
+ /**
5074
+ * Clears the list making it empty but non-null.
5075
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5076
+ */
5077
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearPhonesList = function() {
5078
+ return this.setPhonesList([]);
5079
+ };
5080
+
5081
+
5082
+ /**
5083
+ * optional string additional_info = 19;
5084
+ * @return {string}
5085
+ */
5086
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAdditionalInfo = function() {
5087
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
5088
+ };
5089
+
5090
+
5091
+ /**
5092
+ * @param {string} value
5093
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5094
+ */
5095
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = function(value) {
5096
+ return jspb.Message.setProto3StringField(this, 19, value);
5097
+ };
5098
+
5099
+
5100
+ /**
5101
+ * repeated string tag_ids = 20;
5102
+ * @return {!Array<string>}
5103
+ */
5104
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTagIdsList = function() {
5105
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 20));
5106
+ };
5107
+
5108
+
5109
+ /**
5110
+ * @param {!Array<string>} value
5111
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5112
+ */
5113
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTagIdsList = function(value) {
5114
+ return jspb.Message.setField(this, 20, value || []);
5115
+ };
5116
+
5117
+
5118
+ /**
5119
+ * @param {string} value
5120
+ * @param {number=} opt_index
5121
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5122
+ */
5123
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addTagIds = function(value, opt_index) {
5124
+ return jspb.Message.addToRepeatedField(this, 20, value, opt_index);
5125
+ };
5126
+
5127
+
5128
+ /**
5129
+ * Clears the list making it empty but non-null.
5130
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5131
+ */
5132
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearTagIdsList = function() {
5133
+ return this.setTagIdsList([]);
5134
+ };
5135
+
5136
+
5137
+
5138
+
5139
+
5140
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5141
+ /**
5142
+ * Creates an object representation of this proto.
5143
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5144
+ * Optional fields that are not set will be set to undefined.
5145
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5146
+ * For the list of reserved names please see:
5147
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5148
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5149
+ * JSPB instance for transitional soy proto support:
5150
+ * http://goto/soy-param-migration
5151
+ * @return {!Object}
5152
+ */
5153
+ proto.wechaty.puppet.ContactPayloadModifyResponse.prototype.toObject = function(opt_includeInstance) {
5154
+ return proto.wechaty.puppet.ContactPayloadModifyResponse.toObject(opt_includeInstance, this);
5155
+ };
5156
+
5157
+
5158
+ /**
5159
+ * Static version of the {@see toObject} method.
5160
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5161
+ * the JSPB instance for transitional soy proto support:
5162
+ * http://goto/soy-param-migration
5163
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyResponse} msg The msg instance to transform.
5164
+ * @return {!Object}
5165
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5166
+ */
5167
+ proto.wechaty.puppet.ContactPayloadModifyResponse.toObject = function(includeInstance, msg) {
5168
+ var f, obj = {
5169
+
5170
+ };
5171
+
5172
+ if (includeInstance) {
5173
+ obj.$jspbMessageInstance = msg;
5174
+ }
5175
+ return obj;
5176
+ };
5177
+ }
5178
+
5179
+
5180
+ /**
5181
+ * Deserializes binary data (in protobuf wire format).
5182
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5183
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyResponse}
5184
+ */
5185
+ proto.wechaty.puppet.ContactPayloadModifyResponse.deserializeBinary = function(bytes) {
5186
+ var reader = new jspb.BinaryReader(bytes);
5187
+ var msg = new proto.wechaty.puppet.ContactPayloadModifyResponse;
5188
+ return proto.wechaty.puppet.ContactPayloadModifyResponse.deserializeBinaryFromReader(msg, reader);
5189
+ };
5190
+
5191
+
5192
+ /**
5193
+ * Deserializes binary data (in protobuf wire format) from the
5194
+ * given reader into the given message object.
5195
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyResponse} msg The message object to deserialize into.
5196
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5197
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyResponse}
5198
+ */
5199
+ proto.wechaty.puppet.ContactPayloadModifyResponse.deserializeBinaryFromReader = function(msg, reader) {
5200
+ while (reader.nextField()) {
5201
+ if (reader.isEndGroup()) {
5202
+ break;
5203
+ }
5204
+ var field = reader.getFieldNumber();
5205
+ switch (field) {
5206
+ default:
5207
+ reader.skipField();
5208
+ break;
5209
+ }
5210
+ }
5211
+ return msg;
5212
+ };
5213
+
5214
+
5215
+ /**
5216
+ * Serializes the message to binary data (in protobuf wire format).
5217
+ * @return {!Uint8Array}
5218
+ */
5219
+ proto.wechaty.puppet.ContactPayloadModifyResponse.prototype.serializeBinary = function() {
5220
+ var writer = new jspb.BinaryWriter();
5221
+ proto.wechaty.puppet.ContactPayloadModifyResponse.serializeBinaryToWriter(this, writer);
5222
+ return writer.getResultBuffer();
5223
+ };
5224
+
5225
+
5226
+ /**
5227
+ * Serializes the given message to binary data (in protobuf wire
5228
+ * format), writing to the given BinaryWriter.
5229
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyResponse} message
5230
+ * @param {!jspb.BinaryWriter} writer
5231
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5232
+ */
5233
+ proto.wechaty.puppet.ContactPayloadModifyResponse.serializeBinaryToWriter = function(message, writer) {
5234
+ var f = undefined;
5235
+ };
5236
+
5237
+
4348
5238
  /**
4349
5239
  * @enum {number}
4350
5240
  */