@juzi/wechaty-grpc 1.0.61 → 1.0.63

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/base_pb.d.ts +32 -0
  2. package/dist/cjs/out/wechaty/puppet/base_pb.js +246 -0
  3. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +42 -0
  4. package/dist/cjs/out/wechaty/puppet/room_pb.js +331 -0
  5. package/dist/cjs/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
  6. package/dist/cjs/out/wechaty/puppet/verify-code_pb.js +275 -0
  7. package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
  8. package/dist/cjs/out/wechaty/puppet.swagger.json +144 -1
  9. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +68 -0
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +99 -0
  11. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +76 -0
  12. package/dist/cjs/out/wechaty/puppet_pb_service.js +160 -0
  13. package/dist/cjs/proto/wechaty/puppet/base.proto +6 -0
  14. package/dist/cjs/proto/wechaty/puppet/room.proto +7 -0
  15. package/dist/cjs/proto/wechaty/puppet/verify-code.proto +7 -0
  16. package/dist/cjs/proto/wechaty/puppet.proto +22 -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 +20 -0
  20. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  21. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +32 -0
  22. package/dist/esm/out/wechaty/puppet/base_pb.js +246 -0
  23. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +42 -0
  24. package/dist/esm/out/wechaty/puppet/room_pb.js +331 -0
  25. package/dist/esm/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
  26. package/dist/esm/out/wechaty/puppet/verify-code_pb.js +275 -0
  27. package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
  28. package/dist/esm/out/wechaty/puppet.swagger.json +144 -1
  29. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +68 -0
  30. package/dist/esm/out/wechaty/puppet_grpc_pb.js +99 -0
  31. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +76 -0
  32. package/dist/esm/out/wechaty/puppet_pb_service.js +160 -0
  33. package/dist/esm/proto/wechaty/puppet/base.proto +6 -0
  34. package/dist/esm/proto/wechaty/puppet/room.proto +7 -0
  35. package/dist/esm/proto/wechaty/puppet/verify-code.proto +7 -0
  36. package/dist/esm/proto/wechaty/puppet.proto +22 -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 +20 -0
  40. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  41. package/out/wechaty/puppet/base_pb.d.ts +32 -0
  42. package/out/wechaty/puppet/base_pb.js +246 -0
  43. package/out/wechaty/puppet/room_pb.d.ts +42 -0
  44. package/out/wechaty/puppet/room_pb.js +331 -0
  45. package/out/wechaty/puppet/verify-code_pb.d.ts +36 -0
  46. package/out/wechaty/puppet/verify-code_pb.js +275 -0
  47. package/out/wechaty/puppet.openapi.yaml +94 -1
  48. package/out/wechaty/puppet.swagger.json +144 -1
  49. package/out/wechaty/puppet_grpc_pb.d.ts +68 -0
  50. package/out/wechaty/puppet_grpc_pb.js +99 -0
  51. package/out/wechaty/puppet_pb_service.d.ts +76 -0
  52. package/out/wechaty/puppet_pb_service.js +160 -0
  53. package/package.json +1 -1
  54. package/src/package-json.ts +1 -1
@@ -247,6 +247,38 @@ export namespace CurrentUserResponse {
247
247
  }
248
248
  }
249
249
 
