@juzi/wechaty-grpc 1.0.11 → 1.0.12

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.
@@ -251,6 +251,11 @@ export class RoomDelRequest extends jspb.Message {
251
251
  getContactId(): string;
252
252
  setContactId(value: string): void;
253
253
 
254
+ clearContactIdsList(): void;
255
+ getContactIdsList(): Array<string>;
256
+ setContactIdsList(value: Array<string>): void;
257
+ addContactIds(value: string, index?: number): string;
258
+
254
259
  serializeBinary(): Uint8Array;
255
260
  toObject(includeInstance?: boolean): RoomDelRequest.AsObject;
256
261
  static toObject(includeInstance: boolean, msg: RoomDelRequest): RoomDelRequest.AsObject;
@@ -265,6 +270,7 @@ export namespace RoomDelRequest {
265
270
  export type AsObject = {
266
271
  id: string,
267
272
  contactId: string,
273
+ contactIdsList: Array<string>,
268
274
  }
269
275
  }
270
276
 
@@ -258,7 +258,7 @@ if (goog.DEBUG && !COMPILED) {
258
258
  * @constructor
259
259
  */
260
260
  proto.wechaty.puppet.RoomDelRequest = function(opt_data) {
261
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
261
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomDelRequest.repeatedFields_, null);
262
262
  };
263
263
  goog.inherits(proto.wechaty.puppet.RoomDelRequest, jspb.Message);
264
264
  if (goog.DEBUG && !COMPILED) {
@@ -2097,6 +2097,13 @@ proto.wechaty.puppet.RoomCreateResponse.prototype.setId = function(value) {
2097
2097
 
2098
2098
 
2099
2099
 
2100
+ /**
2101
+ * List of repeated fields within this message type.
2102
+ * @private {!Array<number>}
2103
+ * @const
2104
+ */
2105
+ proto.wechaty.puppet.RoomDelRequest.repeatedFields_ = [3];
2106
+
2100
2107
 
2101
2108
 
2102
2109
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2129,7 +2136,8 @@ proto.wechaty.puppet.RoomDelRequest.prototype.toObject = function(opt_includeIns
2129
2136
  proto.wechaty.puppet.RoomDelRequest.toObject = function(includeInstance, msg) {
2130
2137
  var f, obj = {
2131
2138
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2132
- contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
2139
+ contactId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2140
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2133
2141
  };
2134
2142
 
2135
2143
  if (includeInstance) {
@@ -2174,6 +2182,10 @@ proto.wechaty.puppet.RoomDelRequest.deserializeBinaryFromReader = function(msg,
2174
2182
  var value = /** @type {string} */ (reader.readString());
2175
2183
  msg.setContactId(value);
2176
2184
  break;
2185
+ case 3:
2186
+ var value = /** @type {string} */ (reader.readString());
2187
+ msg.addContactIds(value);
2188
+ break;
2177
2189
  default:
2178
2190
  reader.skipField();
2179
2191
  break;
@@ -2217,6 +2229,13 @@ proto.wechaty.puppet.RoomDelRequest.serializeBinaryToWriter = function(message,
2217
2229
  f
2218
2230
  );
2219
2231
  }
2232
+ f = message.getContactIdsList();
2233
+ if (f.length > 0) {
2234
+ writer.writeRepeatedString(
2235
+ 3,
2236
+ f
2237
+ );
2238
+ }
2220
2239
  };
2221
2240
 
2222
2241
 
@@ -2256,6 +2275,43 @@ proto.wechaty.puppet.RoomDelRequest.prototype.setContactId = function(value) {
2256
2275
  };
2257
2276
 
2258
2277
 
2278
+ /**
2279
+ * repeated string contact_ids = 3;
2280
+ * @return {!Array<string>}
2281
+ */
2282
+ proto.wechaty.puppet.RoomDelRequest.prototype.getContactIdsList = function() {
2283
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2284
+ };
2285
+
2286
+
2287
+ /**
2288
+ * @param {!Array<string>} value
2289
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2290
+ */
2291
+ proto.wechaty.puppet.RoomDelRequest.prototype.setContactIdsList = function(value) {
2292
+ return jspb.Message.setField(this, 3, value || []);
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * @param {string} value
2298
+ * @param {number=} opt_index
2299
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2300
+ */
2301
+ proto.wechaty.puppet.RoomDelRequest.prototype.addContactIds = function(value, opt_index) {
2302
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * Clears the list making it empty but non-null.
2308
+ * @return {!proto.wechaty.puppet.RoomDelRequest} returns this
2309
+ */
2310
+ proto.wechaty.puppet.RoomDelRequest.prototype.clearContactIdsList = function() {
2311
+ return this.setContactIdsList([]);
2312
+ };
2313
+
2314
+
2259
2315
 
2260
2316
 
2261
2317
 
@@ -35,6 +35,30 @@ export namespace TagPayload {
35
35
  }
36
36
  }
37
37
 
38
+ export class TagIdentifier extends jspb.Message {
39
+ getId(): string;
40
+ setId(value: string): void;
41
+
42
+ getGroupId(): string;
43
+ setGroupId(value: string): void;
44
+
45
+ serializeBinary(): Uint8Array;
46
+ toObject(includeInstance?: boolean): TagIdentifier.AsObject;
47
+ static toObject(includeInstance: boolean, msg: TagIdentifier): TagIdentifier.AsObject;
48
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
49
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
50
+ static serializeBinaryToWriter(message: TagIdentifier, writer: jspb.BinaryWriter): void;
51
+ static deserializeBinary(bytes: Uint8Array): TagIdentifier;
52
+ static deserializeBinaryFromReader(message: TagIdentifier, reader: jspb.BinaryReader): TagIdentifier;
53
+ }
54
+
55
+ export namespace TagIdentifier {
56
+ export type AsObject = {
57
+ id: string,
58
+ groupId: string,
59
+ }
60
+ }
61
+
38
62
  export class TagGroupPayload extends jspb.Message {
39
63
  getId(): string;
40
64
  setId(value: string): void;
@@ -60,14 +84,15 @@ export namespace TagGroupPayload {
60
84
  }
61
85
 
62
86
  export class TagContactTagAddRequest extends jspb.Message {
63
- getTagGroupId(): string;
64
- setTagGroupId(value: string): void;
65
-
66
- getTagId(): string;
67
- setTagId(value: string): void;
87
+ clearTagsList(): void;
88
+ getTagsList(): Array<TagIdentifier>;
89
+ setTagsList(value: Array<TagIdentifier>): void;
90
+ addTags(value?: TagIdentifier, index?: number): TagIdentifier;
68
91
 
69
- getContactId(): string;
70
- setContactId(value: string): void;
92
+ clearContactIdsList(): void;
93
+ getContactIdsList(): Array<string>;
94
+ setContactIdsList(value: Array<string>): void;
95
+ addContactIds(value: string, index?: number): string;
71
96
 
72
97
  serializeBinary(): Uint8Array;
73
98
  toObject(includeInstance?: boolean): TagContactTagAddRequest.AsObject;
@@ -81,9 +106,8 @@ export class TagContactTagAddRequest extends jspb.Message {
81
106
 
82
107
  export namespace TagContactTagAddRequest {
83
108
  export type AsObject = {
84
- tagGroupId: string,
85
- tagId: string,
86
- contactId: string,
109
+ tagsList: Array<TagIdentifier.AsObject>,
110
+ contactIdsList: Array<string>,
87
111
  }
88
112
  }
89
113
 
@@ -104,14 +128,15 @@ export namespace TagContactTagAddResponse {
104
128
  }
105
129
 
106
130
  export class TagContactTagRemoveRequest extends jspb.Message {
107
- getTagGroupId(): string;
108
- setTagGroupId(value: string): void;
109
-
110
- getTagId(): string;
111
- setTagId(value: string): void;
131
+ clearTagsList(): void;
132
+ getTagsList(): Array<TagIdentifier>;
133
+ setTagsList(value: Array<TagIdentifier>): void;
134
+ addTags(value?: TagIdentifier, index?: number): TagIdentifier;
112
135
 
113
- getContactId(): string;
114
- setContactId(value: string): void;
136
+ clearContactIdsList(): void;
137
+ getContactIdsList(): Array<string>;
138
+ setContactIdsList(value: Array<string>): void;
139
+ addContactIds(value: string, index?: number): string;
115
140
 
116
141
  serializeBinary(): Uint8Array;
117
142
  toObject(includeInstance?: boolean): TagContactTagRemoveRequest.AsObject;
@@ -125,9 +150,8 @@ export class TagContactTagRemoveRequest extends jspb.Message {
125
150
 
126
151
  export namespace TagContactTagRemoveRequest {
127
152
  export type AsObject = {
128
- tagGroupId: string,
129
- tagId: string,
130
- contactId: string,
153
+ tagsList: Array<TagIdentifier.AsObject>,
154
+ contactIdsList: Array<string>,
131
155
  }
132
156
  }
133
157
 
@@ -226,12 +250,12 @@ export namespace TagGroupDeleteResponse {
226
250
  }
227
251
 
228
252
  export class TagTagAddRequest extends jspb.Message {
229
- getTagGroupId(): string;
230
- setTagGroupId(value: string): void;
231
-
232
253
  getTagName(): string;
233
254
  setTagName(value: string): void;
234
255
 
256
+ getTagGroupId(): string;
257
+ setTagGroupId(value: string): void;
258
+
235
259
  serializeBinary(): Uint8Array;
236
260
  toObject(includeInstance?: boolean): TagTagAddRequest.AsObject;
237
261
  static toObject(includeInstance: boolean, msg: TagTagAddRequest): TagTagAddRequest.AsObject;
@@ -244,8 +268,8 @@ export class TagTagAddRequest extends jspb.Message {
244
268
 
245
269
  export namespace TagTagAddRequest {
246
270
  export type AsObject = {
247
- tagGroupId: string,
248
271
  tagName: string,
272
+ tagGroupId: string,
249
273
  }
250
274
  }
251
275
 
@@ -272,11 +296,10 @@ export namespace TagTagAddResponse {
272
296
  }
273
297
 
274
298
  export class TagTagDeleteRequest extends jspb.Message {
275
- getTagGroupId(): string;
276
- setTagGroupId(value: string): void;
277
-
278
- getTagId(): string;
279
- setTagId(value: string): void;
299
+ hasTag(): boolean;
300
+ clearTag(): void;
301
+ getTag(): TagIdentifier | undefined;
302
+ setTag(value?: TagIdentifier): void;
280
303
 
281
304
  serializeBinary(): Uint8Array;
282
305
  toObject(includeInstance?: boolean): TagTagDeleteRequest.AsObject;
@@ -290,8 +313,7 @@ export class TagTagDeleteRequest extends jspb.Message {
290
313
 
291
314
  export namespace TagTagDeleteRequest {
292
315
  export type AsObject = {
293
- tagGroupId: string,
294
- tagId: string,
316
+ tag?: TagIdentifier.AsObject,
295
317
  }
296
318
  }
297
319
 
@@ -472,11 +494,10 @@ export namespace TagContactTagListResponse {
472
494
  }
473
495
 
474
496
  export class TagTagContactListRequest extends jspb.Message {
475
- getTagGroupId(): string;
476
- setTagGroupId(value: string): void;
477
-
478
- getTagId(): string;
479
- setTagId(value: string): void;
497
+ hasTag(): boolean;
498
+ clearTag(): void;
499
+ getTag(): TagIdentifier | undefined;
500
+ setTag(value?: TagIdentifier): void;
480
501
 
481
502
  serializeBinary(): Uint8Array;
482
503
  toObject(includeInstance?: boolean): TagTagContactListRequest.AsObject;
@@ -490,8 +511,7 @@ export class TagTagContactListRequest extends jspb.Message {
490
511
 
491
512
  export namespace TagTagContactListRequest {
492
513
  export type AsObject = {
493
- tagGroupId: string,
494
- tagId: string,
514
+ tag?: TagIdentifier.AsObject,
495
515
  }
496
516
  }
497
517