discord-protos 1.2.90 → 1.2.91
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/discord_protos/__init__.py +1 -1
- package/discord_protos/discord_experimentation/v1/Experiment.proto +2 -1
- package/discord_protos/discord_experimentation/v1/Experiment_pb2.py +35 -35
- package/discord_protos/discord_users/v1/PreloadedUserSettings.proto +1 -0
- package/discord_protos/discord_users/v1/PreloadedUserSettings_pb2.py +105 -105
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +13 -13
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties_pb2.py +17 -17
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +317 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +698 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PremiumMarketingComponentProperties_MobileBottomSheet = exports.PremiumMarketingComponentProperties_CTAButton = exports.PremiumMarketingComponentProperties_PaymentModalBanner = exports.PremiumMarketingComponentProperties_MarketingPageBanner = exports.PremiumMarketingComponentProperties_MarketingPageBannerButton = exports.PremiumMarketingComponentProperties_PremiumTab = exports.PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties = exports.PremiumMarketingComponentProperties_Variant1Storage = exports.PremiumMarketingComponentProperties_Subtitle = exports.PremiumMarketingComponentProperties_SubscriptionButton = exports.PremiumMarketingComponentProperties_FeatureCard = exports.PremiumMarketingComponentProperties = exports.PremiumMarketingComponentProperties_ButtonAction = void 0;
|
|
3
|
+
exports.PremiumMarketingComponentProperties_GiftReminderCoachmark = exports.PremiumMarketingComponentProperties_GiftReminderNagbar = exports.PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner = exports.PremiumMarketingComponentProperties_GiftCustomizationBanner = exports.PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner = exports.PremiumMarketingComponentProperties_ThemeAwareAsset = exports.PremiumMarketingComponentProperties_GiftIconCoachmark = exports.PremiumMarketingComponentProperties_GiftIcon = exports.PremiumMarketingComponentProperties_Gradient = exports.PremiumMarketingComponentProperties_MobileBottomSheet = exports.PremiumMarketingComponentProperties_CTAButton = exports.PremiumMarketingComponentProperties_PaymentModalBanner = exports.PremiumMarketingComponentProperties_MarketingPageBanner = exports.PremiumMarketingComponentProperties_MarketingPageBannerButton = exports.PremiumMarketingComponentProperties_PremiumTab = exports.PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties = exports.PremiumMarketingComponentProperties_Variant1Storage = exports.PremiumMarketingComponentProperties_Subtitle = exports.PremiumMarketingComponentProperties_SubscriptionButton = exports.PremiumMarketingComponentProperties_FeatureCard = exports.PremiumMarketingComponentProperties = exports.PremiumMarketingComponentProperties_ButtonAction = void 0;
|
|
4
4
|
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
5
|
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
6
|
const runtime_3 = require("@protobuf-ts/runtime");
|
|
@@ -41,7 +41,14 @@ class PremiumMarketingComponentProperties$Type extends runtime_4.MessageType {
|
|
|
41
41
|
{ no: 4, name: "premium_tab", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_PremiumTab },
|
|
42
42
|
{ no: 5, name: "marketing_page_banner", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_MarketingPageBanner },
|
|
43
43
|
{ no: 6, name: "payment_modal_banner", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_PaymentModalBanner },
|
|
44
|
-
{ no: 7, name: "mobile_bottom_sheet", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_MobileBottomSheet }
|
|
44
|
+
{ no: 7, name: "mobile_bottom_sheet", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_MobileBottomSheet },
|
|
45
|
+
{ no: 8, name: "gift_icon", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_GiftIcon },
|
|
46
|
+
{ no: 9, name: "gift_icon_coachmark", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_GiftIconCoachmark },
|
|
47
|
+
{ no: 10, name: "gift_plan_selection_card_banner", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner },
|
|
48
|
+
{ no: 11, name: "gift_customization_banner", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_GiftCustomizationBanner },
|
|
49
|
+
{ no: 12, name: "billing_settings_nitro_gift_banner", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner },
|
|
50
|
+
{ no: 13, name: "gift_reminder_nagbar", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_GiftReminderNagbar },
|
|
51
|
+
{ no: 14, name: "gift_reminder_coachmark", kind: "message", oneof: "properties", T: () => exports.PremiumMarketingComponentProperties_GiftReminderCoachmark }
|
|
45
52
|
]);
|
|
46
53
|
}
|
|
47
54
|
create(value) {
|
|
@@ -96,6 +103,48 @@ class PremiumMarketingComponentProperties$Type extends runtime_4.MessageType {
|
|
|
96
103
|
mobileBottomSheet: exports.PremiumMarketingComponentProperties_MobileBottomSheet.internalBinaryRead(reader, reader.uint32(), options, message.properties.mobileBottomSheet)
|
|
97
104
|
};
|
|
98
105
|
break;
|
|
106
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIcon gift_icon */ 8:
|
|
107
|
+
message.properties = {
|
|
108
|
+
oneofKind: "giftIcon",
|
|
109
|
+
giftIcon: exports.PremiumMarketingComponentProperties_GiftIcon.internalBinaryRead(reader, reader.uint32(), options, message.properties.giftIcon)
|
|
110
|
+
};
|
|
111
|
+
break;
|
|
112
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIconCoachmark gift_icon_coachmark */ 9:
|
|
113
|
+
message.properties = {
|
|
114
|
+
oneofKind: "giftIconCoachmark",
|
|
115
|
+
giftIconCoachmark: exports.PremiumMarketingComponentProperties_GiftIconCoachmark.internalBinaryRead(reader, reader.uint32(), options, message.properties.giftIconCoachmark)
|
|
116
|
+
};
|
|
117
|
+
break;
|
|
118
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftPlanSelectionCardBanner gift_plan_selection_card_banner */ 10:
|
|
119
|
+
message.properties = {
|
|
120
|
+
oneofKind: "giftPlanSelectionCardBanner",
|
|
121
|
+
giftPlanSelectionCardBanner: exports.PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner.internalBinaryRead(reader, reader.uint32(), options, message.properties.giftPlanSelectionCardBanner)
|
|
122
|
+
};
|
|
123
|
+
break;
|
|
124
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftCustomizationBanner gift_customization_banner */ 11:
|
|
125
|
+
message.properties = {
|
|
126
|
+
oneofKind: "giftCustomizationBanner",
|
|
127
|
+
giftCustomizationBanner: exports.PremiumMarketingComponentProperties_GiftCustomizationBanner.internalBinaryRead(reader, reader.uint32(), options, message.properties.giftCustomizationBanner)
|
|
128
|
+
};
|
|
129
|
+
break;
|
|
130
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsNitroGiftBanner billing_settings_nitro_gift_banner */ 12:
|
|
131
|
+
message.properties = {
|
|
132
|
+
oneofKind: "billingSettingsNitroGiftBanner",
|
|
133
|
+
billingSettingsNitroGiftBanner: exports.PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner.internalBinaryRead(reader, reader.uint32(), options, message.properties.billingSettingsNitroGiftBanner)
|
|
134
|
+
};
|
|
135
|
+
break;
|
|
136
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderNagbar gift_reminder_nagbar */ 13:
|
|
137
|
+
message.properties = {
|
|
138
|
+
oneofKind: "giftReminderNagbar",
|
|
139
|
+
giftReminderNagbar: exports.PremiumMarketingComponentProperties_GiftReminderNagbar.internalBinaryRead(reader, reader.uint32(), options, message.properties.giftReminderNagbar)
|
|
140
|
+
};
|
|
141
|
+
break;
|
|
142
|
+
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderCoachmark gift_reminder_coachmark */ 14:
|
|
143
|
+
message.properties = {
|
|
144
|
+
oneofKind: "giftReminderCoachmark",
|
|
145
|
+
giftReminderCoachmark: exports.PremiumMarketingComponentProperties_GiftReminderCoachmark.internalBinaryRead(reader, reader.uint32(), options, message.properties.giftReminderCoachmark)
|
|
146
|
+
};
|
|
147
|
+
break;
|
|
99
148
|
default:
|
|
100
149
|
let u = options.readUnknownField;
|
|
101
150
|
if (u === "throw")
|
|
@@ -129,6 +178,27 @@ class PremiumMarketingComponentProperties$Type extends runtime_4.MessageType {
|
|
|
129
178
|
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MobileBottomSheet mobile_bottom_sheet = 7; */
|
|
130
179
|
if (message.properties.oneofKind === "mobileBottomSheet")
|
|
131
180
|
exports.PremiumMarketingComponentProperties_MobileBottomSheet.internalBinaryWrite(message.properties.mobileBottomSheet, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
181
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIcon gift_icon = 8; */
|
|
182
|
+
if (message.properties.oneofKind === "giftIcon")
|
|
183
|
+
exports.PremiumMarketingComponentProperties_GiftIcon.internalBinaryWrite(message.properties.giftIcon, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
184
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIconCoachmark gift_icon_coachmark = 9; */
|
|
185
|
+
if (message.properties.oneofKind === "giftIconCoachmark")
|
|
186
|
+
exports.PremiumMarketingComponentProperties_GiftIconCoachmark.internalBinaryWrite(message.properties.giftIconCoachmark, writer.tag(9, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
187
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftPlanSelectionCardBanner gift_plan_selection_card_banner = 10; */
|
|
188
|
+
if (message.properties.oneofKind === "giftPlanSelectionCardBanner")
|
|
189
|
+
exports.PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner.internalBinaryWrite(message.properties.giftPlanSelectionCardBanner, writer.tag(10, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
190
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftCustomizationBanner gift_customization_banner = 11; */
|
|
191
|
+
if (message.properties.oneofKind === "giftCustomizationBanner")
|
|
192
|
+
exports.PremiumMarketingComponentProperties_GiftCustomizationBanner.internalBinaryWrite(message.properties.giftCustomizationBanner, writer.tag(11, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
193
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsNitroGiftBanner billing_settings_nitro_gift_banner = 12; */
|
|
194
|
+
if (message.properties.oneofKind === "billingSettingsNitroGiftBanner")
|
|
195
|
+
exports.PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner.internalBinaryWrite(message.properties.billingSettingsNitroGiftBanner, writer.tag(12, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
196
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderNagbar gift_reminder_nagbar = 13; */
|
|
197
|
+
if (message.properties.oneofKind === "giftReminderNagbar")
|
|
198
|
+
exports.PremiumMarketingComponentProperties_GiftReminderNagbar.internalBinaryWrite(message.properties.giftReminderNagbar, writer.tag(13, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
199
|
+
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderCoachmark gift_reminder_coachmark = 14; */
|
|
200
|
+
if (message.properties.oneofKind === "giftReminderCoachmark")
|
|
201
|
+
exports.PremiumMarketingComponentProperties_GiftReminderCoachmark.internalBinaryWrite(message.properties.giftReminderCoachmark, writer.tag(14, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
132
202
|
let u = options.writeUnknownFields;
|
|
133
203
|
if (u !== false)
|
|
134
204
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -972,3 +1042,629 @@ class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends runtime
|
|
|
972
1042
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MobileBottomSheet
|
|
973
1043
|
*/
|
|
974
1044
|
exports.PremiumMarketingComponentProperties_MobileBottomSheet = new PremiumMarketingComponentProperties_MobileBottomSheet$Type();
|
|
1045
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1046
|
+
class PremiumMarketingComponentProperties_Gradient$Type extends runtime_4.MessageType {
|
|
1047
|
+
constructor() {
|
|
1048
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient", [
|
|
1049
|
+
{ no: 1, name: "colors", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
1050
|
+
{ no: 2, name: "angle", kind: "scalar", T: 2 /*ScalarType.FLOAT*/ }
|
|
1051
|
+
]);
|
|
1052
|
+
}
|
|
1053
|
+
create(value) {
|
|
1054
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1055
|
+
message.colors = [];
|
|
1056
|
+
message.angle = 0;
|
|
1057
|
+
if (value !== undefined)
|
|
1058
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1059
|
+
return message;
|
|
1060
|
+
}
|
|
1061
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1062
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1063
|
+
while (reader.pos < end) {
|
|
1064
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1065
|
+
switch (fieldNo) {
|
|
1066
|
+
case /* repeated string colors = 1 [packed = false] */ 1:
|
|
1067
|
+
message.colors.push(reader.string());
|
|
1068
|
+
break;
|
|
1069
|
+
case /* float angle */ 2:
|
|
1070
|
+
message.angle = reader.float();
|
|
1071
|
+
break;
|
|
1072
|
+
default:
|
|
1073
|
+
let u = options.readUnknownField;
|
|
1074
|
+
if (u === "throw")
|
|
1075
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1076
|
+
let d = reader.skip(wireType);
|
|
1077
|
+
if (u !== false)
|
|
1078
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
return message;
|
|
1082
|
+
}
|
|
1083
|
+
internalBinaryWrite(message, writer, options) {
|
|
1084
|
+
/* repeated string colors = 1 [packed = false]; */
|
|
1085
|
+
for (let i = 0; i < message.colors.length; i++)
|
|
1086
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.colors[i]);
|
|
1087
|
+
/* float angle = 2; */
|
|
1088
|
+
if (message.angle !== 0)
|
|
1089
|
+
writer.tag(2, runtime_1.WireType.Bit32).float(message.angle);
|
|
1090
|
+
let u = options.writeUnknownFields;
|
|
1091
|
+
if (u !== false)
|
|
1092
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1093
|
+
return writer;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient
|
|
1098
|
+
*/
|
|
1099
|
+
exports.PremiumMarketingComponentProperties_Gradient = new PremiumMarketingComponentProperties_Gradient$Type();
|
|
1100
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1101
|
+
class PremiumMarketingComponentProperties_GiftIcon$Type extends runtime_4.MessageType {
|
|
1102
|
+
constructor() {
|
|
1103
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIcon", [
|
|
1104
|
+
{ no: 1, name: "box_animation_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1105
|
+
{ no: 2, name: "trinket_animation_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1106
|
+
{ no: 3, name: "trinket_glow_animation_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1107
|
+
{ no: 4, name: "gradient", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Gradient }
|
|
1108
|
+
]);
|
|
1109
|
+
}
|
|
1110
|
+
create(value) {
|
|
1111
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1112
|
+
message.boxAnimationUrl = "";
|
|
1113
|
+
message.trinketAnimationUrl = "";
|
|
1114
|
+
message.trinketGlowAnimationUrl = "";
|
|
1115
|
+
if (value !== undefined)
|
|
1116
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1117
|
+
return message;
|
|
1118
|
+
}
|
|
1119
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1120
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1121
|
+
while (reader.pos < end) {
|
|
1122
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1123
|
+
switch (fieldNo) {
|
|
1124
|
+
case /* string box_animation_url */ 1:
|
|
1125
|
+
message.boxAnimationUrl = reader.string();
|
|
1126
|
+
break;
|
|
1127
|
+
case /* string trinket_animation_url */ 2:
|
|
1128
|
+
message.trinketAnimationUrl = reader.string();
|
|
1129
|
+
break;
|
|
1130
|
+
case /* string trinket_glow_animation_url */ 3:
|
|
1131
|
+
message.trinketGlowAnimationUrl = reader.string();
|
|
1132
|
+
break;
|
|
1133
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient */ 4:
|
|
1134
|
+
message.gradient = exports.PremiumMarketingComponentProperties_Gradient.internalBinaryRead(reader, reader.uint32(), options, message.gradient);
|
|
1135
|
+
break;
|
|
1136
|
+
default:
|
|
1137
|
+
let u = options.readUnknownField;
|
|
1138
|
+
if (u === "throw")
|
|
1139
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1140
|
+
let d = reader.skip(wireType);
|
|
1141
|
+
if (u !== false)
|
|
1142
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
return message;
|
|
1146
|
+
}
|
|
1147
|
+
internalBinaryWrite(message, writer, options) {
|
|
1148
|
+
/* string box_animation_url = 1; */
|
|
1149
|
+
if (message.boxAnimationUrl !== "")
|
|
1150
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.boxAnimationUrl);
|
|
1151
|
+
/* string trinket_animation_url = 2; */
|
|
1152
|
+
if (message.trinketAnimationUrl !== "")
|
|
1153
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.trinketAnimationUrl);
|
|
1154
|
+
/* string trinket_glow_animation_url = 3; */
|
|
1155
|
+
if (message.trinketGlowAnimationUrl !== "")
|
|
1156
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.trinketGlowAnimationUrl);
|
|
1157
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient = 4; */
|
|
1158
|
+
if (message.gradient)
|
|
1159
|
+
exports.PremiumMarketingComponentProperties_Gradient.internalBinaryWrite(message.gradient, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1160
|
+
let u = options.writeUnknownFields;
|
|
1161
|
+
if (u !== false)
|
|
1162
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1163
|
+
return writer;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIcon
|
|
1168
|
+
*/
|
|
1169
|
+
exports.PremiumMarketingComponentProperties_GiftIcon = new PremiumMarketingComponentProperties_GiftIcon$Type();
|
|
1170
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1171
|
+
class PremiumMarketingComponentProperties_GiftIconCoachmark$Type extends runtime_4.MessageType {
|
|
1172
|
+
constructor() {
|
|
1173
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIconCoachmark", [
|
|
1174
|
+
{ no: 1, name: "header_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1175
|
+
{ no: 2, name: "body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1176
|
+
{ no: 3, name: "asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1177
|
+
]);
|
|
1178
|
+
}
|
|
1179
|
+
create(value) {
|
|
1180
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1181
|
+
message.headerKey = "";
|
|
1182
|
+
message.bodyKey = "";
|
|
1183
|
+
message.assetUrl = "";
|
|
1184
|
+
if (value !== undefined)
|
|
1185
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1186
|
+
return message;
|
|
1187
|
+
}
|
|
1188
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1189
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1190
|
+
while (reader.pos < end) {
|
|
1191
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1192
|
+
switch (fieldNo) {
|
|
1193
|
+
case /* string header_key */ 1:
|
|
1194
|
+
message.headerKey = reader.string();
|
|
1195
|
+
break;
|
|
1196
|
+
case /* string body_key */ 2:
|
|
1197
|
+
message.bodyKey = reader.string();
|
|
1198
|
+
break;
|
|
1199
|
+
case /* string asset_url */ 3:
|
|
1200
|
+
message.assetUrl = reader.string();
|
|
1201
|
+
break;
|
|
1202
|
+
default:
|
|
1203
|
+
let u = options.readUnknownField;
|
|
1204
|
+
if (u === "throw")
|
|
1205
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1206
|
+
let d = reader.skip(wireType);
|
|
1207
|
+
if (u !== false)
|
|
1208
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
return message;
|
|
1212
|
+
}
|
|
1213
|
+
internalBinaryWrite(message, writer, options) {
|
|
1214
|
+
/* string header_key = 1; */
|
|
1215
|
+
if (message.headerKey !== "")
|
|
1216
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.headerKey);
|
|
1217
|
+
/* string body_key = 2; */
|
|
1218
|
+
if (message.bodyKey !== "")
|
|
1219
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.bodyKey);
|
|
1220
|
+
/* string asset_url = 3; */
|
|
1221
|
+
if (message.assetUrl !== "")
|
|
1222
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.assetUrl);
|
|
1223
|
+
let u = options.writeUnknownFields;
|
|
1224
|
+
if (u !== false)
|
|
1225
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1226
|
+
return writer;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftIconCoachmark
|
|
1231
|
+
*/
|
|
1232
|
+
exports.PremiumMarketingComponentProperties_GiftIconCoachmark = new PremiumMarketingComponentProperties_GiftIconCoachmark$Type();
|
|
1233
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1234
|
+
class PremiumMarketingComponentProperties_ThemeAwareAsset$Type extends runtime_4.MessageType {
|
|
1235
|
+
constructor() {
|
|
1236
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset", [
|
|
1237
|
+
{ no: 1, name: "light_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1238
|
+
{ no: 2, name: "dark_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1239
|
+
]);
|
|
1240
|
+
}
|
|
1241
|
+
create(value) {
|
|
1242
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1243
|
+
message.lightUrl = "";
|
|
1244
|
+
message.darkUrl = "";
|
|
1245
|
+
if (value !== undefined)
|
|
1246
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1247
|
+
return message;
|
|
1248
|
+
}
|
|
1249
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1250
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1251
|
+
while (reader.pos < end) {
|
|
1252
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1253
|
+
switch (fieldNo) {
|
|
1254
|
+
case /* string light_url */ 1:
|
|
1255
|
+
message.lightUrl = reader.string();
|
|
1256
|
+
break;
|
|
1257
|
+
case /* string dark_url */ 2:
|
|
1258
|
+
message.darkUrl = reader.string();
|
|
1259
|
+
break;
|
|
1260
|
+
default:
|
|
1261
|
+
let u = options.readUnknownField;
|
|
1262
|
+
if (u === "throw")
|
|
1263
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1264
|
+
let d = reader.skip(wireType);
|
|
1265
|
+
if (u !== false)
|
|
1266
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
return message;
|
|
1270
|
+
}
|
|
1271
|
+
internalBinaryWrite(message, writer, options) {
|
|
1272
|
+
/* string light_url = 1; */
|
|
1273
|
+
if (message.lightUrl !== "")
|
|
1274
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.lightUrl);
|
|
1275
|
+
/* string dark_url = 2; */
|
|
1276
|
+
if (message.darkUrl !== "")
|
|
1277
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.darkUrl);
|
|
1278
|
+
let u = options.writeUnknownFields;
|
|
1279
|
+
if (u !== false)
|
|
1280
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1281
|
+
return writer;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset
|
|
1286
|
+
*/
|
|
1287
|
+
exports.PremiumMarketingComponentProperties_ThemeAwareAsset = new PremiumMarketingComponentProperties_ThemeAwareAsset$Type();
|
|
1288
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1289
|
+
class PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner$Type extends runtime_4.MessageType {
|
|
1290
|
+
constructor() {
|
|
1291
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftPlanSelectionCardBanner", [
|
|
1292
|
+
{ no: 1, name: "header_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1293
|
+
{ no: 2, name: "desktop_body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1294
|
+
{ no: 3, name: "mobile_body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1295
|
+
{ no: 4, name: "avatar_asset", kind: "message", T: () => exports.PremiumMarketingComponentProperties_ThemeAwareAsset },
|
|
1296
|
+
{ no: 5, name: "banner_asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1297
|
+
{ no: 6, name: "background_asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1298
|
+
{ no: 7, name: "card_asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1299
|
+
{ no: 8, name: "gradient", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Gradient }
|
|
1300
|
+
]);
|
|
1301
|
+
}
|
|
1302
|
+
create(value) {
|
|
1303
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1304
|
+
message.headerKey = "";
|
|
1305
|
+
message.desktopBodyKey = "";
|
|
1306
|
+
message.mobileBodyKey = "";
|
|
1307
|
+
message.bannerAssetUrl = "";
|
|
1308
|
+
message.backgroundAssetUrl = "";
|
|
1309
|
+
message.cardAssetUrl = "";
|
|
1310
|
+
if (value !== undefined)
|
|
1311
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1312
|
+
return message;
|
|
1313
|
+
}
|
|
1314
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1315
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1316
|
+
while (reader.pos < end) {
|
|
1317
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1318
|
+
switch (fieldNo) {
|
|
1319
|
+
case /* string header_key */ 1:
|
|
1320
|
+
message.headerKey = reader.string();
|
|
1321
|
+
break;
|
|
1322
|
+
case /* string desktop_body_key */ 2:
|
|
1323
|
+
message.desktopBodyKey = reader.string();
|
|
1324
|
+
break;
|
|
1325
|
+
case /* string mobile_body_key */ 3:
|
|
1326
|
+
message.mobileBodyKey = reader.string();
|
|
1327
|
+
break;
|
|
1328
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset avatar_asset */ 4:
|
|
1329
|
+
message.avatarAsset = exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryRead(reader, reader.uint32(), options, message.avatarAsset);
|
|
1330
|
+
break;
|
|
1331
|
+
case /* string banner_asset_url */ 5:
|
|
1332
|
+
message.bannerAssetUrl = reader.string();
|
|
1333
|
+
break;
|
|
1334
|
+
case /* string background_asset_url */ 6:
|
|
1335
|
+
message.backgroundAssetUrl = reader.string();
|
|
1336
|
+
break;
|
|
1337
|
+
case /* string card_asset_url */ 7:
|
|
1338
|
+
message.cardAssetUrl = reader.string();
|
|
1339
|
+
break;
|
|
1340
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient */ 8:
|
|
1341
|
+
message.gradient = exports.PremiumMarketingComponentProperties_Gradient.internalBinaryRead(reader, reader.uint32(), options, message.gradient);
|
|
1342
|
+
break;
|
|
1343
|
+
default:
|
|
1344
|
+
let u = options.readUnknownField;
|
|
1345
|
+
if (u === "throw")
|
|
1346
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1347
|
+
let d = reader.skip(wireType);
|
|
1348
|
+
if (u !== false)
|
|
1349
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
return message;
|
|
1353
|
+
}
|
|
1354
|
+
internalBinaryWrite(message, writer, options) {
|
|
1355
|
+
/* string header_key = 1; */
|
|
1356
|
+
if (message.headerKey !== "")
|
|
1357
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.headerKey);
|
|
1358
|
+
/* string desktop_body_key = 2; */
|
|
1359
|
+
if (message.desktopBodyKey !== "")
|
|
1360
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.desktopBodyKey);
|
|
1361
|
+
/* string mobile_body_key = 3; */
|
|
1362
|
+
if (message.mobileBodyKey !== "")
|
|
1363
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.mobileBodyKey);
|
|
1364
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset avatar_asset = 4; */
|
|
1365
|
+
if (message.avatarAsset)
|
|
1366
|
+
exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryWrite(message.avatarAsset, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1367
|
+
/* string banner_asset_url = 5; */
|
|
1368
|
+
if (message.bannerAssetUrl !== "")
|
|
1369
|
+
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.bannerAssetUrl);
|
|
1370
|
+
/* string background_asset_url = 6; */
|
|
1371
|
+
if (message.backgroundAssetUrl !== "")
|
|
1372
|
+
writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.backgroundAssetUrl);
|
|
1373
|
+
/* string card_asset_url = 7; */
|
|
1374
|
+
if (message.cardAssetUrl !== "")
|
|
1375
|
+
writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.cardAssetUrl);
|
|
1376
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient = 8; */
|
|
1377
|
+
if (message.gradient)
|
|
1378
|
+
exports.PremiumMarketingComponentProperties_Gradient.internalBinaryWrite(message.gradient, writer.tag(8, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1379
|
+
let u = options.writeUnknownFields;
|
|
1380
|
+
if (u !== false)
|
|
1381
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1382
|
+
return writer;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftPlanSelectionCardBanner
|
|
1387
|
+
*/
|
|
1388
|
+
exports.PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner = new PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner$Type();
|
|
1389
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1390
|
+
class PremiumMarketingComponentProperties_GiftCustomizationBanner$Type extends runtime_4.MessageType {
|
|
1391
|
+
constructor() {
|
|
1392
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftCustomizationBanner", [
|
|
1393
|
+
{ no: 1, name: "asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1394
|
+
{ no: 2, name: "desktop_body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1395
|
+
{ no: 3, name: "mobile_body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1396
|
+
{ no: 4, name: "gradient", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Gradient },
|
|
1397
|
+
{ no: 5, name: "background_asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1398
|
+
]);
|
|
1399
|
+
}
|
|
1400
|
+
create(value) {
|
|
1401
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1402
|
+
message.assetUrl = "";
|
|
1403
|
+
message.desktopBodyKey = "";
|
|
1404
|
+
message.mobileBodyKey = "";
|
|
1405
|
+
message.backgroundAssetUrl = "";
|
|
1406
|
+
if (value !== undefined)
|
|
1407
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1408
|
+
return message;
|
|
1409
|
+
}
|
|
1410
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1411
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1412
|
+
while (reader.pos < end) {
|
|
1413
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1414
|
+
switch (fieldNo) {
|
|
1415
|
+
case /* string asset_url */ 1:
|
|
1416
|
+
message.assetUrl = reader.string();
|
|
1417
|
+
break;
|
|
1418
|
+
case /* string desktop_body_key */ 2:
|
|
1419
|
+
message.desktopBodyKey = reader.string();
|
|
1420
|
+
break;
|
|
1421
|
+
case /* string mobile_body_key */ 3:
|
|
1422
|
+
message.mobileBodyKey = reader.string();
|
|
1423
|
+
break;
|
|
1424
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient */ 4:
|
|
1425
|
+
message.gradient = exports.PremiumMarketingComponentProperties_Gradient.internalBinaryRead(reader, reader.uint32(), options, message.gradient);
|
|
1426
|
+
break;
|
|
1427
|
+
case /* string background_asset_url */ 5:
|
|
1428
|
+
message.backgroundAssetUrl = reader.string();
|
|
1429
|
+
break;
|
|
1430
|
+
default:
|
|
1431
|
+
let u = options.readUnknownField;
|
|
1432
|
+
if (u === "throw")
|
|
1433
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1434
|
+
let d = reader.skip(wireType);
|
|
1435
|
+
if (u !== false)
|
|
1436
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
return message;
|
|
1440
|
+
}
|
|
1441
|
+
internalBinaryWrite(message, writer, options) {
|
|
1442
|
+
/* string asset_url = 1; */
|
|
1443
|
+
if (message.assetUrl !== "")
|
|
1444
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.assetUrl);
|
|
1445
|
+
/* string desktop_body_key = 2; */
|
|
1446
|
+
if (message.desktopBodyKey !== "")
|
|
1447
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.desktopBodyKey);
|
|
1448
|
+
/* string mobile_body_key = 3; */
|
|
1449
|
+
if (message.mobileBodyKey !== "")
|
|
1450
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.mobileBodyKey);
|
|
1451
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient = 4; */
|
|
1452
|
+
if (message.gradient)
|
|
1453
|
+
exports.PremiumMarketingComponentProperties_Gradient.internalBinaryWrite(message.gradient, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1454
|
+
/* string background_asset_url = 5; */
|
|
1455
|
+
if (message.backgroundAssetUrl !== "")
|
|
1456
|
+
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.backgroundAssetUrl);
|
|
1457
|
+
let u = options.writeUnknownFields;
|
|
1458
|
+
if (u !== false)
|
|
1459
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1460
|
+
return writer;
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftCustomizationBanner
|
|
1465
|
+
*/
|
|
1466
|
+
exports.PremiumMarketingComponentProperties_GiftCustomizationBanner = new PremiumMarketingComponentProperties_GiftCustomizationBanner$Type();
|
|
1467
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1468
|
+
class PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner$Type extends runtime_4.MessageType {
|
|
1469
|
+
constructor() {
|
|
1470
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsNitroGiftBanner", [
|
|
1471
|
+
{ no: 1, name: "asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1472
|
+
{ no: 2, name: "header_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1473
|
+
{ no: 3, name: "body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1474
|
+
{ no: 4, name: "background_asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1475
|
+
{ no: 5, name: "gradient", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Gradient },
|
|
1476
|
+
{ no: 6, name: "text_color", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1477
|
+
{ no: 7, name: "additional_terms_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1478
|
+
]);
|
|
1479
|
+
}
|
|
1480
|
+
create(value) {
|
|
1481
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1482
|
+
message.assetUrl = "";
|
|
1483
|
+
message.headerKey = "";
|
|
1484
|
+
message.bodyKey = "";
|
|
1485
|
+
message.backgroundAssetUrl = "";
|
|
1486
|
+
message.textColor = "";
|
|
1487
|
+
message.additionalTermsKey = "";
|
|
1488
|
+
if (value !== undefined)
|
|
1489
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1490
|
+
return message;
|
|
1491
|
+
}
|
|
1492
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1493
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1494
|
+
while (reader.pos < end) {
|
|
1495
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1496
|
+
switch (fieldNo) {
|
|
1497
|
+
case /* string asset_url */ 1:
|
|
1498
|
+
message.assetUrl = reader.string();
|
|
1499
|
+
break;
|
|
1500
|
+
case /* string header_key */ 2:
|
|
1501
|
+
message.headerKey = reader.string();
|
|
1502
|
+
break;
|
|
1503
|
+
case /* string body_key */ 3:
|
|
1504
|
+
message.bodyKey = reader.string();
|
|
1505
|
+
break;
|
|
1506
|
+
case /* string background_asset_url */ 4:
|
|
1507
|
+
message.backgroundAssetUrl = reader.string();
|
|
1508
|
+
break;
|
|
1509
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient */ 5:
|
|
1510
|
+
message.gradient = exports.PremiumMarketingComponentProperties_Gradient.internalBinaryRead(reader, reader.uint32(), options, message.gradient);
|
|
1511
|
+
break;
|
|
1512
|
+
case /* string text_color */ 6:
|
|
1513
|
+
message.textColor = reader.string();
|
|
1514
|
+
break;
|
|
1515
|
+
case /* string additional_terms_key */ 7:
|
|
1516
|
+
message.additionalTermsKey = reader.string();
|
|
1517
|
+
break;
|
|
1518
|
+
default:
|
|
1519
|
+
let u = options.readUnknownField;
|
|
1520
|
+
if (u === "throw")
|
|
1521
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1522
|
+
let d = reader.skip(wireType);
|
|
1523
|
+
if (u !== false)
|
|
1524
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
return message;
|
|
1528
|
+
}
|
|
1529
|
+
internalBinaryWrite(message, writer, options) {
|
|
1530
|
+
/* string asset_url = 1; */
|
|
1531
|
+
if (message.assetUrl !== "")
|
|
1532
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.assetUrl);
|
|
1533
|
+
/* string header_key = 2; */
|
|
1534
|
+
if (message.headerKey !== "")
|
|
1535
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.headerKey);
|
|
1536
|
+
/* string body_key = 3; */
|
|
1537
|
+
if (message.bodyKey !== "")
|
|
1538
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.bodyKey);
|
|
1539
|
+
/* string background_asset_url = 4; */
|
|
1540
|
+
if (message.backgroundAssetUrl !== "")
|
|
1541
|
+
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.backgroundAssetUrl);
|
|
1542
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient gradient = 5; */
|
|
1543
|
+
if (message.gradient)
|
|
1544
|
+
exports.PremiumMarketingComponentProperties_Gradient.internalBinaryWrite(message.gradient, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
1545
|
+
/* string text_color = 6; */
|
|
1546
|
+
if (message.textColor !== "")
|
|
1547
|
+
writer.tag(6, runtime_1.WireType.LengthDelimited).string(message.textColor);
|
|
1548
|
+
/* string additional_terms_key = 7; */
|
|
1549
|
+
if (message.additionalTermsKey !== "")
|
|
1550
|
+
writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.additionalTermsKey);
|
|
1551
|
+
let u = options.writeUnknownFields;
|
|
1552
|
+
if (u !== false)
|
|
1553
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1554
|
+
return writer;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsNitroGiftBanner
|
|
1559
|
+
*/
|
|
1560
|
+
exports.PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner = new PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner$Type();
|
|
1561
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1562
|
+
class PremiumMarketingComponentProperties_GiftReminderNagbar$Type extends runtime_4.MessageType {
|
|
1563
|
+
constructor() {
|
|
1564
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderNagbar", [
|
|
1565
|
+
{ no: 1, name: "body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1566
|
+
]);
|
|
1567
|
+
}
|
|
1568
|
+
create(value) {
|
|
1569
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1570
|
+
message.bodyKey = "";
|
|
1571
|
+
if (value !== undefined)
|
|
1572
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1573
|
+
return message;
|
|
1574
|
+
}
|
|
1575
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1576
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1577
|
+
while (reader.pos < end) {
|
|
1578
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1579
|
+
switch (fieldNo) {
|
|
1580
|
+
case /* string body_key */ 1:
|
|
1581
|
+
message.bodyKey = reader.string();
|
|
1582
|
+
break;
|
|
1583
|
+
default:
|
|
1584
|
+
let u = options.readUnknownField;
|
|
1585
|
+
if (u === "throw")
|
|
1586
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1587
|
+
let d = reader.skip(wireType);
|
|
1588
|
+
if (u !== false)
|
|
1589
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
return message;
|
|
1593
|
+
}
|
|
1594
|
+
internalBinaryWrite(message, writer, options) {
|
|
1595
|
+
/* string body_key = 1; */
|
|
1596
|
+
if (message.bodyKey !== "")
|
|
1597
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.bodyKey);
|
|
1598
|
+
let u = options.writeUnknownFields;
|
|
1599
|
+
if (u !== false)
|
|
1600
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1601
|
+
return writer;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
/**
|
|
1605
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderNagbar
|
|
1606
|
+
*/
|
|
1607
|
+
exports.PremiumMarketingComponentProperties_GiftReminderNagbar = new PremiumMarketingComponentProperties_GiftReminderNagbar$Type();
|
|
1608
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1609
|
+
class PremiumMarketingComponentProperties_GiftReminderCoachmark$Type extends runtime_4.MessageType {
|
|
1610
|
+
constructor() {
|
|
1611
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderCoachmark", [
|
|
1612
|
+
{ no: 1, name: "header_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1613
|
+
{ no: 2, name: "body_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1614
|
+
{ no: 3, name: "asset_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1615
|
+
]);
|
|
1616
|
+
}
|
|
1617
|
+
create(value) {
|
|
1618
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1619
|
+
message.headerKey = "";
|
|
1620
|
+
message.bodyKey = "";
|
|
1621
|
+
message.assetUrl = "";
|
|
1622
|
+
if (value !== undefined)
|
|
1623
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1624
|
+
return message;
|
|
1625
|
+
}
|
|
1626
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1627
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1628
|
+
while (reader.pos < end) {
|
|
1629
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1630
|
+
switch (fieldNo) {
|
|
1631
|
+
case /* string header_key */ 1:
|
|
1632
|
+
message.headerKey = reader.string();
|
|
1633
|
+
break;
|
|
1634
|
+
case /* string body_key */ 2:
|
|
1635
|
+
message.bodyKey = reader.string();
|
|
1636
|
+
break;
|
|
1637
|
+
case /* string asset_url */ 3:
|
|
1638
|
+
message.assetUrl = reader.string();
|
|
1639
|
+
break;
|
|
1640
|
+
default:
|
|
1641
|
+
let u = options.readUnknownField;
|
|
1642
|
+
if (u === "throw")
|
|
1643
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1644
|
+
let d = reader.skip(wireType);
|
|
1645
|
+
if (u !== false)
|
|
1646
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
return message;
|
|
1650
|
+
}
|
|
1651
|
+
internalBinaryWrite(message, writer, options) {
|
|
1652
|
+
/* string header_key = 1; */
|
|
1653
|
+
if (message.headerKey !== "")
|
|
1654
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.headerKey);
|
|
1655
|
+
/* string body_key = 2; */
|
|
1656
|
+
if (message.bodyKey !== "")
|
|
1657
|
+
writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.bodyKey);
|
|
1658
|
+
/* string asset_url = 3; */
|
|
1659
|
+
if (message.assetUrl !== "")
|
|
1660
|
+
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.assetUrl);
|
|
1661
|
+
let u = options.writeUnknownFields;
|
|
1662
|
+
if (u !== false)
|
|
1663
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1664
|
+
return writer;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
/**
|
|
1668
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.GiftReminderCoachmark
|
|
1669
|
+
*/
|
|
1670
|
+
exports.PremiumMarketingComponentProperties_GiftReminderCoachmark = new PremiumMarketingComponentProperties_GiftReminderCoachmark$Type();
|