250
+ export class RefreshQRCodeRequest extends jspb.Message {
251
+ serializeBinary(): Uint8Array;
252
+ toObject(includeInstance?: boolean): RefreshQRCodeRequest.AsObject;
253
+ static toObject(includeInstance: boolean, msg: RefreshQRCodeRequest): RefreshQRCodeRequest.AsObject;
254
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
255
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
256
+ static serializeBinaryToWriter(message: RefreshQRCodeRequest, writer: jspb.BinaryWriter): void;
257
+ static deserializeBinary(bytes: Uint8Array): RefreshQRCodeRequest;
258
+ static deserializeBinaryFromReader(message: RefreshQRCodeRequest, reader: jspb.BinaryReader): RefreshQRCodeRequest;
259
+ }
260
+
261
+ export namespace RefreshQRCodeRequest {
262
+ export type AsObject = {
263
+ }
264
+ }
265
+
266
+ export class RefreshQRCodeResponse extends jspb.Message {
267
+ serializeBinary(): Uint8Array;
268
+ toObject(includeInstance?: boolean): RefreshQRCodeResponse.AsObject;
269
+ static toObject(includeInstance: boolean, msg: RefreshQRCodeResponse): RefreshQRCodeResponse.AsObject;
270
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
271
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
272
+ static serializeBinaryToWriter(message: RefreshQRCodeResponse, writer: jspb.BinaryWriter): void;
273
+ static deserializeBinary(bytes: Uint8Array): RefreshQRCodeResponse;
274
+ static deserializeBinaryFromReader(message: RefreshQRCodeResponse, reader: jspb.BinaryReader): RefreshQRCodeResponse;
275
+ }
276
+
277
+ export namespace RefreshQRCodeResponse {
278
+ export type AsObject = {
279
+ }
280
+ }
281
+
250
282
  export interface PayloadTypeMap {
251
283
  PAYLOAD_TYPE_UNSPECIFIED: 0;
252
284
  PAYLOAD_TYPE_MESSAGE: 1;
@@ -24,6 +24,8 @@ goog.exportSymbol('proto.wechaty.puppet.DirtyPayloadResponse', null, global);
24
24
  goog.exportSymbol('proto.wechaty.puppet.LogoutRequest', null, global);
25
25
  goog.exportSymbol('proto.wechaty.puppet.LogoutResponse', null, global);
26
26
  goog.exportSymbol('proto.wechaty.puppet.PayloadType', null, global);
27
+ goog.exportSymbol('proto.wechaty.puppet.RefreshQRCodeRequest', null, global);
28
+ goog.exportSymbol('proto.wechaty.puppet.RefreshQRCodeResponse', null, global);
27
29
  goog.exportSymbol('proto.wechaty.puppet.StartRequest', null, global);
28
30
  goog.exportSymbol('proto.wechaty.puppet.StartResponse', null, global);
29
31
  goog.exportSymbol('proto.wechaty.puppet.StopRequest', null, global);
@@ -324,6 +326,48 @@ if (goog.DEBUG && !COMPILED) {
324
326
  */
325
327
  proto.wechaty.puppet.CurrentUserResponse.displayName = 'proto.wechaty.puppet.CurrentUserResponse';
326
328
  }
329
+ /**
330
+ * Generated by JsPbCodeGenerator.
331
+ * @param {Array=} opt_data Optional initial data array, typically from a
332
+ * server response, or constructed directly in Javascript. The array is used
333
+ * in place and becomes part of the constructed object. It is not cloned.
334
+ * If no data is provided, the constructed object will be empty, but still
335
+ * valid.
336
+ * @extends {jspb.Message}
337
+ * @constructor
338
+ */
339
+ proto.wechaty.puppet.RefreshQRCodeRequest = function(opt_data) {
340
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
341
+ };
342
+ goog.inherits(proto.wechaty.puppet.RefreshQRCodeRequest, jspb.Message);
343
+ if (goog.DEBUG && !COMPILED) {
344
+ /**
345
+ * @public
346
+ * @override
347
+ */
348
+ proto.wechaty.puppet.RefreshQRCodeRequest.displayName = 'proto.wechaty.puppet.RefreshQRCodeRequest';
349
+ }
350
+ /**
351
+ * Generated by JsPbCodeGenerator.
352
+ * @param {Array=} opt_data Optional initial data array, typically from a
353
+ * server response, or constructed directly in Javascript. The array is used
354
+ * in place and becomes part of the constructed object. It is not cloned.
355
+ * If no data is provided, the constructed object will be empty, but still
356
+ * valid.
357
+ * @extends {jspb.Message}
358
+ * @constructor
359
+ */
360
+ proto.wechaty.puppet.RefreshQRCodeResponse = function(opt_data) {
361
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
362
+ };
363
+ goog.inherits(proto.wechaty.puppet.RefreshQRCodeResponse, jspb.Message);
364
+ if (goog.DEBUG && !COMPILED) {
365
+ /**
366
+ * @public
367
+ * @override
368
+ */
369
+ proto.wechaty.puppet.RefreshQRCodeResponse.displayName = 'proto.wechaty.puppet.RefreshQRCodeResponse';
370
+ }
327
371
 
328
372
 
329
373
 
@@ -1884,6 +1928,208 @@ proto.wechaty.puppet.CurrentUserResponse.prototype.setUserId = function(value) {
1884
1928
  };
1885
1929
 
1886
1930
 
1931
+
1932
+
1933
+
1934
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1935
+ /**
1936
+ * Creates an object representation of this proto.
1937
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1938
+ * Optional fields that are not set will be set to undefined.
1939
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1940
+ * For the list of reserved names please see:
1941
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1942
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1943
+ * JSPB instance for transitional soy proto support:
1944
+ * http://goto/soy-param-migration
1945
+ * @return {!Object}
1946
+ */
1947
+ proto.wechaty.puppet.RefreshQRCodeRequest.prototype.toObject = function(opt_includeInstance) {
1948
+ return proto.wechaty.puppet.RefreshQRCodeRequest.toObject(opt_includeInstance, this);
1949
+ };
1950
+
1951
+
1952
+ /**
1953
+ * Static version of the {@see toObject} method.
1954
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1955
+ * the JSPB instance for transitional soy proto support:
1956
+ * http://goto/soy-param-migration
1957
+ * @param {!proto.wechaty.puppet.RefreshQRCodeRequest} msg The msg instance to transform.
1958
+ * @return {!Object}
1959
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1960
+ */
1961
+ proto.wechaty.puppet.RefreshQRCodeRequest.toObject = function(includeInstance, msg) {
1962
+ var f, obj = {
1963
+
1964
+ };
1965
+
1966
+ if (includeInstance) {
1967
+ obj.$jspbMessageInstance = msg;
1968
+ }
1969
+ return obj;
1970
+ };
1971
+ }
1972
+
1973
+
1974
+ /**
1975
+ * Deserializes binary data (in protobuf wire format).
1976
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1977
+ * @return {!proto.wechaty.puppet.RefreshQRCodeRequest}
1978
+ */
1979
+ proto.wechaty.puppet.RefreshQRCodeRequest.deserializeBinary = function(bytes) {
1980
+ var reader = new jspb.BinaryReader(bytes);
1981
+ var msg = new proto.wechaty.puppet.RefreshQRCodeRequest;
1982
+ return proto.wechaty.puppet.RefreshQRCodeRequest.deserializeBinaryFromReader(msg, reader);
1983
+ };
1984
+
1985
+
1986
+ /**
1987
+ * Deserializes binary data (in protobuf wire format) from the
1988
+ * given reader into the given message object.
1989
+ * @param {!proto.wechaty.puppet.RefreshQRCodeRequest} msg The message object to deserialize into.
1990
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1991
+ * @return {!proto.wechaty.puppet.RefreshQRCodeRequest}
1992
+ */
1993
+ proto.wechaty.puppet.RefreshQRCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
1994
+ while (reader.nextField()) {
1995
+ if (reader.isEndGroup()) {
1996
+ break;
1997
+ }
1998
+ var field = reader.getFieldNumber();
1999
+ switch (field) {
2000
+ default:
2001
+ reader.skipField();
2002
+ break;
2003
+ }
2004
+ }
2005
+ return msg;
2006
+ };
2007
+
2008
+
2009
+ /**
2010
+ * Serializes the message to binary data (in protobuf wire format).
2011
+ * @return {!Uint8Array}
2012
+ */
2013
+ proto.wechaty.puppet.RefreshQRCodeRequest.prototype.serializeBinary = function() {
2014
+ var writer = new jspb.BinaryWriter();
2015
+ proto.wechaty.puppet.RefreshQRCodeRequest.serializeBinaryToWriter(this, writer);
2016
+ return writer.getResultBuffer();
2017
+ };
2018
+
2019
+
2020
+ /**
2021
+ * Serializes the given message to binary data (in protobuf wire
2022
+ * format), writing to the given BinaryWriter.
2023
+ * @param {!proto.wechaty.puppet.RefreshQRCodeRequest} message
2024
+ * @param {!jspb.BinaryWriter} writer
2025
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2026
+ */
2027
+ proto.wechaty.puppet.RefreshQRCodeRequest.serializeBinaryToWriter = function(message, writer) {
2028
+ var f = undefined;
2029
+ };
2030
+
2031
+
2032
+
2033
+
2034
+
2035
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2036
+ /**
2037
+ * Creates an object representation of this proto.
2038
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2039
+ * Optional fields that are not set will be set to undefined.
2040
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2041
+ * For the list of reserved names please see:
2042
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2043
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2044
+ * JSPB instance for transitional soy proto support:
2045
+ * http://goto/soy-param-migration
2046
+ * @return {!Object}
2047
+ */
2048
+ proto.wechaty.puppet.RefreshQRCodeResponse.prototype.toObject = function(opt_includeInstance) {
2049
+ return proto.wechaty.puppet.RefreshQRCodeResponse.toObject(opt_includeInstance, this);
2050
+ };
2051
+
2052
+
2053
+ /**
2054
+ * Static version of the {@see toObject} method.
2055
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2056
+ * the JSPB instance for transitional soy proto support:
2057
+ * http://goto/soy-param-migration
2058
+ * @param {!proto.wechaty.puppet.RefreshQRCodeResponse} msg The msg instance to transform.
2059
+ * @return {!Object}
2060
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2061
+ */
2062
+ proto.wechaty.puppet.RefreshQRCodeResponse.toObject = function(includeInstance, msg) {
2063
+ var f, obj = {
2064
+
2065
+ };
2066
+
2067
+ if (includeInstance) {
2068
+ obj.$jspbMessageInstance = msg;
2069
+ }
2070
+ return obj;
2071
+ };
2072
+ }
2073
+
2074
+
2075
+ /**
2076
+ * Deserializes binary data (in protobuf wire format).
2077
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2078
+ * @return {!proto.wechaty.puppet.RefreshQRCodeResponse}
2079
+ */
2080
+ proto.wechaty.puppet.RefreshQRCodeResponse.deserializeBinary = function(bytes) {
2081
+ var reader = new jspb.BinaryReader(bytes);
2082
+ var msg = new proto.wechaty.puppet.RefreshQRCodeResponse;
2083
+ return proto.wechaty.puppet.RefreshQRCodeResponse.deserializeBinaryFromReader(msg, reader);
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * Deserializes binary data (in protobuf wire format) from the
2089
+ * given reader into the given message object.
2090
+ * @param {!proto.wechaty.puppet.RefreshQRCodeResponse} msg The message object to deserialize into.
2091
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2092
+ * @return {!proto.wechaty.puppet.RefreshQRCodeResponse}
2093
+ */
2094
+ proto.wechaty.puppet.RefreshQRCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
2095
+ while (reader.nextField()) {
2096
+ if (reader.isEndGroup()) {
2097
+ break;
2098
+ }
2099
+ var field = reader.getFieldNumber();
2100
+ switch (field) {
2101
+ default:
2102
+ reader.skipField();
2103
+ break;
2104
+ }
2105
+ }
2106
+ return msg;
2107
+ };
2108
+
2109
+
2110
+ /**
2111
+ * Serializes the message to binary data (in protobuf wire format).
2112
+ * @return {!Uint8Array}
2113
+ */
2114
+ proto.wechaty.puppet.RefreshQRCodeResponse.prototype.serializeBinary = function() {
2115
+ var writer = new jspb.BinaryWriter();
2116
+ proto.wechaty.puppet.RefreshQRCodeResponse.serializeBinaryToWriter(this, writer);
2117
+ return writer.getResultBuffer();
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * Serializes the given message to binary data (in protobuf wire
2123
+ * format), writing to the given BinaryWriter.
2124
+ * @param {!proto.wechaty.puppet.RefreshQRCodeResponse} message
2125
+ * @param {!jspb.BinaryWriter} writer
2126
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2127
+ */
2128
+ proto.wechaty.puppet.RefreshQRCodeResponse.serializeBinaryToWriter = function(message, writer) {
2129
+ var f = undefined;
2130
+ };
2131
+
2132
+
1887
2133
  /**
1888
2134
  * @enum {number}
1889
2135
  */
@@ -643,3 +643,45 @@ export namespace RoomPermissionResponse {
643
643
  }
644
644
  }
