@juzi/wechaty-grpc 1.0.92 → 1.0.94

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 (54) hide show
  1. package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +8 -0
  2. package/dist/cjs/out/wechaty/puppet/channel_pb.js +61 -1
  3. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +44 -0
  4. package/dist/cjs/out/wechaty/puppet/contact_pb.js +360 -0
  5. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +6 -3
  6. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +48 -21
  7. package/dist/cjs/out/wechaty/puppet.openapi.yaml +47 -4
  8. package/dist/cjs/out/wechaty/puppet.swagger.json +69 -4
  9. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  13. package/dist/cjs/proto/wechaty/puppet/channel.proto +4 -0
  14. package/dist/cjs/proto/wechaty/puppet/contact.proto +8 -0
  15. package/dist/cjs/proto/wechaty/puppet/room-member.proto +1 -1
  16. package/dist/cjs/proto/wechaty/puppet.proto +7 -0
  17. package/dist/cjs/src/package-json.js +1 -1
  18. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  19. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +8 -0
  22. package/dist/esm/out/wechaty/puppet/channel_pb.js +61 -1
  23. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +44 -0
  24. package/dist/esm/out/wechaty/puppet/contact_pb.js +360 -0
  25. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +6 -3
  26. package/dist/esm/out/wechaty/puppet/room-member_pb.js +48 -21
  27. package/dist/esm/out/wechaty/puppet.openapi.yaml +47 -4
  28. package/dist/esm/out/wechaty/puppet.swagger.json +69 -4
  29. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  30. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  31. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  32. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  33. package/dist/esm/proto/wechaty/puppet/channel.proto +4 -0
  34. package/dist/esm/proto/wechaty/puppet/contact.proto +8 -0
  35. package/dist/esm/proto/wechaty/puppet/room-member.proto +1 -1
  36. package/dist/esm/proto/wechaty/puppet.proto +7 -0
  37. package/dist/esm/src/package-json.js +1 -1
  38. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  39. package/dist/esm/tests/puppet-server-impl.js +5 -0
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/channel_pb.d.ts +8 -0
  42. package/out/wechaty/puppet/channel_pb.js +61 -1
  43. package/out/wechaty/puppet/contact_pb.d.ts +44 -0
  44. package/out/wechaty/puppet/contact_pb.js +360 -0
  45. package/out/wechaty/puppet/room-member_pb.d.ts +6 -3
  46. package/out/wechaty/puppet/room-member_pb.js +48 -21
  47. package/out/wechaty/puppet.openapi.yaml +47 -4
  48. package/out/wechaty/puppet.swagger.json +69 -4
  49. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  50. package/out/wechaty/puppet_grpc_pb.js +33 -0
  51. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  52. package/out/wechaty/puppet_pb_service.js +40 -0
  53. package/package.json +1 -1
  54. package/src/package-json.ts +1 -1
@@ -34,6 +34,12 @@ export class ChannelPayload extends jspb.Message {
34
34
  getObjectNonceId(): string;
35
35
  setObjectNonceId(value: string): void;
36
36
 
37
+ getAuthIconUrl(): string;
38
+ setAuthIconUrl(value: string): void;
39
+
40
+ getAuthJob(): string;
41
+ setAuthJob(value: string): void;
42
+
37
43
  serializeBinary(): Uint8Array;
38
44
  toObject(includeInstance?: boolean): ChannelPayload.AsObject;
39
45
  static toObject(includeInstance: boolean, msg: ChannelPayload): ChannelPayload.AsObject;
@@ -56,6 +62,8 @@ export namespace ChannelPayload {
56
62
  url: string,
57
63
  objectId: string,
58
64
  objectNonceId: string,
65
+ authIconUrl: string,
66
+ authJob: string,
59
67
  }
60
68
  }
61
69
 
