mezon-js-protobuf 1.5.82 → 1.5.84

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.
package/api/api.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.2
4
- // protoc v5.27.3
3
+ // protoc-gen-ts_proto v1.181.1
4
+ // protoc v5.27.2
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -1696,8 +1696,6 @@ export interface ClanProfile {
1696
1696
  avatar: string;
1697
1697
  /** id clan */
1698
1698
  clan_id: string;
1699
- /** badge count */
1700
- badge_count: number;
1701
1699
  }
1702
1700
 
1703
1701
  /** information user by clan requset */
@@ -3075,6 +3073,45 @@ export interface PermissionRoleChannelListEventResponse {
3075
3073
  permission_role_channel: PermissionRoleChannel[];
3076
3074
  }
3077
3075
 
3076
+ export interface ChannelSettingListRequest {
3077
+ clan_id: string;
3078
+ parent_id: string;
3079
+ category_id: string;
3080
+ private: number | undefined;
3081
+ active: number | undefined;
3082
+ status: number | undefined;
3083
+ type: number | undefined;
3084
+ limit: number | undefined;
3085
+ page: number | undefined;
3086
+ }
3087
+
3088
+ export interface ChannelSettingItem {
3089
+ id: string;
3090
+ creatorId: string;
3091
+ parentId: string;
3092
+ channelLabel: string;
3093
+ categoryId: string;
3094
+ meetingCode: string;
3095
+ channelPrivate: number;
3096
+ channelType: number;
3097
+ active: number;
3098
+ user_ids: string[];
3099
+ }
3100
+
3101
+ export interface ChannelSettingListResponse {
3102
+ clan_id: string;
3103
+ channel_setting_list: ChannelSettingItem[];
3104
+ }
3105
+
3106
+ export interface MarkAsReadRequest {
3107
+ /** channel id */
3108
+ channel_id: string;
3109
+ /** category_id */
3110
+ category_id: string;
3111
+ /** clan id */
3112
+ clan_id: string;
3113
+ }
3114
+
3078
3115
  function createBaseAccount(): Account {
3079
3116
  return {
3080
3117
  user: undefined,
@@ -14637,7 +14674,7 @@ export const LinkInviteUser = {
14637
14674
  };
14638
14675
 
14639
14676
  function createBaseClanProfile(): ClanProfile {
14640
- return { user_id: "", nick_name: "", avatar: "", clan_id: "", badge_count: 0 };
14677
+ return { user_id: "", nick_name: "", avatar: "", clan_id: "" };
14641
14678
  }
14642
14679
 
14643
14680
  export const ClanProfile = {
@@ -14654,9 +14691,6 @@ export const ClanProfile = {
14654
14691
  if (message.clan_id !== "") {
14655
14692
  writer.uint32(34).string(message.clan_id);
14656
14693
  }
14657
- if (message.badge_count !== 0) {
14658
- writer.uint32(40).int32(message.badge_count);
14659
- }
14660
14694
  return writer;
14661
14695
  },
14662
14696
 
@@ -14695,13 +14729,6 @@ export const ClanProfile = {
14695
14729
 
14696
14730
  message.clan_id = reader.string();
14697
14731
  continue;
14698
- case 5:
14699
- if (tag !== 40) {
14700
- break;
14701
- }
14702
-
14703
- message.badge_count = reader.int32();
14704
- continue;
14705
14732
  }
14706
14733
  if ((tag & 7) === 4 || tag === 0) {
14707
14734
  break;
@@ -14717,7 +14744,6 @@ export const ClanProfile = {
14717
14744
  nick_name: isSet(object.nick_name) ? globalThis.String(object.nick_name) : "",
14718
14745
  avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
14719
14746
  clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
14720
- badge_count: isSet(object.badge_count) ? globalThis.Number(object.badge_count) : 0,
14721
14747
  };
14722
14748
  },
14723
14749
 
@@ -14735,9 +14761,6 @@ export const ClanProfile = {
14735
14761
  if (message.clan_id !== "") {
14736
14762
  obj.clan_id = message.clan_id;
14737
14763
  }
14738
- if (message.badge_count !== 0) {
14739
- obj.badge_count = Math.round(message.badge_count);
14740
- }
14741
14764
  return obj;
14742
14765
  },
14743
14766
 
@@ -14750,7 +14773,6 @@ export const ClanProfile = {
14750
14773
  message.nick_name = object.nick_name ?? "";
14751
14774
  message.avatar = object.avatar ?? "";
14752
14775
  message.clan_id = object.clan_id ?? "";
14753
- message.badge_count = object.badge_count ?? 0;
14754
14776
  return message;
14755
14777
  },
14756
14778
  };
@@ -28988,6 +29010,565 @@ export const PermissionRoleChannelListEventResponse = {
28988
29010
  },
28989
29011
  };
28990
29012
 
29013
+ function createBaseChannelSettingListRequest(): ChannelSettingListRequest {
29014
+ return {
29015
+ clan_id: "",
29016
+ parent_id: "",
29017
+ category_id: "",
29018
+ private: undefined,
29019
+ active: undefined,
29020
+ status: undefined,
29021
+ type: undefined,
29022
+ limit: undefined,
29023
+ page: undefined,
29024
+ };
29025
+ }
29026
+
29027
+ export const ChannelSettingListRequest = {
29028
+ encode(message: ChannelSettingListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29029
+ if (message.clan_id !== "") {
29030
+ writer.uint32(10).string(message.clan_id);
29031
+ }
29032
+ if (message.parent_id !== "") {
29033
+ writer.uint32(18).string(message.parent_id);
29034
+ }
29035
+ if (message.category_id !== "") {
29036
+ writer.uint32(26).string(message.category_id);
29037
+ }
29038
+ if (message.private !== undefined) {
29039
+ Int32Value.encode({ value: message.private! }, writer.uint32(34).fork()).ldelim();
29040
+ }
29041
+ if (message.active !== undefined) {
29042
+ Int32Value.encode({ value: message.active! }, writer.uint32(42).fork()).ldelim();
29043
+ }
29044
+ if (message.status !== undefined) {
29045
+ Int32Value.encode({ value: message.status! }, writer.uint32(50).fork()).ldelim();
29046
+ }
29047
+ if (message.type !== undefined) {
29048
+ Int32Value.encode({ value: message.type! }, writer.uint32(58).fork()).ldelim();
29049
+ }
29050
+ if (message.limit !== undefined) {
29051
+ Int32Value.encode({ value: message.limit! }, writer.uint32(66).fork()).ldelim();
29052
+ }
29053
+ if (message.page !== undefined) {
29054
+ Int32Value.encode({ value: message.page! }, writer.uint32(74).fork()).ldelim();
29055
+ }
29056
+ return writer;
29057
+ },
29058
+
29059
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelSettingListRequest {
29060
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29061
+ let end = length === undefined ? reader.len : reader.pos + length;
29062
+ const message = createBaseChannelSettingListRequest();
29063
+ while (reader.pos < end) {
29064
+ const tag = reader.uint32();
29065
+ switch (tag >>> 3) {
29066
+ case 1:
29067
+ if (tag !== 10) {
29068
+ break;
29069
+ }
29070
+
29071
+ message.clan_id = reader.string();
29072
+ continue;
29073
+ case 2:
29074
+ if (tag !== 18) {
29075
+ break;
29076
+ }
29077
+
29078
+ message.parent_id = reader.string();
29079
+ continue;
29080
+ case 3:
29081
+ if (tag !== 26) {
29082
+ break;
29083
+ }
29084
+
29085
+ message.category_id = reader.string();
29086
+ continue;
29087
+ case 4:
29088
+ if (tag !== 34) {
29089
+ break;
29090
+ }
29091
+
29092
+ message.private = Int32Value.decode(reader, reader.uint32()).value;
29093
+ continue;
29094
+ case 5:
29095
+ if (tag !== 42) {
29096
+ break;
29097
+ }
29098
+
29099
+ message.active = Int32Value.decode(reader, reader.uint32()).value;
29100
+ continue;
29101
+ case 6:
29102
+ if (tag !== 50) {
29103
+ break;
29104
+ }
29105
+
29106
+ message.status = Int32Value.decode(reader, reader.uint32()).value;
29107
+ continue;
29108
+ case 7:
29109
+ if (tag !== 58) {
29110
+ break;
29111
+ }
29112
+
29113
+ message.type = Int32Value.decode(reader, reader.uint32()).value;
29114
+ continue;
29115
+ case 8:
29116
+ if (tag !== 66) {
29117
+ break;
29118
+ }
29119
+
29120
+ message.limit = Int32Value.decode(reader, reader.uint32()).value;
29121
+ continue;
29122
+ case 9:
29123
+ if (tag !== 74) {
29124
+ break;
29125
+ }
29126
+
29127
+ message.page = Int32Value.decode(reader, reader.uint32()).value;
29128
+ continue;
29129
+ }
29130
+ if ((tag & 7) === 4 || tag === 0) {
29131
+ break;
29132
+ }
29133
+ reader.skipType(tag & 7);
29134
+ }
29135
+ return message;
29136
+ },
29137
+
29138
+ fromJSON(object: any): ChannelSettingListRequest {
29139
+ return {
29140
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29141
+ parent_id: isSet(object.parent_id) ? globalThis.String(object.parent_id) : "",
29142
+ category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
29143
+ private: isSet(object.private) ? Number(object.private) : undefined,
29144
+ active: isSet(object.active) ? Number(object.active) : undefined,
29145
+ status: isSet(object.status) ? Number(object.status) : undefined,
29146
+ type: isSet(object.type) ? Number(object.type) : undefined,
29147
+ limit: isSet(object.limit) ? Number(object.limit) : undefined,
29148
+ page: isSet(object.page) ? Number(object.page) : undefined,
29149
+ };
29150
+ },
29151
+
29152
+ toJSON(message: ChannelSettingListRequest): unknown {
29153
+ const obj: any = {};
29154
+ if (message.clan_id !== "") {
29155
+ obj.clan_id = message.clan_id;
29156
+ }
29157
+ if (message.parent_id !== "") {
29158
+ obj.parent_id = message.parent_id;
29159
+ }
29160
+ if (message.category_id !== "") {
29161
+ obj.category_id = message.category_id;
29162
+ }
29163
+ if (message.private !== undefined) {
29164
+ obj.private = message.private;
29165
+ }
29166
+ if (message.active !== undefined) {
29167
+ obj.active = message.active;
29168
+ }
29169
+ if (message.status !== undefined) {
29170
+ obj.status = message.status;
29171
+ }
29172
+ if (message.type !== undefined) {
29173
+ obj.type = message.type;
29174
+ }
29175
+ if (message.limit !== undefined) {
29176
+ obj.limit = message.limit;
29177
+ }
29178
+ if (message.page !== undefined) {
29179
+ obj.page = message.page;
29180
+ }
29181
+ return obj;
29182
+ },
29183
+
29184
+ create<I extends Exact<DeepPartial<ChannelSettingListRequest>, I>>(base?: I): ChannelSettingListRequest {
29185
+ return ChannelSettingListRequest.fromPartial(base ?? ({} as any));
29186
+ },
29187
+ fromPartial<I extends Exact<DeepPartial<ChannelSettingListRequest>, I>>(object: I): ChannelSettingListRequest {
29188
+ const message = createBaseChannelSettingListRequest();
29189
+ message.clan_id = object.clan_id ?? "";
29190
+ message.parent_id = object.parent_id ?? "";
29191
+ message.category_id = object.category_id ?? "";
29192
+ message.private = object.private ?? undefined;
29193
+ message.active = object.active ?? undefined;
29194
+ message.status = object.status ?? undefined;
29195
+ message.type = object.type ?? undefined;
29196
+ message.limit = object.limit ?? undefined;
29197
+ message.page = object.page ?? undefined;
29198
+ return message;
29199
+ },
29200
+ };
29201
+
29202
+ function createBaseChannelSettingItem(): ChannelSettingItem {
29203
+ return {
29204
+ id: "",
29205
+ creatorId: "",
29206
+ parentId: "",
29207
+ channelLabel: "",
29208
+ categoryId: "",
29209
+ meetingCode: "",
29210
+ channelPrivate: 0,
29211
+ channelType: 0,
29212
+ active: 0,
29213
+ user_ids: [],
29214
+ };
29215
+ }
29216
+
29217
+ export const ChannelSettingItem = {
29218
+ encode(message: ChannelSettingItem, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29219
+ if (message.id !== "") {
29220
+ writer.uint32(10).string(message.id);
29221
+ }
29222
+ if (message.creatorId !== "") {
29223
+ writer.uint32(18).string(message.creatorId);
29224
+ }
29225
+ if (message.parentId !== "") {
29226
+ writer.uint32(26).string(message.parentId);
29227
+ }
29228
+ if (message.channelLabel !== "") {
29229
+ writer.uint32(34).string(message.channelLabel);
29230
+ }
29231
+ if (message.categoryId !== "") {
29232
+ writer.uint32(42).string(message.categoryId);
29233
+ }
29234
+ if (message.meetingCode !== "") {
29235
+ writer.uint32(50).string(message.meetingCode);
29236
+ }
29237
+ if (message.channelPrivate !== 0) {
29238
+ writer.uint32(56).int32(message.channelPrivate);
29239
+ }
29240
+ if (message.channelType !== 0) {
29241
+ writer.uint32(64).int32(message.channelType);
29242
+ }
29243
+ if (message.active !== 0) {
29244
+ writer.uint32(72).int32(message.active);
29245
+ }
29246
+ for (const v of message.user_ids) {
29247
+ writer.uint32(82).string(v!);
29248
+ }
29249
+ return writer;
29250
+ },
29251
+
29252
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelSettingItem {
29253
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29254
+ let end = length === undefined ? reader.len : reader.pos + length;
29255
+ const message = createBaseChannelSettingItem();
29256
+ while (reader.pos < end) {
29257
+ const tag = reader.uint32();
29258
+ switch (tag >>> 3) {
29259
+ case 1:
29260
+ if (tag !== 10) {
29261
+ break;
29262
+ }
29263
+
29264
+ message.id = reader.string();
29265
+ continue;
29266
+ case 2:
29267
+ if (tag !== 18) {
29268
+ break;
29269
+ }
29270
+
29271
+ message.creatorId = reader.string();
29272
+ continue;
29273
+ case 3:
29274
+ if (tag !== 26) {
29275
+ break;
29276
+ }
29277
+
29278
+ message.parentId = reader.string();
29279
+ continue;
29280
+ case 4:
29281
+ if (tag !== 34) {
29282
+ break;
29283
+ }
29284
+
29285
+ message.channelLabel = reader.string();
29286
+ continue;
29287
+ case 5:
29288
+ if (tag !== 42) {
29289
+ break;
29290
+ }
29291
+
29292
+ message.categoryId = reader.string();
29293
+ continue;
29294
+ case 6:
29295
+ if (tag !== 50) {
29296
+ break;
29297
+ }
29298
+
29299
+ message.meetingCode = reader.string();
29300
+ continue;
29301
+ case 7:
29302
+ if (tag !== 56) {
29303
+ break;
29304
+ }
29305
+
29306
+ message.channelPrivate = reader.int32();
29307
+ continue;
29308
+ case 8:
29309
+ if (tag !== 64) {
29310
+ break;
29311
+ }
29312
+
29313
+ message.channelType = reader.int32();
29314
+ continue;
29315
+ case 9:
29316
+ if (tag !== 72) {
29317
+ break;
29318
+ }
29319
+
29320
+ message.active = reader.int32();
29321
+ continue;
29322
+ case 10:
29323
+ if (tag !== 82) {
29324
+ break;
29325
+ }
29326
+
29327
+ message.user_ids.push(reader.string());
29328
+ continue;
29329
+ }
29330
+ if ((tag & 7) === 4 || tag === 0) {
29331
+ break;
29332
+ }
29333
+ reader.skipType(tag & 7);
29334
+ }
29335
+ return message;
29336
+ },
29337
+
29338
+ fromJSON(object: any): ChannelSettingItem {
29339
+ return {
29340
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
29341
+ creatorId: isSet(object.creatorId) ? globalThis.String(object.creatorId) : "",
29342
+ parentId: isSet(object.parentId) ? globalThis.String(object.parentId) : "",
29343
+ channelLabel: isSet(object.channelLabel) ? globalThis.String(object.channelLabel) : "",
29344
+ categoryId: isSet(object.categoryId) ? globalThis.String(object.categoryId) : "",
29345
+ meetingCode: isSet(object.meetingCode) ? globalThis.String(object.meetingCode) : "",
29346
+ channelPrivate: isSet(object.channelPrivate) ? globalThis.Number(object.channelPrivate) : 0,
29347
+ channelType: isSet(object.channelType) ? globalThis.Number(object.channelType) : 0,
29348
+ active: isSet(object.active) ? globalThis.Number(object.active) : 0,
29349
+ user_ids: globalThis.Array.isArray(object?.user_ids) ? object.user_ids.map((e: any) => globalThis.String(e)) : [],
29350
+ };
29351
+ },
29352
+
29353
+ toJSON(message: ChannelSettingItem): unknown {
29354
+ const obj: any = {};
29355
+ if (message.id !== "") {
29356
+ obj.id = message.id;
29357
+ }
29358
+ if (message.creatorId !== "") {
29359
+ obj.creatorId = message.creatorId;
29360
+ }
29361
+ if (message.parentId !== "") {
29362
+ obj.parentId = message.parentId;
29363
+ }
29364
+ if (message.channelLabel !== "") {
29365
+ obj.channelLabel = message.channelLabel;
29366
+ }
29367
+ if (message.categoryId !== "") {
29368
+ obj.categoryId = message.categoryId;
29369
+ }
29370
+ if (message.meetingCode !== "") {
29371
+ obj.meetingCode = message.meetingCode;
29372
+ }
29373
+ if (message.channelPrivate !== 0) {
29374
+ obj.channelPrivate = Math.round(message.channelPrivate);
29375
+ }
29376
+ if (message.channelType !== 0) {
29377
+ obj.channelType = Math.round(message.channelType);
29378
+ }
29379
+ if (message.active !== 0) {
29380
+ obj.active = Math.round(message.active);
29381
+ }
29382
+ if (message.user_ids?.length) {
29383
+ obj.user_ids = message.user_ids;
29384
+ }
29385
+ return obj;
29386
+ },
29387
+
29388
+ create<I extends Exact<DeepPartial<ChannelSettingItem>, I>>(base?: I): ChannelSettingItem {
29389
+ return ChannelSettingItem.fromPartial(base ?? ({} as any));
29390
+ },
29391
+ fromPartial<I extends Exact<DeepPartial<ChannelSettingItem>, I>>(object: I): ChannelSettingItem {
29392
+ const message = createBaseChannelSettingItem();
29393
+ message.id = object.id ?? "";
29394
+ message.creatorId = object.creatorId ?? "";
29395
+ message.parentId = object.parentId ?? "";
29396
+ message.channelLabel = object.channelLabel ?? "";
29397
+ message.categoryId = object.categoryId ?? "";
29398
+ message.meetingCode = object.meetingCode ?? "";
29399
+ message.channelPrivate = object.channelPrivate ?? 0;
29400
+ message.channelType = object.channelType ?? 0;
29401
+ message.active = object.active ?? 0;
29402
+ message.user_ids = object.user_ids?.map((e) => e) || [];
29403
+ return message;
29404
+ },
29405
+ };
29406
+
29407
+ function createBaseChannelSettingListResponse(): ChannelSettingListResponse {
29408
+ return { clan_id: "", channel_setting_list: [] };
29409
+ }
29410
+
29411
+ export const ChannelSettingListResponse = {
29412
+ encode(message: ChannelSettingListResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29413
+ if (message.clan_id !== "") {
29414
+ writer.uint32(10).string(message.clan_id);
29415
+ }
29416
+ for (const v of message.channel_setting_list) {
29417
+ ChannelSettingItem.encode(v!, writer.uint32(18).fork()).ldelim();
29418
+ }
29419
+ return writer;
29420
+ },
29421
+
29422
+ decode(input: _m0.Reader | Uint8Array, length?: number): ChannelSettingListResponse {
29423
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29424
+ let end = length === undefined ? reader.len : reader.pos + length;
29425
+ const message = createBaseChannelSettingListResponse();
29426
+ while (reader.pos < end) {
29427
+ const tag = reader.uint32();
29428
+ switch (tag >>> 3) {
29429
+ case 1:
29430
+ if (tag !== 10) {
29431
+ break;
29432
+ }
29433
+
29434
+ message.clan_id = reader.string();
29435
+ continue;
29436
+ case 2:
29437
+ if (tag !== 18) {
29438
+ break;
29439
+ }
29440
+
29441
+ message.channel_setting_list.push(ChannelSettingItem.decode(reader, reader.uint32()));
29442
+ continue;
29443
+ }
29444
+ if ((tag & 7) === 4 || tag === 0) {
29445
+ break;
29446
+ }
29447
+ reader.skipType(tag & 7);
29448
+ }
29449
+ return message;
29450
+ },
29451
+
29452
+ fromJSON(object: any): ChannelSettingListResponse {
29453
+ return {
29454
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29455
+ channel_setting_list: globalThis.Array.isArray(object?.channel_setting_list)
29456
+ ? object.channel_setting_list.map((e: any) => ChannelSettingItem.fromJSON(e))
29457
+ : [],
29458
+ };
29459
+ },
29460
+
29461
+ toJSON(message: ChannelSettingListResponse): unknown {
29462
+ const obj: any = {};
29463
+ if (message.clan_id !== "") {
29464
+ obj.clan_id = message.clan_id;
29465
+ }
29466
+ if (message.channel_setting_list?.length) {
29467
+ obj.channel_setting_list = message.channel_setting_list.map((e) => ChannelSettingItem.toJSON(e));
29468
+ }
29469
+ return obj;
29470
+ },
29471
+
29472
+ create<I extends Exact<DeepPartial<ChannelSettingListResponse>, I>>(base?: I): ChannelSettingListResponse {
29473
+ return ChannelSettingListResponse.fromPartial(base ?? ({} as any));
29474
+ },
29475
+ fromPartial<I extends Exact<DeepPartial<ChannelSettingListResponse>, I>>(object: I): ChannelSettingListResponse {
29476
+ const message = createBaseChannelSettingListResponse();
29477
+ message.clan_id = object.clan_id ?? "";
29478
+ message.channel_setting_list = object.channel_setting_list?.map((e) => ChannelSettingItem.fromPartial(e)) || [];
29479
+ return message;
29480
+ },
29481
+ };
29482
+
29483
+ function createBaseMarkAsReadRequest(): MarkAsReadRequest {
29484
+ return { channel_id: "", category_id: "", clan_id: "" };
29485
+ }
29486
+
29487
+ export const MarkAsReadRequest = {
29488
+ encode(message: MarkAsReadRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
29489
+ if (message.channel_id !== "") {
29490
+ writer.uint32(10).string(message.channel_id);
29491
+ }
29492
+ if (message.category_id !== "") {
29493
+ writer.uint32(18).string(message.category_id);
29494
+ }
29495
+ if (message.clan_id !== "") {
29496
+ writer.uint32(26).string(message.clan_id);
29497
+ }
29498
+ return writer;
29499
+ },
29500
+
29501
+ decode(input: _m0.Reader | Uint8Array, length?: number): MarkAsReadRequest {
29502
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29503
+ let end = length === undefined ? reader.len : reader.pos + length;
29504
+ const message = createBaseMarkAsReadRequest();
29505
+ while (reader.pos < end) {
29506
+ const tag = reader.uint32();
29507
+ switch (tag >>> 3) {
29508
+ case 1:
29509
+ if (tag !== 10) {
29510
+ break;
29511
+ }
29512
+
29513
+ message.channel_id = reader.string();
29514
+ continue;
29515
+ case 2:
29516
+ if (tag !== 18) {
29517
+ break;
29518
+ }
29519
+
29520
+ message.category_id = reader.string();
29521
+ continue;
29522
+ case 3:
29523
+ if (tag !== 26) {
29524
+ break;
29525
+ }
29526
+
29527
+ message.clan_id = reader.string();
29528
+ continue;
29529
+ }
29530
+ if ((tag & 7) === 4 || tag === 0) {
29531
+ break;
29532
+ }
29533
+ reader.skipType(tag & 7);
29534
+ }
29535
+ return message;
29536
+ },
29537
+
29538
+ fromJSON(object: any): MarkAsReadRequest {
29539
+ return {
29540
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
29541
+ category_id: isSet(object.category_id) ? globalThis.String(object.category_id) : "",
29542
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
29543
+ };
29544
+ },
29545
+
29546
+ toJSON(message: MarkAsReadRequest): unknown {
29547
+ const obj: any = {};
29548
+ if (message.channel_id !== "") {
29549
+ obj.channel_id = message.channel_id;
29550
+ }
29551
+ if (message.category_id !== "") {
29552
+ obj.category_id = message.category_id;
29553
+ }
29554
+ if (message.clan_id !== "") {
29555
+ obj.clan_id = message.clan_id;
29556
+ }
29557
+ return obj;
29558
+ },
29559
+
29560
+ create<I extends Exact<DeepPartial<MarkAsReadRequest>, I>>(base?: I): MarkAsReadRequest {
29561
+ return MarkAsReadRequest.fromPartial(base ?? ({} as any));
29562
+ },
29563
+ fromPartial<I extends Exact<DeepPartial<MarkAsReadRequest>, I>>(object: I): MarkAsReadRequest {
29564
+ const message = createBaseMarkAsReadRequest();
29565
+ message.channel_id = object.channel_id ?? "";
29566
+ message.category_id = object.category_id ?? "";
29567
+ message.clan_id = object.clan_id ?? "";
29568
+ return message;
29569
+ },
29570
+ };
29571
+
28991
29572
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
28992
29573
 
28993
29574
  export type DeepPartial<T> = T extends Builtin ? T