645
645
 
646
+ export class RoomAdminsRequest extends jspb.Message {
647
+ getId(): string;
648
+ setId(value: string): void;
649
+
650
+ clearContactIdsList(): void;
651
+ getContactIdsList(): Array<string>;
652
+ setContactIdsList(value: Array<string>): void;
653
+ addContactIds(value: string, index?: number): string;
654
+
655
+ serializeBinary(): Uint8Array;
656
+ toObject(includeInstance?: boolean): RoomAdminsRequest.AsObject;
657
+ static toObject(includeInstance: boolean, msg: RoomAdminsRequest): RoomAdminsRequest.AsObject;
658
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
659
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
660
+ static serializeBinaryToWriter(message: RoomAdminsRequest, writer: jspb.BinaryWriter): void;
661
+ static deserializeBinary(bytes: Uint8Array): RoomAdminsRequest;
662
+ static deserializeBinaryFromReader(message: RoomAdminsRequest, reader: jspb.BinaryReader): RoomAdminsRequest;
663
+ }
664
+
665
+ export namespace RoomAdminsRequest {
666
+ export type AsObject = {
667
+ id: string,
668
+ contactIdsList: Array<string>,
669
+ }
670
+ }
671
+
672
+ export class RoomAdminsResponse extends jspb.Message {
673
+ serializeBinary(): Uint8Array;
674
+ toObject(includeInstance?: boolean): RoomAdminsResponse.AsObject;
675
+ static toObject(includeInstance: boolean, msg: RoomAdminsResponse): RoomAdminsResponse.AsObject;
676
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
677
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
678
+ static serializeBinaryToWriter(message: RoomAdminsResponse, writer: jspb.BinaryWriter): void;
679
+ static deserializeBinary(bytes: Uint8Array): RoomAdminsResponse;
680
+ static deserializeBinaryFromReader(message: RoomAdminsResponse, reader: jspb.BinaryReader): RoomAdminsResponse;
681
+ }
682
+
683
+ export namespace RoomAdminsResponse {
684
+ export type AsObject = {
685
+ }
686
+ }
687
+
@@ -21,6 +21,8 @@ var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
21
21
  goog.object.extend(proto, wechaty_puppet_util_pb);
