mezon-js-protobuf 1.5.74 → 1.5.76

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
@@ -1841,6 +1841,8 @@ export interface ChannelDescription {
1841
1841
  metadata: string[];
1842
1842
  /** about_me */
1843
1843
  about_me: string[];
1844
+ /** clan_name */
1845
+ clan_name: string;
1844
1846
  }
1845
1847
 
1846
1848
  /** A list of channel description, usually a result of a list operation. */
@@ -2094,6 +2096,12 @@ export interface NotificationChannel {
2094
2096
  channel_id: string;
2095
2097
  }
2096
2098
 
2099
+ /** */
2100
+ export interface NotificationClan {
2101
+ /** */
2102
+ clan_id: string;
2103
+ }
2104
+
2097
2105
  /** */
2098
2106
  export interface NotificationSettingList {
2099
2107
  /** A list of notification setting. */
@@ -2124,6 +2132,54 @@ export interface SetMuteNotificationRequest {
2124
2132
  active: number;
2125
2133
  }
2126
2134
 
2135
+ export interface HashtagDmListRequest {
2136
+ /** user Id */
2137
+ user_id: string[];
2138
+ /** Max number of records to return. Between 1 and 100. */
2139
+ limit: number | undefined;
2140
+ }
2141
+
2142
+ export interface HashtagDmList {
2143
+ hashtag_dm: HashtagDm[];
2144
+ }
2145
+
2146
+ /** hashtagDM */
2147
+ export interface HashtagDm {
2148
+ /** The channel id. */
2149
+ channel_id: string;
2150
+ /** The channel lable */
2151
+ channel_label: string;
2152
+ /** The clan of this channel */
2153
+ clan_id: string;
2154
+ /** The clan name */
2155
+ clan_name: string;
2156
+ /** */
2157
+ meeting_code: string;
2158
+ /** */
2159
+ type: number;
2160
+ /** */
2161
+ channel_private: number;
2162
+ /** */
2163
+ parrent_id: string;
2164
+ }
2165
+
2166
+ export interface NotificationChannelCategorySettingList {
2167
+ notification_channel_category_settings_list: NotificationChannelCategorySetting[];
2168
+ }
2169
+
2170
+ export interface NotificationChannelCategorySetting {
2171
+ /** Notification id */
2172
+ id: string;
2173
+ /** */
2174
+ channel_category_label: string;
2175
+ /** Notification title */
2176
+ notification_setting_type: number;
2177
+ /** */
2178
+ channel_category_title: string;
2179
+ /** */
2180
+ action: number;
2181
+ }
2182
+
2127
2183
  /** set default notification */
2128
2184
  export interface SetDefaultNotificationRequest {
2129
2185
  clan_id: string;
@@ -15465,6 +15521,7 @@ function createBaseChannelDescription(): ChannelDescription {
15465
15521
  update_time_seconds: 0,
15466
15522
  metadata: [],
15467
15523
  about_me: [],
15524
+ clan_name: "",
15468
15525
  };
15469
15526
  }
15470
15527
 
@@ -15544,6 +15601,9 @@ export const ChannelDescription = {
15544
15601
  for (const v of message.about_me) {
15545
15602
  writer.uint32(194).string(v!);
15546
15603
  }
15604
+ if (message.clan_name !== "") {
15605
+ writer.uint32(202).string(message.clan_name);
15606
+ }
15547
15607
  return writer;
15548
15608
  },
15549
15609
 
@@ -15732,6 +15792,13 @@ export const ChannelDescription = {
15732
15792
 
15733
15793
  message.about_me.push(reader.string());
15734
15794
  continue;
15795
+ case 25:
15796
+ if (tag !== 202) {
15797
+ break;
15798
+ }
15799
+
15800
+ message.clan_name = reader.string();
15801
+ continue;
15735
15802
  }
15736
15803
  if ((tag & 7) === 4 || tag === 0) {
15737
15804
  break;
@@ -15775,6 +15842,7 @@ export const ChannelDescription = {
15775
15842
  update_time_seconds: isSet(object.update_time_seconds) ? globalThis.Number(object.update_time_seconds) : 0,
15776
15843
  metadata: globalThis.Array.isArray(object?.metadata) ? object.metadata.map((e: any) => globalThis.String(e)) : [],
15777
15844
  about_me: globalThis.Array.isArray(object?.about_me) ? object.about_me.map((e: any) => globalThis.String(e)) : [],
15845
+ clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
15778
15846
  };
15779
15847
  },
15780
15848
 
@@ -15852,6 +15920,9 @@ export const ChannelDescription = {
15852
15920
  if (message.about_me?.length) {
15853
15921
  obj.about_me = message.about_me;
15854
15922
  }
15923
+ if (message.clan_name !== "") {
15924
+ obj.clan_name = message.clan_name;
15925
+ }
15855
15926
  return obj;
15856
15927
  },
15857
15928
 
@@ -15888,6 +15959,7 @@ export const ChannelDescription = {
15888
15959
  message.update_time_seconds = object.update_time_seconds ?? 0;
15889
15960
  message.metadata = object.metadata?.map((e) => e) || [];
15890
15961
  message.about_me = object.about_me?.map((e) => e) || [];
15962
+ message.clan_name = object.clan_name ?? "";
15891
15963
  return message;
15892
15964
  },
15893
15965
  };
