mezon-js-protobuf 1.8.29 → 1.8.30

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.
@@ -14276,7 +14276,8 @@ function createBaseEnvelope() {
14276
14276
  mark_as_read: void 0,
14277
14277
  list_data_socket: void 0,
14278
14278
  quick_menu_event: void 0,
14279
- un_block_friend: void 0
14279
+ un_block_friend: void 0,
14280
+ meet_participant_event: void 0
14280
14281
  };
14281
14282
  }
14282
14283
  var Envelope = {
@@ -14536,6 +14537,9 @@ var Envelope = {
14536
14537
  if (message.un_block_friend !== void 0) {
14537
14538
  UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
14538
14539
  }
14540
+ if (message.meet_participant_event !== void 0) {
14541
+ MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
14542
+ }
14539
14543
  return writer;
14540
14544
  },
14541
14545
  decode(input, length) {
@@ -15055,6 +15059,12 @@ var Envelope = {
15055
15059
  }
15056
15060
  message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
15057
15061
  continue;
15062
+ case 86:
15063
+ if (tag !== 690) {
15064
+ break;
15065
+ }
15066
+ message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
15067
+ continue;
15058
15068
  }
15059
15069
  if ((tag & 7) === 4 || tag === 0) {
15060
15070
  break;
@@ -15149,7 +15159,8 @@ var Envelope = {
15149
15159
  mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
15150
15160
  list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
15151
15161
  quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15152
- un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
15162
+ un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
15163
+ meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0
15153
15164
  };
15154
15165
  },
15155
15166
  toJSON(message) {
@@ -15411,6 +15422,9 @@ var Envelope = {
15411
15422
  if (message.un_block_friend !== void 0) {
15412
15423
  obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
15413
15424
  }
15425
+ if (message.meet_participant_event !== void 0) {
15426
+ obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
15427
+ }
15414
15428
  return obj;
15415
15429
  },
15416
15430
  create(base) {
@@ -15504,6 +15518,7 @@ var Envelope = {
15504
15518
  message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
15505
15519
  message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
15506
15520
  message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15521
+ message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
15507
15522
  return message;
15508
15523
  }
15509
15524
  };
@@ -25240,6 +25255,115 @@ var ListDataSocket = {
25240
25255
  return message;
25241
25256
  }
25242
25257
  };
25258
+ function createBaseMeetParticipantEvent() {
25259
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
25260
+ }
25261
+ var MeetParticipantEvent = {
25262
+ encode(message, writer = import_minimal5.default.Writer.create()) {
25263
+ if (message.username !== "") {
25264
+ writer.uint32(10).string(message.username);
25265
+ }
25266
+ if (message.room_name !== "") {
25267
+ writer.uint32(18).string(message.room_name);
25268
+ }
25269
+ if (message.channel_id !== "") {
25270
+ writer.uint32(26).string(message.channel_id);
25271
+ }
25272
+ if (message.clan_id !== "") {
25273
+ writer.uint32(34).string(message.clan_id);
25274
+ }
25275
+ if (message.action !== 0) {
25276
+ writer.uint32(40).int32(message.action);
25277
+ }
25278
+ return writer;
25279
+ },
25280
+ decode(input, length) {
25281
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
25282
+ let end = length === void 0 ? reader.len : reader.pos + length;
25283
+ const message = createBaseMeetParticipantEvent();
25284
+ while (reader.pos < end) {
25285
+ const tag = reader.uint32();
25286
+ switch (tag >>> 3) {
25287
+ case 1:
25288
+ if (tag !== 10) {
25289
+ break;
25290
+ }
25291
+ message.username = reader.string();
25292
+ continue;
25293
+ case 2:
25294
+ if (tag !== 18) {
25295
+ break;
25296
+ }
25297
+ message.room_name = reader.string();
25298
+ continue;
25299
+ case 3:
25300
+ if (tag !== 26) {
25301
+ break;
25302
+ }
25303
+ message.channel_id = reader.string();
25304
+ continue;
25305
+ case 4:
25306
+ if (tag !== 34) {
25307
+ break;
25308
+ }
25309
+ message.clan_id = reader.string();
25310
+ continue;
25311
+ case 5:
25312
+ if (tag !== 40) {
25313
+ break;
25314
+ }
25315
+ message.action = reader.int32();
25316
+ continue;
25317
+ }
25318
+ if ((tag & 7) === 4 || tag === 0) {
25319
+ break;
25320
+ }
25321
+ reader.skipType(tag & 7);
25322
+ }
25323
+ return message;
25324
+ },
25325
+ fromJSON(object) {
25326
+ return {
25327
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
25328
+ room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : "",
25329
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
25330
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
25331
+ action: isSet4(object.action) ? globalThis.Number(object.action) : 0
25332
+ };
25333
+ },
25334
+ toJSON(message) {
25335
+ const obj = {};
25336
+ if (message.username !== "") {
25337
+ obj.username = message.username;
25338
+ }
25339
+ if (message.room_name !== "") {
25340
+ obj.room_name = message.room_name;
25341
+ }
25342
+ if (message.channel_id !== "") {
25343
+ obj.channel_id = message.channel_id;
25344
+ }
25345
+ if (message.clan_id !== "") {
25346
+ obj.clan_id = message.clan_id;
25347
+ }
25348
+ if (message.action !== 0) {
25349
+ obj.action = Math.round(message.action);
25350
+ }
25351
+ return obj;
25352
+ },
25353
+ create(base) {
25354
+ return MeetParticipantEvent.fromPartial(base != null ? base : {});
25355
+ },
25356
+ fromPartial(object) {
25357
+ var _a, _b, _c, _d, _e;
25358
+ const message = createBaseMeetParticipantEvent();
25359
+ message.username = (_a = object.username) != null ? _a : "";
25360
+ message.room_name = (_b = object.room_name) != null ? _b : "";
25361
+ message.channel_id = (_c = object.channel_id) != null ? _c : "";
25362
+ message.clan_id = (_d = object.clan_id) != null ? _d : "";
25363
+ message.action = (_e = object.action) != null ? _e : 0;
25364
+ return message;
25365
+ }
25366
+ };
25243
25367
  function toTimestamp2(date) {
25244
25368
  const seconds = Math.trunc(date.getTime() / 1e3);
25245
25369
  const nanos = date.getTime() % 1e3 * 1e6;
@@ -14263,7 +14263,8 @@ function createBaseEnvelope() {
14263
14263
  mark_as_read: void 0,
14264
14264
  list_data_socket: void 0,
14265
14265
  quick_menu_event: void 0,
14266
- un_block_friend: void 0
14266
+ un_block_friend: void 0,
14267
+ meet_participant_event: void 0
14267
14268
  };
14268
14269
  }
14269
14270
  var Envelope = {
@@ -14523,6 +14524,9 @@ var Envelope = {
14523
14524
  if (message.un_block_friend !== void 0) {
14524
14525
  UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
14525
14526
  }
14527
+ if (message.meet_participant_event !== void 0) {
14528
+ MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
14529
+ }
14526
14530
  return writer;
14527
14531
  },
14528
14532
  decode(input, length) {
@@ -15042,6 +15046,12 @@ var Envelope = {
15042
15046
  }
15043
15047
  message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
15044
15048
  continue;
15049
+ case 86:
15050
+ if (tag !== 690) {
15051
+ break;
15052
+ }
15053
+ message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
15054
+ continue;
15045
15055
  }
15046
15056
  if ((tag & 7) === 4 || tag === 0) {
15047
15057
  break;
@@ -15136,7 +15146,8 @@ var Envelope = {
15136
15146
  mark_as_read: isSet4(object.mark_as_read) ? MarkAsRead.fromJSON(object.mark_as_read) : void 0,
15137
15147
  list_data_socket: isSet4(object.list_data_socket) ? ListDataSocket.fromJSON(object.list_data_socket) : void 0,
15138
15148
  quick_menu_event: isSet4(object.quick_menu_event) ? QuickMenuDataEvent.fromJSON(object.quick_menu_event) : void 0,
15139
- un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0
15149
+ un_block_friend: isSet4(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : void 0,
15150
+ meet_participant_event: isSet4(object.meet_participant_event) ? MeetParticipantEvent.fromJSON(object.meet_participant_event) : void 0
15140
15151
  };
15141
15152
  },
15142
15153
  toJSON(message) {
@@ -15398,6 +15409,9 @@ var Envelope = {
15398
15409
  if (message.un_block_friend !== void 0) {
15399
15410
  obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
15400
15411
  }
15412
+ if (message.meet_participant_event !== void 0) {
15413
+ obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
15414
+ }
15401
15415
  return obj;
15402
15416
  },
15403
15417
  create(base) {
@@ -15491,6 +15505,7 @@ var Envelope = {
15491
15505
  message.list_data_socket = object.list_data_socket !== void 0 && object.list_data_socket !== null ? ListDataSocket.fromPartial(object.list_data_socket) : void 0;
15492
15506
  message.quick_menu_event = object.quick_menu_event !== void 0 && object.quick_menu_event !== null ? QuickMenuDataEvent.fromPartial(object.quick_menu_event) : void 0;
15493
15507
  message.un_block_friend = object.un_block_friend !== void 0 && object.un_block_friend !== null ? UnblockFriend.fromPartial(object.un_block_friend) : void 0;
15508
+ message.meet_participant_event = object.meet_participant_event !== void 0 && object.meet_participant_event !== null ? MeetParticipantEvent.fromPartial(object.meet_participant_event) : void 0;
15494
15509
  return message;
15495
15510
  }
15496
15511
  };
@@ -25227,6 +25242,115 @@ var ListDataSocket = {
25227
25242
  return message;
25228
25243
  }
25229
25244
  };
25245
+ function createBaseMeetParticipantEvent() {
25246
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
25247
+ }
25248
+ var MeetParticipantEvent = {
25249
+ encode(message, writer = import_minimal5.default.Writer.create()) {
25250
+ if (message.username !== "") {
25251
+ writer.uint32(10).string(message.username);
25252
+ }
25253
+ if (message.room_name !== "") {
25254
+ writer.uint32(18).string(message.room_name);
25255
+ }
25256
+ if (message.channel_id !== "") {
25257
+ writer.uint32(26).string(message.channel_id);
25258
+ }
25259
+ if (message.clan_id !== "") {
25260
+ writer.uint32(34).string(message.clan_id);
25261
+ }
25262
+ if (message.action !== 0) {
25263
+ writer.uint32(40).int32(message.action);
25264
+ }
25265
+ return writer;
25266
+ },
25267
+ decode(input, length) {
25268
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
25269
+ let end = length === void 0 ? reader.len : reader.pos + length;
25270
+ const message = createBaseMeetParticipantEvent();
25271
+ while (reader.pos < end) {
25272
+ const tag = reader.uint32();
25273
+ switch (tag >>> 3) {
25274
+ case 1:
25275
+ if (tag !== 10) {
25276
+ break;
25277
+ }
25278
+ message.username = reader.string();
25279
+ continue;
25280
+ case 2:
25281
+ if (tag !== 18) {
25282
+ break;
25283
+ }
25284
+ message.room_name = reader.string();
25285
+ continue;
25286
+ case 3:
25287
+ if (tag !== 26) {
25288
+ break;
25289
+ }
25290
+ message.channel_id = reader.string();
25291
+ continue;
25292
+ case 4:
25293
+ if (tag !== 34) {
25294
+ break;
25295
+ }
25296
+ message.clan_id = reader.string();
25297
+ continue;
25298
+ case 5:
25299
+ if (tag !== 40) {
25300
+ break;
25301
+ }
25302
+ message.action = reader.int32();
25303
+ continue;
25304
+ }
25305
+ if ((tag & 7) === 4 || tag === 0) {
25306
+ break;
25307
+ }
25308
+ reader.skipType(tag & 7);
25309
+ }
25310
+ return message;
25311
+ },
25312
+ fromJSON(object) {
25313
+ return {
25314
+ username: isSet4(object.username) ? globalThis.String(object.username) : "",
25315
+ room_name: isSet4(object.room_name) ? globalThis.String(object.room_name) : "",
25316
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
25317
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
25318
+ action: isSet4(object.action) ? globalThis.Number(object.action) : 0
25319
+ };
25320
+ },
25321
+ toJSON(message) {
25322
+ const obj = {};
25323
+ if (message.username !== "") {
25324
+ obj.username = message.username;
25325
+ }
25326
+ if (message.room_name !== "") {
25327
+ obj.room_name = message.room_name;
25328
+ }
25329
+ if (message.channel_id !== "") {
25330
+ obj.channel_id = message.channel_id;
25331
+ }
25332
+ if (message.clan_id !== "") {
25333
+ obj.clan_id = message.clan_id;
25334
+ }
25335
+ if (message.action !== 0) {
25336
+ obj.action = Math.round(message.action);
25337
+ }
25338
+ return obj;
25339
+ },
25340
+ create(base) {
25341
+ return MeetParticipantEvent.fromPartial(base != null ? base : {});
25342
+ },
25343
+ fromPartial(object) {
25344
+ var _a, _b, _c, _d, _e;
25345
+ const message = createBaseMeetParticipantEvent();
25346
+ message.username = (_a = object.username) != null ? _a : "";
25347
+ message.room_name = (_b = object.room_name) != null ? _b : "";
25348
+ message.channel_id = (_c = object.channel_id) != null ? _c : "";
25349
+ message.clan_id = (_d = object.clan_id) != null ? _d : "";
25350
+ message.action = (_e = object.action) != null ? _e : 0;
25351
+ return message;
25352
+ }
25353
+ };
25230
25354
  function toTimestamp2(date) {
25231
25355
  const seconds = Math.trunc(date.getTime() / 1e3);
25232
25356
  const nanos = date.getTime() % 1e3 * 1e6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.8.29",
3
+ "version": "1.8.30",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",
package/rtapi/realtime.ts CHANGED
@@ -426,7 +426,11 @@ export interface Envelope {
426
426
  | QuickMenuDataEvent
427
427
  | undefined;
428
428
  /** unblock friend */
429
- un_block_friend?: UnblockFriend | undefined;
429
+ un_block_friend?:
430
+ | UnblockFriend
431
+ | undefined;
432
+ /** mezon meet participant event */
433
+ meet_participant_event?: MeetParticipantEvent | undefined;
430
434
  }
431
435
 
432
436
  export interface FollowEvent {
@@ -1665,6 +1669,14 @@ export interface ListDataSocket {
1665
1669
  stream_user_list: StreamingChannelUserList | undefined;
1666
1670
  }
1667
1671
 
1672
+ export interface MeetParticipantEvent {
1673
+ username: string;
1674
+ room_name: string;
1675
+ channel_id: string;
1676
+ clan_id: string;
1677
+ action: number;
1678
+ }
1679
+
1668
1680
  function createBaseEnvelope(): Envelope {
1669
1681
  return {
1670
1682
  cid: "",
@@ -1752,6 +1764,7 @@ function createBaseEnvelope(): Envelope {
1752
1764
  list_data_socket: undefined,
1753
1765
  quick_menu_event: undefined,
1754
1766
  un_block_friend: undefined,
1767
+ meet_participant_event: undefined,
1755
1768
  };
1756
1769
  }
1757
1770
 
@@ -2013,6 +2026,9 @@ export const Envelope = {
2013
2026
  if (message.un_block_friend !== undefined) {
2014
2027
  UnblockFriend.encode(message.un_block_friend, writer.uint32(682).fork()).ldelim();
2015
2028
  }
2029
+ if (message.meet_participant_event !== undefined) {
2030
+ MeetParticipantEvent.encode(message.meet_participant_event, writer.uint32(690).fork()).ldelim();
2031
+ }
2016
2032
  return writer;
2017
2033
  },
2018
2034
 
@@ -2618,6 +2634,13 @@ export const Envelope = {
2618
2634
 
2619
2635
  message.un_block_friend = UnblockFriend.decode(reader, reader.uint32());
2620
2636
  continue;
2637
+ case 86:
2638
+ if (tag !== 690) {
2639
+ break;
2640
+ }
2641
+
2642
+ message.meet_participant_event = MeetParticipantEvent.decode(reader, reader.uint32());
2643
+ continue;
2621
2644
  }
2622
2645
  if ((tag & 7) === 4 || tag === 0) {
2623
2646
  break;
@@ -2822,6 +2845,9 @@ export const Envelope = {
2822
2845
  ? QuickMenuDataEvent.fromJSON(object.quick_menu_event)
2823
2846
  : undefined,
2824
2847
  un_block_friend: isSet(object.un_block_friend) ? UnblockFriend.fromJSON(object.un_block_friend) : undefined,
2848
+ meet_participant_event: isSet(object.meet_participant_event)
2849
+ ? MeetParticipantEvent.fromJSON(object.meet_participant_event)
2850
+ : undefined,
2825
2851
  };
2826
2852
  },
2827
2853
 
@@ -3084,6 +3110,9 @@ export const Envelope = {
3084
3110
  if (message.un_block_friend !== undefined) {
3085
3111
  obj.un_block_friend = UnblockFriend.toJSON(message.un_block_friend);
3086
3112
  }
3113
+ if (message.meet_participant_event !== undefined) {
3114
+ obj.meet_participant_event = MeetParticipantEvent.toJSON(message.meet_participant_event);
3115
+ }
3087
3116
  return obj;
3088
3117
  },
3089
3118
 
@@ -3364,6 +3393,10 @@ export const Envelope = {
3364
3393
  message.un_block_friend = (object.un_block_friend !== undefined && object.un_block_friend !== null)
3365
3394
  ? UnblockFriend.fromPartial(object.un_block_friend)
3366
3395
  : undefined;
3396
+ message.meet_participant_event =
3397
+ (object.meet_participant_event !== undefined && object.meet_participant_event !== null)
3398
+ ? MeetParticipantEvent.fromPartial(object.meet_participant_event)
3399
+ : undefined;
3367
3400
  return message;
3368
3401
  },
3369
3402
  };
@@ -15088,6 +15121,125 @@ export const ListDataSocket = {
15088
15121
  },
15089
15122
  };
15090
15123
 
15124
+ function createBaseMeetParticipantEvent(): MeetParticipantEvent {
15125
+ return { username: "", room_name: "", channel_id: "", clan_id: "", action: 0 };
15126
+ }
15127
+
15128
+ export const MeetParticipantEvent = {
15129
+ encode(message: MeetParticipantEvent, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
15130
+ if (message.username !== "") {
15131
+ writer.uint32(10).string(message.username);
15132
+ }
15133
+ if (message.room_name !== "") {
15134
+ writer.uint32(18).string(message.room_name);
15135
+ }
15136
+ if (message.channel_id !== "") {
15137
+ writer.uint32(26).string(message.channel_id);
15138
+ }
15139
+ if (message.clan_id !== "") {
15140
+ writer.uint32(34).string(message.clan_id);
15141
+ }
15142
+ if (message.action !== 0) {
15143
+ writer.uint32(40).int32(message.action);
15144
+ }
15145
+ return writer;
15146
+ },
15147
+
15148
+ decode(input: _m0.Reader | Uint8Array, length?: number): MeetParticipantEvent {
15149
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
15150
+ let end = length === undefined ? reader.len : reader.pos + length;
15151
+ const message = createBaseMeetParticipantEvent();
15152
+ while (reader.pos < end) {
15153
+ const tag = reader.uint32();
15154
+ switch (tag >>> 3) {
15155
+ case 1:
15156
+ if (tag !== 10) {
15157
+ break;
15158
+ }
15159
+
15160
+ message.username = reader.string();
15161
+ continue;
15162
+ case 2:
15163
+ if (tag !== 18) {
15164
+ break;
15165
+ }
15166
+
15167
+ message.room_name = reader.string();
15168
+ continue;
15169
+ case 3:
15170
+ if (tag !== 26) {
15171
+ break;
15172
+ }
15173
+
15174
+ message.channel_id = reader.string();
15175
+ continue;
15176
+ case 4:
15177
+ if (tag !== 34) {
15178
+ break;
15179
+ }
15180
+
15181
+ message.clan_id = reader.string();
15182
+ continue;
15183
+ case 5:
15184
+ if (tag !== 40) {
15185
+ break;
15186
+ }
15187
+
15188
+ message.action = reader.int32();
15189
+ continue;
15190
+ }
15191
+ if ((tag & 7) === 4 || tag === 0) {
15192
+ break;
15193
+ }
15194
+ reader.skipType(tag & 7);
15195
+ }
15196
+ return message;
15197
+ },
15198
+
15199
+ fromJSON(object: any): MeetParticipantEvent {
15200
+ return {
15201
+ username: isSet(object.username) ? globalThis.String(object.username) : "",
15202
+ room_name: isSet(object.room_name) ? globalThis.String(object.room_name) : "",
15203
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
15204
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
15205
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
15206
+ };
15207
+ },
15208
+
15209
+ toJSON(message: MeetParticipantEvent): unknown {
15210
+ const obj: any = {};
15211
+ if (message.username !== "") {
15212
+ obj.username = message.username;
15213
+ }
15214
+ if (message.room_name !== "") {
15215
+ obj.room_name = message.room_name;
15216
+ }
15217
+ if (message.channel_id !== "") {
15218
+ obj.channel_id = message.channel_id;
15219
+ }
15220
+ if (message.clan_id !== "") {
15221
+ obj.clan_id = message.clan_id;
15222
+ }
15223
+ if (message.action !== 0) {
15224
+ obj.action = Math.round(message.action);
15225
+ }
15226
+ return obj;
15227
+ },
15228
+
15229
+ create<I extends Exact<DeepPartial<MeetParticipantEvent>, I>>(base?: I): MeetParticipantEvent {
15230
+ return MeetParticipantEvent.fromPartial(base ?? ({} as any));
15231
+ },
15232
+ fromPartial<I extends Exact<DeepPartial<MeetParticipantEvent>, I>>(object: I): MeetParticipantEvent {
15233
+ const message = createBaseMeetParticipantEvent();
15234
+ message.username = object.username ?? "";
15235
+ message.room_name = object.room_name ?? "";
15236
+ message.channel_id = object.channel_id ?? "";
15237
+ message.clan_id = object.clan_id ?? "";
15238
+ message.action = object.action ?? 0;
15239
+ return message;
15240
+ },
15241
+ };
15242
+
15091
15243
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
15092
15244
 
15093
15245
  export type DeepPartial<T> = T extends Builtin ? T