22
22
  goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
23
23
  goog.exportSymbol('proto.wechaty.puppet.RoomAddResponse', null, global);
24
+ goog.exportSymbol('proto.wechaty.puppet.RoomAdminsRequest', null, global);
25
+ goog.exportSymbol('proto.wechaty.puppet.RoomAdminsResponse', null, global);
24
26
  goog.exportSymbol('proto.wechaty.puppet.RoomAnnounceRequest', null, global);
25
27
  goog.exportSymbol('proto.wechaty.puppet.RoomAnnounceResponse', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.RoomAvatarRequest', null, global);
@@ -591,6 +593,48 @@ if (goog.DEBUG && !COMPILED) {
591
593
  */
592
594
  proto.wechaty.puppet.RoomPermissionResponse.displayName = 'proto.wechaty.puppet.RoomPermissionResponse';
593
595
  }
596
+ /**
597
+ * Generated by JsPbCodeGenerator.
598
+ * @param {Array=} opt_data Optional initial data array, typically from a
599
+ * server response, or constructed directly in Javascript. The array is used
600
+ * in place and becomes part of the constructed object. It is not cloned.
601
+ * If no data is provided, the constructed object will be empty, but still
602
+ * valid.
603
+ * @extends {jspb.Message}
604
+ * @constructor
605
+ */
606
+ proto.wechaty.puppet.RoomAdminsRequest = function(opt_data) {
607
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAdminsRequest.repeatedFields_, null);
608
+ };
609
+ goog.inherits(proto.wechaty.puppet.RoomAdminsRequest, jspb.Message);
610
+ if (goog.DEBUG && !COMPILED) {
611
+ /**
612
+ * @public
613
+ * @override
614
+ */
615
+ proto.wechaty.puppet.RoomAdminsRequest.displayName = 'proto.wechaty.puppet.RoomAdminsRequest';
616
+ }
617
+ /**
618
+ * Generated by JsPbCodeGenerator.
619
+ * @param {Array=} opt_data Optional initial data array, typically from a
620
+ * server response, or constructed directly in Javascript. The array is used
621
+ * in place and becomes part of the constructed object. It is not cloned.
622
+ * If no data is provided, the constructed object will be empty, but still
623
+ * valid.
624
+ * @extends {jspb.Message}
625
+ * @constructor
626
+ */
627
+ proto.wechaty.puppet.RoomAdminsResponse = function(opt_data) {
628
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
629
+ };
630
+ goog.inherits(proto.wechaty.puppet.RoomAdminsResponse, jspb.Message);
631
+ if (goog.DEBUG && !COMPILED) {
632
+ /**
633
+ * @public
634
+ * @override
635
+ */
636
+ proto.wechaty.puppet.RoomAdminsResponse.displayName = 'proto.wechaty.puppet.RoomAdminsResponse';
637
+ }
594
638
 
