mezon-js-protobuf 1.7.31 → 1.7.32

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.
@@ -6633,7 +6633,8 @@ function createBaseEnvelope() {
6633
6633
  join_channel_app_data: void 0,
6634
6634
  canvas_event: void 0,
6635
6635
  unpin_message_event: void 0,
6636
- category_event: void 0
6636
+ category_event: void 0,
6637
+ handle_participant_meet_state_event: void 0
6637
6638
  };
6638
6639
  }
6639
6640
  var Envelope = {
@@ -6866,6 +6867,9 @@ var Envelope = {
6866
6867
  if (message.category_event !== void 0) {
6867
6868
  CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
6868
6869
  }
6870
+ if (message.handle_participant_meet_state_event !== void 0) {
6871
+ HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
6872
+ }
6869
6873
  return writer;
6870
6874
  },
6871
6875
  decode(input, length) {
@@ -7331,6 +7335,12 @@ var Envelope = {
7331
7335
  }
7332
7336
  message.category_event = CategoryEvent.decode(reader, reader.uint32());
7333
7337
  continue;
7338
+ case 77:
7339
+ if (tag !== 618) {
7340
+ break;
7341
+ }
7342
+ message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
7343
+ continue;
7334
7344
  }
7335
7345
  if ((tag & 7) === 4 || tag === 0) {
7336
7346
  break;
@@ -7416,7 +7426,8 @@ var Envelope = {
7416
7426
  join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
7417
7427
  canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
7418
7428
  unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0,
7419
- category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0
7429
+ category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0,
7430
+ handle_participant_meet_state_event: isSet4(object.handle_participant_meet_state_event) ? HandleParticipantMeetStateEvent.fromJSON(object.handle_participant_meet_state_event) : void 0
7420
7431
  };
7421
7432
  },
7422
7433
  toJSON(message) {
@@ -7649,6 +7660,11 @@ var Envelope = {
7649
7660
  if (message.category_event !== void 0) {
7650
7661
  obj.category_event = CategoryEvent.toJSON(message.category_event);
7651
7662
  }
7663
+ if (message.handle_participant_meet_state_event !== void 0) {
7664
+ obj.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.toJSON(
7665
+ message.handle_participant_meet_state_event
7666
+ );
7667
+ }
7652
7668
  return obj;
7653
7669
  },
7654
7670
  create(base) {
@@ -7733,6 +7749,7 @@ var Envelope = {
7733
7749
  message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
7734
7750
  message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
7735
7751
  message.category_event = object.category_event !== void 0 && object.category_event !== null ? CategoryEvent.fromPartial(object.category_event) : void 0;
7752
+ message.handle_participant_meet_state_event = object.handle_participant_meet_state_event !== void 0 && object.handle_participant_meet_state_event !== null ? HandleParticipantMeetStateEvent.fromPartial(object.handle_participant_meet_state_event) : void 0;
7736
7753
  return message;
7737
7754
  }
7738
7755
  };
@@ -15591,6 +15608,101 @@ var UnpinMessageEvent = {
15591
15608
  return message;
15592
15609
  }
15593
15610
  };
15611
+ function createBaseHandleParticipantMeetStateEvent() {
15612
+ return { clan_id: "", channel_id: "", display_name: "", state: 0 };
15613
+ }
15614
+ var HandleParticipantMeetStateEvent = {
15615
+ encode(message, writer = import_minimal5.default.Writer.create()) {
15616
+ if (message.clan_id !== "") {
15617
+ writer.uint32(10).string(message.clan_id);
15618
+ }
15619
+ if (message.channel_id !== "") {
15620
+ writer.uint32(18).string(message.channel_id);
15621
+ }
15622
+ if (message.display_name !== "") {
15623
+ writer.uint32(26).string(message.display_name);
15624
+ }
15625
+ if (message.state !== 0) {
15626
+ writer.uint32(32).int32(message.state);
15627
+ }
15628
+ return writer;
15629
+ },
15630
+ decode(input, length) {
15631
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
15632
+ let end = length === void 0 ? reader.len : reader.pos + length;
15633
+ const message = createBaseHandleParticipantMeetStateEvent();
15634
+ while (reader.pos < end) {
15635
+ const tag = reader.uint32();
15636
+ switch (tag >>> 3) {
15637
+ case 1:
15638
+ if (tag !== 10) {
15639
+ break;
15640
+ }
15641
+ message.clan_id = reader.string();
15642
+ continue;
15643
+ case 2:
15644
+ if (tag !== 18) {
15645
+ break;
15646
+ }
15647
+ message.channel_id = reader.string();
15648
+ continue;
15649
+ case 3:
15650
+ if (tag !== 26) {
15651
+ break;
15652
+ }
15653
+ message.display_name = reader.string();
15654
+ continue;
15655
+ case 4:
15656
+ if (tag !== 32) {
15657
+ break;
15658
+ }
15659
+ message.state = reader.int32();
15660
+ continue;
15661
+ }
15662
+ if ((tag & 7) === 4 || tag === 0) {
15663
+ break;
15664
+ }
15665
+ reader.skipType(tag & 7);
15666
+ }
15667
+ return message;
15668
+ },
15669
+ fromJSON(object) {
15670
+ return {
15671
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
15672
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15673
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
15674
+ state: isSet4(object.state) ? globalThis.Number(object.state) : 0
15675
+ };
15676
+ },
15677
+ toJSON(message) {
15678
+ const obj = {};
15679
+ if (message.clan_id !== "") {
15680
+ obj.clan_id = message.clan_id;
15681
+ }
15682
+ if (message.channel_id !== "") {
15683
+ obj.channel_id = message.channel_id;
15684
+ }
15685
+ if (message.display_name !== "") {
15686
+ obj.display_name = message.display_name;
15687
+ }
15688
+ if (message.state !== 0) {
15689
+ obj.state = Math.round(message.state);
15690
+ }
15691
+ return obj;
15692
+ },
15693
+ create(base) {
15694
+ return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
15695
+ },
15696
+ fromPartial(object) {
15697
+ var _a, _b, _c, _d;
15698
+ const message = createBaseHandleParticipantMeetStateEvent();
15699
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
15700
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
15701
+ message.display_name = (_c = object.display_name) != null ? _c : "";
15702
+ message.state = (_d = object.state) != null ? _d : 0;
15703
+ return message;
15704
+ }
15705
+ };
15594
15706
  function toTimestamp2(date) {
15595
15707
  const seconds = Math.trunc(date.getTime() / 1e3);
15596
15708
  const nanos = date.getTime() % 1e3 * 1e6;
@@ -6620,7 +6620,8 @@ function createBaseEnvelope() {
6620
6620
  join_channel_app_data: void 0,
6621
6621
  canvas_event: void 0,
6622
6622
  unpin_message_event: void 0,
6623
- category_event: void 0
6623
+ category_event: void 0,
6624
+ handle_participant_meet_state_event: void 0
6624
6625
  };
6625
6626
  }
6626
6627
  var Envelope = {
@@ -6853,6 +6854,9 @@ var Envelope = {
6853
6854
  if (message.category_event !== void 0) {
6854
6855
  CategoryEvent.encode(message.category_event, writer.uint32(610).fork()).ldelim();
6855
6856
  }
6857
+ if (message.handle_participant_meet_state_event !== void 0) {
6858
+ HandleParticipantMeetStateEvent.encode(message.handle_participant_meet_state_event, writer.uint32(618).fork()).ldelim();
6859
+ }
6856
6860
  return writer;
6857
6861
  },
6858
6862
  decode(input, length) {
@@ -7318,6 +7322,12 @@ var Envelope = {
7318
7322
  }
7319
7323
  message.category_event = CategoryEvent.decode(reader, reader.uint32());
7320
7324
  continue;
7325
+ case 77:
7326
+ if (tag !== 618) {
7327
+ break;
7328
+ }
7329
+ message.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.decode(reader, reader.uint32());
7330
+ continue;
7321
7331
  }
7322
7332
  if ((tag & 7) === 4 || tag === 0) {
7323
7333
  break;
@@ -7403,7 +7413,8 @@ var Envelope = {
7403
7413
  join_channel_app_data: isSet4(object.join_channel_app_data) ? JoinChannelAppData.fromJSON(object.join_channel_app_data) : void 0,
7404
7414
  canvas_event: isSet4(object.canvas_event) ? ChannelCanvas.fromJSON(object.canvas_event) : void 0,
7405
7415
  unpin_message_event: isSet4(object.unpin_message_event) ? UnpinMessageEvent.fromJSON(object.unpin_message_event) : void 0,
7406
- category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0
7416
+ category_event: isSet4(object.category_event) ? CategoryEvent.fromJSON(object.category_event) : void 0,
7417
+ handle_participant_meet_state_event: isSet4(object.handle_participant_meet_state_event) ? HandleParticipantMeetStateEvent.fromJSON(object.handle_participant_meet_state_event) : void 0
7407
7418
  };
7408
7419
  },
7409
7420
  toJSON(message) {
@@ -7636,6 +7647,11 @@ var Envelope = {
7636
7647
  if (message.category_event !== void 0) {
7637
7648
  obj.category_event = CategoryEvent.toJSON(message.category_event);
7638
7649
  }
7650
+ if (message.handle_participant_meet_state_event !== void 0) {
7651
+ obj.handle_participant_meet_state_event = HandleParticipantMeetStateEvent.toJSON(
7652
+ message.handle_participant_meet_state_event
7653
+ );
7654
+ }
7639
7655
  return obj;
7640
7656
  },
7641
7657
  create(base) {
@@ -7720,6 +7736,7 @@ var Envelope = {
7720
7736
  message.canvas_event = object.canvas_event !== void 0 && object.canvas_event !== null ? ChannelCanvas.fromPartial(object.canvas_event) : void 0;
7721
7737
  message.unpin_message_event = object.unpin_message_event !== void 0 && object.unpin_message_event !== null ? UnpinMessageEvent.fromPartial(object.unpin_message_event) : void 0;
7722
7738
  message.category_event = object.category_event !== void 0 && object.category_event !== null ? CategoryEvent.fromPartial(object.category_event) : void 0;
7739
+ message.handle_participant_meet_state_event = object.handle_participant_meet_state_event !== void 0 && object.handle_participant_meet_state_event !== null ? HandleParticipantMeetStateEvent.fromPartial(object.handle_participant_meet_state_event) : void 0;
7723
7740
  return message;
7724
7741
  }
7725
7742
  };
@@ -15578,6 +15595,101 @@ var UnpinMessageEvent = {
15578
15595
  return message;
15579
15596
  }
15580
15597
  };
15598
+ function createBaseHandleParticipantMeetStateEvent() {
15599
+ return { clan_id: "", channel_id: "", display_name: "", state: 0 };
15600
+ }
15601
+ var HandleParticipantMeetStateEvent = {
15602
+ encode(message, writer = import_minimal5.default.Writer.create()) {
15603
+ if (message.clan_id !== "") {
15604
+ writer.uint32(10).string(message.clan_id);
15605
+ }
15606
+ if (message.channel_id !== "") {
15607
+ writer.uint32(18).string(message.channel_id);
15608
+ }
15609
+ if (message.display_name !== "") {
15610
+ writer.uint32(26).string(message.display_name);
15611
+ }
15612
+ if (message.state !== 0) {
15613
+ writer.uint32(32).int32(message.state);
15614
+ }
15615
+ return writer;
15616
+ },
15617
+ decode(input, length) {
15618
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
15619
+ let end = length === void 0 ? reader.len : reader.pos + length;
15620
+ const message = createBaseHandleParticipantMeetStateEvent();
15621
+ while (reader.pos < end) {
15622
+ const tag = reader.uint32();
15623
+ switch (tag >>> 3) {
15624
+ case 1:
15625
+ if (tag !== 10) {
15626
+ break;
15627
+ }
15628
+ message.clan_id = reader.string();
15629
+ continue;
15630
+ case 2:
15631
+ if (tag !== 18) {
15632
+ break;
15633
+ }
15634
+ message.channel_id = reader.string();
15635
+ continue;
15636
+ case 3:
15637
+ if (tag !== 26) {
15638
+ break;
15639
+ }
15640
+ message.display_name = reader.string();
15641
+ continue;
15642
+ case 4:
15643
+ if (tag !== 32) {
15644
+ break;
15645
+ }
15646
+ message.state = reader.int32();
15647
+ continue;
15648
+ }
15649
+ if ((tag & 7) === 4 || tag === 0) {
15650
+ break;
15651
+ }
15652
+ reader.skipType(tag & 7);
15653
+ }
15654
+ return message;
15655
+ },
15656
+ fromJSON(object) {
15657
+ return {
15658
+ clan_id: isSet4(object.clan_id) ? globalThis.String(object.clan_id) : "",
15659
+ channel_id: isSet4(object.channel_id) ? globalThis.String(object.channel_id) : "",
15660
+ display_name: isSet4(object.display_name) ? globalThis.String(object.display_name) : "",
15661
+ state: isSet4(object.state) ? globalThis.Number(object.state) : 0
15662
+ };
15663
+ },
15664
+ toJSON(message) {
15665
+ const obj = {};
15666
+ if (message.clan_id !== "") {
15667
+ obj.clan_id = message.clan_id;
15668
+ }
15669
+ if (message.channel_id !== "") {
15670
+ obj.channel_id = message.channel_id;
15671
+ }
15672
+ if (message.display_name !== "") {
15673
+ obj.display_name = message.display_name;
15674
+ }
15675
+ if (message.state !== 0) {
15676
+ obj.state = Math.round(message.state);
15677
+ }
15678
+ return obj;
15679
+ },
15680
+ create(base) {
15681
+ return HandleParticipantMeetStateEvent.fromPartial(base != null ? base : {});
15682
+ },
15683
+ fromPartial(object) {
15684
+ var _a, _b, _c, _d;
15685
+ const message = createBaseHandleParticipantMeetStateEvent();
15686
+ message.clan_id = (_a = object.clan_id) != null ? _a : "";
15687
+ message.channel_id = (_b = object.channel_id) != null ? _b : "";
15688
+ message.display_name = (_c = object.display_name) != null ? _c : "";
15689
+ message.state = (_d = object.state) != null ? _d : 0;
15690
+ return message;
15691
+ }
15692
+ };
15581
15693
  function toTimestamp2(date) {
15582
15694
  const seconds = Math.trunc(date.getTime() / 1e3);
15583
15695
  const nanos = date.getTime() % 1e3 * 1e6;