@@ -18343,6 +18415,63 @@ export const NotificationChannel = {
18343
18415
  },
18344
18416
  };
18345
18417
 
18418
+ function createBaseNotificationClan(): NotificationClan {
18419
+ return { clan_id: "" };
18420
+ }
18421
+
18422
+ export const NotificationClan = {
18423
+ encode(message: NotificationClan, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18424
+ if (message.clan_id !== "") {
18425
+ writer.uint32(10).string(message.clan_id);
18426
+ }
18427
+ return writer;
18428
+ },
18429
+
18430
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationClan {
18431
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18432
+ let end = length === undefined ? reader.len : reader.pos + length;
18433
+ const message = createBaseNotificationClan();
18434
+ while (reader.pos < end) {
18435
+ const tag = reader.uint32();
18436
+ switch (tag >>> 3) {
18437
+ case 1:
18438
+ if (tag !== 10) {
18439
+ break;
18440
+ }
18441
+
18442
+ message.clan_id = reader.string();
18443
+ continue;
18444
+ }
18445
+ if ((tag & 7) === 4 || tag === 0) {
18446
+ break;
18447
+ }
18448
+ reader.skipType(tag & 7);
18449
+ }
18450
+ return message;
18451
+ },
18452
+
18453
+ fromJSON(object: any): NotificationClan {
18454
+ return { clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "" };
18455
+ },
18456
+
18457
+ toJSON(message: NotificationClan): unknown {
18458
+ const obj: any = {};
18459
+ if (message.clan_id !== "") {
18460
+ obj.clan_id = message.clan_id;
18461
+ }
18462
+ return obj;
18463
+ },
18464
+
18465
+ create<I extends Exact<DeepPartial<NotificationClan>, I>>(base?: I): NotificationClan {
18466
+ return NotificationClan.fromPartial(base ?? ({} as any));
18467
+ },
18468
+ fromPartial<I extends Exact<DeepPartial<NotificationClan>, I>>(object: I): NotificationClan {
18469
+ const message = createBaseNotificationClan();
18470
+ message.clan_id = object.clan_id ?? "";
18471
+ return message;
18472
+ },
18473
+ };
18474
+
18346
18475
  function createBaseNotificationSettingList(): NotificationSettingList {
18347
18476
  return { notification_setting: [] };
18348
18477
  }
@@ -18656,6 +18785,518 @@ export const SetMuteNotificationRequest = {
18656
18785
  },
18657
18786
  };
18658
18787
 