595
639
 
596
640
 
@@ -4940,4 +4984,291 @@ proto.wechaty.puppet.RoomPermissionResponse.prototype.setForbidRoomTopicEdit = f
4940
4984
  };
4941
4985
 
4942
4986
 
4987
+
4988
+ /**
4989
+ * List of repeated fields within this message type.
4990
+ * @private {!Array<number>}
4991
+ * @const
4992
+ */
4993
+ proto.wechaty.puppet.RoomAdminsRequest.repeatedFields_ = [2];
4994
+
4995
+
4996
+
4997
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4998
+ /**
4999
+ * Creates an object representation of this proto.
5000
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5001
+ * Optional fields that are not set will be set to undefined.
5002
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5003
+ * For the list of reserved names please see:
5004
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5005
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5006
+ * JSPB instance for transitional soy proto support:
5007
+ * http://goto/soy-param-migration
5008
+ * @return {!Object}
5009
+ */
5010
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.toObject = function(opt_includeInstance) {
5011
+ return proto.wechaty.puppet.RoomAdminsRequest.toObject(opt_includeInstance, this);
5012
+ };
5013
+
5014
+
5015
+ /**
5016
+ * Static version of the {@see toObject} method.
5017
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5018
+ * the JSPB instance for transitional soy proto support:
5019
+ * http://goto/soy-param-migration
5020
+ * @param {!proto.wechaty.puppet.RoomAdminsRequest} msg The msg instance to transform.
5021
+ * @return {!Object}
5022
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5023
+ */
5024
+ proto.wechaty.puppet.RoomAdminsRequest.toObject = function(includeInstance, msg) {
5025
+ var f, obj = {
5026
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
5027
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
5028
+ };
5029
+
5030
+ if (includeInstance) {
5031
+ obj.$jspbMessageInstance = msg;
5032
+ }
5033
+ return obj;
5034
+ };
5035
+ }
5036
+
5037
+
5038
+ /**
5039
+ * Deserializes binary data (in protobuf wire format).
5040
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5041
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest}
5042
+ */
5043
+ proto.wechaty.puppet.RoomAdminsRequest.deserializeBinary = function(bytes) {
5044
+ var reader = new jspb.BinaryReader(bytes);
5045
+ var msg = new proto.wechaty.puppet.RoomAdminsRequest;
5046
+ return proto.wechaty.puppet.RoomAdminsRequest.deserializeBinaryFromReader(msg, reader);
5047
+ };
5048
+
5049
+
5050
+ /**
5051
+ * Deserializes binary data (in protobuf wire format) from the
5052
+ * given reader into the given message object.
5053
+ * @param {!proto.wechaty.puppet.RoomAdminsRequest} msg The message object to deserialize into.
5054
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5055
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest}
5056
+ */
5057
+ proto.wechaty.puppet.RoomAdminsRequest.deserializeBinaryFromReader = function(msg, reader) {
5058
+ while (reader.nextField()) {
5059
+ if (reader.isEndGroup()) {
5060
+ break;
5061
+ }
5062
+ var field = reader.getFieldNumber();
5063
+ switch (field) {
5064
+ case 1:
5065
+ var value = /** @type {string} */ (reader.readString());
5066
+ msg.setId(value);
5067
+ break;
5068
+ case 2:
5069
+ var value = /** @type {string} */ (reader.readString());
5070
+ msg.addContactIds(value);
5071
+ break;
5072
+ default:
5073
+ reader.skipField();
5074
+ break;
5075
+ }
5076
+ }
5077
+ return msg;
5078
+ };
5079
+
5080
+
5081
+ /**
5082
+ * Serializes the message to binary data (in protobuf wire format).
5083
+ * @return {!Uint8Array}
5084
+ */
5085
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.serializeBinary = function() {
5086
+ var writer = new jspb.BinaryWriter();
5087
+ proto.wechaty.puppet.RoomAdminsRequest.serializeBinaryToWriter(this, writer);
5088
+ return writer.getResultBuffer();
5089
+ };
5090
+
5091
+
5092
+ /**
5093
+ * Serializes the given message to binary data (in protobuf wire
5094
+ * format), writing to the given BinaryWriter.
5095
+ * @param {!proto.wechaty.puppet.RoomAdminsRequest} message
5096
+ * @param {!jspb.BinaryWriter} writer
5097
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5098
+ */
5099
+ proto.wechaty.puppet.RoomAdminsRequest.serializeBinaryToWriter = function(message, writer) {
5100
+ var f = undefined;
5101
+ f = message.getId();
5102
+ if (f.length > 0) {
5103
+ writer.writeString(
5104
+ 1,
5105
+ f
5106
+ );
5107
+ }
5108
+ f = message.getContactIdsList();
5109
+ if (f.length > 0) {
5110
+ writer.writeRepeatedString(
5111
+ 2,
5112
+ f
5113
+ );
5114
+ }
5115
+ };
5116
+
5117
+
5118
+ /**
5119
+ * optional string id = 1;
5120
+ * @return {string}
5121
+ */
5122
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.getId = function() {
5123
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5124
+ };
5125
+
5126
+
5127
+ /**
5128
+ * @param {string} value
5129
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5130
+ */
5131
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.setId = function(value) {
5132
+ return jspb.Message.setProto3StringField(this, 1, value);
5133
+ };
5134
+
5135
+
5136
+ /**
5137
+ * repeated string contact_ids = 2;
5138
+ * @return {!Array<string>}
5139
+ */
5140
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.getContactIdsList = function() {
5141
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
5142
+ };
5143
+
5144
+
5145
+ /**
5146
+ * @param {!Array<string>} value
5147
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5148
+ */
5149
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.setContactIdsList = function(value) {
5150
+ return jspb.Message.setField(this, 2, value || []);
5151
+ };
5152
+
5153
+
5154
+ /**
5155
+ * @param {string} value
5156
+ * @param {number=} opt_index
5157
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5158
+ */
5159
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.addContactIds = function(value, opt_index) {
5160
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
5161
+ };
5162
+
5163
+
5164
+ /**
5165
+ * Clears the list making it empty but non-null.
5166
+ * @return {!proto.wechaty.puppet.RoomAdminsRequest} returns this
5167
+ */
5168
+ proto.wechaty.puppet.RoomAdminsRequest.prototype.clearContactIdsList = function() {
5169
+ return this.setContactIdsList([]);
5170
+ };
5171
+
5172
+
5173
+
5174
+
5175
+
5176
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5177
+ /**
5178
+ * Creates an object representation of this proto.
5179
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5180
+ * Optional fields that are not set will be set to undefined.
5181
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5182
+ * For the list of reserved names please see:
5183
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5184
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5185
+ * JSPB instance for transitional soy proto support:
5186
+ * http://goto/soy-param-migration
5187
+ * @return {!Object}
5188
+ */
5189
+ proto.wechaty.puppet.RoomAdminsResponse.prototype.toObject = function(opt_includeInstance) {
5190
+ return proto.wechaty.puppet.RoomAdminsResponse.toObject(opt_includeInstance, this);
5191
+ };
5192
+
5193
+
5194
+ /**
5195
+ * Static version of the {@see toObject} method.
5196
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5197
+ * the JSPB instance for transitional soy proto support:
5198
+ * http://goto/soy-param-migration
5199
+ * @param {!proto.wechaty.puppet.RoomAdminsResponse} msg The msg instance to transform.
5200
+ * @return {!Object}
5201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5202
+ */
5203
+ proto.wechaty.puppet.RoomAdminsResponse.toObject = function(includeInstance, msg) {
5204
+ var f, obj = {
5205
+
5206
+ };
5207
+
5208
+ if (includeInstance) {
5209
+ obj.$jspbMessageInstance = msg;
5210
+ }
5211
+ return obj;
5212
+ };
5213
+ }
5214
+
5215
+
5216
+ /**
5217
+ * Deserializes binary data (in protobuf wire format).
5218
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5219
+ * @return {!proto.wechaty.puppet.RoomAdminsResponse}
5220
+ */
5221
+ proto.wechaty.puppet.RoomAdminsResponse.deserializeBinary = function(bytes) {
5222
+ var reader = new jspb.BinaryReader(bytes);
5223
+ var msg = new proto.wechaty.puppet.RoomAdminsResponse;
5224
+ return proto.wechaty.puppet.RoomAdminsResponse.deserializeBinaryFromReader(msg, reader);
5225
+ };
5226
+
5227
+
5228
+ /**
5229
+ * Deserializes binary data (in protobuf wire format) from the
5230
+ * given reader into the given message object.
5231
+ * @param {!proto.wechaty.puppet.RoomAdminsResponse} msg The message object to deserialize into.
5232
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5233
+ * @return {!proto.wechaty.puppet.RoomAdminsResponse}
5234
+ */
5235
+ proto.wechaty.puppet.RoomAdminsResponse.deserializeBinaryFromReader = function(msg, reader) {
5236
+ while (reader.nextField()) {
5237
+ if (reader.isEndGroup()) {
5238
+ break;
5239
+ }
5240
+ var field = reader.getFieldNumber();
5241
+ switch (field) {
5242
+ default:
5243
+ reader.skipField();
5244
+ break;
5245
+ }
5246
+ }
5247
+ return msg;
5248
+ };
5249
+
5250
+
5251
+ /**
5252
+ * Serializes the message to binary data (in protobuf wire format).
5253
+ * @return {!Uint8Array}
5254
+ */
5255
+ proto.wechaty.puppet.RoomAdminsResponse.prototype.serializeBinary = function() {
5256
+ var writer = new jspb.BinaryWriter();
5257
+ proto.wechaty.puppet.RoomAdminsResponse.serializeBinaryToWriter(this, writer);
5258
+ return writer.getResultBuffer();
5259
+ };
5260
+
5261
+
5262
+ /**
5263
+ * Serializes the given message to binary data (in protobuf wire
5264
+ * format), writing to the given BinaryWriter.
5265
+ * @param {!proto.wechaty.puppet.RoomAdminsResponse} message
5266
+ * @param {!jspb.BinaryWriter} writer
5267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5268
+ */
5269
+ proto.wechaty.puppet.RoomAdminsResponse.serializeBinaryToWriter = function(message, writer) {
5270
+ var f = undefined;
5271
+ };
5272
+
5273
+
4943
5274
  goog.object.extend(exports, proto.wechaty.puppet);