@juzi/wechaty-grpc 1.0.38 → 1.0.40

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 +111 -0
  2. package/dist/cjs/out/wechaty/puppet/contact_pb.js +843 -1
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +86 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +122 -3
  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 +111 -0
  16. package/dist/esm/out/wechaty/puppet/contact_pb.js +843 -1
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +86 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +122 -3
  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 +111 -0
  30. package/out/wechaty/puppet/contact_pb.js +843 -1
  31. package/out/wechaty/puppet.openapi.yaml +86 -1
  32. package/out/wechaty/puppet.swagger.json +122 -3
  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,803 @@ 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];
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
+ };
4451
+
4452
+ if (includeInstance) {
4453
+ obj.$jspbMessageInstance = msg;
4454
+ }
4455
+ return obj;
4456
+ };
4457
+ }
4458
+
4459
+
4460
+ /**
4461
+ * Deserializes binary data (in protobuf wire format).
4462
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4463
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest}
4464
+ */
4465
+ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinary = function(bytes) {
4466
+ var reader = new jspb.BinaryReader(bytes);
4467
+ var msg = new proto.wechaty.puppet.ContactPayloadModifyRequest;
4468
+ return proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader(msg, reader);
4469
+ };
4470
+
4471
+
4472
+ /**
4473
+ * Deserializes binary data (in protobuf wire format) from the
4474
+ * given reader into the given message object.
4475
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyRequest} msg The message object to deserialize into.
4476
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4477
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest}
4478
+ */
4479
+ proto.wechaty.puppet.ContactPayloadModifyRequest.deserializeBinaryFromReader = function(msg, reader) {
4480
+ while (reader.nextField()) {
4481
+ if (reader.isEndGroup()) {
4482
+ break;
4483
+ }
4484
+ var field = reader.getFieldNumber();
4485
+ switch (field) {
4486
+ case 1:
4487
+ var value = /** @type {string} */ (reader.readString());
4488
+ msg.setId(value);
4489
+ break;
4490
+ case 2:
4491
+ var value = /** @type {!proto.wechaty.puppet.ContactGender} */ (reader.readEnum());
4492
+ msg.setGender(value);
4493
+ break;
4494
+ case 3:
4495
+ var value = /** @type {!proto.wechaty.puppet.ContactType} */ (reader.readEnum());
4496
+ msg.setType(value);
4497
+ break;
4498
+ case 4:
4499
+ var value = /** @type {string} */ (reader.readString());
4500
+ msg.setName(value);
4501
+ break;
4502
+ case 5:
4503
+ var value = /** @type {string} */ (reader.readString());
4504
+ msg.setAvatar(value);
4505
+ break;
4506
+ case 6:
4507
+ var value = /** @type {string} */ (reader.readString());
4508
+ msg.setAddress(value);
4509
+ break;
4510
+ case 7:
4511
+ var value = /** @type {string} */ (reader.readString());
4512
+ msg.setAlias(value);
4513
+ break;
4514
+ case 8:
4515
+ var value = /** @type {string} */ (reader.readString());
4516
+ msg.setCity(value);
4517
+ break;
4518
+ case 9:
4519
+ var value = /** @type {boolean} */ (reader.readBool());
4520
+ msg.setFriend(value);
4521
+ break;
4522
+ case 10:
4523
+ var value = /** @type {string} */ (reader.readString());
4524
+ msg.setProvince(value);
4525
+ break;
4526
+ case 11:
4527
+ var value = /** @type {string} */ (reader.readString());
4528
+ msg.setSignature(value);
4529
+ break;
4530
+ case 12:
4531
+ var value = /** @type {boolean} */ (reader.readBool());
4532
+ msg.setStar(value);
4533
+ break;
4534
+ case 13:
4535
+ var value = /** @type {string} */ (reader.readString());
4536
+ msg.setWeixin(value);
4537
+ break;
4538
+ case 14:
4539
+ var value = /** @type {string} */ (reader.readString());
4540
+ msg.setCorporation(value);
4541
+ break;
4542
+ case 15:
4543
+ var value = /** @type {string} */ (reader.readString());
4544
+ msg.setTitle(value);
4545
+ break;
4546
+ case 16:
4547
+ var value = /** @type {string} */ (reader.readString());
4548
+ msg.setDescription(value);
4549
+ break;
4550
+ case 17:
4551
+ var value = /** @type {boolean} */ (reader.readBool());
4552
+ msg.setCoworker(value);
4553
+ break;
4554
+ case 18:
4555
+ var value = /** @type {string} */ (reader.readString());
4556
+ msg.addPhones(value);
4557
+ break;
4558
+ case 19:
4559
+ var value = /** @type {string} */ (reader.readString());
4560
+ msg.setAdditionalInfo(value);
4561
+ break;
4562
+ default:
4563
+ reader.skipField();
4564
+ break;
4565
+ }
4566
+ }
4567
+ return msg;
4568
+ };
4569
+
4570
+
4571
+ /**
4572
+ * Serializes the message to binary data (in protobuf wire format).
4573
+ * @return {!Uint8Array}
4574
+ */
4575
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.serializeBinary = function() {
4576
+ var writer = new jspb.BinaryWriter();
4577
+ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter(this, writer);
4578
+ return writer.getResultBuffer();
4579
+ };
4580
+
4581
+
4582
+ /**
4583
+ * Serializes the given message to binary data (in protobuf wire
4584
+ * format), writing to the given BinaryWriter.
4585
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyRequest} message
4586
+ * @param {!jspb.BinaryWriter} writer
4587
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4588
+ */
4589
+ proto.wechaty.puppet.ContactPayloadModifyRequest.serializeBinaryToWriter = function(message, writer) {
4590
+ var f = undefined;
4591
+ f = message.getId();
4592
+ if (f.length > 0) {
4593
+ writer.writeString(
4594
+ 1,
4595
+ f
4596
+ );
4597
+ }
4598
+ f = message.getGender();
4599
+ if (f !== 0.0) {
4600
+ writer.writeEnum(
4601
+ 2,
4602
+ f
4603
+ );
4604
+ }
4605
+ f = message.getType();
4606
+ if (f !== 0.0) {
4607
+ writer.writeEnum(
4608
+ 3,
4609
+ f
4610
+ );
4611
+ }
4612
+ f = message.getName();
4613
+ if (f.length > 0) {
4614
+ writer.writeString(
4615
+ 4,
4616
+ f
4617
+ );
4618
+ }
4619
+ f = message.getAvatar();
4620
+ if (f.length > 0) {
4621
+ writer.writeString(
4622
+ 5,
4623
+ f
4624
+ );
4625
+ }
4626
+ f = message.getAddress();
4627
+ if (f.length > 0) {
4628
+ writer.writeString(
4629
+ 6,
4630
+ f
4631
+ );
4632
+ }
4633
+ f = message.getAlias();
4634
+ if (f.length > 0) {
4635
+ writer.writeString(
4636
+ 7,
4637
+ f
4638
+ );
4639
+ }
4640
+ f = message.getCity();
4641
+ if (f.length > 0) {
4642
+ writer.writeString(
4643
+ 8,
4644
+ f
4645
+ );
4646
+ }
4647
+ f = message.getFriend();
4648
+ if (f) {
4649
+ writer.writeBool(
4650
+ 9,
4651
+ f
4652
+ );
4653
+ }
4654
+ f = message.getProvince();
4655
+ if (f.length > 0) {
4656
+ writer.writeString(
4657
+ 10,
4658
+ f
4659
+ );
4660
+ }
4661
+ f = message.getSignature();
4662
+ if (f.length > 0) {
4663
+ writer.writeString(
4664
+ 11,
4665
+ f
4666
+ );
4667
+ }
4668
+ f = message.getStar();
4669
+ if (f) {
4670
+ writer.writeBool(
4671
+ 12,
4672
+ f
4673
+ );
4674
+ }
4675
+ f = message.getWeixin();
4676
+ if (f.length > 0) {
4677
+ writer.writeString(
4678
+ 13,
4679
+ f
4680
+ );
4681
+ }
4682
+ f = message.getCorporation();
4683
+ if (f.length > 0) {
4684
+ writer.writeString(
4685
+ 14,
4686
+ f
4687
+ );
4688
+ }
4689
+ f = message.getTitle();
4690
+ if (f.length > 0) {
4691
+ writer.writeString(
4692
+ 15,
4693
+ f
4694
+ );
4695
+ }
4696
+ f = message.getDescription();
4697
+ if (f.length > 0) {
4698
+ writer.writeString(
4699
+ 16,
4700
+ f
4701
+ );
4702
+ }
4703
+ f = message.getCoworker();
4704
+ if (f) {
4705
+ writer.writeBool(
4706
+ 17,
4707
+ f
4708
+ );
4709
+ }
4710
+ f = message.getPhonesList();
4711
+ if (f.length > 0) {
4712
+ writer.writeRepeatedString(
4713
+ 18,
4714
+ f
4715
+ );
4716
+ }
4717
+ f = message.getAdditionalInfo();
4718
+ if (f.length > 0) {
4719
+ writer.writeString(
4720
+ 19,
4721
+ f
4722
+ );
4723
+ }
4724
+ };
4725
+
4726
+
4727
+ /**
4728
+ * optional string id = 1;
4729
+ * @return {string}
4730
+ */
4731
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getId = function() {
4732
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4733
+ };
4734
+
4735
+
4736
+ /**
4737
+ * @param {string} value
4738
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4739
+ */
4740
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setId = function(value) {
4741
+ return jspb.Message.setProto3StringField(this, 1, value);
4742
+ };
4743
+
4744
+
4745
+ /**
4746
+ * optional ContactGender gender = 2;
4747
+ * @return {!proto.wechaty.puppet.ContactGender}
4748
+ */
4749
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getGender = function() {
4750
+ return /** @type {!proto.wechaty.puppet.ContactGender} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
4751
+ };
4752
+
4753
+
4754
+ /**
4755
+ * @param {!proto.wechaty.puppet.ContactGender} value
4756
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4757
+ */
4758
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setGender = function(value) {
4759
+ return jspb.Message.setProto3EnumField(this, 2, value);
4760
+ };
4761
+
4762
+
4763
+ /**
4764
+ * optional ContactType type = 3;
4765
+ * @return {!proto.wechaty.puppet.ContactType}
4766
+ */
4767
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getType = function() {
4768
+ return /** @type {!proto.wechaty.puppet.ContactType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
4769
+ };
4770
+
4771
+
4772
+ /**
4773
+ * @param {!proto.wechaty.puppet.ContactType} value
4774
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4775
+ */
4776
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setType = function(value) {
4777
+ return jspb.Message.setProto3EnumField(this, 3, value);
4778
+ };
4779
+
4780
+
4781
+ /**
4782
+ * optional string name = 4;
4783
+ * @return {string}
4784
+ */
4785
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getName = function() {
4786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4787
+ };
4788
+
4789
+
4790
+ /**
4791
+ * @param {string} value
4792
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4793
+ */
4794
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setName = function(value) {
4795
+ return jspb.Message.setProto3StringField(this, 4, value);
4796
+ };
4797
+
4798
+
4799
+ /**
4800
+ * optional string avatar = 5;
4801
+ * @return {string}
4802
+ */
4803
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAvatar = function() {
4804
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4805
+ };
4806
+
4807
+
4808
+ /**
4809
+ * @param {string} value
4810
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4811
+ */
4812
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAvatar = function(value) {
4813
+ return jspb.Message.setProto3StringField(this, 5, value);
4814
+ };
4815
+
4816
+
4817
+ /**
4818
+ * optional string address = 6;
4819
+ * @return {string}
4820
+ */
4821
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAddress = function() {
4822
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4823
+ };
4824
+
4825
+
4826
+ /**
4827
+ * @param {string} value
4828
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4829
+ */
4830
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAddress = function(value) {
4831
+ return jspb.Message.setProto3StringField(this, 6, value);
4832
+ };
4833
+
4834
+
4835
+ /**
4836
+ * optional string alias = 7;
4837
+ * @return {string}
4838
+ */
4839
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAlias = function() {
4840
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4841
+ };
4842
+
4843
+
4844
+ /**
4845
+ * @param {string} value
4846
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4847
+ */
4848
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAlias = function(value) {
4849
+ return jspb.Message.setProto3StringField(this, 7, value);
4850
+ };
4851
+
4852
+
4853
+ /**
4854
+ * optional string city = 8;
4855
+ * @return {string}
4856
+ */
4857
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCity = function() {
4858
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4859
+ };
4860
+
4861
+
4862
+ /**
4863
+ * @param {string} value
4864
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4865
+ */
4866
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCity = function(value) {
4867
+ return jspb.Message.setProto3StringField(this, 8, value);
4868
+ };
4869
+
4870
+
4871
+ /**
4872
+ * optional bool friend = 9;
4873
+ * @return {boolean}
4874
+ */
4875
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getFriend = function() {
4876
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
4877
+ };
4878
+
4879
+
4880
+ /**
4881
+ * @param {boolean} value
4882
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4883
+ */
4884
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setFriend = function(value) {
4885
+ return jspb.Message.setProto3BooleanField(this, 9, value);
4886
+ };
4887
+
4888
+
4889
+ /**
4890
+ * optional string province = 10;
4891
+ * @return {string}
4892
+ */
4893
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getProvince = function() {
4894
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4895
+ };
4896
+
4897
+
4898
+ /**
4899
+ * @param {string} value
4900
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4901
+ */
4902
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setProvince = function(value) {
4903
+ return jspb.Message.setProto3StringField(this, 10, value);
4904
+ };
4905
+
4906
+
4907
+ /**
4908
+ * optional string signature = 11;
4909
+ * @return {string}
4910
+ */
4911
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getSignature = function() {
4912
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
4913
+ };
4914
+
4915
+
4916
+ /**
4917
+ * @param {string} value
4918
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4919
+ */
4920
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setSignature = function(value) {
4921
+ return jspb.Message.setProto3StringField(this, 11, value);
4922
+ };
4923
+
4924
+
4925
+ /**
4926
+ * optional bool star = 12;
4927
+ * @return {boolean}
4928
+ */
4929
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getStar = function() {
4930
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
4931
+ };
4932
+
4933
+
4934
+ /**
4935
+ * @param {boolean} value
4936
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4937
+ */
4938
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setStar = function(value) {
4939
+ return jspb.Message.setProto3BooleanField(this, 12, value);
4940
+ };
4941
+
4942
+
4943
+ /**
4944
+ * optional string weixin = 13;
4945
+ * @return {string}
4946
+ */
4947
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getWeixin = function() {
4948
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
4949
+ };
4950
+
4951
+
4952
+ /**
4953
+ * @param {string} value
4954
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4955
+ */
4956
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setWeixin = function(value) {
4957
+ return jspb.Message.setProto3StringField(this, 13, value);
4958
+ };
4959
+
4960
+
4961
+ /**
4962
+ * optional string corporation = 14;
4963
+ * @return {string}
4964
+ */
4965
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCorporation = function() {
4966
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
4967
+ };
4968
+
4969
+
4970
+ /**
4971
+ * @param {string} value
4972
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4973
+ */
4974
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCorporation = function(value) {
4975
+ return jspb.Message.setProto3StringField(this, 14, value);
4976
+ };
4977
+
4978
+
4979
+ /**
4980
+ * optional string title = 15;
4981
+ * @return {string}
4982
+ */
4983
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getTitle = function() {
4984
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
4985
+ };
4986
+
4987
+
4988
+ /**
4989
+ * @param {string} value
4990
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
4991
+ */
4992
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setTitle = function(value) {
4993
+ return jspb.Message.setProto3StringField(this, 15, value);
4994
+ };
4995
+
4996
+
4997
+ /**
4998
+ * optional string description = 16;
4999
+ * @return {string}
5000
+ */
5001
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getDescription = function() {
5002
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
5003
+ };
5004
+
5005
+
5006
+ /**
5007
+ * @param {string} value
5008
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5009
+ */
5010
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setDescription = function(value) {
5011
+ return jspb.Message.setProto3StringField(this, 16, value);
5012
+ };
5013
+
5014
+
5015
+ /**
5016
+ * optional bool coworker = 17;
5017
+ * @return {boolean}
5018
+ */
5019
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getCoworker = function() {
5020
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
5021
+ };
5022
+
5023
+
5024
+ /**
5025
+ * @param {boolean} value
5026
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5027
+ */
5028
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setCoworker = function(value) {
5029
+ return jspb.Message.setProto3BooleanField(this, 17, value);
5030
+ };
5031
+
5032
+
5033
+ /**
5034
+ * repeated string phones = 18;
5035
+ * @return {!Array<string>}
5036
+ */
5037
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getPhonesList = function() {
5038
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 18));
5039
+ };
5040
+
5041
+
5042
+ /**
5043
+ * @param {!Array<string>} value
5044
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5045
+ */
5046
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setPhonesList = function(value) {
5047
+ return jspb.Message.setField(this, 18, value || []);
5048
+ };
5049
+
5050
+
5051
+ /**
5052
+ * @param {string} value
5053
+ * @param {number=} opt_index
5054
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5055
+ */
5056
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.addPhones = function(value, opt_index) {
5057
+ return jspb.Message.addToRepeatedField(this, 18, value, opt_index);
5058
+ };
5059
+
5060
+
5061
+ /**
5062
+ * Clears the list making it empty but non-null.
5063
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5064
+ */
5065
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.clearPhonesList = function() {
5066
+ return this.setPhonesList([]);
5067
+ };
5068
+
5069
+
5070
+ /**
5071
+ * optional string additional_info = 19;
5072
+ * @return {string}
5073
+ */
5074
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.getAdditionalInfo = function() {
5075
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
5076
+ };
5077
+
5078
+
5079
+ /**
5080
+ * @param {string} value
5081
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyRequest} returns this
5082
+ */
5083
+ proto.wechaty.puppet.ContactPayloadModifyRequest.prototype.setAdditionalInfo = function(value) {
5084
+ return jspb.Message.setProto3StringField(this, 19, value);
5085
+ };
5086
+
5087
+
5088
+
5089
+
5090
+
5091
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5092
+ /**
5093
+ * Creates an object representation of this proto.
5094
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5095
+ * Optional fields that are not set will be set to undefined.
5096
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5097
+ * For the list of reserved names please see:
5098
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5099
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5100
+ * JSPB instance for transitional soy proto support:
5101
+ * http://goto/soy-param-migration
5102
+ * @return {!Object}
5103
+ */
5104
+ proto.wechaty.puppet.ContactPayloadModifyResponse.prototype.toObject = function(opt_includeInstance) {
5105
+ return proto.wechaty.puppet.ContactPayloadModifyResponse.toObject(opt_includeInstance, this);
5106
+ };
5107
+
5108
+
5109
+ /**
5110
+ * Static version of the {@see toObject} method.
5111
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5112
+ * the JSPB instance for transitional soy proto support:
5113
+ * http://goto/soy-param-migration
5114
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyResponse} msg The msg instance to transform.
5115
+ * @return {!Object}
5116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5117
+ */
5118
+ proto.wechaty.puppet.ContactPayloadModifyResponse.toObject = function(includeInstance, msg) {
5119
+ var f, obj = {
5120
+
5121
+ };
5122
+
5123
+ if (includeInstance) {
5124
+ obj.$jspbMessageInstance = msg;
5125
+ }
5126
+ return obj;
5127
+ };
5128
+ }
5129
+
5130
+
5131
+ /**
5132
+ * Deserializes binary data (in protobuf wire format).
5133
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5134
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyResponse}
5135
+ */
5136
+ proto.wechaty.puppet.ContactPayloadModifyResponse.deserializeBinary = function(bytes) {
5137
+ var reader = new jspb.BinaryReader(bytes);
5138
+ var msg = new proto.wechaty.puppet.ContactPayloadModifyResponse;
5139
+ return proto.wechaty.puppet.ContactPayloadModifyResponse.deserializeBinaryFromReader(msg, reader);
5140
+ };
5141
+
5142
+
5143
+ /**
5144
+ * Deserializes binary data (in protobuf wire format) from the
5145
+ * given reader into the given message object.
5146
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyResponse} msg The message object to deserialize into.
5147
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5148
+ * @return {!proto.wechaty.puppet.ContactPayloadModifyResponse}
5149
+ */
5150
+ proto.wechaty.puppet.ContactPayloadModifyResponse.deserializeBinaryFromReader = function(msg, reader) {
5151
+ while (reader.nextField()) {
5152
+ if (reader.isEndGroup()) {
5153
+ break;
5154
+ }
5155
+ var field = reader.getFieldNumber();
5156
+ switch (field) {
5157
+ default:
5158
+ reader.skipField();
5159
+ break;
5160
+ }
5161
+ }
5162
+ return msg;
5163
+ };
5164
+
5165
+
5166
+ /**
5167
+ * Serializes the message to binary data (in protobuf wire format).
5168
+ * @return {!Uint8Array}
5169
+ */
5170
+ proto.wechaty.puppet.ContactPayloadModifyResponse.prototype.serializeBinary = function() {
5171
+ var writer = new jspb.BinaryWriter();
5172
+ proto.wechaty.puppet.ContactPayloadModifyResponse.serializeBinaryToWriter(this, writer);
5173
+ return writer.getResultBuffer();
5174
+ };
5175
+
5176
+
5177
+ /**
5178
+ * Serializes the given message to binary data (in protobuf wire
5179
+ * format), writing to the given BinaryWriter.
5180
+ * @param {!proto.wechaty.puppet.ContactPayloadModifyResponse} message
5181
+ * @param {!jspb.BinaryWriter} writer
5182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5183
+ */
5184
+ proto.wechaty.puppet.ContactPayloadModifyResponse.serializeBinaryToWriter = function(message, writer) {
5185
+ var f = undefined;
5186
+ };
5187
+
5188
+
4348
5189
  /**
4349
5190
  * @enum {number}
4350
5191
  */
@@ -4361,7 +5202,8 @@ proto.wechaty.puppet.ContactType = {
4361
5202
  CONTACT_TYPE_UNSPECIFIED: 0,
4362
5203
  CONTACT_TYPE_PERSONAL: 1,
4363
5204
  CONTACT_TYPE_OFFICIAL: 2,
4364
- CONTACT_TYPE_CORPORATION: 3
5205
+ CONTACT_TYPE_CORPORATION: 3,
5206
+ CONTACT_TYPE_APPLICATION: 4
4365
5207
  };
4366
5208
 
4367
5209
  goog.object.extend(exports, proto.wechaty.puppet);