@@ -79,7 +79,9 @@ proto.wechaty.puppet.ChannelPayload.toObject = function(includeInstance, msg) {
79
79
  thumbUrl: jspb.Message.getFieldWithDefault(msg, 7, ""),
80
80
  url: jspb.Message.getFieldWithDefault(msg, 8, ""),
81
81
  objectId: jspb.Message.getFieldWithDefault(msg, 9, ""),
82
- objectNonceId: jspb.Message.getFieldWithDefault(msg, 10, "")
82
+ objectNonceId: jspb.Message.getFieldWithDefault(msg, 10, ""),
83
+ authIconUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
84
+ authJob: jspb.Message.getFieldWithDefault(msg, 12, "")
83
85
  };
84
86
 
85
87
  if (includeInstance) {
@@ -156,6 +158,14 @@ proto.wechaty.puppet.ChannelPayload.deserializeBinaryFromReader = function(msg,
156
158
  var value = /** @type {string} */ (reader.readString());
157
159
  msg.setObjectNonceId(value);
158
160
  break;
161
+ case 11:
162
+ var value = /** @type {string} */ (reader.readString());
163
+ msg.setAuthIconUrl(value);
164
+ break;
165
+ case 12:
166
+ var value = /** @type {string} */ (reader.readString());
167
+ msg.setAuthJob(value);
168
+ break;
159
169
  default:
160
170
  reader.skipField();
161
171
  break;
@@ -255,6 +265,20 @@ proto.wechaty.puppet.ChannelPayload.serializeBinaryToWriter = function(message,
255
265
  f
256
266
  );
257
267
  }
268
+ f = message.getAuthIconUrl();
269
+ if (f.length > 0) {
270
+ writer.writeString(
271
+ 11,
272
+ f
273
+ );
274
+ }
275
+ f = message.getAuthJob();
276
+ if (f.length > 0) {
277
+ writer.writeString(
278
+ 12,
279
+ f
280
+ );
281
+ }
258
282
  };
259
283
 
260
284
 
@@ -438,6 +462,42 @@ proto.wechaty.puppet.ChannelPayload.prototype.setObjectNonceId = function(value)
438
462
  };
439
463
 
440
464
 
465
+ /**
466
+ * optional string auth_icon_url = 11;
467
+ * @return {string}
468
+ */
469
+ proto.wechaty.puppet.ChannelPayload.prototype.getAuthIconUrl = function() {
470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
471
+ };
472
+
473
+
474
+ /**
475
+ * @param {string} value
476
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
477
+ */
478
+ proto.wechaty.puppet.ChannelPayload.prototype.setAuthIconUrl = function(value) {
479
+ return jspb.Message.setProto3StringField(this, 11, value);
480
+ };
481
+
482
+
483
+ /**
484
+ * optional string auth_job = 12;
485
+ * @return {string}
486
+ */
487
+ proto.wechaty.puppet.ChannelPayload.prototype.getAuthJob = function() {
488
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
489
+ };
490
+
491
+
492
+ /**
493
+ * @param {string} value
494
+ * @return {!proto.wechaty.puppet.ChannelPayload} returns this
495
+ */
496
+ proto.wechaty.puppet.ChannelPayload.prototype.setAuthJob = function(value) {
497
+ return jspb.Message.setProto3StringField(this, 12, value);
498
+ };
499
+
500
+
441
501
  /**
442
502
  * @enum {number}
443
503
  */
@@ -170,6 +170,50 @@ export namespace ContactPayloadResponse {
170
170
  }
171
171
  }
172
172
 
