@juzi/wechaty-grpc 1.0.80 → 1.0.81

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 (40) hide show
  1. package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +87 -0
  2. package/dist/cjs/out/wechaty/puppet/wecom_pb.js +642 -0
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +46 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +69 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  9. package/dist/cjs/proto/wechaty/puppet/wecom.proto +20 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +6 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/integration.spec.js +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  14. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  15. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  16. package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +87 -0
  17. package/dist/esm/out/wechaty/puppet/wecom_pb.js +642 -0
  18. package/dist/esm/out/wechaty/puppet.openapi.yaml +46 -1
  19. package/dist/esm/out/wechaty/puppet.swagger.json +69 -1
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  21. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  23. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  24. package/dist/esm/proto/wechaty/puppet/wecom.proto +20 -0
  25. package/dist/esm/proto/wechaty/puppet.proto +6 -0
  26. package/dist/esm/src/package-json.js +1 -1
  27. package/dist/esm/tests/integration.spec.js +1 -1
  28. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  29. package/dist/esm/tests/puppet-server-impl.js +5 -0
  30. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  31. package/out/wechaty/puppet/wecom_pb.d.ts +87 -0
  32. package/out/wechaty/puppet/wecom_pb.js +642 -0
  33. package/out/wechaty/puppet.openapi.yaml +46 -1
  34. package/out/wechaty/puppet.swagger.json +69 -1
  35. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  36. package/out/wechaty/puppet_grpc_pb.js +33 -0
  37. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  38. package/out/wechaty/puppet_pb_service.js +40 -0
  39. package/package.json +1 -1
  40. package/src/package-json.ts +1 -1
@@ -18,8 +18,12 @@ var global = (function() { return this || window || global || self || Function('
18
18
  goog.exportSymbol('proto.wechaty.puppet.ApplyRoomAntiSpamStrategyRequest', null, global);
19
19
  goog.exportSymbol('proto.wechaty.puppet.ApplyRoomAntiSpamStrategyResponse', null, global);
20
20
  goog.exportSymbol('proto.wechaty.puppet.ContactExternalUserIdPair', null, global);
21
+ goog.exportSymbol('proto.wechaty.puppet.CorpMessageInterceptionStrategy', null, global);
22
+ goog.exportSymbol('proto.wechaty.puppet.CorpMessageInterceptionType', null, global);
21
23
  goog.exportSymbol('proto.wechaty.puppet.GetContactExternalUserIdRequest', null, global);
22
24
  goog.exportSymbol('proto.wechaty.puppet.GetContactExternalUserIdResponse', null, global);
25
+ goog.exportSymbol('proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest', null, global);
26
+ goog.exportSymbol('proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse', null, global);
23
27
  goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyEffectRoomListRequest', null, global);
24
28
  goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyEffectRoomListResponse', null, global);
25
29
  goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyListRequest', null, global);
@@ -235,6 +239,69 @@ if (goog.DEBUG && !COMPILED) {
235
239
  */
236
240
  proto.wechaty.puppet.ApplyRoomAntiSpamStrategyResponse.displayName = 'proto.wechaty.puppet.ApplyRoomAntiSpamStrategyResponse';
237
241
  }
242
+ /**
243
+ * Generated by JsPbCodeGenerator.
244
+ * @param {Array=} opt_data Optional initial data array, typically from a
245
+ * server response, or constructed directly in Javascript. The array is used
246
+ * in place and becomes part of the constructed object. It is not cloned.
247
+ * If no data is provided, the constructed object will be empty, but still
248
+ * valid.
249
+ * @extends {jspb.Message}
250
+ * @constructor
251
+ */
252
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy = function(opt_data) {
253
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.CorpMessageInterceptionStrategy.repeatedFields_, null);
254
+ };
255
+ goog.inherits(proto.wechaty.puppet.CorpMessageInterceptionStrategy, jspb.Message);
256
+ if (goog.DEBUG && !COMPILED) {
257
+ /**
258
+ * @public
259
+ * @override
260
+ */
261
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.displayName = 'proto.wechaty.puppet.CorpMessageInterceptionStrategy';
262
+ }
263
+ /**
264
+ * Generated by JsPbCodeGenerator.
265
+ * @param {Array=} opt_data Optional initial data array, typically from a
266
+ * server response, or constructed directly in Javascript. The array is used
267
+ * in place and becomes part of the constructed object. It is not cloned.
268
+ * If no data is provided, the constructed object will be empty, but still
269
+ * valid.
270
+ * @extends {jspb.Message}
271
+ * @constructor
272
+ */
273
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest = function(opt_data) {
274
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
275
+ };
276
+ goog.inherits(proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest, jspb.Message);
277
+ if (goog.DEBUG && !COMPILED) {
278
+ /**
279
+ * @public
280
+ * @override
281
+ */
282
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.displayName = 'proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest';
283
+ }
284
+ /**
285
+ * Generated by JsPbCodeGenerator.
286
+ * @param {Array=} opt_data Optional initial data array, typically from a
287
+ * server response, or constructed directly in Javascript. The array is used
288
+ * in place and becomes part of the constructed object. It is not cloned.
289
+ * If no data is provided, the constructed object will be empty, but still
290
+ * valid.
291
+ * @extends {jspb.Message}
292
+ * @constructor
293
+ */
294
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse = function(opt_data) {
295
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.repeatedFields_, null);
296
+ };
297
+ goog.inherits(proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse, jspb.Message);
298
+ if (goog.DEBUG && !COMPILED) {
299
+ /**
300
+ * @public
301
+ * @override
302
+ */
303
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.displayName = 'proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse';
304
+ }
238
305
 
239
306
 
240
307
 
@@ -1765,4 +1832,579 @@ proto.wechaty.puppet.ApplyRoomAntiSpamStrategyResponse.serializeBinaryToWriter =
1765
1832
  };
