@qadeer-xtech/stablebail 1.1.2 → 1.2.0

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/WAProto/index.js CHANGED
@@ -59789,6 +59789,753 @@ export const proto = $root.proto = (() => {
59789
59789
  return ProductMessage;
59790
59790
  })();
59791
59791
 
59792
+ Message.ChatThemeSetting = (function() {
59793
+
59794
+ function ChatThemeSetting(p) {
59795
+ if (p)
59796
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
59797
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
59798
+ this[ks[i]] = p[ks[i]];
59799
+ }
59800
+
59801
+ ChatThemeSetting.prototype.settingTimestampMs = null;
59802
+ ChatThemeSetting.prototype.clearTheme = null;
59803
+ ChatThemeSetting.prototype.colorSchemeId = null;
59804
+ ChatThemeSetting.prototype.defaultWallpaper = null;
59805
+ ChatThemeSetting.prototype.solidColor = null;
59806
+ ChatThemeSetting.prototype.stockImage = null;
59807
+ ChatThemeSetting.prototype.customImage = null;
59808
+
59809
+ let $oneOfFields;
59810
+
59811
+ Object.defineProperty(ChatThemeSetting.prototype, "_settingTimestampMs", {
59812
+ get: $util.oneOfGetter($oneOfFields = ["settingTimestampMs"]),
59813
+ set: $util.oneOfSetter($oneOfFields)
59814
+ });
59815
+
59816
+ Object.defineProperty(ChatThemeSetting.prototype, "_clearTheme", {
59817
+ get: $util.oneOfGetter($oneOfFields = ["clearTheme"]),
59818
+ set: $util.oneOfSetter($oneOfFields)
59819
+ });
59820
+
59821
+ Object.defineProperty(ChatThemeSetting.prototype, "_colorSchemeId", {
59822
+ get: $util.oneOfGetter($oneOfFields = ["colorSchemeId"]),
59823
+ set: $util.oneOfSetter($oneOfFields)
59824
+ });
59825
+
59826
+ Object.defineProperty(ChatThemeSetting.prototype, "wallpaper", {
59827
+ get: $util.oneOfGetter($oneOfFields = ["defaultWallpaper", "solidColor", "stockImage", "customImage"]),
59828
+ set: $util.oneOfSetter($oneOfFields)
59829
+ });
59830
+
59831
+ ChatThemeSetting.create = function create(properties) {
59832
+ return new ChatThemeSetting(properties);
59833
+ };
59834
+
59835
+ ChatThemeSetting.encode = function encode(m, w) {
59836
+ if (!w)
59837
+ w = $Writer.create();
59838
+ if (m.settingTimestampMs != null && Object.hasOwnProperty.call(m, "settingTimestampMs"))
59839
+ w.uint32(8).int64(m.settingTimestampMs);
59840
+ if (m.clearTheme != null && Object.hasOwnProperty.call(m, "clearTheme"))
59841
+ w.uint32(16).bool(m.clearTheme);
59842
+ if (m.colorSchemeId != null && Object.hasOwnProperty.call(m, "colorSchemeId"))
59843
+ w.uint32(26).string(m.colorSchemeId);
59844
+ if (m.defaultWallpaper != null && Object.hasOwnProperty.call(m, "defaultWallpaper"))
59845
+ $root.proto.Message.ChatDefaultWallpaper.encode(m.defaultWallpaper, w.uint32(82).fork()).ldelim();
59846
+ if (m.solidColor != null && Object.hasOwnProperty.call(m, "solidColor"))
59847
+ $root.proto.Message.ChatSolidColorWallpaper.encode(m.solidColor, w.uint32(90).fork()).ldelim();
59848
+ if (m.stockImage != null && Object.hasOwnProperty.call(m, "stockImage"))
59849
+ $root.proto.Message.ChatStockImageWallpaper.encode(m.stockImage, w.uint32(98).fork()).ldelim();
59850
+ if (m.customImage != null && Object.hasOwnProperty.call(m, "customImage"))
59851
+ $root.proto.Message.ChatCustomImageWallpaper.encode(m.customImage, w.uint32(106).fork()).ldelim();
59852
+ return w;
59853
+ };
59854
+
59855
+ ChatThemeSetting.decode = function decode(r, l, e, n) {
59856
+ if (!(r instanceof $Reader))
59857
+ r = $Reader.create(r);
59858
+ if (n === undefined)
59859
+ n = 0;
59860
+ if (n > $Reader.recursionLimit)
59861
+ throw Error("maximum nesting depth exceeded");
59862
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.ChatThemeSetting();
59863
+ while (r.pos < c) {
59864
+ var t = r.uint32();
59865
+ if (t === e)
59866
+ break;
59867
+ switch (t >>> 3) {
59868
+ case 1: {
59869
+ m.settingTimestampMs = r.int64();
59870
+ break;
59871
+ }
59872
+ case 2: {
59873
+ m.clearTheme = r.bool();
59874
+ break;
59875
+ }
59876
+ case 3: {
59877
+ m.colorSchemeId = r.string();
59878
+ break;
59879
+ }
59880
+ case 10: {
59881
+ m.defaultWallpaper = $root.proto.Message.ChatDefaultWallpaper.decode(r, r.uint32(), undefined, n + 1);
59882
+ break;
59883
+ }
59884
+ case 11: {
59885
+ m.solidColor = $root.proto.Message.ChatSolidColorWallpaper.decode(r, r.uint32(), undefined, n + 1);
59886
+ break;
59887
+ }
59888
+ case 12: {
59889
+ m.stockImage = $root.proto.Message.ChatStockImageWallpaper.decode(r, r.uint32(), undefined, n + 1);
59890
+ break;
59891
+ }
59892
+ case 13: {
59893
+ m.customImage = $root.proto.Message.ChatCustomImageWallpaper.decode(r, r.uint32(), undefined, n + 1);
59894
+ break;
59895
+ }
59896
+ default:
59897
+ r.skipType(t & 7, n);
59898
+ break;
59899
+ }
59900
+ }
59901
+ return m;
59902
+ };
59903
+
59904
+ ChatThemeSetting.fromObject = function fromObject(d, n) {
59905
+ if (d instanceof $root.proto.Message.ChatThemeSetting)
59906
+ return d;
59907
+ if (n === undefined)
59908
+ n = 0;
59909
+ if (n > $util.recursionLimit)
59910
+ throw Error("maximum nesting depth exceeded");
59911
+ var m = new $root.proto.Message.ChatThemeSetting();
59912
+ if (d.settingTimestampMs != null) {
59913
+ if ($util.Long)
59914
+ (m.settingTimestampMs = $util.Long.fromValue(d.settingTimestampMs)).unsigned = false;
59915
+ else if (typeof d.settingTimestampMs === "string")
59916
+ m.settingTimestampMs = parseInt(d.settingTimestampMs, 10);
59917
+ else if (typeof d.settingTimestampMs === "number")
59918
+ m.settingTimestampMs = d.settingTimestampMs;
59919
+ else if (typeof d.settingTimestampMs === "object")
59920
+ m.settingTimestampMs = new $util.LongBits(d.settingTimestampMs.low >>> 0, d.settingTimestampMs.high >>> 0).toNumber();
59921
+ }
59922
+ if (d.clearTheme != null) {
59923
+ m.clearTheme = Boolean(d.clearTheme);
59924
+ }
59925
+ if (d.colorSchemeId != null) {
59926
+ m.colorSchemeId = String(d.colorSchemeId);
59927
+ }
59928
+ if (d.defaultWallpaper != null) {
59929
+ if (typeof d.defaultWallpaper !== "object")
59930
+ throw TypeError(".proto.Message.ChatThemeSetting.defaultWallpaper: object expected");
59931
+ m.defaultWallpaper = $root.proto.Message.ChatDefaultWallpaper.fromObject(d.defaultWallpaper, n + 1);
59932
+ }
59933
+ if (d.solidColor != null) {
59934
+ if (typeof d.solidColor !== "object")
59935
+ throw TypeError(".proto.Message.ChatThemeSetting.solidColor: object expected");
59936
+ m.solidColor = $root.proto.Message.ChatSolidColorWallpaper.fromObject(d.solidColor, n + 1);
59937
+ }
59938
+ if (d.stockImage != null) {
59939
+ if (typeof d.stockImage !== "object")
59940
+ throw TypeError(".proto.Message.ChatThemeSetting.stockImage: object expected");
59941
+ m.stockImage = $root.proto.Message.ChatStockImageWallpaper.fromObject(d.stockImage, n + 1);
59942
+ }
59943
+ if (d.customImage != null) {
59944
+ if (typeof d.customImage !== "object")
59945
+ throw TypeError(".proto.Message.ChatThemeSetting.customImage: object expected");
59946
+ m.customImage = $root.proto.Message.ChatCustomImageWallpaper.fromObject(d.customImage, n + 1);
59947
+ }
59948
+ return m;
59949
+ };
59950
+
59951
+ ChatThemeSetting.toObject = function toObject(m, o) {
59952
+ if (!o)
59953
+ o = {};
59954
+ var d = {};
59955
+ if (m.settingTimestampMs != null && m.hasOwnProperty("settingTimestampMs")) {
59956
+ if (typeof m.settingTimestampMs === "number")
59957
+ d.settingTimestampMs = o.longs === String ? String(m.settingTimestampMs) : m.settingTimestampMs;
59958
+ else
59959
+ d.settingTimestampMs = o.longs === String ? longToString(m.settingTimestampMs) : o.longs === Number ? longToNumber(m.settingTimestampMs) : m.settingTimestampMs;
59960
+ if (o.oneofs)
59961
+ d._settingTimestampMs = "settingTimestampMs";
59962
+ }
59963
+ if (m.clearTheme != null && m.hasOwnProperty("clearTheme")) {
59964
+ d.clearTheme = m.clearTheme;
59965
+ if (o.oneofs)
59966
+ d._clearTheme = "clearTheme";
59967
+ }
59968
+ if (m.colorSchemeId != null && m.hasOwnProperty("colorSchemeId")) {
59969
+ d.colorSchemeId = m.colorSchemeId;
59970
+ if (o.oneofs)
59971
+ d._colorSchemeId = "colorSchemeId";
59972
+ }
59973
+ if (m.defaultWallpaper != null && m.hasOwnProperty("defaultWallpaper")) {
59974
+ d.defaultWallpaper = $root.proto.Message.ChatDefaultWallpaper.toObject(m.defaultWallpaper, o);
59975
+ if (o.oneofs)
59976
+ d.wallpaper = "defaultWallpaper";
59977
+ }
59978
+ if (m.solidColor != null && m.hasOwnProperty("solidColor")) {
59979
+ d.solidColor = $root.proto.Message.ChatSolidColorWallpaper.toObject(m.solidColor, o);
59980
+ if (o.oneofs)
59981
+ d.wallpaper = "solidColor";
59982
+ }
59983
+ if (m.stockImage != null && m.hasOwnProperty("stockImage")) {
59984
+ d.stockImage = $root.proto.Message.ChatStockImageWallpaper.toObject(m.stockImage, o);
59985
+ if (o.oneofs)
59986
+ d.wallpaper = "stockImage";
59987
+ }
59988
+ if (m.customImage != null && m.hasOwnProperty("customImage")) {
59989
+ d.customImage = $root.proto.Message.ChatCustomImageWallpaper.toObject(m.customImage, o);
59990
+ if (o.oneofs)
59991
+ d.wallpaper = "customImage";
59992
+ }
59993
+ return d;
59994
+ };
59995
+
59996
+ ChatThemeSetting.prototype.toJSON = function toJSON() {
59997
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59998
+ };
59999
+
60000
+ ChatThemeSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60001
+ if (typeUrlPrefix === undefined) {
60002
+ typeUrlPrefix = "type.googleapis.com";
60003
+ }
60004
+ return typeUrlPrefix + "/proto.Message.ChatThemeSetting";
60005
+ };
60006
+
60007
+ return ChatThemeSetting;
60008
+ })();
60009
+
60010
+ Message.ChatDefaultWallpaper = (function() {
60011
+
60012
+ function ChatDefaultWallpaper(p) {
60013
+ if (p)
60014
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
60015
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
60016
+ this[ks[i]] = p[ks[i]];
60017
+ }
60018
+
60019
+ ChatDefaultWallpaper.prototype.isDoodleEnabled = null;
60020
+
60021
+ let $oneOfFields;
60022
+
60023
+ Object.defineProperty(ChatDefaultWallpaper.prototype, "_isDoodleEnabled", {
60024
+ get: $util.oneOfGetter($oneOfFields = ["isDoodleEnabled"]),
60025
+ set: $util.oneOfSetter($oneOfFields)
60026
+ });
60027
+
60028
+ ChatDefaultWallpaper.create = function create(properties) {
60029
+ return new ChatDefaultWallpaper(properties);
60030
+ };
60031
+
60032
+ ChatDefaultWallpaper.encode = function encode(m, w) {
60033
+ if (!w)
60034
+ w = $Writer.create();
60035
+ if (m.isDoodleEnabled != null && Object.hasOwnProperty.call(m, "isDoodleEnabled"))
60036
+ w.uint32(8).bool(m.isDoodleEnabled);
60037
+ return w;
60038
+ };
60039
+
60040
+ ChatDefaultWallpaper.decode = function decode(r, l, e, n) {
60041
+ if (!(r instanceof $Reader))
60042
+ r = $Reader.create(r);
60043
+ if (n === undefined)
60044
+ n = 0;
60045
+ if (n > $Reader.recursionLimit)
60046
+ throw Error("maximum nesting depth exceeded");
60047
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.ChatDefaultWallpaper();
60048
+ while (r.pos < c) {
60049
+ var t = r.uint32();
60050
+ if (t === e)
60051
+ break;
60052
+ switch (t >>> 3) {
60053
+ case 1: {
60054
+ m.isDoodleEnabled = r.bool();
60055
+ break;
60056
+ }
60057
+ default:
60058
+ r.skipType(t & 7, n);
60059
+ break;
60060
+ }
60061
+ }
60062
+ return m;
60063
+ };
60064
+
60065
+ ChatDefaultWallpaper.fromObject = function fromObject(d, n) {
60066
+ if (d instanceof $root.proto.Message.ChatDefaultWallpaper)
60067
+ return d;
60068
+ if (n === undefined)
60069
+ n = 0;
60070
+ if (n > $util.recursionLimit)
60071
+ throw Error("maximum nesting depth exceeded");
60072
+ var m = new $root.proto.Message.ChatDefaultWallpaper();
60073
+ if (d.isDoodleEnabled != null) {
60074
+ m.isDoodleEnabled = Boolean(d.isDoodleEnabled);
60075
+ }
60076
+ return m;
60077
+ };
60078
+
60079
+ ChatDefaultWallpaper.toObject = function toObject(m, o) {
60080
+ if (!o)
60081
+ o = {};
60082
+ var d = {};
60083
+ if (m.isDoodleEnabled != null && m.hasOwnProperty("isDoodleEnabled")) {
60084
+ d.isDoodleEnabled = m.isDoodleEnabled;
60085
+ if (o.oneofs)
60086
+ d._isDoodleEnabled = "isDoodleEnabled";
60087
+ }
60088
+ return d;
60089
+ };
60090
+
60091
+ ChatDefaultWallpaper.prototype.toJSON = function toJSON() {
60092
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60093
+ };
60094
+
60095
+ ChatDefaultWallpaper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60096
+ if (typeUrlPrefix === undefined) {
60097
+ typeUrlPrefix = "type.googleapis.com";
60098
+ }
60099
+ return typeUrlPrefix + "/proto.Message.ChatDefaultWallpaper";
60100
+ };
60101
+
60102
+ return ChatDefaultWallpaper;
60103
+ })();
60104
+
60105
+ Message.ChatSolidColorWallpaper = (function() {
60106
+
60107
+ function ChatSolidColorWallpaper(p) {
60108
+ if (p)
60109
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
60110
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
60111
+ this[ks[i]] = p[ks[i]];
60112
+ }
60113
+
60114
+ ChatSolidColorWallpaper.prototype.colorLight = null;
60115
+ ChatSolidColorWallpaper.prototype.colorDark = null;
60116
+ ChatSolidColorWallpaper.prototype.isDoodleEnabled = null;
60117
+
60118
+ let $oneOfFields;
60119
+
60120
+ Object.defineProperty(ChatSolidColorWallpaper.prototype, "_colorLight", {
60121
+ get: $util.oneOfGetter($oneOfFields = ["colorLight"]),
60122
+ set: $util.oneOfSetter($oneOfFields)
60123
+ });
60124
+
60125
+ Object.defineProperty(ChatSolidColorWallpaper.prototype, "_colorDark", {
60126
+ get: $util.oneOfGetter($oneOfFields = ["colorDark"]),
60127
+ set: $util.oneOfSetter($oneOfFields)
60128
+ });
60129
+
60130
+ Object.defineProperty(ChatSolidColorWallpaper.prototype, "_isDoodleEnabled", {
60131
+ get: $util.oneOfGetter($oneOfFields = ["isDoodleEnabled"]),
60132
+ set: $util.oneOfSetter($oneOfFields)
60133
+ });
60134
+
60135
+ ChatSolidColorWallpaper.create = function create(properties) {
60136
+ return new ChatSolidColorWallpaper(properties);
60137
+ };
60138
+
60139
+ ChatSolidColorWallpaper.encode = function encode(m, w) {
60140
+ if (!w)
60141
+ w = $Writer.create();
60142
+ if (m.colorLight != null && Object.hasOwnProperty.call(m, "colorLight"))
60143
+ w.uint32(10).string(m.colorLight);
60144
+ if (m.colorDark != null && Object.hasOwnProperty.call(m, "colorDark"))
60145
+ w.uint32(18).string(m.colorDark);
60146
+ if (m.isDoodleEnabled != null && Object.hasOwnProperty.call(m, "isDoodleEnabled"))
60147
+ w.uint32(24).bool(m.isDoodleEnabled);
60148
+ return w;
60149
+ };
60150
+
60151
+ ChatSolidColorWallpaper.decode = function decode(r, l, e, n) {
60152
+ if (!(r instanceof $Reader))
60153
+ r = $Reader.create(r);
60154
+ if (n === undefined)
60155
+ n = 0;
60156
+ if (n > $Reader.recursionLimit)
60157
+ throw Error("maximum nesting depth exceeded");
60158
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.ChatSolidColorWallpaper();
60159
+ while (r.pos < c) {
60160
+ var t = r.uint32();
60161
+ if (t === e)
60162
+ break;
60163
+ switch (t >>> 3) {
60164
+ case 1: {
60165
+ m.colorLight = r.string();
60166
+ break;
60167
+ }
60168
+ case 2: {
60169
+ m.colorDark = r.string();
60170
+ break;
60171
+ }
60172
+ case 3: {
60173
+ m.isDoodleEnabled = r.bool();
60174
+ break;
60175
+ }
60176
+ default:
60177
+ r.skipType(t & 7, n);
60178
+ break;
60179
+ }
60180
+ }
60181
+ return m;
60182
+ };
60183
+
60184
+ ChatSolidColorWallpaper.fromObject = function fromObject(d, n) {
60185
+ if (d instanceof $root.proto.Message.ChatSolidColorWallpaper)
60186
+ return d;
60187
+ if (n === undefined)
60188
+ n = 0;
60189
+ if (n > $util.recursionLimit)
60190
+ throw Error("maximum nesting depth exceeded");
60191
+ var m = new $root.proto.Message.ChatSolidColorWallpaper();
60192
+ if (d.colorLight != null) {
60193
+ m.colorLight = String(d.colorLight);
60194
+ }
60195
+ if (d.colorDark != null) {
60196
+ m.colorDark = String(d.colorDark);
60197
+ }
60198
+ if (d.isDoodleEnabled != null) {
60199
+ m.isDoodleEnabled = Boolean(d.isDoodleEnabled);
60200
+ }
60201
+ return m;
60202
+ };
60203
+
60204
+ ChatSolidColorWallpaper.toObject = function toObject(m, o) {
60205
+ if (!o)
60206
+ o = {};
60207
+ var d = {};
60208
+ if (m.colorLight != null && m.hasOwnProperty("colorLight")) {
60209
+ d.colorLight = m.colorLight;
60210
+ if (o.oneofs)
60211
+ d._colorLight = "colorLight";
60212
+ }
60213
+ if (m.colorDark != null && m.hasOwnProperty("colorDark")) {
60214
+ d.colorDark = m.colorDark;
60215
+ if (o.oneofs)
60216
+ d._colorDark = "colorDark";
60217
+ }
60218
+ if (m.isDoodleEnabled != null && m.hasOwnProperty("isDoodleEnabled")) {
60219
+ d.isDoodleEnabled = m.isDoodleEnabled;
60220
+ if (o.oneofs)
60221
+ d._isDoodleEnabled = "isDoodleEnabled";
60222
+ }
60223
+ return d;
60224
+ };
60225
+
60226
+ ChatSolidColorWallpaper.prototype.toJSON = function toJSON() {
60227
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60228
+ };
60229
+
60230
+ ChatSolidColorWallpaper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60231
+ if (typeUrlPrefix === undefined) {
60232
+ typeUrlPrefix = "type.googleapis.com";
60233
+ }
60234
+ return typeUrlPrefix + "/proto.Message.ChatSolidColorWallpaper";
60235
+ };
60236
+
60237
+ return ChatSolidColorWallpaper;
60238
+ })();
60239
+
60240
+ Message.ChatStockImageWallpaper = (function() {
60241
+
60242
+ function ChatStockImageWallpaper(p) {
60243
+ if (p)
60244
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
60245
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
60246
+ this[ks[i]] = p[ks[i]];
60247
+ }
60248
+
60249
+ ChatStockImageWallpaper.prototype.stockImageId = null;
60250
+ ChatStockImageWallpaper.prototype.dimLevel = null;
60251
+
60252
+ let $oneOfFields;
60253
+
60254
+ Object.defineProperty(ChatStockImageWallpaper.prototype, "_stockImageId", {
60255
+ get: $util.oneOfGetter($oneOfFields = ["stockImageId"]),
60256
+ set: $util.oneOfSetter($oneOfFields)
60257
+ });
60258
+
60259
+ Object.defineProperty(ChatStockImageWallpaper.prototype, "_dimLevel", {
60260
+ get: $util.oneOfGetter($oneOfFields = ["dimLevel"]),
60261
+ set: $util.oneOfSetter($oneOfFields)
60262
+ });
60263
+
60264
+ ChatStockImageWallpaper.create = function create(properties) {
60265
+ return new ChatStockImageWallpaper(properties);
60266
+ };
60267
+
60268
+ ChatStockImageWallpaper.encode = function encode(m, w) {
60269
+ if (!w)
60270
+ w = $Writer.create();
60271
+ if (m.stockImageId != null && Object.hasOwnProperty.call(m, "stockImageId"))
60272
+ w.uint32(10).string(m.stockImageId);
60273
+ if (m.dimLevel != null && Object.hasOwnProperty.call(m, "dimLevel"))
60274
+ w.uint32(21).float(m.dimLevel);
60275
+ return w;
60276
+ };
60277
+
60278
+ ChatStockImageWallpaper.decode = function decode(r, l, e, n) {
60279
+ if (!(r instanceof $Reader))
60280
+ r = $Reader.create(r);
60281
+ if (n === undefined)
60282
+ n = 0;
60283
+ if (n > $Reader.recursionLimit)
60284
+ throw Error("maximum nesting depth exceeded");
60285
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.ChatStockImageWallpaper();
60286
+ while (r.pos < c) {
60287
+ var t = r.uint32();
60288
+ if (t === e)
60289
+ break;
60290
+ switch (t >>> 3) {
60291
+ case 1: {
60292
+ m.stockImageId = r.string();
60293
+ break;
60294
+ }
60295
+ case 2: {
60296
+ m.dimLevel = r.float();
60297
+ break;
60298
+ }
60299
+ default:
60300
+ r.skipType(t & 7, n);
60301
+ break;
60302
+ }
60303
+ }
60304
+ return m;
60305
+ };
60306
+
60307
+ ChatStockImageWallpaper.fromObject = function fromObject(d, n) {
60308
+ if (d instanceof $root.proto.Message.ChatStockImageWallpaper)
60309
+ return d;
60310
+ if (n === undefined)
60311
+ n = 0;
60312
+ if (n > $util.recursionLimit)
60313
+ throw Error("maximum nesting depth exceeded");
60314
+ var m = new $root.proto.Message.ChatStockImageWallpaper();
60315
+ if (d.stockImageId != null) {
60316
+ m.stockImageId = String(d.stockImageId);
60317
+ }
60318
+ if (d.dimLevel != null) {
60319
+ m.dimLevel = Number(d.dimLevel);
60320
+ }
60321
+ return m;
60322
+ };
60323
+
60324
+ ChatStockImageWallpaper.toObject = function toObject(m, o) {
60325
+ if (!o)
60326
+ o = {};
60327
+ var d = {};
60328
+ if (m.stockImageId != null && m.hasOwnProperty("stockImageId")) {
60329
+ d.stockImageId = m.stockImageId;
60330
+ if (o.oneofs)
60331
+ d._stockImageId = "stockImageId";
60332
+ }
60333
+ if (m.dimLevel != null && m.hasOwnProperty("dimLevel")) {
60334
+ d.dimLevel = o.json && !isFinite(m.dimLevel) ? String(m.dimLevel) : m.dimLevel;
60335
+ if (o.oneofs)
60336
+ d._dimLevel = "dimLevel";
60337
+ }
60338
+ return d;
60339
+ };
60340
+
60341
+ ChatStockImageWallpaper.prototype.toJSON = function toJSON() {
60342
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60343
+ };
60344
+
60345
+ ChatStockImageWallpaper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60346
+ if (typeUrlPrefix === undefined) {
60347
+ typeUrlPrefix = "type.googleapis.com";
60348
+ }
60349
+ return typeUrlPrefix + "/proto.Message.ChatStockImageWallpaper";
60350
+ };
60351
+
60352
+ return ChatStockImageWallpaper;
60353
+ })();
60354
+
60355
+ Message.ChatCustomImageWallpaper = (function() {
60356
+
60357
+ function ChatCustomImageWallpaper(p) {
60358
+ if (p)
60359
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
60360
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
60361
+ this[ks[i]] = p[ks[i]];
60362
+ }
60363
+
60364
+ ChatCustomImageWallpaper.prototype.directPath = null;
60365
+ ChatCustomImageWallpaper.prototype.mediaKey = null;
60366
+ ChatCustomImageWallpaper.prototype.fileEncSha256 = null;
60367
+ ChatCustomImageWallpaper.prototype.fileSha256 = null;
60368
+ ChatCustomImageWallpaper.prototype.dimLevel = null;
60369
+
60370
+ let $oneOfFields;
60371
+
60372
+ Object.defineProperty(ChatCustomImageWallpaper.prototype, "_directPath", {
60373
+ get: $util.oneOfGetter($oneOfFields = ["directPath"]),
60374
+ set: $util.oneOfSetter($oneOfFields)
60375
+ });
60376
+
60377
+ Object.defineProperty(ChatCustomImageWallpaper.prototype, "_mediaKey", {
60378
+ get: $util.oneOfGetter($oneOfFields = ["mediaKey"]),
60379
+ set: $util.oneOfSetter($oneOfFields)
60380
+ });
60381
+
60382
+ Object.defineProperty(ChatCustomImageWallpaper.prototype, "_fileEncSha256", {
60383
+ get: $util.oneOfGetter($oneOfFields = ["fileEncSha256"]),
60384
+ set: $util.oneOfSetter($oneOfFields)
60385
+ });
60386
+
60387
+ Object.defineProperty(ChatCustomImageWallpaper.prototype, "_fileSha256", {
60388
+ get: $util.oneOfGetter($oneOfFields = ["fileSha256"]),
60389
+ set: $util.oneOfSetter($oneOfFields)
60390
+ });
60391
+
60392
+ Object.defineProperty(ChatCustomImageWallpaper.prototype, "_dimLevel", {
60393
+ get: $util.oneOfGetter($oneOfFields = ["dimLevel"]),
60394
+ set: $util.oneOfSetter($oneOfFields)
60395
+ });
60396
+
60397
+ ChatCustomImageWallpaper.create = function create(properties) {
60398
+ return new ChatCustomImageWallpaper(properties);
60399
+ };
60400
+
60401
+ ChatCustomImageWallpaper.encode = function encode(m, w) {
60402
+ if (!w)
60403
+ w = $Writer.create();
60404
+ if (m.directPath != null && Object.hasOwnProperty.call(m, "directPath"))
60405
+ w.uint32(10).string(m.directPath);
60406
+ if (m.mediaKey != null && Object.hasOwnProperty.call(m, "mediaKey"))
60407
+ w.uint32(18).bytes(m.mediaKey);
60408
+ if (m.fileEncSha256 != null && Object.hasOwnProperty.call(m, "fileEncSha256"))
60409
+ w.uint32(26).bytes(m.fileEncSha256);
60410
+ if (m.fileSha256 != null && Object.hasOwnProperty.call(m, "fileSha256"))
60411
+ w.uint32(34).bytes(m.fileSha256);
60412
+ if (m.dimLevel != null && Object.hasOwnProperty.call(m, "dimLevel"))
60413
+ w.uint32(45).float(m.dimLevel);
60414
+ return w;
60415
+ };
60416
+
60417
+ ChatCustomImageWallpaper.decode = function decode(r, l, e, n) {
60418
+ if (!(r instanceof $Reader))
60419
+ r = $Reader.create(r);
60420
+ if (n === undefined)
60421
+ n = 0;
60422
+ if (n > $Reader.recursionLimit)
60423
+ throw Error("maximum nesting depth exceeded");
60424
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.ChatCustomImageWallpaper();
60425
+ while (r.pos < c) {
60426
+ var t = r.uint32();
60427
+ if (t === e)
60428
+ break;
60429
+ switch (t >>> 3) {
60430
+ case 1: {
60431
+ m.directPath = r.string();
60432
+ break;
60433
+ }
60434
+ case 2: {
60435
+ m.mediaKey = r.bytes();
60436
+ break;
60437
+ }
60438
+ case 3: {
60439
+ m.fileEncSha256 = r.bytes();
60440
+ break;
60441
+ }
60442
+ case 4: {
60443
+ m.fileSha256 = r.bytes();
60444
+ break;
60445
+ }
60446
+ case 5: {
60447
+ m.dimLevel = r.float();
60448
+ break;
60449
+ }
60450
+ default:
60451
+ r.skipType(t & 7, n);
60452
+ break;
60453
+ }
60454
+ }
60455
+ return m;
60456
+ };
60457
+
60458
+ ChatCustomImageWallpaper.fromObject = function fromObject(d, n) {
60459
+ if (d instanceof $root.proto.Message.ChatCustomImageWallpaper)
60460
+ return d;
60461
+ if (n === undefined)
60462
+ n = 0;
60463
+ if (n > $util.recursionLimit)
60464
+ throw Error("maximum nesting depth exceeded");
60465
+ var m = new $root.proto.Message.ChatCustomImageWallpaper();
60466
+ if (d.directPath != null) {
60467
+ m.directPath = String(d.directPath);
60468
+ }
60469
+ if (d.mediaKey != null) {
60470
+ if (typeof d.mediaKey === "string")
60471
+ $util.base64.decode(d.mediaKey, m.mediaKey = $util.newBuffer($util.base64.length(d.mediaKey)), 0);
60472
+ else if (d.mediaKey.length >= 0)
60473
+ m.mediaKey = d.mediaKey;
60474
+ }
60475
+ if (d.fileEncSha256 != null) {
60476
+ if (typeof d.fileEncSha256 === "string")
60477
+ $util.base64.decode(d.fileEncSha256, m.fileEncSha256 = $util.newBuffer($util.base64.length(d.fileEncSha256)), 0);
60478
+ else if (d.fileEncSha256.length >= 0)
60479
+ m.fileEncSha256 = d.fileEncSha256;
60480
+ }
60481
+ if (d.fileSha256 != null) {
60482
+ if (typeof d.fileSha256 === "string")
60483
+ $util.base64.decode(d.fileSha256, m.fileSha256 = $util.newBuffer($util.base64.length(d.fileSha256)), 0);
60484
+ else if (d.fileSha256.length >= 0)
60485
+ m.fileSha256 = d.fileSha256;
60486
+ }
60487
+ if (d.dimLevel != null) {
60488
+ m.dimLevel = Number(d.dimLevel);
60489
+ }
60490
+ return m;
60491
+ };
60492
+
60493
+ ChatCustomImageWallpaper.toObject = function toObject(m, o) {
60494
+ if (!o)
60495
+ o = {};
60496
+ var d = {};
60497
+ if (m.directPath != null && m.hasOwnProperty("directPath")) {
60498
+ d.directPath = m.directPath;
60499
+ if (o.oneofs)
60500
+ d._directPath = "directPath";
60501
+ }
60502
+ if (m.mediaKey != null && m.hasOwnProperty("mediaKey")) {
60503
+ d.mediaKey = o.bytes === String ? $util.base64.encode(m.mediaKey, 0, m.mediaKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.mediaKey) : m.mediaKey;
60504
+ if (o.oneofs)
60505
+ d._mediaKey = "mediaKey";
60506
+ }
60507
+ if (m.fileEncSha256 != null && m.hasOwnProperty("fileEncSha256")) {
60508
+ d.fileEncSha256 = o.bytes === String ? $util.base64.encode(m.fileEncSha256, 0, m.fileEncSha256.length) : o.bytes === Array ? Array.prototype.slice.call(m.fileEncSha256) : m.fileEncSha256;
60509
+ if (o.oneofs)
60510
+ d._fileEncSha256 = "fileEncSha256";
60511
+ }
60512
+ if (m.fileSha256 != null && m.hasOwnProperty("fileSha256")) {
60513
+ d.fileSha256 = o.bytes === String ? $util.base64.encode(m.fileSha256, 0, m.fileSha256.length) : o.bytes === Array ? Array.prototype.slice.call(m.fileSha256) : m.fileSha256;
60514
+ if (o.oneofs)
60515
+ d._fileSha256 = "fileSha256";
60516
+ }
60517
+ if (m.dimLevel != null && m.hasOwnProperty("dimLevel")) {
60518
+ d.dimLevel = o.json && !isFinite(m.dimLevel) ? String(m.dimLevel) : m.dimLevel;
60519
+ if (o.oneofs)
60520
+ d._dimLevel = "dimLevel";
60521
+ }
60522
+ return d;
60523
+ };
60524
+
60525
+ ChatCustomImageWallpaper.prototype.toJSON = function toJSON() {
60526
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60527
+ };
60528
+
60529
+ ChatCustomImageWallpaper.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
60530
+ if (typeUrlPrefix === undefined) {
60531
+ typeUrlPrefix = "type.googleapis.com";
60532
+ }
60533
+ return typeUrlPrefix + "/proto.Message.ChatCustomImageWallpaper";
60534
+ };
60535
+
60536
+ return ChatCustomImageWallpaper;
60537
+ })();
60538
+
59792
60539
  Message.ProtocolMessage = (function() {
59793
60540
 
59794
60541
  function ProtocolMessage(p) {
@@ -59822,6 +60569,7 @@ export const proto = $root.proto = (() => {
59822
60569
  ProtocolMessage.prototype.aiPsiMetadata = null;
59823
60570
  ProtocolMessage.prototype.aiQueryFanout = null;
59824
60571
  ProtocolMessage.prototype.memberLabel = null;
60572
+ ProtocolMessage.prototype.chatThemeSetting = null;
59825
60573
 
59826
60574
  let $oneOfFields;
59827
60575
 
@@ -59921,6 +60669,11 @@ export const proto = $root.proto = (() => {
59921
60669
  set: $util.oneOfSetter($oneOfFields)
59922
60670
  });
59923
60671
 
60672
+ Object.defineProperty(ProtocolMessage.prototype, "_chatThemeSetting", {
60673
+ get: $util.oneOfGetter($oneOfFields = ["chatThemeSetting"]),
60674
+ set: $util.oneOfSetter($oneOfFields)
60675
+ });
60676
+
59924
60677
  // Virtual OneOf for proto3 optional field
59925
60678
  Object.defineProperty(ProtocolMessage.prototype, "_requestWelcomeMessageMetadata", {
59926
60679
  get: $util.oneOfGetter($oneOfFields = ["requestWelcomeMessageMetadata"]),
@@ -60024,6 +60777,8 @@ export const proto = $root.proto = (() => {
60024
60777
  $root.proto.AIQueryFanout.encode(m.aiQueryFanout, w.uint32(210).fork()).ldelim();
60025
60778
  if (m.memberLabel != null && Object.hasOwnProperty.call(m, "memberLabel"))
60026
60779
  $root.proto.MemberLabel.encode(m.memberLabel, w.uint32(218).fork()).ldelim();
60780
+ if (m.chatThemeSetting != null && Object.hasOwnProperty.call(m, "chatThemeSetting"))
60781
+ $root.proto.Message.ChatThemeSetting.encode(m.chatThemeSetting, w.uint32(242).fork()).ldelim();
60027
60782
  return w;
60028
60783
  };
60029
60784
 
@@ -60132,6 +60887,10 @@ export const proto = $root.proto = (() => {
60132
60887
  m.memberLabel = $root.proto.MemberLabel.decode(r, r.uint32());
60133
60888
  break;
60134
60889
  }
60890
+ case 30: {
60891
+ m.chatThemeSetting = $root.proto.Message.ChatThemeSetting.decode(r, r.uint32());
60892
+ break;
60893
+ }
60135
60894
  default:
60136
60895
  r.skipType(t & 7);
60137
60896
  break;
@@ -60378,6 +61137,11 @@ export const proto = $root.proto = (() => {
60378
61137
  throw TypeError(".proto.Message.ProtocolMessage.memberLabel: object expected");
60379
61138
  m.memberLabel = $root.proto.MemberLabel.fromObject(d.memberLabel);
60380
61139
  }
61140
+ if (d.chatThemeSetting != null) {
61141
+ if (typeof d.chatThemeSetting !== "object")
61142
+ throw TypeError(".proto.Message.ProtocolMessage.chatThemeSetting: object expected");
61143
+ m.chatThemeSetting = $root.proto.Message.ChatThemeSetting.fromObject(d.chatThemeSetting);
61144
+ }
60381
61145
  return m;
60382
61146
  };
60383
61147
 
@@ -60511,6 +61275,11 @@ export const proto = $root.proto = (() => {
60511
61275
  if (o.oneofs)
60512
61276
  d._memberLabel = "memberLabel";
60513
61277
  }
61278
+ if (m.chatThemeSetting != null && m.hasOwnProperty("chatThemeSetting")) {
61279
+ d.chatThemeSetting = $root.proto.Message.ChatThemeSetting.toObject(m.chatThemeSetting, o);
61280
+ if (o.oneofs)
61281
+ d._chatThemeSetting = "chatThemeSetting";
61282
+ }
60514
61283
  return d;
60515
61284
  };
60516
61285
 
@@ -60553,6 +61322,7 @@ export const proto = $root.proto = (() => {
60553
61322
  values[valuesById[28] = "AI_PSI_METADATA"] = 28;
60554
61323
  values[valuesById[29] = "AI_QUERY_FANOUT"] = 29;
60555
61324
  values[valuesById[30] = "GROUP_MEMBER_LABEL_CHANGE"] = 30;
61325
+ values[valuesById[34] = "CHAT_THEME_SETTING"] = 34;
60556
61326
  return values;
60557
61327
  })();
60558
61328