discord-protos 1.2.272 → 1.2.274
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/discord_experimentation/v1/Experiment.proto +1 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +6 -37
- package/dist/discord_protos/discord_experimentation/v1/Experiment.d.ts +4 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +7 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +21 -157
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +29 -333
- package/package.json +1 -1
|
@@ -438,6 +438,7 @@ message Experiment {
|
|
|
438
438
|
ExposureTracking exposure_tracking = 22;
|
|
439
439
|
AssignmentMode assignment_mode = 25;
|
|
440
440
|
bool enable_edit_raw_json_ui = 23;
|
|
441
|
+
optional google.protobuf.Int32Value dynamic_config_size_limit_override = 46;
|
|
441
442
|
int32 winning_variation_id = 24;
|
|
442
443
|
string extra_outcome_context = 34;
|
|
443
444
|
Type type = 26;
|
|
@@ -39,7 +39,7 @@ message PremiumMarketingComponentProperties {
|
|
|
39
39
|
BUTTON_ACTION_OPEN_SOCIAL_LAYER_STOREFRONT = 7;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
message
|
|
42
|
+
message CTAButton {
|
|
43
43
|
string copy = 1;
|
|
44
44
|
ButtonAction button_action = 2;
|
|
45
45
|
string deeplink_section = 3;
|
|
@@ -71,7 +71,7 @@ message PremiumMarketingComponentProperties {
|
|
|
71
71
|
string video_link = 3;
|
|
72
72
|
string help_article_id = 4;
|
|
73
73
|
repeated FeatureCard feature_cards = 5;
|
|
74
|
-
optional
|
|
74
|
+
optional CTAButton button = 6;
|
|
75
75
|
string hero_art_video_link_light_theme = 8;
|
|
76
76
|
string hero_art_image_link_dark_theme = 9;
|
|
77
77
|
string hero_art_image_link_light_theme = 10;
|
|
@@ -96,14 +96,6 @@ message PremiumMarketingComponentProperties {
|
|
|
96
96
|
optional LocalizedString acknowledged_badge_label_localized = 6;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
message MarketingPageBannerButton {
|
|
100
|
-
string copy = 1;
|
|
101
|
-
ButtonAction button_action = 2;
|
|
102
|
-
string deeplink_section = 3;
|
|
103
|
-
optional LocalizedString copy_localized = 4;
|
|
104
|
-
optional google.protobuf.UInt64Value navigable_storefront_application_id = 5;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
99
|
enum MarketingPageBannerButtonVariant {
|
|
108
100
|
MARKETING_PAGE_BANNER_BUTTON_VARIANT_UNSPECIFIED = 0;
|
|
109
101
|
MARKETING_PAGE_BANNER_BUTTON_VARIANT_EXPRESSIVE = 1;
|
|
@@ -115,7 +107,7 @@ message PremiumMarketingComponentProperties {
|
|
|
115
107
|
string header = 2;
|
|
116
108
|
string body = 3;
|
|
117
109
|
string help_article_id = 4;
|
|
118
|
-
optional
|
|
110
|
+
optional CTAButton button = 5;
|
|
119
111
|
optional HelpArticle help_article = 6;
|
|
120
112
|
optional LocalizedString header_localized = 7;
|
|
121
113
|
optional LocalizedString body_localized = 8;
|
|
@@ -130,14 +122,6 @@ message PremiumMarketingComponentProperties {
|
|
|
130
122
|
optional LocalizedString body_localized = 5;
|
|
131
123
|
}
|
|
132
124
|
|
|
133
|
-
message CTAButton {
|
|
134
|
-
string copy = 1;
|
|
135
|
-
ButtonAction button_action = 2;
|
|
136
|
-
string deeplink_section = 3;
|
|
137
|
-
optional LocalizedString copy_localized = 4;
|
|
138
|
-
optional google.protobuf.UInt64Value navigable_storefront_application_id = 5;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
125
|
enum DismissibleContent {
|
|
142
126
|
DISMISSIBLE_CONTENT_HUB_WAITLIST_UPSELL = 0;
|
|
143
127
|
DISMISSIBLE_CONTENT_APPLICATION_COMMAND_TOOLTIP = 1;
|
|
@@ -737,6 +721,7 @@ message PremiumMarketingComponentProperties {
|
|
|
737
721
|
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE = 799;
|
|
738
722
|
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK = 800;
|
|
739
723
|
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801;
|
|
724
|
+
DISMISSIBLE_CONTENT_COD_3PP_POPOVER = 802;
|
|
740
725
|
}
|
|
741
726
|
|
|
742
727
|
message MobileBottomSheet {
|
|
@@ -855,19 +840,11 @@ message PremiumMarketingComponentProperties {
|
|
|
855
840
|
optional LocalizedString body_localized = 5;
|
|
856
841
|
}
|
|
857
842
|
|
|
858
|
-
message PremiumTabPopoverCTAButton {
|
|
859
|
-
string copy = 1;
|
|
860
|
-
ButtonAction button_action = 2;
|
|
861
|
-
string deeplink_section = 3;
|
|
862
|
-
optional LocalizedString copy_localized = 4;
|
|
863
|
-
optional google.protobuf.UInt64Value navigable_storefront_application_id = 5;
|
|
864
|
-
}
|
|
865
|
-
|
|
866
843
|
message PremiumTabPopover {
|
|
867
844
|
string header = 1;
|
|
868
845
|
string body = 2;
|
|
869
846
|
optional ThemeAwareAsset asset = 3;
|
|
870
|
-
optional
|
|
847
|
+
optional CTAButton button = 4;
|
|
871
848
|
string help_article_id = 5;
|
|
872
849
|
optional HelpArticle help_article = 6;
|
|
873
850
|
optional LocalizedString header_localized = 7;
|
|
@@ -892,19 +869,11 @@ message PremiumMarketingComponentProperties {
|
|
|
892
869
|
optional HelpArticle help_article = 4;
|
|
893
870
|
}
|
|
894
871
|
|
|
895
|
-
message BillingSettingsBannerCTAButton {
|
|
896
|
-
string copy = 1;
|
|
897
|
-
ButtonAction button_action = 2;
|
|
898
|
-
string deeplink_section = 3;
|
|
899
|
-
optional LocalizedString copy_localized = 4;
|
|
900
|
-
optional google.protobuf.UInt64Value navigable_storefront_application_id = 5;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
872
|
message BillingSettingsBanner {
|
|
904
873
|
string header = 1;
|
|
905
874
|
string body = 2;
|
|
906
875
|
optional ThemeAwareAsset asset = 3;
|
|
907
|
-
optional
|
|
876
|
+
optional CTAButton button = 4;
|
|
908
877
|
optional LocalizedString header_localized = 5;
|
|
909
878
|
optional LocalizedString body_localized = 6;
|
|
910
879
|
optional HelpArticle help_article = 7;
|
|
@@ -105,6 +105,10 @@ export interface Experiment {
|
|
|
105
105
|
* @generated from protobuf field: bool enable_edit_raw_json_ui = 23
|
|
106
106
|
*/
|
|
107
107
|
enableEditRawJsonUi: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @generated from protobuf field: optional google.protobuf.Int32Value dynamic_config_size_limit_override = 46
|
|
110
|
+
*/
|
|
111
|
+
dynamicConfigSizeLimitOverride?: Int32Value;
|
|
108
112
|
/**
|
|
109
113
|
* @generated from protobuf field: int32 winning_variation_id = 24
|
|
110
114
|
*/
|
|
@@ -324,6 +324,7 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
324
324
|
{ no: 22, name: "exposure_tracking", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.ExposureTracking", Experiment_ExposureTracking, "EXPOSURE_TRACKING_"] },
|
|
325
325
|
{ no: 25, name: "assignment_mode", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.AssignmentMode", Experiment_AssignmentMode, "ASSIGNMENT_MODE_"] },
|
|
326
326
|
{ no: 23, name: "enable_edit_raw_json_ui", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
327
|
+
{ no: 46, name: "dynamic_config_size_limit_override", kind: "message", T: () => wrappers_3.Int32Value },
|
|
327
328
|
{ no: 24, name: "winning_variation_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
328
329
|
{ no: 34, name: "extra_outcome_context", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
329
330
|
{ no: 26, name: "type", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Type", Experiment_Type, "TYPE_"] },
|
|
@@ -462,6 +463,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
462
463
|
case /* bool enable_edit_raw_json_ui */ 23:
|
|
463
464
|
message.enableEditRawJsonUi = reader.bool();
|
|
464
465
|
break;
|
|
466
|
+
case /* optional google.protobuf.Int32Value dynamic_config_size_limit_override */ 46:
|
|
467
|
+
message.dynamicConfigSizeLimitOverride = wrappers_3.Int32Value.internalBinaryRead(reader, reader.uint32(), options, message.dynamicConfigSizeLimitOverride);
|
|
468
|
+
break;
|
|
465
469
|
case /* int32 winning_variation_id */ 24:
|
|
466
470
|
message.winningVariationId = reader.int32();
|
|
467
471
|
break;
|
|
@@ -677,6 +681,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
677
681
|
writer.int32(message.exposurePoints[i]);
|
|
678
682
|
writer.join();
|
|
679
683
|
}
|
|
684
|
+
/* optional google.protobuf.Int32Value dynamic_config_size_limit_override = 46; */
|
|
685
|
+
if (message.dynamicConfigSizeLimitOverride)
|
|
686
|
+
wrappers_3.Int32Value.internalBinaryWrite(message.dynamicConfigSizeLimitOverride, writer.tag(46, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
680
687
|
let u = options.writeUnknownFields;
|
|
681
688
|
if (u !== false)
|
|
682
689
|
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -212,9 +212,9 @@ export interface PremiumMarketingComponentProperties_FeatureCard {
|
|
|
212
212
|
helpArticle?: PremiumMarketingComponentProperties_HelpArticle;
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
|
-
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
215
|
+
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
216
216
|
*/
|
|
217
|
-
export interface
|
|
217
|
+
export interface PremiumMarketingComponentProperties_CTAButton {
|
|
218
218
|
/**
|
|
219
219
|
* @generated from protobuf field: string copy = 1
|
|
220
220
|
*/
|
|
@@ -318,9 +318,9 @@ export interface PremiumMarketingComponentProperties_AnnouncementModalVariant1Pr
|
|
|
318
318
|
*/
|
|
319
319
|
featureCards: PremiumMarketingComponentProperties_FeatureCard[];
|
|
320
320
|
/**
|
|
321
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
321
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 6
|
|
322
322
|
*/
|
|
323
|
-
button?:
|
|
323
|
+
button?: PremiumMarketingComponentProperties_CTAButton;
|
|
324
324
|
/**
|
|
325
325
|
* @generated from protobuf field: string hero_art_video_link_light_theme = 8
|
|
326
326
|
*/
|
|
@@ -403,31 +403,6 @@ export interface PremiumMarketingComponentProperties_PremiumTab {
|
|
|
403
403
|
*/
|
|
404
404
|
acknowledgedBadgeLabelLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
405
405
|
}
|
|
406
|
-
/**
|
|
407
|
-
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton
|
|
408
|
-
*/
|
|
409
|
-
export interface PremiumMarketingComponentProperties_MarketingPageBannerButton {
|
|
410
|
-
/**
|
|
411
|
-
* @generated from protobuf field: string copy = 1
|
|
412
|
-
*/
|
|
413
|
-
copy: string;
|
|
414
|
-
/**
|
|
415
|
-
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2
|
|
416
|
-
*/
|
|
417
|
-
buttonAction: PremiumMarketingComponentProperties_ButtonAction;
|
|
418
|
-
/**
|
|
419
|
-
* @generated from protobuf field: string deeplink_section = 3
|
|
420
|
-
*/
|
|
421
|
-
deeplinkSection: string;
|
|
422
|
-
/**
|
|
423
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4
|
|
424
|
-
*/
|
|
425
|
-
copyLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
426
|
-
/**
|
|
427
|
-
* @generated from protobuf field: optional google.protobuf.UInt64Value navigable_storefront_application_id = 5
|
|
428
|
-
*/
|
|
429
|
-
navigableStorefrontApplicationId?: UInt64Value;
|
|
430
|
-
}
|
|
431
406
|
/**
|
|
432
407
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBanner
|
|
433
408
|
*/
|
|
@@ -449,9 +424,9 @@ export interface PremiumMarketingComponentProperties_MarketingPageBanner {
|
|
|
449
424
|
*/
|
|
450
425
|
helpArticleId: string;
|
|
451
426
|
/**
|
|
452
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
427
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 5
|
|
453
428
|
*/
|
|
454
|
-
button?:
|
|
429
|
+
button?: PremiumMarketingComponentProperties_CTAButton;
|
|
455
430
|
/**
|
|
456
431
|
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6
|
|
457
432
|
*/
|
|
@@ -494,31 +469,6 @@ export interface PremiumMarketingComponentProperties_PaymentModalBanner {
|
|
|
494
469
|
*/
|
|
495
470
|
bodyLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
496
471
|
}
|
|
497
|
-
/**
|
|
498
|
-
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
499
|
-
*/
|
|
500
|
-
export interface PremiumMarketingComponentProperties_CTAButton {
|
|
501
|
-
/**
|
|
502
|
-
* @generated from protobuf field: string copy = 1
|
|
503
|
-
*/
|
|
504
|
-
copy: string;
|
|
505
|
-
/**
|
|
506
|
-
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2
|
|
507
|
-
*/
|
|
508
|
-
buttonAction: PremiumMarketingComponentProperties_ButtonAction;
|
|
509
|
-
/**
|
|
510
|
-
* @generated from protobuf field: string deeplink_section = 3
|
|
511
|
-
*/
|
|
512
|
-
deeplinkSection: string;
|
|
513
|
-
/**
|
|
514
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4
|
|
515
|
-
*/
|
|
516
|
-
copyLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
517
|
-
/**
|
|
518
|
-
* @generated from protobuf field: optional google.protobuf.UInt64Value navigable_storefront_application_id = 5
|
|
519
|
-
*/
|
|
520
|
-
navigableStorefrontApplicationId?: UInt64Value;
|
|
521
|
-
}
|
|
522
472
|
/**
|
|
523
473
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MobileBottomSheet
|
|
524
474
|
*/
|
|
@@ -882,31 +832,6 @@ export interface PremiumMarketingComponentProperties_PremiumTabTooltip {
|
|
|
882
832
|
*/
|
|
883
833
|
bodyLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
884
834
|
}
|
|
885
|
-
/**
|
|
886
|
-
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton
|
|
887
|
-
*/
|
|
888
|
-
export interface PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton {
|
|
889
|
-
/**
|
|
890
|
-
* @generated from protobuf field: string copy = 1
|
|
891
|
-
*/
|
|
892
|
-
copy: string;
|
|
893
|
-
/**
|
|
894
|
-
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2
|
|
895
|
-
*/
|
|
896
|
-
buttonAction: PremiumMarketingComponentProperties_ButtonAction;
|
|
897
|
-
/**
|
|
898
|
-
* @generated from protobuf field: string deeplink_section = 3
|
|
899
|
-
*/
|
|
900
|
-
deeplinkSection: string;
|
|
901
|
-
/**
|
|
902
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4
|
|
903
|
-
*/
|
|
904
|
-
copyLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
905
|
-
/**
|
|
906
|
-
* @generated from protobuf field: optional google.protobuf.UInt64Value navigable_storefront_application_id = 5
|
|
907
|
-
*/
|
|
908
|
-
navigableStorefrontApplicationId?: UInt64Value;
|
|
909
|
-
}
|
|
910
835
|
/**
|
|
911
836
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopover
|
|
912
837
|
*/
|
|
@@ -924,9 +849,9 @@ export interface PremiumMarketingComponentProperties_PremiumTabPopover {
|
|
|
924
849
|
*/
|
|
925
850
|
asset?: PremiumMarketingComponentProperties_ThemeAwareAsset;
|
|
926
851
|
/**
|
|
927
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
852
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 4
|
|
928
853
|
*/
|
|
929
|
-
button?:
|
|
854
|
+
button?: PremiumMarketingComponentProperties_CTAButton;
|
|
930
855
|
/**
|
|
931
856
|
* @generated from protobuf field: string help_article_id = 5
|
|
932
857
|
*/
|
|
@@ -1002,31 +927,6 @@ export interface PremiumMarketingComponentProperties_PlanSelectCardBanner {
|
|
|
1002
927
|
*/
|
|
1003
928
|
helpArticle?: PremiumMarketingComponentProperties_HelpArticle;
|
|
1004
929
|
}
|
|
1005
|
-
/**
|
|
1006
|
-
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton
|
|
1007
|
-
*/
|
|
1008
|
-
export interface PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton {
|
|
1009
|
-
/**
|
|
1010
|
-
* @generated from protobuf field: string copy = 1
|
|
1011
|
-
*/
|
|
1012
|
-
copy: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2
|
|
1015
|
-
*/
|
|
1016
|
-
buttonAction: PremiumMarketingComponentProperties_ButtonAction;
|
|
1017
|
-
/**
|
|
1018
|
-
* @generated from protobuf field: string deeplink_section = 3
|
|
1019
|
-
*/
|
|
1020
|
-
deeplinkSection: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4
|
|
1023
|
-
*/
|
|
1024
|
-
copyLocalized?: PremiumMarketingComponentProperties_LocalizedString;
|
|
1025
|
-
/**
|
|
1026
|
-
* @generated from protobuf field: optional google.protobuf.UInt64Value navigable_storefront_application_id = 5
|
|
1027
|
-
*/
|
|
1028
|
-
navigableStorefrontApplicationId?: UInt64Value;
|
|
1029
|
-
}
|
|
1030
930
|
/**
|
|
1031
931
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBanner
|
|
1032
932
|
*/
|
|
@@ -1044,9 +944,9 @@ export interface PremiumMarketingComponentProperties_BillingSettingsBanner {
|
|
|
1044
944
|
*/
|
|
1045
945
|
asset?: PremiumMarketingComponentProperties_ThemeAwareAsset;
|
|
1046
946
|
/**
|
|
1047
|
-
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
947
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 4
|
|
1048
948
|
*/
|
|
1049
|
-
button?:
|
|
949
|
+
button?: PremiumMarketingComponentProperties_CTAButton;
|
|
1050
950
|
/**
|
|
1051
951
|
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString header_localized = 5
|
|
1052
952
|
*/
|
|
@@ -3546,7 +3446,11 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
|
|
|
3546
3446
|
/**
|
|
3547
3447
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801;
|
|
3548
3448
|
*/
|
|
3549
|
-
CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801
|
|
3449
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801,
|
|
3450
|
+
/**
|
|
3451
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_COD_3PP_POPOVER = 802;
|
|
3452
|
+
*/
|
|
3453
|
+
COD_3PP_POPOVER = 802
|
|
3550
3454
|
}
|
|
3551
3455
|
/**
|
|
3552
3456
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -3606,16 +3510,16 @@ declare class PremiumMarketingComponentProperties_FeatureCard$Type extends Messa
|
|
|
3606
3510
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard
|
|
3607
3511
|
*/
|
|
3608
3512
|
export declare const PremiumMarketingComponentProperties_FeatureCard: PremiumMarketingComponentProperties_FeatureCard$Type;
|
|
3609
|
-
declare class
|
|
3513
|
+
declare class PremiumMarketingComponentProperties_CTAButton$Type extends MessageType<PremiumMarketingComponentProperties_CTAButton> {
|
|
3610
3514
|
constructor();
|
|
3611
|
-
create(value?: PartialMessage<
|
|
3612
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
3613
|
-
internalBinaryWrite(message:
|
|
3515
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_CTAButton>): PremiumMarketingComponentProperties_CTAButton;
|
|
3516
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_CTAButton): PremiumMarketingComponentProperties_CTAButton;
|
|
3517
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_CTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3614
3518
|
}
|
|
3615
3519
|
/**
|
|
3616
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3520
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3617
3521
|
*/
|
|
3618
|
-
export declare const
|
|
3522
|
+
export declare const PremiumMarketingComponentProperties_CTAButton: PremiumMarketingComponentProperties_CTAButton$Type;
|
|
3619
3523
|
declare class PremiumMarketingComponentProperties_Subtitle$Type extends MessageType<PremiumMarketingComponentProperties_Subtitle> {
|
|
3620
3524
|
constructor();
|
|
3621
3525
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_Subtitle>): PremiumMarketingComponentProperties_Subtitle;
|
|
@@ -3669,16 +3573,6 @@ declare class PremiumMarketingComponentProperties_PremiumTab$Type extends Messag
|
|
|
3669
3573
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTab
|
|
3670
3574
|
*/
|
|
3671
3575
|
export declare const PremiumMarketingComponentProperties_PremiumTab: PremiumMarketingComponentProperties_PremiumTab$Type;
|
|
3672
|
-
declare class PremiumMarketingComponentProperties_MarketingPageBannerButton$Type extends MessageType<PremiumMarketingComponentProperties_MarketingPageBannerButton> {
|
|
3673
|
-
constructor();
|
|
3674
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_MarketingPageBannerButton>): PremiumMarketingComponentProperties_MarketingPageBannerButton;
|
|
3675
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_MarketingPageBannerButton): PremiumMarketingComponentProperties_MarketingPageBannerButton;
|
|
3676
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_MarketingPageBannerButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3677
|
-
}
|
|
3678
|
-
/**
|
|
3679
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton
|
|
3680
|
-
*/
|
|
3681
|
-
export declare const PremiumMarketingComponentProperties_MarketingPageBannerButton: PremiumMarketingComponentProperties_MarketingPageBannerButton$Type;
|
|
3682
3576
|
declare class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends MessageType<PremiumMarketingComponentProperties_MarketingPageBanner> {
|
|
3683
3577
|
constructor();
|
|
3684
3578
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_MarketingPageBanner>): PremiumMarketingComponentProperties_MarketingPageBanner;
|
|
@@ -3699,16 +3593,6 @@ declare class PremiumMarketingComponentProperties_PaymentModalBanner$Type extend
|
|
|
3699
3593
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PaymentModalBanner
|
|
3700
3594
|
*/
|
|
3701
3595
|
export declare const PremiumMarketingComponentProperties_PaymentModalBanner: PremiumMarketingComponentProperties_PaymentModalBanner$Type;
|
|
3702
|
-
declare class PremiumMarketingComponentProperties_CTAButton$Type extends MessageType<PremiumMarketingComponentProperties_CTAButton> {
|
|
3703
|
-
constructor();
|
|
3704
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_CTAButton>): PremiumMarketingComponentProperties_CTAButton;
|
|
3705
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_CTAButton): PremiumMarketingComponentProperties_CTAButton;
|
|
3706
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_CTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3707
|
-
}
|
|
3708
|
-
/**
|
|
3709
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3710
|
-
*/
|
|
3711
|
-
export declare const PremiumMarketingComponentProperties_CTAButton: PremiumMarketingComponentProperties_CTAButton$Type;
|
|
3712
3596
|
declare class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends MessageType<PremiumMarketingComponentProperties_MobileBottomSheet> {
|
|
3713
3597
|
constructor();
|
|
3714
3598
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_MobileBottomSheet>): PremiumMarketingComponentProperties_MobileBottomSheet;
|
|
@@ -3819,16 +3703,6 @@ declare class PremiumMarketingComponentProperties_PremiumTabTooltip$Type extends
|
|
|
3819
3703
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabTooltip
|
|
3820
3704
|
*/
|
|
3821
3705
|
export declare const PremiumMarketingComponentProperties_PremiumTabTooltip: PremiumMarketingComponentProperties_PremiumTabTooltip$Type;
|
|
3822
|
-
declare class PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type extends MessageType<PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton> {
|
|
3823
|
-
constructor();
|
|
3824
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton>): PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton;
|
|
3825
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton): PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton;
|
|
3826
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3827
|
-
}
|
|
3828
|
-
/**
|
|
3829
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton
|
|
3830
|
-
*/
|
|
3831
|
-
export declare const PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton: PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type;
|
|
3832
3706
|
declare class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends MessageType<PremiumMarketingComponentProperties_PremiumTabPopover> {
|
|
3833
3707
|
constructor();
|
|
3834
3708
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_PremiumTabPopover>): PremiumMarketingComponentProperties_PremiumTabPopover;
|
|
@@ -3859,16 +3733,6 @@ declare class PremiumMarketingComponentProperties_PlanSelectCardBanner$Type exte
|
|
|
3859
3733
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PlanSelectCardBanner
|
|
3860
3734
|
*/
|
|
3861
3735
|
export declare const PremiumMarketingComponentProperties_PlanSelectCardBanner: PremiumMarketingComponentProperties_PlanSelectCardBanner$Type;
|
|
3862
|
-
declare class PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type extends MessageType<PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton> {
|
|
3863
|
-
constructor();
|
|
3864
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton>): PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton;
|
|
3865
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton): PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton;
|
|
3866
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3867
|
-
}
|
|
3868
|
-
/**
|
|
3869
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton
|
|
3870
|
-
*/
|
|
3871
|
-
export declare const PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton: PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type;
|
|
3872
3736
|
declare class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends MessageType<PremiumMarketingComponentProperties_BillingSettingsBanner> {
|
|
3873
3737
|
constructor();
|
|
3874
3738
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_BillingSettingsBanner>): PremiumMarketingComponentProperties_BillingSettingsBanner;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PremiumMarketingComponentProperties_ShopNagbar = exports.PremiumMarketingComponentProperties_BillingSettingsBanner = exports.
|
|
3
|
+
exports.PremiumMarketingComponentProperties_ShopNagbar = exports.PremiumMarketingComponentProperties_BillingSettingsBanner = exports.PremiumMarketingComponentProperties_PlanSelectCardBanner = exports.PremiumMarketingComponentProperties_Nagbar = exports.PremiumMarketingComponentProperties_PremiumTabPopover = exports.PremiumMarketingComponentProperties_PremiumTabTooltip = exports.PremiumMarketingComponentProperties_GiftReminderCoachmark = exports.PremiumMarketingComponentProperties_GiftReminderNagbar = exports.PremiumMarketingComponentProperties_BillingSettingsNitroGiftBanner = exports.PremiumMarketingComponentProperties_GiftCustomizationBanner = exports.PremiumMarketingComponentProperties_GiftPlanSelectionCardBanner = exports.PremiumMarketingComponentProperties_GiftIconCoachmark = exports.PremiumMarketingComponentProperties_ThemeAwareAsset = exports.PremiumMarketingComponentProperties_GiftIcon = exports.PremiumMarketingComponentProperties_Gradient = exports.PremiumMarketingComponentProperties_MobileBottomSheet = exports.PremiumMarketingComponentProperties_PaymentModalBanner = exports.PremiumMarketingComponentProperties_MarketingPageBanner = exports.PremiumMarketingComponentProperties_PremiumTab = exports.PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties = exports.PremiumMarketingComponentProperties_Disclaimer = exports.PremiumMarketingComponentProperties_Variant1Storage = exports.PremiumMarketingComponentProperties_Subtitle = exports.PremiumMarketingComponentProperties_CTAButton = exports.PremiumMarketingComponentProperties_FeatureCard = exports.PremiumMarketingComponentProperties_HelpArticle = exports.PremiumMarketingComponentProperties_LocalizedString = exports.PremiumMarketingComponentProperties = exports.PremiumMarketingComponentProperties_AssetVariant = exports.PremiumMarketingComponentProperties_DismissibleContent = exports.PremiumMarketingComponentProperties_MarketingPageBannerButtonVariant = 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");
|
|
@@ -2459,6 +2459,10 @@ var PremiumMarketingComponentProperties_DismissibleContent;
|
|
|
2459
2459
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801;
|
|
2460
2460
|
*/
|
|
2461
2461
|
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK"] = 801] = "CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK";
|
|
2462
|
+
/**
|
|
2463
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_COD_3PP_POPOVER = 802;
|
|
2464
|
+
*/
|
|
2465
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["COD_3PP_POPOVER"] = 802] = "COD_3PP_POPOVER";
|
|
2462
2466
|
})(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
|
|
2463
2467
|
/**
|
|
2464
2468
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -2965,9 +2969,9 @@ class PremiumMarketingComponentProperties_FeatureCard$Type extends runtime_4.Mes
|
|
|
2965
2969
|
*/
|
|
2966
2970
|
exports.PremiumMarketingComponentProperties_FeatureCard = new PremiumMarketingComponentProperties_FeatureCard$Type();
|
|
2967
2971
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2968
|
-
class
|
|
2972
|
+
class PremiumMarketingComponentProperties_CTAButton$Type extends runtime_4.MessageType {
|
|
2969
2973
|
constructor() {
|
|
2970
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
2974
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton", [
|
|
2971
2975
|
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2972
2976
|
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
2973
2977
|
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3038,9 +3042,9 @@ class PremiumMarketingComponentProperties_SubscriptionButton$Type extends runtim
|
|
|
3038
3042
|
}
|
|
3039
3043
|
}
|
|
3040
3044
|
/**
|
|
3041
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3045
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3042
3046
|
*/
|
|
3043
|
-
exports.
|
|
3047
|
+
exports.PremiumMarketingComponentProperties_CTAButton = new PremiumMarketingComponentProperties_CTAButton$Type();
|
|
3044
3048
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3045
3049
|
class PremiumMarketingComponentProperties_Subtitle$Type extends runtime_4.MessageType {
|
|
3046
3050
|
constructor() {
|
|
@@ -3285,7 +3289,7 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
3285
3289
|
{ no: 3, name: "video_link", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3286
3290
|
{ no: 4, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3287
3291
|
{ no: 5, name: "feature_cards", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.PremiumMarketingComponentProperties_FeatureCard },
|
|
3288
|
-
{ no: 6, name: "button", kind: "message", T: () => exports.
|
|
3292
|
+
{ no: 6, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
3289
3293
|
{ no: 8, name: "hero_art_video_link_light_theme", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3290
3294
|
{ no: 9, name: "hero_art_image_link_dark_theme", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3291
3295
|
{ no: 10, name: "hero_art_image_link_light_theme", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3339,8 +3343,8 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
3339
3343
|
case /* repeated discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard feature_cards */ 5:
|
|
3340
3344
|
message.featureCards.push(exports.PremiumMarketingComponentProperties_FeatureCard.internalBinaryRead(reader, reader.uint32(), options));
|
|
3341
3345
|
break;
|
|
3342
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3343
|
-
message.button = exports.
|
|
3346
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 6:
|
|
3347
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
3344
3348
|
break;
|
|
3345
3349
|
case /* string hero_art_video_link_light_theme */ 8:
|
|
3346
3350
|
message.heroArtVideoLinkLightTheme = reader.string();
|
|
@@ -3408,9 +3412,9 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
3408
3412
|
/* repeated discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard feature_cards = 5; */
|
|
3409
3413
|
for (let i = 0; i < message.featureCards.length; i++)
|
|
3410
3414
|
exports.PremiumMarketingComponentProperties_FeatureCard.internalBinaryWrite(message.featureCards[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3411
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3415
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 6; */
|
|
3412
3416
|
if (message.button)
|
|
3413
|
-
exports.
|
|
3417
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3414
3418
|
/* string dismiss_key = 7; */
|
|
3415
3419
|
if (message.dismissKey !== "")
|
|
3416
3420
|
writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.dismissKey);
|
|
@@ -3546,83 +3550,6 @@ class PremiumMarketingComponentProperties_PremiumTab$Type extends runtime_4.Mess
|
|
|
3546
3550
|
*/
|
|
3547
3551
|
exports.PremiumMarketingComponentProperties_PremiumTab = new PremiumMarketingComponentProperties_PremiumTab$Type();
|
|
3548
3552
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3549
|
-
class PremiumMarketingComponentProperties_MarketingPageBannerButton$Type extends runtime_4.MessageType {
|
|
3550
|
-
constructor() {
|
|
3551
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton", [
|
|
3552
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3553
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
3554
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3555
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
3556
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
3557
|
-
]);
|
|
3558
|
-
}
|
|
3559
|
-
create(value) {
|
|
3560
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
3561
|
-
message.copy = "";
|
|
3562
|
-
message.buttonAction = 0;
|
|
3563
|
-
message.deeplinkSection = "";
|
|
3564
|
-
if (value !== undefined)
|
|
3565
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3566
|
-
return message;
|
|
3567
|
-
}
|
|
3568
|
-
internalBinaryRead(reader, length, options, target) {
|
|
3569
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3570
|
-
while (reader.pos < end) {
|
|
3571
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3572
|
-
switch (fieldNo) {
|
|
3573
|
-
case /* string copy */ 1:
|
|
3574
|
-
message.copy = reader.string();
|
|
3575
|
-
break;
|
|
3576
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
3577
|
-
message.buttonAction = reader.int32();
|
|
3578
|
-
break;
|
|
3579
|
-
case /* string deeplink_section */ 3:
|
|
3580
|
-
message.deeplinkSection = reader.string();
|
|
3581
|
-
break;
|
|
3582
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
3583
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
3584
|
-
break;
|
|
3585
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
3586
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
3587
|
-
break;
|
|
3588
|
-
default:
|
|
3589
|
-
let u = options.readUnknownField;
|
|
3590
|
-
if (u === "throw")
|
|
3591
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3592
|
-
let d = reader.skip(wireType);
|
|
3593
|
-
if (u !== false)
|
|
3594
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3595
|
-
}
|
|
3596
|
-
}
|
|
3597
|
-
return message;
|
|
3598
|
-
}
|
|
3599
|
-
internalBinaryWrite(message, writer, options) {
|
|
3600
|
-
/* string copy = 1; */
|
|
3601
|
-
if (message.copy !== "")
|
|
3602
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
3603
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
3604
|
-
if (message.buttonAction !== 0)
|
|
3605
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
3606
|
-
/* string deeplink_section = 3; */
|
|
3607
|
-
if (message.deeplinkSection !== "")
|
|
3608
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
3609
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
3610
|
-
if (message.copyLocalized)
|
|
3611
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3612
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
3613
|
-
if (message.navigableStorefrontApplicationId)
|
|
3614
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3615
|
-
let u = options.writeUnknownFields;
|
|
3616
|
-
if (u !== false)
|
|
3617
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3618
|
-
return writer;
|
|
3619
|
-
}
|
|
3620
|
-
}
|
|
3621
|
-
/**
|
|
3622
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton
|
|
3623
|
-
*/
|
|
3624
|
-
exports.PremiumMarketingComponentProperties_MarketingPageBannerButton = new PremiumMarketingComponentProperties_MarketingPageBannerButton$Type();
|
|
3625
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3626
3553
|
class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runtime_4.MessageType {
|
|
3627
3554
|
constructor() {
|
|
3628
3555
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBanner", [
|
|
@@ -3630,7 +3557,7 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3630
3557
|
{ no: 2, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3631
3558
|
{ no: 3, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3632
3559
|
{ no: 4, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3633
|
-
{ no: 5, name: "button", kind: "message", T: () => exports.
|
|
3560
|
+
{ no: 5, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
3634
3561
|
{ no: 6, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle },
|
|
3635
3562
|
{ no: 7, name: "header_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
3636
3563
|
{ no: 8, name: "body_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
@@ -3665,8 +3592,8 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3665
3592
|
case /* string help_article_id */ 4:
|
|
3666
3593
|
message.helpArticleId = reader.string();
|
|
3667
3594
|
break;
|
|
3668
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3669
|
-
message.button = exports.
|
|
3595
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 5:
|
|
3596
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
3670
3597
|
break;
|
|
3671
3598
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article */ 6:
|
|
3672
3599
|
message.helpArticle = exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryRead(reader, reader.uint32(), options, message.helpArticle);
|
|
@@ -3704,9 +3631,9 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3704
3631
|
/* string help_article_id = 4; */
|
|
3705
3632
|
if (message.helpArticleId !== "")
|
|
3706
3633
|
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.helpArticleId);
|
|
3707
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3634
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 5; */
|
|
3708
3635
|
if (message.button)
|
|
3709
|
-
exports.
|
|
3636
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3710
3637
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6; */
|
|
3711
3638
|
if (message.helpArticle)
|
|
3712
3639
|
exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryWrite(message.helpArticle, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
@@ -3807,83 +3734,6 @@ class PremiumMarketingComponentProperties_PaymentModalBanner$Type extends runtim
|
|
|
3807
3734
|
*/
|
|
3808
3735
|
exports.PremiumMarketingComponentProperties_PaymentModalBanner = new PremiumMarketingComponentProperties_PaymentModalBanner$Type();
|
|
3809
3736
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3810
|
-
class PremiumMarketingComponentProperties_CTAButton$Type extends runtime_4.MessageType {
|
|
3811
|
-
constructor() {
|
|
3812
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton", [
|
|
3813
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3814
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
3815
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3816
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
3817
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
3818
|
-
]);
|
|
3819
|
-
}
|
|
3820
|
-
create(value) {
|
|
3821
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
3822
|
-
message.copy = "";
|
|
3823
|
-
message.buttonAction = 0;
|
|
3824
|
-
message.deeplinkSection = "";
|
|
3825
|
-
if (value !== undefined)
|
|
3826
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3827
|
-
return message;
|
|
3828
|
-
}
|
|
3829
|
-
internalBinaryRead(reader, length, options, target) {
|
|
3830
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3831
|
-
while (reader.pos < end) {
|
|
3832
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3833
|
-
switch (fieldNo) {
|
|
3834
|
-
case /* string copy */ 1:
|
|
3835
|
-
message.copy = reader.string();
|
|
3836
|
-
break;
|
|
3837
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
3838
|
-
message.buttonAction = reader.int32();
|
|
3839
|
-
break;
|
|
3840
|
-
case /* string deeplink_section */ 3:
|
|
3841
|
-
message.deeplinkSection = reader.string();
|
|
3842
|
-
break;
|
|
3843
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
3844
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
3845
|
-
break;
|
|
3846
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
3847
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
3848
|
-
break;
|
|
3849
|
-
default:
|
|
3850
|
-
let u = options.readUnknownField;
|
|
3851
|
-
if (u === "throw")
|
|
3852
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3853
|
-
let d = reader.skip(wireType);
|
|
3854
|
-
if (u !== false)
|
|
3855
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3856
|
-
}
|
|
3857
|
-
}
|
|
3858
|
-
return message;
|
|
3859
|
-
}
|
|
3860
|
-
internalBinaryWrite(message, writer, options) {
|
|
3861
|
-
/* string copy = 1; */
|
|
3862
|
-
if (message.copy !== "")
|
|
3863
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
3864
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
3865
|
-
if (message.buttonAction !== 0)
|
|
3866
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
3867
|
-
/* string deeplink_section = 3; */
|
|
3868
|
-
if (message.deeplinkSection !== "")
|
|
3869
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
3870
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
3871
|
-
if (message.copyLocalized)
|
|
3872
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3873
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
3874
|
-
if (message.navigableStorefrontApplicationId)
|
|
3875
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3876
|
-
let u = options.writeUnknownFields;
|
|
3877
|
-
if (u !== false)
|
|
3878
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3879
|
-
return writer;
|
|
3880
|
-
}
|
|
3881
|
-
}
|
|
3882
|
-
/**
|
|
3883
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3884
|
-
*/
|
|
3885
|
-
exports.PremiumMarketingComponentProperties_CTAButton = new PremiumMarketingComponentProperties_CTAButton$Type();
|
|
3886
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3887
3737
|
class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends runtime_4.MessageType {
|
|
3888
3738
|
constructor() {
|
|
3889
3739
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MobileBottomSheet", [
|
|
@@ -4893,90 +4743,13 @@ class PremiumMarketingComponentProperties_PremiumTabTooltip$Type extends runtime
|
|
|
4893
4743
|
*/
|
|
4894
4744
|
exports.PremiumMarketingComponentProperties_PremiumTabTooltip = new PremiumMarketingComponentProperties_PremiumTabTooltip$Type();
|
|
4895
4745
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4896
|
-
class PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type extends runtime_4.MessageType {
|
|
4897
|
-
constructor() {
|
|
4898
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton", [
|
|
4899
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4900
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
4901
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4902
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
4903
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
4904
|
-
]);
|
|
4905
|
-
}
|
|
4906
|
-
create(value) {
|
|
4907
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4908
|
-
message.copy = "";
|
|
4909
|
-
message.buttonAction = 0;
|
|
4910
|
-
message.deeplinkSection = "";
|
|
4911
|
-
if (value !== undefined)
|
|
4912
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
4913
|
-
return message;
|
|
4914
|
-
}
|
|
4915
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4916
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4917
|
-
while (reader.pos < end) {
|
|
4918
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4919
|
-
switch (fieldNo) {
|
|
4920
|
-
case /* string copy */ 1:
|
|
4921
|
-
message.copy = reader.string();
|
|
4922
|
-
break;
|
|
4923
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
4924
|
-
message.buttonAction = reader.int32();
|
|
4925
|
-
break;
|
|
4926
|
-
case /* string deeplink_section */ 3:
|
|
4927
|
-
message.deeplinkSection = reader.string();
|
|
4928
|
-
break;
|
|
4929
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
4930
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
4931
|
-
break;
|
|
4932
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
4933
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
4934
|
-
break;
|
|
4935
|
-
default:
|
|
4936
|
-
let u = options.readUnknownField;
|
|
4937
|
-
if (u === "throw")
|
|
4938
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4939
|
-
let d = reader.skip(wireType);
|
|
4940
|
-
if (u !== false)
|
|
4941
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4942
|
-
}
|
|
4943
|
-
}
|
|
4944
|
-
return message;
|
|
4945
|
-
}
|
|
4946
|
-
internalBinaryWrite(message, writer, options) {
|
|
4947
|
-
/* string copy = 1; */
|
|
4948
|
-
if (message.copy !== "")
|
|
4949
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
4950
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
4951
|
-
if (message.buttonAction !== 0)
|
|
4952
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
4953
|
-
/* string deeplink_section = 3; */
|
|
4954
|
-
if (message.deeplinkSection !== "")
|
|
4955
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
4956
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
4957
|
-
if (message.copyLocalized)
|
|
4958
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4959
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
4960
|
-
if (message.navigableStorefrontApplicationId)
|
|
4961
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4962
|
-
let u = options.writeUnknownFields;
|
|
4963
|
-
if (u !== false)
|
|
4964
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4965
|
-
return writer;
|
|
4966
|
-
}
|
|
4967
|
-
}
|
|
4968
|
-
/**
|
|
4969
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton
|
|
4970
|
-
*/
|
|
4971
|
-
exports.PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton = new PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type();
|
|
4972
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4973
4746
|
class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime_4.MessageType {
|
|
4974
4747
|
constructor() {
|
|
4975
4748
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopover", [
|
|
4976
4749
|
{ no: 1, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4977
4750
|
{ no: 2, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4978
4751
|
{ no: 3, name: "asset", kind: "message", T: () => exports.PremiumMarketingComponentProperties_ThemeAwareAsset },
|
|
4979
|
-
{ no: 4, name: "button", kind: "message", T: () => exports.
|
|
4752
|
+
{ no: 4, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
4980
4753
|
{ no: 5, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4981
4754
|
{ no: 6, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle },
|
|
4982
4755
|
{ no: 7, name: "header_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
@@ -5006,8 +4779,8 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
5006
4779
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset */ 3:
|
|
5007
4780
|
message.asset = exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryRead(reader, reader.uint32(), options, message.asset);
|
|
5008
4781
|
break;
|
|
5009
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
5010
|
-
message.button = exports.
|
|
4782
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 4:
|
|
4783
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
5011
4784
|
break;
|
|
5012
4785
|
case /* string help_article_id */ 5:
|
|
5013
4786
|
message.helpArticleId = reader.string();
|
|
@@ -5042,9 +4815,9 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
5042
4815
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset = 3; */
|
|
5043
4816
|
if (message.asset)
|
|
5044
4817
|
exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryWrite(message.asset, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5045
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
4818
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 4; */
|
|
5046
4819
|
if (message.button)
|
|
5047
|
-
exports.
|
|
4820
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5048
4821
|
/* string help_article_id = 5; */
|
|
5049
4822
|
if (message.helpArticleId !== "")
|
|
5050
4823
|
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.helpArticleId);
|
|
@@ -5235,90 +5008,13 @@ class PremiumMarketingComponentProperties_PlanSelectCardBanner$Type extends runt
|
|
|
5235
5008
|
*/
|
|
5236
5009
|
exports.PremiumMarketingComponentProperties_PlanSelectCardBanner = new PremiumMarketingComponentProperties_PlanSelectCardBanner$Type();
|
|
5237
5010
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
5238
|
-
class PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type extends runtime_4.MessageType {
|
|
5239
|
-
constructor() {
|
|
5240
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton", [
|
|
5241
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5242
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
5243
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5244
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
5245
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
5246
|
-
]);
|
|
5247
|
-
}
|
|
5248
|
-
create(value) {
|
|
5249
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
5250
|
-
message.copy = "";
|
|
5251
|
-
message.buttonAction = 0;
|
|
5252
|
-
message.deeplinkSection = "";
|
|
5253
|
-
if (value !== undefined)
|
|
5254
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
5255
|
-
return message;
|
|
5256
|
-
}
|
|
5257
|
-
internalBinaryRead(reader, length, options, target) {
|
|
5258
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
5259
|
-
while (reader.pos < end) {
|
|
5260
|
-
let [fieldNo, wireType] = reader.tag();
|
|
5261
|
-
switch (fieldNo) {
|
|
5262
|
-
case /* string copy */ 1:
|
|
5263
|
-
message.copy = reader.string();
|
|
5264
|
-
break;
|
|
5265
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
5266
|
-
message.buttonAction = reader.int32();
|
|
5267
|
-
break;
|
|
5268
|
-
case /* string deeplink_section */ 3:
|
|
5269
|
-
message.deeplinkSection = reader.string();
|
|
5270
|
-
break;
|
|
5271
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
5272
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
5273
|
-
break;
|
|
5274
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
5275
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
5276
|
-
break;
|
|
5277
|
-
default:
|
|
5278
|
-
let u = options.readUnknownField;
|
|
5279
|
-
if (u === "throw")
|
|
5280
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5281
|
-
let d = reader.skip(wireType);
|
|
5282
|
-
if (u !== false)
|
|
5283
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5284
|
-
}
|
|
5285
|
-
}
|
|
5286
|
-
return message;
|
|
5287
|
-
}
|
|
5288
|
-
internalBinaryWrite(message, writer, options) {
|
|
5289
|
-
/* string copy = 1; */
|
|
5290
|
-
if (message.copy !== "")
|
|
5291
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
5292
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
5293
|
-
if (message.buttonAction !== 0)
|
|
5294
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
5295
|
-
/* string deeplink_section = 3; */
|
|
5296
|
-
if (message.deeplinkSection !== "")
|
|
5297
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
5298
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
5299
|
-
if (message.copyLocalized)
|
|
5300
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5301
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
5302
|
-
if (message.navigableStorefrontApplicationId)
|
|
5303
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5304
|
-
let u = options.writeUnknownFields;
|
|
5305
|
-
if (u !== false)
|
|
5306
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5307
|
-
return writer;
|
|
5308
|
-
}
|
|
5309
|
-
}
|
|
5310
|
-
/**
|
|
5311
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton
|
|
5312
|
-
*/
|
|
5313
|
-
exports.PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton = new PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type();
|
|
5314
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
5315
5011
|
class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends runtime_4.MessageType {
|
|
5316
5012
|
constructor() {
|
|
5317
5013
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBanner", [
|
|
5318
5014
|
{ no: 1, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5319
5015
|
{ no: 2, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5320
5016
|
{ no: 3, name: "asset", kind: "message", T: () => exports.PremiumMarketingComponentProperties_ThemeAwareAsset },
|
|
5321
|
-
{ no: 4, name: "button", kind: "message", T: () => exports.
|
|
5017
|
+
{ no: 4, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
5322
5018
|
{ no: 5, name: "header_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
5323
5019
|
{ no: 6, name: "body_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
5324
5020
|
{ no: 7, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle }
|
|
@@ -5346,8 +5042,8 @@ class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends run
|
|
|
5346
5042
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset */ 3:
|
|
5347
5043
|
message.asset = exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryRead(reader, reader.uint32(), options, message.asset);
|
|
5348
5044
|
break;
|
|
5349
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
5350
|
-
message.button = exports.
|
|
5045
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 4:
|
|
5046
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
5351
5047
|
break;
|
|
5352
5048
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString header_localized */ 5:
|
|
5353
5049
|
message.headerLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.headerLocalized);
|
|
@@ -5379,9 +5075,9 @@ class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends run
|
|
|
5379
5075
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset = 3; */
|
|
5380
5076
|
if (message.asset)
|
|
5381
5077
|
exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryWrite(message.asset, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5382
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
5078
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 4; */
|
|
5383
5079
|
if (message.button)
|
|
5384
|
-
exports.
|
|
5080
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5385
5081
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString header_localized = 5; */
|
|
5386
5082
|
if (message.headerLocalized)
|
|
5387
5083
|
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.headerLocalized, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|