1766
1833
 
1767
1834
 
1835
+
1836
+ /**
1837
+ * List of repeated fields within this message type.
1838
+ * @private {!Array<number>}
1839
+ * @const
1840
+ */
1841
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.repeatedFields_ = [2];
1842
+
1843
+
1844
+
1845
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1846
+ /**
1847
+ * Creates an object representation of this proto.
1848
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1849
+ * Optional fields that are not set will be set to undefined.
1850
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1851
+ * For the list of reserved names please see:
1852
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1853
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1854
+ * JSPB instance for transitional soy proto support:
1855
+ * http://goto/soy-param-migration
1856
+ * @return {!Object}
1857
+ */
1858
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.toObject = function(opt_includeInstance) {
1859
+ return proto.wechaty.puppet.CorpMessageInterceptionStrategy.toObject(opt_includeInstance, this);
1860
+ };
1861
+
1862
+
1863
+ /**
1864
+ * Static version of the {@see toObject} method.
1865
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1866
+ * the JSPB instance for transitional soy proto support:
1867
+ * http://goto/soy-param-migration
1868
+ * @param {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} msg The msg instance to transform.
1869
+ * @return {!Object}
1870
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1871
+ */
1872
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.toObject = function(includeInstance, msg) {
1873
+ var f, obj = {
1874
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
1875
+ wordsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1876
+ phoneNumber: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
1877
+ email: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
1878
+ redPocket: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
1879
+ type: jspb.Message.getFieldWithDefault(msg, 6, 0)
1880
+ };
1881
+
1882
+ if (includeInstance) {
1883
+ obj.$jspbMessageInstance = msg;
1884
+ }
1885
+ return obj;
1886
+ };
1887
+ }
1888
+
1889
+
1890
+ /**
1891
+ * Deserializes binary data (in protobuf wire format).
1892
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1893
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy}
1894
+ */
1895
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.deserializeBinary = function(bytes) {
1896
+ var reader = new jspb.BinaryReader(bytes);
1897
+ var msg = new proto.wechaty.puppet.CorpMessageInterceptionStrategy;
1898
+ return proto.wechaty.puppet.CorpMessageInterceptionStrategy.deserializeBinaryFromReader(msg, reader);
1899
+ };
1900
+
1901
+
1902
+ /**
1903
+ * Deserializes binary data (in protobuf wire format) from the
1904
+ * given reader into the given message object.
1905
+ * @param {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} msg The message object to deserialize into.
1906
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1907
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy}
1908
+ */
1909
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.deserializeBinaryFromReader = function(msg, reader) {
1910
+ while (reader.nextField()) {
1911
+ if (reader.isEndGroup()) {
1912
+ break;
1913
+ }
1914
+ var field = reader.getFieldNumber();
1915
+ switch (field) {
1916
+ case 1:
1917
+ var value = /** @type {string} */ (reader.readString());
1918
+ msg.setName(value);
1919
+ break;
1920
+ case 2:
1921
+ var value = /** @type {string} */ (reader.readString());
1922
+ msg.addWords(value);
1923
+ break;
1924
+ case 3:
1925
+ var value = /** @type {boolean} */ (reader.readBool());
1926
+ msg.setPhoneNumber(value);
1927
+ break;
1928
+ case 4:
1929
+ var value = /** @type {boolean} */ (reader.readBool());
1930
+ msg.setEmail(value);
1931
+ break;
1932
+ case 5:
1933
+ var value = /** @type {boolean} */ (reader.readBool());
1934
+ msg.setRedPocket(value);
1935
+ break;
1936
+ case 6:
1937
+ var value = /** @type {!proto.wechaty.puppet.CorpMessageInterceptionType} */ (reader.readEnum());
1938
+ msg.setType(value);
1939
+ break;
1940
+ default:
1941
+ reader.skipField();
1942
+ break;
1943
+ }
1944
+ }
1945
+ return msg;
1946
+ };
1947
+
1948
+
1949
+ /**
1950
+ * Serializes the message to binary data (in protobuf wire format).
1951
+ * @return {!Uint8Array}
1952
+ */
1953
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.serializeBinary = function() {
1954
+ var writer = new jspb.BinaryWriter();
1955
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.serializeBinaryToWriter(this, writer);
1956
+ return writer.getResultBuffer();
1957
+ };
1958
+
1959
+
1960
+ /**
1961
+ * Serializes the given message to binary data (in protobuf wire
1962
+ * format), writing to the given BinaryWriter.
1963
+ * @param {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} message
1964
+ * @param {!jspb.BinaryWriter} writer
1965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1966
+ */
1967
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.serializeBinaryToWriter = function(message, writer) {
1968
+ var f = undefined;
1969
+ f = message.getName();
1970
+ if (f.length > 0) {
1971
+ writer.writeString(
1972
+ 1,
1973
+ f
1974
+ );
1975
+ }
1976
+ f = message.getWordsList();
1977
+ if (f.length > 0) {
1978
+ writer.writeRepeatedString(
1979
+ 2,
1980
+ f
1981
+ );
1982
+ }
1983
+ f = message.getPhoneNumber();
1984
+ if (f) {
1985
+ writer.writeBool(
1986
+ 3,
1987
+ f
1988
+ );
1989
+ }
1990
+ f = message.getEmail();
1991
+ if (f) {
1992
+ writer.writeBool(
1993
+ 4,
1994
+ f
1995
+ );
1996
+ }
1997
+ f = message.getRedPocket();
1998
+ if (f) {
1999
+ writer.writeBool(
2000
+ 5,
2001
+ f
2002
+ );
2003
+ }
2004
+ f = message.getType();
2005
+ if (f !== 0.0) {
2006
+ writer.writeEnum(
2007
+ 6,
2008
+ f
2009
+ );
2010
+ }
2011
+ };
2012
+
2013
+
2014
+ /**
2015
+ * optional string name = 1;
2016
+ * @return {string}
2017
+ */
2018
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.getName = function() {
2019
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2020
+ };
2021
+
2022
+
2023
+ /**
2024
+ * @param {string} value
2025
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2026
+ */
2027
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.setName = function(value) {
2028
+ return jspb.Message.setProto3StringField(this, 1, value);
2029
+ };
2030
+
2031
+
2032
+ /**
2033
+ * repeated string words = 2;
2034
+ * @return {!Array<string>}
2035
+ */
2036
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.getWordsList = function() {
2037
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2038
+ };
2039
+
2040
+
2041
+ /**
2042
+ * @param {!Array<string>} value
2043
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2044
+ */
2045
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.setWordsList = function(value) {
2046
+ return jspb.Message.setField(this, 2, value || []);
2047
+ };
2048
+
2049
+
2050
+ /**
2051
+ * @param {string} value
2052
+ * @param {number=} opt_index
2053
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2054
+ */
2055
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.addWords = function(value, opt_index) {
2056
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * Clears the list making it empty but non-null.
2062
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2063
+ */
2064
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.clearWordsList = function() {
2065
+ return this.setWordsList([]);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * optional bool phone_number = 3;
2071
+ * @return {boolean}
2072
+ */
2073
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.getPhoneNumber = function() {
2074
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * @param {boolean} value
2080
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2081
+ */
2082
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.setPhoneNumber = function(value) {
2083
+ return jspb.Message.setProto3BooleanField(this, 3, value);
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * optional bool email = 4;
2089
+ * @return {boolean}
2090
+ */
2091
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.getEmail = function() {
2092
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * @param {boolean} value
2098
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2099
+ */
2100
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.setEmail = function(value) {
2101
+ return jspb.Message.setProto3BooleanField(this, 4, value);
2102
+ };
2103
+
2104
+
2105
+ /**
2106
+ * optional bool red_pocket = 5;
2107
+ * @return {boolean}
2108
+ */
2109
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.getRedPocket = function() {
2110
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * @param {boolean} value
2116
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2117
+ */
2118
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.setRedPocket = function(value) {
2119
+ return jspb.Message.setProto3BooleanField(this, 5, value);
2120
+ };
2121
+
2122
+
2123
+ /**
2124
+ * optional CorpMessageInterceptionType type = 6;
2125
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionType}
2126
+ */
2127
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.getType = function() {
2128
+ return /** @type {!proto.wechaty.puppet.CorpMessageInterceptionType} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
2129
+ };
2130
+
2131
+
2132
+ /**
2133
+ * @param {!proto.wechaty.puppet.CorpMessageInterceptionType} value
2134
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy} returns this
2135
+ */
2136
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.prototype.setType = function(value) {
2137
+ return jspb.Message.setProto3EnumField(this, 6, value);
2138
+ };
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2145
+ /**
2146
+ * Creates an object representation of this proto.
2147
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2148
+ * Optional fields that are not set will be set to undefined.
2149
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2150
+ * For the list of reserved names please see:
2151
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2152
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2153
+ * JSPB instance for transitional soy proto support:
2154
+ * http://goto/soy-param-migration
2155
+ * @return {!Object}
2156
+ */
2157
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.prototype.toObject = function(opt_includeInstance) {
2158
+ return proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.toObject(opt_includeInstance, this);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * Static version of the {@see toObject} method.
2164
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2165
+ * the JSPB instance for transitional soy proto support:
2166
+ * http://goto/soy-param-migration
2167
+ * @param {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest} msg The msg instance to transform.
2168
+ * @return {!Object}
2169
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2170
+ */
2171
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.toObject = function(includeInstance, msg) {
2172
+ var f, obj = {
2173
+
2174
+ };
2175
+
2176
+ if (includeInstance) {
2177
+ obj.$jspbMessageInstance = msg;
2178
+ }
2179
+ return obj;
2180
+ };
2181
+ }
2182
+
2183
+
2184
+ /**
2185
+ * Deserializes binary data (in protobuf wire format).
2186
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2187
+ * @return {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest}
2188
+ */
2189
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.deserializeBinary = function(bytes) {
2190
+ var reader = new jspb.BinaryReader(bytes);
2191
+ var msg = new proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest;
2192
+ return proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.deserializeBinaryFromReader(msg, reader);
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * Deserializes binary data (in protobuf wire format) from the
2198
+ * given reader into the given message object.
2199
+ * @param {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest} msg The message object to deserialize into.
2200
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2201
+ * @return {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest}
2202
+ */
2203
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.deserializeBinaryFromReader = function(msg, reader) {
2204
+ while (reader.nextField()) {
2205
+ if (reader.isEndGroup()) {
2206
+ break;
2207
+ }
2208
+ var field = reader.getFieldNumber();
2209
+ switch (field) {
2210
+ default:
2211
+ reader.skipField();
2212
+ break;
2213
+ }
2214
+ }
2215
+ return msg;
2216
+ };
2217
+
2218
+
2219
+ /**
2220
+ * Serializes the message to binary data (in protobuf wire format).
2221
+ * @return {!Uint8Array}
2222
+ */
2223
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.prototype.serializeBinary = function() {
2224
+ var writer = new jspb.BinaryWriter();
2225
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.serializeBinaryToWriter(this, writer);
2226
+ return writer.getResultBuffer();
2227
+ };
2228
+
2229
+
2230
+ /**
2231
+ * Serializes the given message to binary data (in protobuf wire
2232
+ * format), writing to the given BinaryWriter.
2233
+ * @param {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest} message
2234
+ * @param {!jspb.BinaryWriter} writer
2235
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2236
+ */
2237
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesRequest.serializeBinaryToWriter = function(message, writer) {
2238
+ var f = undefined;
2239
+ };
2240
+
2241
+
2242
+
2243
+ /**
2244
+ * List of repeated fields within this message type.
2245
+ * @private {!Array<number>}
2246
+ * @const
2247
+ */
2248
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.repeatedFields_ = [1];
2249
+
2250
+
2251
+
2252
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2253
+ /**
2254
+ * Creates an object representation of this proto.
2255
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2256
+ * Optional fields that are not set will be set to undefined.
2257
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2258
+ * For the list of reserved names please see:
2259
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2260
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2261
+ * JSPB instance for transitional soy proto support:
2262
+ * http://goto/soy-param-migration
2263
+ * @return {!Object}
2264
+ */
2265
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.toObject = function(opt_includeInstance) {
2266
+ return proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.toObject(opt_includeInstance, this);
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Static version of the {@see toObject} method.
2272
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2273
+ * the JSPB instance for transitional soy proto support:
2274
+ * http://goto/soy-param-migration
2275
+ * @param {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse} msg The msg instance to transform.
2276
+ * @return {!Object}
2277
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2278
+ */
2279
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.toObject = function(includeInstance, msg) {
2280
+ var f, obj = {
2281
+ strategiesList: jspb.Message.toObjectList(msg.getStrategiesList(),
2282
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.toObject, includeInstance)
2283
+ };
2284
+
2285
+ if (includeInstance) {
2286
+ obj.$jspbMessageInstance = msg;
2287
+ }
2288
+ return obj;
2289
+ };
2290
+ }
2291
+
2292
+
2293
+ /**
2294
+ * Deserializes binary data (in protobuf wire format).
2295
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2296
+ * @return {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse}
2297
+ */
2298
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.deserializeBinary = function(bytes) {
2299
+ var reader = new jspb.BinaryReader(bytes);
2300
+ var msg = new proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse;
2301
+ return proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.deserializeBinaryFromReader(msg, reader);
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * Deserializes binary data (in protobuf wire format) from the
2307
+ * given reader into the given message object.
2308
+ * @param {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse} msg The message object to deserialize into.
2309
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2310
+ * @return {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse}
2311
+ */
2312
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.deserializeBinaryFromReader = function(msg, reader) {
2313
+ while (reader.nextField()) {
2314
+ if (reader.isEndGroup()) {
2315
+ break;
2316
+ }
2317
+ var field = reader.getFieldNumber();
2318
+ switch (field) {
2319
+ case 1:
2320
+ var value = new proto.wechaty.puppet.CorpMessageInterceptionStrategy;
2321
+ reader.readMessage(value,proto.wechaty.puppet.CorpMessageInterceptionStrategy.deserializeBinaryFromReader);
2322
+ msg.addStrategies(value);
2323
+ break;
2324
+ default:
2325
+ reader.skipField();
2326
+ break;
2327
+ }
2328
+ }
2329
+ return msg;
2330
+ };
2331
+
2332
+
2333
+ /**
2334
+ * Serializes the message to binary data (in protobuf wire format).
2335
+ * @return {!Uint8Array}
2336
+ */
2337
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.serializeBinary = function() {
2338
+ var writer = new jspb.BinaryWriter();
2339
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.serializeBinaryToWriter(this, writer);
2340
+ return writer.getResultBuffer();
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * Serializes the given message to binary data (in protobuf wire
2346
+ * format), writing to the given BinaryWriter.
2347
+ * @param {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse} message
2348
+ * @param {!jspb.BinaryWriter} writer
2349
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2350
+ */
2351
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.serializeBinaryToWriter = function(message, writer) {
2352
+ var f = undefined;
2353
+ f = message.getStrategiesList();
2354
+ if (f.length > 0) {
2355
+ writer.writeRepeatedMessage(
2356
+ 1,
2357
+ f,
2358
+ proto.wechaty.puppet.CorpMessageInterceptionStrategy.serializeBinaryToWriter
2359
+ );
2360
+ }
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * repeated CorpMessageInterceptionStrategy strategies = 1;
2366
+ * @return {!Array<!proto.wechaty.puppet.CorpMessageInterceptionStrategy>}
2367
+ */
2368
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.getStrategiesList = function() {
2369
+ return /** @type{!Array<!proto.wechaty.puppet.CorpMessageInterceptionStrategy>} */ (
2370
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.CorpMessageInterceptionStrategy, 1));
2371
+ };
2372
+
2373
+
2374
+ /**
2375
+ * @param {!Array<!proto.wechaty.puppet.CorpMessageInterceptionStrategy>} value
2376
+ * @return {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse} returns this
2377
+ */
2378
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.setStrategiesList = function(value) {
2379
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2380
+ };
2381
+
2382
+
2383
+ /**
2384
+ * @param {!proto.wechaty.puppet.CorpMessageInterceptionStrategy=} opt_value
2385
+ * @param {number=} opt_index
2386
+ * @return {!proto.wechaty.puppet.CorpMessageInterceptionStrategy}
2387
+ */
2388
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.addStrategies = function(opt_value, opt_index) {
2389
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.CorpMessageInterceptionStrategy, opt_index);
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * Clears the list making it empty but non-null.
2395
+ * @return {!proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse} returns this
2396
+ */
2397
+ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.clearStrategiesList = function() {
2398
+ return this.setStrategiesList([]);
2399
+ };
2400
+
2401
+
2402
+ /**
2403
+ * @enum {number}
2404
+ */
2405
+ proto.wechaty.puppet.CorpMessageInterceptionType = {
2406
+ INTERCEPTION_TYPE_HARD: 0,
2407
+ INTERCEPTION_TYPE_SOFT: 1
2408
+ };
2409
+
1768
2410
  goog.object.extend(exports, proto.wechaty.puppet);