18788
+ function createBaseHashtagDmListRequest(): HashtagDmListRequest {
18789
+ return { user_id: [], limit: undefined };
18790
+ }
18791
+
18792
+ export const HashtagDmListRequest = {
18793
+ encode(message: HashtagDmListRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18794
+ for (const v of message.user_id) {
18795
+ writer.uint32(10).string(v!);
18796
+ }
18797
+ if (message.limit !== undefined) {
18798
+ Int32Value.encode({ value: message.limit! }, writer.uint32(18).fork()).ldelim();
18799
+ }
18800
+ return writer;
18801
+ },
18802
+
18803
+ decode(input: _m0.Reader | Uint8Array, length?: number): HashtagDmListRequest {
18804
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18805
+ let end = length === undefined ? reader.len : reader.pos + length;
18806
+ const message = createBaseHashtagDmListRequest();
18807
+ while (reader.pos < end) {
18808
+ const tag = reader.uint32();
18809
+ switch (tag >>> 3) {
18810
+ case 1:
18811
+ if (tag !== 10) {
18812
+ break;
18813
+ }
18814
+
18815
+ message.user_id.push(reader.string());
18816
+ continue;
18817
+ case 2:
18818
+ if (tag !== 18) {
18819
+ break;
18820
+ }
18821
+
18822
+ message.limit = Int32Value.decode(reader, reader.uint32()).value;
18823
+ continue;
18824
+ }
18825
+ if ((tag & 7) === 4 || tag === 0) {
18826
+ break;
18827
+ }
18828
+ reader.skipType(tag & 7);
18829
+ }
18830
+ return message;
18831
+ },
18832
+
18833
+ fromJSON(object: any): HashtagDmListRequest {
18834
+ return {
18835
+ user_id: globalThis.Array.isArray(object?.user_id) ? object.user_id.map((e: any) => globalThis.String(e)) : [],
18836
+ limit: isSet(object.limit) ? Number(object.limit) : undefined,
18837
+ };
18838
+ },
18839
+
18840
+ toJSON(message: HashtagDmListRequest): unknown {
18841
+ const obj: any = {};
18842
+ if (message.user_id?.length) {
18843
+ obj.user_id = message.user_id;
18844
+ }
18845
+ if (message.limit !== undefined) {
18846
+ obj.limit = message.limit;
18847
+ }
18848
+ return obj;
18849
+ },
18850
+
18851
+ create<I extends Exact<DeepPartial<HashtagDmListRequest>, I>>(base?: I): HashtagDmListRequest {
18852
+ return HashtagDmListRequest.fromPartial(base ?? ({} as any));
18853
+ },
18854
+ fromPartial<I extends Exact<DeepPartial<HashtagDmListRequest>, I>>(object: I): HashtagDmListRequest {
18855
+ const message = createBaseHashtagDmListRequest();
18856
+ message.user_id = object.user_id?.map((e) => e) || [];
18857
+ message.limit = object.limit ?? undefined;
18858
+ return message;
18859
+ },
18860
+ };
18861
+
18862
+ function createBaseHashtagDmList(): HashtagDmList {
18863
+ return { hashtag_dm: [] };
18864
+ }
18865
+
18866
+ export const HashtagDmList = {
18867
+ encode(message: HashtagDmList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18868
+ for (const v of message.hashtag_dm) {
18869
+ HashtagDm.encode(v!, writer.uint32(10).fork()).ldelim();
18870
+ }
18871
+ return writer;
18872
+ },
18873
+
18874
+ decode(input: _m0.Reader | Uint8Array, length?: number): HashtagDmList {
18875
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18876
+ let end = length === undefined ? reader.len : reader.pos + length;
18877
+ const message = createBaseHashtagDmList();
18878
+ while (reader.pos < end) {
18879
+ const tag = reader.uint32();
18880
+ switch (tag >>> 3) {
18881
+ case 1:
18882
+ if (tag !== 10) {
18883
+ break;
18884
+ }
18885
+
18886
+ message.hashtag_dm.push(HashtagDm.decode(reader, reader.uint32()));
18887
+ continue;
18888
+ }
18889
+ if ((tag & 7) === 4 || tag === 0) {
18890
+ break;
18891
+ }
18892
+ reader.skipType(tag & 7);
18893
+ }
18894
+ return message;
18895
+ },
18896
+
18897
+ fromJSON(object: any): HashtagDmList {
18898
+ return {
18899
+ hashtag_dm: globalThis.Array.isArray(object?.hashtag_dm)
18900
+ ? object.hashtag_dm.map((e: any) => HashtagDm.fromJSON(e))
18901
+ : [],
18902
+ };
18903
+ },
18904
+
18905
+ toJSON(message: HashtagDmList): unknown {
18906
+ const obj: any = {};
18907
+ if (message.hashtag_dm?.length) {
18908
+ obj.hashtag_dm = message.hashtag_dm.map((e) => HashtagDm.toJSON(e));
18909
+ }
18910
+ return obj;
18911
+ },
18912
+
18913
+ create<I extends Exact<DeepPartial<HashtagDmList>, I>>(base?: I): HashtagDmList {
18914
+ return HashtagDmList.fromPartial(base ?? ({} as any));
18915
+ },
18916
+ fromPartial<I extends Exact<DeepPartial<HashtagDmList>, I>>(object: I): HashtagDmList {
18917
+ const message = createBaseHashtagDmList();
18918
+ message.hashtag_dm = object.hashtag_dm?.map((e) => HashtagDm.fromPartial(e)) || [];
18919
+ return message;
18920
+ },
18921
+ };
18922
+
18923
+ function createBaseHashtagDm(): HashtagDm {
18924
+ return {
18925
+ channel_id: "",
18926
+ channel_label: "",
18927
+ clan_id: "",
18928
+ clan_name: "",
18929
+ meeting_code: "",
18930
+ type: 0,
18931
+ channel_private: 0,
18932
+ parrent_id: "",
18933
+ };
18934
+ }
18935
+
18936
+ export const HashtagDm = {
18937
+ encode(message: HashtagDm, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
18938
+ if (message.channel_id !== "") {
18939
+ writer.uint32(10).string(message.channel_id);
18940
+ }
18941
+ if (message.channel_label !== "") {
18942
+ writer.uint32(18).string(message.channel_label);
18943
+ }
18944
+ if (message.clan_id !== "") {
18945
+ writer.uint32(26).string(message.clan_id);
18946
+ }
18947
+ if (message.clan_name !== "") {
18948
+ writer.uint32(34).string(message.clan_name);
18949
+ }
18950
+ if (message.meeting_code !== "") {
18951
+ writer.uint32(42).string(message.meeting_code);
18952
+ }
18953
+ if (message.type !== 0) {
18954
+ writer.uint32(48).int32(message.type);
18955
+ }
18956
+ if (message.channel_private !== 0) {
18957
+ writer.uint32(56).int32(message.channel_private);
18958
+ }
18959
+ if (message.parrent_id !== "") {
18960
+ writer.uint32(66).string(message.parrent_id);
18961
+ }
18962
+ return writer;
18963
+ },
18964
+
18965
+ decode(input: _m0.Reader | Uint8Array, length?: number): HashtagDm {
18966
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
18967
+ let end = length === undefined ? reader.len : reader.pos + length;
18968
+ const message = createBaseHashtagDm();
18969
+ while (reader.pos < end) {
18970
+ const tag = reader.uint32();
18971
+ switch (tag >>> 3) {
18972
+ case 1:
18973
+ if (tag !== 10) {
18974
+ break;
18975
+ }
18976
+
18977
+ message.channel_id = reader.string();
18978
+ continue;
18979
+ case 2:
18980
+ if (tag !== 18) {
18981
+ break;
18982
+ }
18983
+
18984
+ message.channel_label = reader.string();
18985
+ continue;
18986
+ case 3:
18987
+ if (tag !== 26) {
18988
+ break;
18989
+ }
18990
+
18991
+ message.clan_id = reader.string();
18992
+ continue;
18993
+ case 4:
18994
+ if (tag !== 34) {
18995
+ break;
18996
+ }
18997
+
18998
+ message.clan_name = reader.string();
18999
+ continue;
19000
+ case 5:
19001
+ if (tag !== 42) {
19002
+ break;
19003
+ }
19004
+
19005
+ message.meeting_code = reader.string();
19006
+ continue;
19007
+ case 6:
19008
+ if (tag !== 48) {
19009
+ break;
19010
+ }
19011
+
19012
+ message.type = reader.int32();
19013
+ continue;
19014
+ case 7:
19015
+ if (tag !== 56) {
19016
+ break;
19017
+ }
19018
+
19019
+ message.channel_private = reader.int32();
19020
+ continue;
19021
+ case 8:
19022
+ if (tag !== 66) {
19023
+ break;
19024
+ }
19025
+
19026
+ message.parrent_id = reader.string();
19027
+ continue;
19028
+ }
19029
+ if ((tag & 7) === 4 || tag === 0) {
19030
+ break;
19031
+ }
19032
+ reader.skipType(tag & 7);
19033
+ }
19034
+ return message;
19035
+ },
19036
+
19037
+ fromJSON(object: any): HashtagDm {
19038
+ return {
19039
+ channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
19040
+ channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
19041
+ clan_id: isSet(object.clan_id) ? globalThis.String(object.clan_id) : "",
19042
+ clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
19043
+ meeting_code: isSet(object.meeting_code) ? globalThis.String(object.meeting_code) : "",
19044
+ type: isSet(object.type) ? globalThis.Number(object.type) : 0,
19045
+ channel_private: isSet(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
19046
+ parrent_id: isSet(object.parrent_id) ? globalThis.String(object.parrent_id) : "",
19047
+ };
19048
+ },
19049
+
19050
+ toJSON(message: HashtagDm): unknown {
19051
+ const obj: any = {};
19052
+ if (message.channel_id !== "") {
19053
+ obj.channel_id = message.channel_id;
19054
+ }
19055
+ if (message.channel_label !== "") {
19056
+ obj.channel_label = message.channel_label;
19057
+ }
19058
+ if (message.clan_id !== "") {
19059
+ obj.clan_id = message.clan_id;
19060
+ }
19061
+ if (message.clan_name !== "") {
19062
+ obj.clan_name = message.clan_name;
19063
+ }
19064
+ if (message.meeting_code !== "") {
19065
+ obj.meeting_code = message.meeting_code;
19066
+ }
19067
+ if (message.type !== 0) {
19068
+ obj.type = Math.round(message.type);
19069
+ }
19070
+ if (message.channel_private !== 0) {
19071
+ obj.channel_private = Math.round(message.channel_private);
19072
+ }
19073
+ if (message.parrent_id !== "") {
19074
+ obj.parrent_id = message.parrent_id;
19075
+ }
19076
+ return obj;
19077
+ },
19078
+
19079
+ create<I extends Exact<DeepPartial<HashtagDm>, I>>(base?: I): HashtagDm {
19080
+ return HashtagDm.fromPartial(base ?? ({} as any));
19081
+ },
19082
+ fromPartial<I extends Exact<DeepPartial<HashtagDm>, I>>(object: I): HashtagDm {
19083
+ const message = createBaseHashtagDm();
19084
+ message.channel_id = object.channel_id ?? "";
19085
+ message.channel_label = object.channel_label ?? "";
19086
+ message.clan_id = object.clan_id ?? "";
19087
+ message.clan_name = object.clan_name ?? "";
19088
+ message.meeting_code = object.meeting_code ?? "";
19089
+ message.type = object.type ?? 0;
19090
+ message.channel_private = object.channel_private ?? 0;
19091
+ message.parrent_id = object.parrent_id ?? "";
19092
+ return message;
19093
+ },
19094
+ };
19095
+
19096
+ function createBaseNotificationChannelCategorySettingList(): NotificationChannelCategorySettingList {
19097
+ return { notification_channel_category_settings_list: [] };
19098
+ }
19099
+
19100
+ export const NotificationChannelCategorySettingList = {
19101
+ encode(message: NotificationChannelCategorySettingList, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
19102
+ for (const v of message.notification_channel_category_settings_list) {
19103
+ NotificationChannelCategorySetting.encode(v!, writer.uint32(10).fork()).ldelim();
19104
+ }
19105
+ return writer;
19106
+ },
19107
+
19108
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationChannelCategorySettingList {
19109
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
19110
+ let end = length === undefined ? reader.len : reader.pos + length;
19111
+ const message = createBaseNotificationChannelCategorySettingList();
19112
+ while (reader.pos < end) {
19113
+ const tag = reader.uint32();
19114
+ switch (tag >>> 3) {
19115
+ case 1:
19116
+ if (tag !== 10) {
19117
+ break;
19118
+ }
19119
+
19120
+ message.notification_channel_category_settings_list.push(
19121
+ NotificationChannelCategorySetting.decode(reader, reader.uint32()),
19122
+ );
19123
+ continue;
19124
+ }
19125
+ if ((tag & 7) === 4 || tag === 0) {
19126
+ break;
19127
+ }
19128
+ reader.skipType(tag & 7);
19129
+ }
19130
+ return message;
19131
+ },
19132
+
19133
+ fromJSON(object: any): NotificationChannelCategorySettingList {
19134
+ return {
19135
+ notification_channel_category_settings_list:
19136
+ globalThis.Array.isArray(object?.notification_channel_category_settings_list)
19137
+ ? object.notification_channel_category_settings_list.map((e: any) =>
19138
+ NotificationChannelCategorySetting.fromJSON(e)
19139
+ )
19140
+ : [],
19141
+ };
19142
+ },
19143
+
19144
+ toJSON(message: NotificationChannelCategorySettingList): unknown {
19145
+ const obj: any = {};
19146
+ if (message.notification_channel_category_settings_list?.length) {
19147
+ obj.notification_channel_category_settings_list = message.notification_channel_category_settings_list.map((e) =>
19148
+ NotificationChannelCategorySetting.toJSON(e)
19149
+ );
19150
+ }
19151
+ return obj;
19152
+ },
19153
+
19154
+ create<I extends Exact<DeepPartial<NotificationChannelCategorySettingList>, I>>(
19155
+ base?: I,
19156
+ ): NotificationChannelCategorySettingList {
19157
+ return NotificationChannelCategorySettingList.fromPartial(base ?? ({} as any));
19158
+ },
19159
+ fromPartial<I extends Exact<DeepPartial<NotificationChannelCategorySettingList>, I>>(
19160
+ object: I,
19161
+ ): NotificationChannelCategorySettingList {
19162
+ const message = createBaseNotificationChannelCategorySettingList();
19163
+ message.notification_channel_category_settings_list =
19164
+ object.notification_channel_category_settings_list?.map((e) =>
19165
+ NotificationChannelCategorySetting.fromPartial(e)
19166
+ ) || [];
19167
+ return message;
19168
+ },
19169
+ };
19170
+
19171
+ function createBaseNotificationChannelCategorySetting(): NotificationChannelCategorySetting {
19172
+ return { id: "", channel_category_label: "", notification_setting_type: 0, channel_category_title: "", action: 0 };
19173
+ }
19174
+
19175
+ export const NotificationChannelCategorySetting = {
19176
+ encode(message: NotificationChannelCategorySetting, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
19177
+ if (message.id !== "") {
19178
+ writer.uint32(10).string(message.id);
19179
+ }
19180
+ if (message.channel_category_label !== "") {
19181
+ writer.uint32(18).string(message.channel_category_label);
19182
+ }
19183
+ if (message.notification_setting_type !== 0) {
19184
+ writer.uint32(24).int32(message.notification_setting_type);
19185
+ }
19186
+ if (message.channel_category_title !== "") {
19187
+ writer.uint32(34).string(message.channel_category_title);
19188
+ }
19189
+ if (message.action !== 0) {
19190
+ writer.uint32(40).int32(message.action);
19191
+ }
19192
+ return writer;
19193
+ },
19194
+
19195
+ decode(input: _m0.Reader | Uint8Array, length?: number): NotificationChannelCategorySetting {
19196
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
19197
+ let end = length === undefined ? reader.len : reader.pos + length;
19198
+ const message = createBaseNotificationChannelCategorySetting();
19199
+ while (reader.pos < end) {
19200
+ const tag = reader.uint32();
19201
+ switch (tag >>> 3) {
19202
+ case 1:
19203
+ if (tag !== 10) {
19204
+ break;
19205
+ }
19206
+
19207
+ message.id = reader.string();
19208
+ continue;
19209
+ case 2:
19210
+ if (tag !== 18) {
19211
+ break;
19212
+ }
19213
+
19214
+ message.channel_category_label = reader.string();
19215
+ continue;
19216
+ case 3:
19217
+ if (tag !== 24) {
19218
+ break;
19219
+ }
19220
+
19221
+ message.notification_setting_type = reader.int32();
19222
+ continue;
19223
+ case 4:
19224
+ if (tag !== 34) {
19225
+ break;
19226
+ }
19227
+
19228
+ message.channel_category_title = reader.string();
19229
+ continue;
19230
+ case 5:
19231
+ if (tag !== 40) {
19232
+ break;
19233
+ }
19234
+
19235
+ message.action = reader.int32();
19236
+ continue;
19237
+ }
19238
+ if ((tag & 7) === 4 || tag === 0) {
19239
+ break;
19240
+ }
19241
+ reader.skipType(tag & 7);
19242
+ }
19243
+ return message;
19244
+ },
19245
+
19246
+ fromJSON(object: any): NotificationChannelCategorySetting {
19247
+ return {
19248
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
19249
+ channel_category_label: isSet(object.channel_category_label)
19250
+ ? globalThis.String(object.channel_category_label)
19251
+ : "",
19252
+ notification_setting_type: isSet(object.notification_setting_type)
19253
+ ? globalThis.Number(object.notification_setting_type)
19254
+ : 0,
19255
+ channel_category_title: isSet(object.channel_category_title)
19256
+ ? globalThis.String(object.channel_category_title)
19257
+ : "",
19258
+ action: isSet(object.action) ? globalThis.Number(object.action) : 0,
19259
+ };
19260
+ },
19261
+
19262
+ toJSON(message: NotificationChannelCategorySetting): unknown {
19263
+ const obj: any = {};
19264
+ if (message.id !== "") {
19265
+ obj.id = message.id;
19266
+ }
19267
+ if (message.channel_category_label !== "") {
19268
+ obj.channel_category_label = message.channel_category_label;
19269
+ }
19270
+ if (message.notification_setting_type !== 0) {
19271
+ obj.notification_setting_type = Math.round(message.notification_setting_type);
19272
+ }
19273
+ if (message.channel_category_title !== "") {
19274
+ obj.channel_category_title = message.channel_category_title;
19275
+ }
19276
+ if (message.action !== 0) {
19277
+ obj.action = Math.round(message.action);
19278
+ }
19279
+ return obj;
19280
+ },
19281
+
19282
+ create<I extends Exact<DeepPartial<NotificationChannelCategorySetting>, I>>(
19283
+ base?: I,
19284
+ ): NotificationChannelCategorySetting {
19285
+ return NotificationChannelCategorySetting.fromPartial(base ?? ({} as any));
19286
+ },
19287
+ fromPartial<I extends Exact<DeepPartial<NotificationChannelCategorySetting>, I>>(
19288
+ object: I,
19289
+ ): NotificationChannelCategorySetting {
19290
+ const message = createBaseNotificationChannelCategorySetting();
19291
+ message.id = object.id ?? "";
19292
+ message.channel_category_label = object.channel_category_label ?? "";
19293
+ message.notification_setting_type = object.notification_setting_type ?? 0;
19294
+ message.channel_category_title = object.channel_category_title ?? "";
19295
+ message.action = object.action ?? 0;
19296
+ return message;
19297
+ },
19298
+ };
19299
+
18659
19300
  function createBaseSetDefaultNotificationRequest(): SetDefaultNotificationRequest {
18660
19301
  return { clan_id: "", notification_type: 0, category_id: "" };
18661
19302
  }