173
+ export class BatchContactPayloadRequest extends jspb.Message {
174
+ clearIdsList(): void;
175
+ getIdsList(): Array<string>;
176
+ setIdsList(value: Array<string>): void;
177
+ addIds(value: string, index?: number): string;
178
+
179
+ serializeBinary(): Uint8Array;
180
+ toObject(includeInstance?: boolean): BatchContactPayloadRequest.AsObject;
181
+ static toObject(includeInstance: boolean, msg: BatchContactPayloadRequest): BatchContactPayloadRequest.AsObject;
182
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
183
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
184
+ static serializeBinaryToWriter(message: BatchContactPayloadRequest, writer: jspb.BinaryWriter): void;
185
+ static deserializeBinary(bytes: Uint8Array): BatchContactPayloadRequest;
186
+ static deserializeBinaryFromReader(message: BatchContactPayloadRequest, reader: jspb.BinaryReader): BatchContactPayloadRequest;
187
+ }
188
+
189
+ export namespace BatchContactPayloadRequest {
190
+ export type AsObject = {
191
+ idsList: Array<string>,
192
+ }
193
+ }
194
+
195
+ export class BatchContactPayloadResponse extends jspb.Message {
196
+ clearContactPayloadsList(): void;
197
+ getContactPayloadsList(): Array<ContactPayloadResponse>;
198
+ setContactPayloadsList(value: Array<ContactPayloadResponse>): void;
199
+ addContactPayloads(value?: ContactPayloadResponse, index?: number): ContactPayloadResponse;
200
+
201
+ serializeBinary(): Uint8Array;
202
+ toObject(includeInstance?: boolean): BatchContactPayloadResponse.AsObject;
203
+ static toObject(includeInstance: boolean, msg: BatchContactPayloadResponse): BatchContactPayloadResponse.AsObject;
204
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
205
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
206
+ static serializeBinaryToWriter(message: BatchContactPayloadResponse, writer: jspb.BinaryWriter): void;
207
+ static deserializeBinary(bytes: Uint8Array): BatchContactPayloadResponse;
208
+ static deserializeBinaryFromReader(message: BatchContactPayloadResponse, reader: jspb.BinaryReader): BatchContactPayloadResponse;
209
+ }
210
+
211
+ export namespace BatchContactPayloadResponse {
212
+ export type AsObject = {
213
+ contactPayloadsList: Array<ContactPayloadResponse.AsObject>,
214
+ }
215
+ }
216
+
173
217
  export class ContactSelfQRCodeRequest extends jspb.Message {
174
218
  serializeBinary(): Uint8Array;
175
219
  toObject(includeInstance?: boolean): ContactSelfQRCodeRequest.AsObject;
@@ -17,6 +17,8 @@ var global = (function() { return this || window || global || self || Function('
17
17
 
18
18
  var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_wrappers_pb);
20
+ goog.exportSymbol('proto.wechaty.puppet.BatchContactPayloadRequest', null, global);
21
+ goog.exportSymbol('proto.wechaty.puppet.BatchContactPayloadResponse', null, global);
20
22
  goog.exportSymbol('proto.wechaty.puppet.ContactAliasRequest', null, global);
21
23
  goog.exportSymbol('proto.wechaty.puppet.ContactAliasResponse', null, global);
22
24
  goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
@@ -133,6 +135,48 @@ if (goog.DEBUG && !COMPILED) {
133
135
  */
134
136
  proto.wechaty.puppet.ContactPayloadResponse.displayName = 'proto.wechaty.puppet.ContactPayloadResponse';
135
137
  }
138
+ /**
139
+ * Generated by JsPbCodeGenerator.
140
+ * @param {Array=} opt_data Optional initial data array, typically from a
141
+ * server response, or constructed directly in Javascript. The array is used
142
+ * in place and becomes part of the constructed object. It is not cloned.
143
+ * If no data is provided, the constructed object will be empty, but still
144
+ * valid.
145
+ * @extends {jspb.Message}
146
+ * @constructor
147
+ */
148
+ proto.wechaty.puppet.BatchContactPayloadRequest = function(opt_data) {
149
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchContactPayloadRequest.repeatedFields_, null);
150
+ };
151
+ goog.inherits(proto.wechaty.puppet.BatchContactPayloadRequest, jspb.Message);
152
+ if (goog.DEBUG && !COMPILED) {
153
+ /**
154
+ * @public
155
+ * @override
156
+ */
157
+ proto.wechaty.puppet.BatchContactPayloadRequest.displayName = 'proto.wechaty.puppet.BatchContactPayloadRequest';
158
+ }
159
+ /**
160
+ * Generated by JsPbCodeGenerator.
161
+ * @param {Array=} opt_data Optional initial data array, typically from a
162
+ * server response, or constructed directly in Javascript. The array is used
163
+ * in place and becomes part of the constructed object. It is not cloned.
164
+ * If no data is provided, the constructed object will be empty, but still
165
+ * valid.
166
+ * @extends {jspb.Message}
167
+ * @constructor
168
+ */
169
+ proto.wechaty.puppet.BatchContactPayloadResponse = function(opt_data) {
170
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchContactPayloadResponse.repeatedFields_, null);
171
+ };
172
+ goog.inherits(proto.wechaty.puppet.BatchContactPayloadResponse, jspb.Message);
173
+ if (goog.DEBUG && !COMPILED) {
174
+ /**
175
+ * @public
176
+ * @override
177
+ */
178
+ proto.wechaty.puppet.BatchContactPayloadResponse.displayName = 'proto.wechaty.puppet.BatchContactPayloadResponse';
179
+ }
136
180
  /**
137
181
  * Generated by JsPbCodeGenerator.
138
182
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1872,6 +1916,322 @@ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAka = function(value) {
1872
1916
 
1873
1917
 
1874
1918
 
1919
+ /**
1920
+ * List of repeated fields within this message type.
1921
+ * @private {!Array<number>}
1922
+ * @const
1923
+ */
1924
+ proto.wechaty.puppet.BatchContactPayloadRequest.repeatedFields_ = [1];
1925
+
1926
+
1927
+
1928
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1929
+ /**
1930
+ * Creates an object representation of this proto.
1931
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1932
+ * Optional fields that are not set will be set to undefined.
1933
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1934
+ * For the list of reserved names please see:
1935
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1936
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1937
+ * JSPB instance for transitional soy proto support:
1938
+ * http://goto/soy-param-migration
1939
+ * @return {!Object}
1940
+ */
1941
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.toObject = function(opt_includeInstance) {
1942
+ return proto.wechaty.puppet.BatchContactPayloadRequest.toObject(opt_includeInstance, this);
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * Static version of the {@see toObject} method.
1948
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1949
+ * the JSPB instance for transitional soy proto support:
1950
+ * http://goto/soy-param-migration
1951
+ * @param {!proto.wechaty.puppet.BatchContactPayloadRequest} msg The msg instance to transform.
1952
+ * @return {!Object}
1953
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1954
+ */
1955
+ proto.wechaty.puppet.BatchContactPayloadRequest.toObject = function(includeInstance, msg) {
1956
+ var f, obj = {
1957
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
1958
+ };
1959
+
1960
+ if (includeInstance) {
1961
+ obj.$jspbMessageInstance = msg;
1962
+ }
1963
+ return obj;
1964
+ };
1965
+ }
1966
+
1967
+
1968
+ /**
1969
+ * Deserializes binary data (in protobuf wire format).
1970
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1971
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest}
1972
+ */
1973
+ proto.wechaty.puppet.BatchContactPayloadRequest.deserializeBinary = function(bytes) {
1974
+ var reader = new jspb.BinaryReader(bytes);
1975
+ var msg = new proto.wechaty.puppet.BatchContactPayloadRequest;
1976
+ return proto.wechaty.puppet.BatchContactPayloadRequest.deserializeBinaryFromReader(msg, reader);
1977
+ };
1978
+
1979
+
1980
+ /**
1981
+ * Deserializes binary data (in protobuf wire format) from the
1982
+ * given reader into the given message object.
1983
+ * @param {!proto.wechaty.puppet.BatchContactPayloadRequest} msg The message object to deserialize into.
1984
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1985
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest}
1986
+ */
1987
+ proto.wechaty.puppet.BatchContactPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
1988
+ while (reader.nextField()) {
1989
+ if (reader.isEndGroup()) {
1990
+ break;
1991
+ }
1992
+ var field = reader.getFieldNumber();
1993
+ switch (field) {
1994
+ case 1:
1995
+ var value = /** @type {string} */ (reader.readString());
1996
+ msg.addIds(value);
1997
+ break;
1998
+ default:
1999
+ reader.skipField();
2000
+ break;
2001
+ }
2002
+ }
2003
+ return msg;
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Serializes the message to binary data (in protobuf wire format).
2009
+ * @return {!Uint8Array}
2010
+ */
2011
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.serializeBinary = function() {
2012
+ var writer = new jspb.BinaryWriter();
2013
+ proto.wechaty.puppet.BatchContactPayloadRequest.serializeBinaryToWriter(this, writer);
2014
+ return writer.getResultBuffer();
2015
+ };
2016
+
2017
+
2018
+ /**
2019
+ * Serializes the given message to binary data (in protobuf wire
2020
+ * format), writing to the given BinaryWriter.
2021
+ * @param {!proto.wechaty.puppet.BatchContactPayloadRequest} message
2022
+ * @param {!jspb.BinaryWriter} writer
2023
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2024
+ */
2025
+ proto.wechaty.puppet.BatchContactPayloadRequest.serializeBinaryToWriter = function(message, writer) {
2026
+ var f = undefined;
2027
+ f = message.getIdsList();
2028
+ if (f.length > 0) {
2029
+ writer.writeRepeatedString(
2030
+ 1,
2031
+ f
2032
+ );
2033
+ }
2034
+ };
2035
+
2036
+
2037
+ /**
2038
+ * repeated string ids = 1;
2039
+ * @return {!Array<string>}
2040
+ */
2041
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.getIdsList = function() {
2042
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2043
+ };
2044
+
2045
+
2046
+ /**
2047
+ * @param {!Array<string>} value
2048
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest} returns this
2049
+ */
2050
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.setIdsList = function(value) {
2051
+ return jspb.Message.setField(this, 1, value || []);
2052
+ };
2053
+
2054
+
2055
+ /**
2056
+ * @param {string} value
2057
+ * @param {number=} opt_index
2058
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest} returns this
2059
+ */
2060
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.addIds = function(value, opt_index) {
2061
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2062
+ };
2063
+
2064
+
2065
+ /**
2066
+ * Clears the list making it empty but non-null.
2067
+ * @return {!proto.wechaty.puppet.BatchContactPayloadRequest} returns this
2068
+ */
2069
+ proto.wechaty.puppet.BatchContactPayloadRequest.prototype.clearIdsList = function() {
2070
+ return this.setIdsList([]);
2071
+ };
2072
+
2073
+
2074
+
2075
+ /**
2076
+ * List of repeated fields within this message type.
2077
+ * @private {!Array<number>}
2078
+ * @const
2079
+ */
2080
+ proto.wechaty.puppet.BatchContactPayloadResponse.repeatedFields_ = [1];
2081
+
2082
+
2083
+
2084
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2085
+ /**
2086
+ * Creates an object representation of this proto.
2087
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2088
+ * Optional fields that are not set will be set to undefined.
2089
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2090
+ * For the list of reserved names please see:
2091
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2092
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2093
+ * JSPB instance for transitional soy proto support:
2094
+ * http://goto/soy-param-migration
2095
+ * @return {!Object}
2096
+ */
2097
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.toObject = function(opt_includeInstance) {
2098
+ return proto.wechaty.puppet.BatchContactPayloadResponse.toObject(opt_includeInstance, this);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Static version of the {@see toObject} method.
2104
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2105
+ * the JSPB instance for transitional soy proto support:
2106
+ * http://goto/soy-param-migration
2107
+ * @param {!proto.wechaty.puppet.BatchContactPayloadResponse} msg The msg instance to transform.
2108
+ * @return {!Object}
2109
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2110
+ */
2111
+ proto.wechaty.puppet.BatchContactPayloadResponse.toObject = function(includeInstance, msg) {
2112
+ var f, obj = {
2113
+ contactPayloadsList: jspb.Message.toObjectList(msg.getContactPayloadsList(),
2114
+ proto.wechaty.puppet.ContactPayloadResponse.toObject, includeInstance)
2115
+ };
2116
+
2117
+ if (includeInstance) {
2118
+ obj.$jspbMessageInstance = msg;
2119
+ }
2120
+ return obj;
2121
+ };
2122
+ }
2123
+
2124
+
2125
+ /**
2126
+ * Deserializes binary data (in protobuf wire format).
2127
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2128
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse}
2129
+ */
2130
+ proto.wechaty.puppet.BatchContactPayloadResponse.deserializeBinary = function(bytes) {
2131
+ var reader = new jspb.BinaryReader(bytes);
2132
+ var msg = new proto.wechaty.puppet.BatchContactPayloadResponse;
2133
+ return proto.wechaty.puppet.BatchContactPayloadResponse.deserializeBinaryFromReader(msg, reader);
2134
+ };
2135
+
2136
+
2137
+ /**
2138
+ * Deserializes binary data (in protobuf wire format) from the
2139
+ * given reader into the given message object.
2140
+ * @param {!proto.wechaty.puppet.BatchContactPayloadResponse} msg The message object to deserialize into.
2141
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2142
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse}
2143
+ */
2144
+ proto.wechaty.puppet.BatchContactPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
2145
+ while (reader.nextField()) {
2146
+ if (reader.isEndGroup()) {
2147
+ break;
2148
+ }
2149
+ var field = reader.getFieldNumber();
2150
+ switch (field) {
2151
+ case 1:
2152
+ var value = new proto.wechaty.puppet.ContactPayloadResponse;
2153
+ reader.readMessage(value,proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader);
2154
+ msg.addContactPayloads(value);
2155
+ break;
2156
+ default:
2157
+ reader.skipField();
2158
+ break;
2159
+ }
2160
+ }
2161
+ return msg;
2162
+ };
2163
+
2164
+
2165
+ /**
2166
+ * Serializes the message to binary data (in protobuf wire format).
2167
+ * @return {!Uint8Array}
2168
+ */
2169
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.serializeBinary = function() {
2170
+ var writer = new jspb.BinaryWriter();
2171
+ proto.wechaty.puppet.BatchContactPayloadResponse.serializeBinaryToWriter(this, writer);
2172
+ return writer.getResultBuffer();
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * Serializes the given message to binary data (in protobuf wire
2178
+ * format), writing to the given BinaryWriter.
2179
+ * @param {!proto.wechaty.puppet.BatchContactPayloadResponse} message
2180
+ * @param {!jspb.BinaryWriter} writer
2181
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2182
+ */
2183
+ proto.wechaty.puppet.BatchContactPayloadResponse.serializeBinaryToWriter = function(message, writer) {
2184
+ var f = undefined;
2185
+ f = message.getContactPayloadsList();
2186
+ if (f.length > 0) {
2187
+ writer.writeRepeatedMessage(
2188
+ 1,
2189
+ f,
2190
+ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter
2191
+ );
2192
+ }
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * repeated ContactPayloadResponse contact_payloads = 1;
2198
+ * @return {!Array<!proto.wechaty.puppet.ContactPayloadResponse>}
2199
+ */
2200
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.getContactPayloadsList = function() {
2201
+ return /** @type{!Array<!proto.wechaty.puppet.ContactPayloadResponse>} */ (
2202
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.ContactPayloadResponse, 1));
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * @param {!Array<!proto.wechaty.puppet.ContactPayloadResponse>} value
2208
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse} returns this
2209
+ */
2210
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.setContactPayloadsList = function(value) {
2211
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * @param {!proto.wechaty.puppet.ContactPayloadResponse=} opt_value
2217
+ * @param {number=} opt_index
2218
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse}
2219
+ */
2220
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.addContactPayloads = function(opt_value, opt_index) {
2221
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.ContactPayloadResponse, opt_index);
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * Clears the list making it empty but non-null.
2227
+ * @return {!proto.wechaty.puppet.BatchContactPayloadResponse} returns this
2228
+ */
2229
+ proto.wechaty.puppet.BatchContactPayloadResponse.prototype.clearContactPayloadsList = function() {
2230
+ return this.setContactPayloadsList([]);
2231
+ };
2232
+
2233
+
2234
+
1875
2235
 
1876
2236
 
1877
2237
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -144,8 +144,11 @@ export namespace BatchRoomMemberPayloadRequest {
144
144
  }
145
145
 
146
146
  export class BatchRoomMemberPayloadResponse extends jspb.Message {
147
- getMembersMap(): jspb.Map<string, RoomMemberPayloadResponse>;
148
- clearMembersMap(): void;
147
+ clearMemberPayloadsList(): void;
148
+ getMemberPayloadsList(): Array<RoomMemberPayloadResponse>;
149
+ setMemberPayloadsList(value: Array<RoomMemberPayloadResponse>): void;
150
+ addMemberPayloads(value?: RoomMemberPayloadResponse, index?: number): RoomMemberPayloadResponse;
151
+
149
152
  serializeBinary(): Uint8Array;
150
153
  toObject(includeInstance?: boolean): BatchRoomMemberPayloadResponse.AsObject;
151
154
  static toObject(includeInstance: boolean, msg: BatchRoomMemberPayloadResponse): BatchRoomMemberPayloadResponse.AsObject;
@@ -158,7 +161,7 @@ export class BatchRoomMemberPayloadResponse extends jspb.Message {
158
161
 
159
162
  export namespace BatchRoomMemberPayloadResponse {
160
163
  export type AsObject = {
161
- membersMap: Array<[string, RoomMemberPayloadResponse.AsObject]>,
164
+ memberPayloadsList: Array<RoomMemberPayloadResponse.AsObject>,
162
165
  }
163
166
  }
164
167
 
@@ -138,7 +138,7 @@ if (goog.DEBUG && !COMPILED) {
138
138
  * @constructor
139
139
  */
140
140
  proto.wechaty.puppet.BatchRoomMemberPayloadResponse = function(opt_data) {
141
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
141
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.BatchRoomMemberPayloadResponse.repeatedFields_, null);
142
142
  };
143
143
  goog.inherits(proto.wechaty.puppet.BatchRoomMemberPayloadResponse, jspb.Message);
144
144
  if (goog.DEBUG && !COMPILED) {
@@ -1121,6 +1121,13 @@ proto.wechaty.puppet.BatchRoomMemberPayloadRequest.prototype.clearMemberIdsList
1121
1121
 
1122
1122
 
1123
1123
 
1124
+ /**
1125
+ * List of repeated fields within this message type.
1126
+ * @private {!Array<number>}
1127
+ * @const
1128
+ */
1129
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.repeatedFields_ = [1];
1130
+
1124
1131
 
1125
1132
 
1126
1133
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1152,7 +1159,8 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.toObject = functio
1152
1159
  */
1153
1160
  proto.wechaty.puppet.BatchRoomMemberPayloadResponse.toObject = function(includeInstance, msg) {
1154
1161
  var f, obj = {
1155
- membersMap: (f = msg.getMembersMap()) ? f.toObject(includeInstance, proto.wechaty.puppet.RoomMemberPayloadResponse.toObject) : []
1162
+ memberPayloadsList: jspb.Message.toObjectList(msg.getMemberPayloadsList(),
1163
+ proto.wechaty.puppet.RoomMemberPayloadResponse.toObject, includeInstance)
1156
1164
  };
1157
1165
 
1158
1166
  if (includeInstance) {
@@ -1190,10 +1198,9 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.deserializeBinaryFromReader
1190
1198
  var field = reader.getFieldNumber();
1191
1199
  switch (field) {
1192
1200
  case 1:
1193
- var value = msg.getMembersMap();
1194
- reader.readMessage(value, function(message, reader) {
1195
- jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader, "", new proto.wechaty.puppet.RoomMemberPayloadResponse());
1196
- });
1201
+ var value = new proto.wechaty.puppet.RoomMemberPayloadResponse;
1202
+ reader.readMessage(value,proto.wechaty.puppet.RoomMemberPayloadResponse.deserializeBinaryFromReader);
1203
+ msg.addMemberPayloads(value);
1197
1204
  break;
1198
1205
  default:
1199
1206
  reader.skipField();
@@ -1224,33 +1231,53 @@ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.serializeBinary =
1224
1231
  */
1225
1232
  proto.wechaty.puppet.BatchRoomMemberPayloadResponse.serializeBinaryToWriter = function(message, writer) {
1226
1233
  var f = undefined;
1227
- f = message.getMembersMap(true);
1228
- if (f && f.getLength() > 0) {
1229
- f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter);
1234
+ f = message.getMemberPayloadsList();
1235
+ if (f.length > 0) {
1236
+ writer.writeRepeatedMessage(
1237
+ 1,
1238
+ f,
1239
+ proto.wechaty.puppet.RoomMemberPayloadResponse.serializeBinaryToWriter
1240
+ );
1230
1241
  }
1231
1242
  };
1232
1243
 
1233
1244
 
1234
1245
  /**
1235
- * map<string, RoomMemberPayloadResponse> members = 1;
1236
- * @param {boolean=} opt_noLazyCreate Do not create the map if
1237
- * empty, instead returning `undefined`
1238
- * @return {!jspb.Map<string,!proto.wechaty.puppet.RoomMemberPayloadResponse>}
1246
+ * repeated RoomMemberPayloadResponse member_payloads = 1;
1247
+ * @return {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>}
1248
+ */
1249
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.getMemberPayloadsList = function() {
1250
+ return /** @type{!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} */ (
1251
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.RoomMemberPayloadResponse, 1));
1252
+ };
1253
+
1254
+
1255
+ /**
1256
+ * @param {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} value
1257
+ * @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} returns this
1258
+ */
1259
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.setMemberPayloadsList = function(value) {
1260
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * @param {!proto.wechaty.puppet.RoomMemberPayloadResponse=} opt_value
1266
+ * @param {number=} opt_index
1267
+ * @return {!proto.wechaty.puppet.RoomMemberPayloadResponse}
1239
1268
  */
1240
- proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.getMembersMap = function(opt_noLazyCreate) {
1241
- return /** @type {!jspb.Map<string,!proto.wechaty.puppet.RoomMemberPayloadResponse>} */ (
1242
- jspb.Message.getMapField(this, 1, opt_noLazyCreate,
1243
- proto.wechaty.puppet.RoomMemberPayloadResponse));
1269
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.addMemberPayloads = function(opt_value, opt_index) {
1270
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.RoomMemberPayloadResponse, opt_index);
1244
1271
  };
1245
1272
 
1246
1273
 
1247
1274
  /**
1248
- * Clears values from the map. The map will be non-null.
1275
+ * Clears the list making it empty but non-null.
1249
1276
  * @return {!proto.wechaty.puppet.BatchRoomMemberPayloadResponse} returns this
1250
1277
  */
1251
- proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.clearMembersMap = function() {
1252
- this.getMembersMap().clear();
1253
- return this;};
1278
+ proto.wechaty.puppet.BatchRoomMemberPayloadResponse.prototype.clearMemberPayloadsList = function() {
1279
+ return this.setMemberPayloadsList([]);
1280
+ };
1254
1281
 
1255
1282
 
1256
1283
  /**