discord-protos 1.2.271 → 1.2.273
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/premium_marketing/v1/PremiumMarketingComponentProperties.proto +8 -37
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +29 -157
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +37 -333
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -734,6 +718,9 @@ message PremiumMarketingComponentProperties {
|
|
|
734
718
|
DISMISSIBLE_CONTENT_SHOP_THIS_LOOK_WEB_MARKETING = 796;
|
|
735
719
|
DISMISSIBLE_CONTENT_COLLECTIBLES_SHOP_GAME_SERVER_HOSTING_BANNER = 797;
|
|
736
720
|
DISMISSIBLE_CONTENT_USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE = 798;
|
|
721
|
+
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE = 799;
|
|
722
|
+
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK = 800;
|
|
723
|
+
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801;
|
|
737
724
|
}
|
|
738
725
|
|
|
739
726
|
message MobileBottomSheet {
|
|
@@ -852,19 +839,11 @@ message PremiumMarketingComponentProperties {
|
|
|
852
839
|
optional LocalizedString body_localized = 5;
|
|
853
840
|
}
|
|
854
841
|
|
|
855
|
-
message PremiumTabPopoverCTAButton {
|
|
856
|
-
string copy = 1;
|
|
857
|
-
ButtonAction button_action = 2;
|
|
858
|
-
string deeplink_section = 3;
|
|
859
|
-
optional LocalizedString copy_localized = 4;
|
|
860
|
-
optional google.protobuf.UInt64Value navigable_storefront_application_id = 5;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
842
|
message PremiumTabPopover {
|
|
864
843
|
string header = 1;
|
|
865
844
|
string body = 2;
|
|
866
845
|
optional ThemeAwareAsset asset = 3;
|
|
867
|
-
optional
|
|
846
|
+
optional CTAButton button = 4;
|
|
868
847
|
string help_article_id = 5;
|
|
869
848
|
optional HelpArticle help_article = 6;
|
|
870
849
|
optional LocalizedString header_localized = 7;
|
|
@@ -889,19 +868,11 @@ message PremiumMarketingComponentProperties {
|
|
|
889
868
|
optional HelpArticle help_article = 4;
|
|
890
869
|
}
|
|
891
870
|
|
|
892
|
-
message BillingSettingsBannerCTAButton {
|
|
893
|
-
string copy = 1;
|
|
894
|
-
ButtonAction button_action = 2;
|
|
895
|
-
string deeplink_section = 3;
|
|
896
|
-
optional LocalizedString copy_localized = 4;
|
|
897
|
-
optional google.protobuf.UInt64Value navigable_storefront_application_id = 5;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
871
|
message BillingSettingsBanner {
|
|
901
872
|
string header = 1;
|
|
902
873
|
string body = 2;
|
|
903
874
|
optional ThemeAwareAsset asset = 3;
|
|
904
|
-
optional
|
|
875
|
+
optional CTAButton button = 4;
|
|
905
876
|
optional LocalizedString header_localized = 5;
|
|
906
877
|
optional LocalizedString body_localized = 6;
|
|
907
878
|
optional HelpArticle help_article = 7;
|
|
@@ -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
|
*/
|
|
@@ -3534,7 +3434,19 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
|
|
|
3534
3434
|
/**
|
|
3535
3435
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE = 798;
|
|
3536
3436
|
*/
|
|
3537
|
-
USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE = 798
|
|
3437
|
+
USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE = 798,
|
|
3438
|
+
/**
|
|
3439
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE = 799;
|
|
3440
|
+
*/
|
|
3441
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE = 799,
|
|
3442
|
+
/**
|
|
3443
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK = 800;
|
|
3444
|
+
*/
|
|
3445
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK = 800,
|
|
3446
|
+
/**
|
|
3447
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801;
|
|
3448
|
+
*/
|
|
3449
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801
|
|
3538
3450
|
}
|
|
3539
3451
|
/**
|
|
3540
3452
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -3594,16 +3506,16 @@ declare class PremiumMarketingComponentProperties_FeatureCard$Type extends Messa
|
|
|
3594
3506
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard
|
|
3595
3507
|
*/
|
|
3596
3508
|
export declare const PremiumMarketingComponentProperties_FeatureCard: PremiumMarketingComponentProperties_FeatureCard$Type;
|
|
3597
|
-
declare class
|
|
3509
|
+
declare class PremiumMarketingComponentProperties_CTAButton$Type extends MessageType<PremiumMarketingComponentProperties_CTAButton> {
|
|
3598
3510
|
constructor();
|
|
3599
|
-
create(value?: PartialMessage<
|
|
3600
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?:
|
|
3601
|
-
internalBinaryWrite(message:
|
|
3511
|
+
create(value?: PartialMessage<PremiumMarketingComponentProperties_CTAButton>): PremiumMarketingComponentProperties_CTAButton;
|
|
3512
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_CTAButton): PremiumMarketingComponentProperties_CTAButton;
|
|
3513
|
+
internalBinaryWrite(message: PremiumMarketingComponentProperties_CTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3602
3514
|
}
|
|
3603
3515
|
/**
|
|
3604
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3516
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3605
3517
|
*/
|
|
3606
|
-
export declare const
|
|
3518
|
+
export declare const PremiumMarketingComponentProperties_CTAButton: PremiumMarketingComponentProperties_CTAButton$Type;
|
|
3607
3519
|
declare class PremiumMarketingComponentProperties_Subtitle$Type extends MessageType<PremiumMarketingComponentProperties_Subtitle> {
|
|
3608
3520
|
constructor();
|
|
3609
3521
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_Subtitle>): PremiumMarketingComponentProperties_Subtitle;
|
|
@@ -3657,16 +3569,6 @@ declare class PremiumMarketingComponentProperties_PremiumTab$Type extends Messag
|
|
|
3657
3569
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTab
|
|
3658
3570
|
*/
|
|
3659
3571
|
export declare const PremiumMarketingComponentProperties_PremiumTab: PremiumMarketingComponentProperties_PremiumTab$Type;
|
|
3660
|
-
declare class PremiumMarketingComponentProperties_MarketingPageBannerButton$Type extends MessageType<PremiumMarketingComponentProperties_MarketingPageBannerButton> {
|
|
3661
|
-
constructor();
|
|
3662
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_MarketingPageBannerButton>): PremiumMarketingComponentProperties_MarketingPageBannerButton;
|
|
3663
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_MarketingPageBannerButton): PremiumMarketingComponentProperties_MarketingPageBannerButton;
|
|
3664
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_MarketingPageBannerButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3665
|
-
}
|
|
3666
|
-
/**
|
|
3667
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton
|
|
3668
|
-
*/
|
|
3669
|
-
export declare const PremiumMarketingComponentProperties_MarketingPageBannerButton: PremiumMarketingComponentProperties_MarketingPageBannerButton$Type;
|
|
3670
3572
|
declare class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends MessageType<PremiumMarketingComponentProperties_MarketingPageBanner> {
|
|
3671
3573
|
constructor();
|
|
3672
3574
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_MarketingPageBanner>): PremiumMarketingComponentProperties_MarketingPageBanner;
|
|
@@ -3687,16 +3589,6 @@ declare class PremiumMarketingComponentProperties_PaymentModalBanner$Type extend
|
|
|
3687
3589
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PaymentModalBanner
|
|
3688
3590
|
*/
|
|
3689
3591
|
export declare const PremiumMarketingComponentProperties_PaymentModalBanner: PremiumMarketingComponentProperties_PaymentModalBanner$Type;
|
|
3690
|
-
declare class PremiumMarketingComponentProperties_CTAButton$Type extends MessageType<PremiumMarketingComponentProperties_CTAButton> {
|
|
3691
|
-
constructor();
|
|
3692
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_CTAButton>): PremiumMarketingComponentProperties_CTAButton;
|
|
3693
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_CTAButton): PremiumMarketingComponentProperties_CTAButton;
|
|
3694
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_CTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3695
|
-
}
|
|
3696
|
-
/**
|
|
3697
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3698
|
-
*/
|
|
3699
|
-
export declare const PremiumMarketingComponentProperties_CTAButton: PremiumMarketingComponentProperties_CTAButton$Type;
|
|
3700
3592
|
declare class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends MessageType<PremiumMarketingComponentProperties_MobileBottomSheet> {
|
|
3701
3593
|
constructor();
|
|
3702
3594
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_MobileBottomSheet>): PremiumMarketingComponentProperties_MobileBottomSheet;
|
|
@@ -3807,16 +3699,6 @@ declare class PremiumMarketingComponentProperties_PremiumTabTooltip$Type extends
|
|
|
3807
3699
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabTooltip
|
|
3808
3700
|
*/
|
|
3809
3701
|
export declare const PremiumMarketingComponentProperties_PremiumTabTooltip: PremiumMarketingComponentProperties_PremiumTabTooltip$Type;
|
|
3810
|
-
declare class PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type extends MessageType<PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton> {
|
|
3811
|
-
constructor();
|
|
3812
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton>): PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton;
|
|
3813
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton): PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton;
|
|
3814
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3815
|
-
}
|
|
3816
|
-
/**
|
|
3817
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton
|
|
3818
|
-
*/
|
|
3819
|
-
export declare const PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton: PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type;
|
|
3820
3702
|
declare class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends MessageType<PremiumMarketingComponentProperties_PremiumTabPopover> {
|
|
3821
3703
|
constructor();
|
|
3822
3704
|
create(value?: PartialMessage<PremiumMarketingComponentProperties_PremiumTabPopover>): PremiumMarketingComponentProperties_PremiumTabPopover;
|
|
@@ -3847,16 +3729,6 @@ declare class PremiumMarketingComponentProperties_PlanSelectCardBanner$Type exte
|
|
|
3847
3729
|
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PlanSelectCardBanner
|
|
3848
3730
|
*/
|
|
3849
3731
|
export declare const PremiumMarketingComponentProperties_PlanSelectCardBanner: PremiumMarketingComponentProperties_PlanSelectCardBanner$Type;
|
|
3850
|
-
declare class PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type extends MessageType<PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton> {
|
|
3851
|
-
constructor();
|
|
3852
|
-
create(value?: PartialMessage<PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton>): PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton;
|
|
3853
|
-
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton): PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton;
|
|
3854
|
-
internalBinaryWrite(message: PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3855
|
-
}
|
|
3856
|
-
/**
|
|
3857
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton
|
|
3858
|
-
*/
|
|
3859
|
-
export declare const PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton: PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type;
|
|
3860
3732
|
declare class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends MessageType<PremiumMarketingComponentProperties_BillingSettingsBanner> {
|
|
3861
3733
|
constructor();
|
|
3862
3734
|
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");
|
|
@@ -2447,6 +2447,18 @@ var PremiumMarketingComponentProperties_DismissibleContent;
|
|
|
2447
2447
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE = 798;
|
|
2448
2448
|
*/
|
|
2449
2449
|
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE"] = 798] = "USER_PROFILE_WIDGETS_BOARD_MOBILE_EDIT_NOTICE";
|
|
2450
|
+
/**
|
|
2451
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE = 799;
|
|
2452
|
+
*/
|
|
2453
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE"] = 799] = "CUSTOM_TYPING_INDICATOR_MOBILE_NEW_BADGE_PROFILE_PAGE";
|
|
2454
|
+
/**
|
|
2455
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK = 800;
|
|
2456
|
+
*/
|
|
2457
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK"] = 800] = "CUSTOM_TYPING_INDICATOR_MOBILE_PROFILE_COACHMARK";
|
|
2458
|
+
/**
|
|
2459
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK = 801;
|
|
2460
|
+
*/
|
|
2461
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK"] = 801] = "CUSTOM_TYPING_INDICATOR_MOBILE_COACHMARK";
|
|
2450
2462
|
})(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
|
|
2451
2463
|
/**
|
|
2452
2464
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -2953,9 +2965,9 @@ class PremiumMarketingComponentProperties_FeatureCard$Type extends runtime_4.Mes
|
|
|
2953
2965
|
*/
|
|
2954
2966
|
exports.PremiumMarketingComponentProperties_FeatureCard = new PremiumMarketingComponentProperties_FeatureCard$Type();
|
|
2955
2967
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
2956
|
-
class
|
|
2968
|
+
class PremiumMarketingComponentProperties_CTAButton$Type extends runtime_4.MessageType {
|
|
2957
2969
|
constructor() {
|
|
2958
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
2970
|
+
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton", [
|
|
2959
2971
|
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2960
2972
|
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
2961
2973
|
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3026,9 +3038,9 @@ class PremiumMarketingComponentProperties_SubscriptionButton$Type extends runtim
|
|
|
3026
3038
|
}
|
|
3027
3039
|
}
|
|
3028
3040
|
/**
|
|
3029
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3041
|
+
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3030
3042
|
*/
|
|
3031
|
-
exports.
|
|
3043
|
+
exports.PremiumMarketingComponentProperties_CTAButton = new PremiumMarketingComponentProperties_CTAButton$Type();
|
|
3032
3044
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3033
3045
|
class PremiumMarketingComponentProperties_Subtitle$Type extends runtime_4.MessageType {
|
|
3034
3046
|
constructor() {
|
|
@@ -3273,7 +3285,7 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
3273
3285
|
{ no: 3, name: "video_link", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3274
3286
|
{ no: 4, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3275
3287
|
{ no: 5, name: "feature_cards", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.PremiumMarketingComponentProperties_FeatureCard },
|
|
3276
|
-
{ no: 6, name: "button", kind: "message", T: () => exports.
|
|
3288
|
+
{ no: 6, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
3277
3289
|
{ no: 8, name: "hero_art_video_link_light_theme", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3278
3290
|
{ no: 9, name: "hero_art_image_link_dark_theme", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3279
3291
|
{ no: 10, name: "hero_art_image_link_light_theme", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
@@ -3327,8 +3339,8 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
3327
3339
|
case /* repeated discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard feature_cards */ 5:
|
|
3328
3340
|
message.featureCards.push(exports.PremiumMarketingComponentProperties_FeatureCard.internalBinaryRead(reader, reader.uint32(), options));
|
|
3329
3341
|
break;
|
|
3330
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3331
|
-
message.button = exports.
|
|
3342
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 6:
|
|
3343
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
3332
3344
|
break;
|
|
3333
3345
|
case /* string hero_art_video_link_light_theme */ 8:
|
|
3334
3346
|
message.heroArtVideoLinkLightTheme = reader.string();
|
|
@@ -3396,9 +3408,9 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
3396
3408
|
/* repeated discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.FeatureCard feature_cards = 5; */
|
|
3397
3409
|
for (let i = 0; i < message.featureCards.length; i++)
|
|
3398
3410
|
exports.PremiumMarketingComponentProperties_FeatureCard.internalBinaryWrite(message.featureCards[i], writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3399
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3411
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 6; */
|
|
3400
3412
|
if (message.button)
|
|
3401
|
-
exports.
|
|
3413
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3402
3414
|
/* string dismiss_key = 7; */
|
|
3403
3415
|
if (message.dismissKey !== "")
|
|
3404
3416
|
writer.tag(7, runtime_1.WireType.LengthDelimited).string(message.dismissKey);
|
|
@@ -3534,83 +3546,6 @@ class PremiumMarketingComponentProperties_PremiumTab$Type extends runtime_4.Mess
|
|
|
3534
3546
|
*/
|
|
3535
3547
|
exports.PremiumMarketingComponentProperties_PremiumTab = new PremiumMarketingComponentProperties_PremiumTab$Type();
|
|
3536
3548
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3537
|
-
class PremiumMarketingComponentProperties_MarketingPageBannerButton$Type extends runtime_4.MessageType {
|
|
3538
|
-
constructor() {
|
|
3539
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton", [
|
|
3540
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3541
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
3542
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3543
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
3544
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
3545
|
-
]);
|
|
3546
|
-
}
|
|
3547
|
-
create(value) {
|
|
3548
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
3549
|
-
message.copy = "";
|
|
3550
|
-
message.buttonAction = 0;
|
|
3551
|
-
message.deeplinkSection = "";
|
|
3552
|
-
if (value !== undefined)
|
|
3553
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3554
|
-
return message;
|
|
3555
|
-
}
|
|
3556
|
-
internalBinaryRead(reader, length, options, target) {
|
|
3557
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3558
|
-
while (reader.pos < end) {
|
|
3559
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3560
|
-
switch (fieldNo) {
|
|
3561
|
-
case /* string copy */ 1:
|
|
3562
|
-
message.copy = reader.string();
|
|
3563
|
-
break;
|
|
3564
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
3565
|
-
message.buttonAction = reader.int32();
|
|
3566
|
-
break;
|
|
3567
|
-
case /* string deeplink_section */ 3:
|
|
3568
|
-
message.deeplinkSection = reader.string();
|
|
3569
|
-
break;
|
|
3570
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
3571
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
3572
|
-
break;
|
|
3573
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
3574
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
3575
|
-
break;
|
|
3576
|
-
default:
|
|
3577
|
-
let u = options.readUnknownField;
|
|
3578
|
-
if (u === "throw")
|
|
3579
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3580
|
-
let d = reader.skip(wireType);
|
|
3581
|
-
if (u !== false)
|
|
3582
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3583
|
-
}
|
|
3584
|
-
}
|
|
3585
|
-
return message;
|
|
3586
|
-
}
|
|
3587
|
-
internalBinaryWrite(message, writer, options) {
|
|
3588
|
-
/* string copy = 1; */
|
|
3589
|
-
if (message.copy !== "")
|
|
3590
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
3591
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
3592
|
-
if (message.buttonAction !== 0)
|
|
3593
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
3594
|
-
/* string deeplink_section = 3; */
|
|
3595
|
-
if (message.deeplinkSection !== "")
|
|
3596
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
3597
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
3598
|
-
if (message.copyLocalized)
|
|
3599
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3600
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
3601
|
-
if (message.navigableStorefrontApplicationId)
|
|
3602
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3603
|
-
let u = options.writeUnknownFields;
|
|
3604
|
-
if (u !== false)
|
|
3605
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3606
|
-
return writer;
|
|
3607
|
-
}
|
|
3608
|
-
}
|
|
3609
|
-
/**
|
|
3610
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton
|
|
3611
|
-
*/
|
|
3612
|
-
exports.PremiumMarketingComponentProperties_MarketingPageBannerButton = new PremiumMarketingComponentProperties_MarketingPageBannerButton$Type();
|
|
3613
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3614
3549
|
class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runtime_4.MessageType {
|
|
3615
3550
|
constructor() {
|
|
3616
3551
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBanner", [
|
|
@@ -3618,7 +3553,7 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3618
3553
|
{ no: 2, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3619
3554
|
{ no: 3, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3620
3555
|
{ no: 4, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3621
|
-
{ no: 5, name: "button", kind: "message", T: () => exports.
|
|
3556
|
+
{ no: 5, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
3622
3557
|
{ no: 6, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle },
|
|
3623
3558
|
{ no: 7, name: "header_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
3624
3559
|
{ no: 8, name: "body_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
@@ -3653,8 +3588,8 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3653
3588
|
case /* string help_article_id */ 4:
|
|
3654
3589
|
message.helpArticleId = reader.string();
|
|
3655
3590
|
break;
|
|
3656
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3657
|
-
message.button = exports.
|
|
3591
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 5:
|
|
3592
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
3658
3593
|
break;
|
|
3659
3594
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article */ 6:
|
|
3660
3595
|
message.helpArticle = exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryRead(reader, reader.uint32(), options, message.helpArticle);
|
|
@@ -3692,9 +3627,9 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3692
3627
|
/* string help_article_id = 4; */
|
|
3693
3628
|
if (message.helpArticleId !== "")
|
|
3694
3629
|
writer.tag(4, runtime_1.WireType.LengthDelimited).string(message.helpArticleId);
|
|
3695
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
3630
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 5; */
|
|
3696
3631
|
if (message.button)
|
|
3697
|
-
exports.
|
|
3632
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3698
3633
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6; */
|
|
3699
3634
|
if (message.helpArticle)
|
|
3700
3635
|
exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryWrite(message.helpArticle, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
@@ -3795,83 +3730,6 @@ class PremiumMarketingComponentProperties_PaymentModalBanner$Type extends runtim
|
|
|
3795
3730
|
*/
|
|
3796
3731
|
exports.PremiumMarketingComponentProperties_PaymentModalBanner = new PremiumMarketingComponentProperties_PaymentModalBanner$Type();
|
|
3797
3732
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
3798
|
-
class PremiumMarketingComponentProperties_CTAButton$Type extends runtime_4.MessageType {
|
|
3799
|
-
constructor() {
|
|
3800
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton", [
|
|
3801
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3802
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
3803
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3804
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
3805
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
3806
|
-
]);
|
|
3807
|
-
}
|
|
3808
|
-
create(value) {
|
|
3809
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
3810
|
-
message.copy = "";
|
|
3811
|
-
message.buttonAction = 0;
|
|
3812
|
-
message.deeplinkSection = "";
|
|
3813
|
-
if (value !== undefined)
|
|
3814
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3815
|
-
return message;
|
|
3816
|
-
}
|
|
3817
|
-
internalBinaryRead(reader, length, options, target) {
|
|
3818
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
3819
|
-
while (reader.pos < end) {
|
|
3820
|
-
let [fieldNo, wireType] = reader.tag();
|
|
3821
|
-
switch (fieldNo) {
|
|
3822
|
-
case /* string copy */ 1:
|
|
3823
|
-
message.copy = reader.string();
|
|
3824
|
-
break;
|
|
3825
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
3826
|
-
message.buttonAction = reader.int32();
|
|
3827
|
-
break;
|
|
3828
|
-
case /* string deeplink_section */ 3:
|
|
3829
|
-
message.deeplinkSection = reader.string();
|
|
3830
|
-
break;
|
|
3831
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
3832
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
3833
|
-
break;
|
|
3834
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
3835
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
3836
|
-
break;
|
|
3837
|
-
default:
|
|
3838
|
-
let u = options.readUnknownField;
|
|
3839
|
-
if (u === "throw")
|
|
3840
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3841
|
-
let d = reader.skip(wireType);
|
|
3842
|
-
if (u !== false)
|
|
3843
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3844
|
-
}
|
|
3845
|
-
}
|
|
3846
|
-
return message;
|
|
3847
|
-
}
|
|
3848
|
-
internalBinaryWrite(message, writer, options) {
|
|
3849
|
-
/* string copy = 1; */
|
|
3850
|
-
if (message.copy !== "")
|
|
3851
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
3852
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
3853
|
-
if (message.buttonAction !== 0)
|
|
3854
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
3855
|
-
/* string deeplink_section = 3; */
|
|
3856
|
-
if (message.deeplinkSection !== "")
|
|
3857
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
3858
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
3859
|
-
if (message.copyLocalized)
|
|
3860
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3861
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
3862
|
-
if (message.navigableStorefrontApplicationId)
|
|
3863
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3864
|
-
let u = options.writeUnknownFields;
|
|
3865
|
-
if (u !== false)
|
|
3866
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3867
|
-
return writer;
|
|
3868
|
-
}
|
|
3869
|
-
}
|
|
3870
|
-
/**
|
|
3871
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton
|
|
3872
|
-
*/
|
|
3873
|
-
exports.PremiumMarketingComponentProperties_CTAButton = new PremiumMarketingComponentProperties_CTAButton$Type();
|
|
3874
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
3875
3733
|
class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends runtime_4.MessageType {
|
|
3876
3734
|
constructor() {
|
|
3877
3735
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MobileBottomSheet", [
|
|
@@ -4881,90 +4739,13 @@ class PremiumMarketingComponentProperties_PremiumTabTooltip$Type extends runtime
|
|
|
4881
4739
|
*/
|
|
4882
4740
|
exports.PremiumMarketingComponentProperties_PremiumTabTooltip = new PremiumMarketingComponentProperties_PremiumTabTooltip$Type();
|
|
4883
4741
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4884
|
-
class PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type extends runtime_4.MessageType {
|
|
4885
|
-
constructor() {
|
|
4886
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton", [
|
|
4887
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4888
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
4889
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4890
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
4891
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
4892
|
-
]);
|
|
4893
|
-
}
|
|
4894
|
-
create(value) {
|
|
4895
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
4896
|
-
message.copy = "";
|
|
4897
|
-
message.buttonAction = 0;
|
|
4898
|
-
message.deeplinkSection = "";
|
|
4899
|
-
if (value !== undefined)
|
|
4900
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
4901
|
-
return message;
|
|
4902
|
-
}
|
|
4903
|
-
internalBinaryRead(reader, length, options, target) {
|
|
4904
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
4905
|
-
while (reader.pos < end) {
|
|
4906
|
-
let [fieldNo, wireType] = reader.tag();
|
|
4907
|
-
switch (fieldNo) {
|
|
4908
|
-
case /* string copy */ 1:
|
|
4909
|
-
message.copy = reader.string();
|
|
4910
|
-
break;
|
|
4911
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
4912
|
-
message.buttonAction = reader.int32();
|
|
4913
|
-
break;
|
|
4914
|
-
case /* string deeplink_section */ 3:
|
|
4915
|
-
message.deeplinkSection = reader.string();
|
|
4916
|
-
break;
|
|
4917
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
4918
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
4919
|
-
break;
|
|
4920
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
4921
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
4922
|
-
break;
|
|
4923
|
-
default:
|
|
4924
|
-
let u = options.readUnknownField;
|
|
4925
|
-
if (u === "throw")
|
|
4926
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4927
|
-
let d = reader.skip(wireType);
|
|
4928
|
-
if (u !== false)
|
|
4929
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4930
|
-
}
|
|
4931
|
-
}
|
|
4932
|
-
return message;
|
|
4933
|
-
}
|
|
4934
|
-
internalBinaryWrite(message, writer, options) {
|
|
4935
|
-
/* string copy = 1; */
|
|
4936
|
-
if (message.copy !== "")
|
|
4937
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
4938
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
4939
|
-
if (message.buttonAction !== 0)
|
|
4940
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
4941
|
-
/* string deeplink_section = 3; */
|
|
4942
|
-
if (message.deeplinkSection !== "")
|
|
4943
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
4944
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
4945
|
-
if (message.copyLocalized)
|
|
4946
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4947
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
4948
|
-
if (message.navigableStorefrontApplicationId)
|
|
4949
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4950
|
-
let u = options.writeUnknownFields;
|
|
4951
|
-
if (u !== false)
|
|
4952
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4953
|
-
return writer;
|
|
4954
|
-
}
|
|
4955
|
-
}
|
|
4956
|
-
/**
|
|
4957
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopoverCTAButton
|
|
4958
|
-
*/
|
|
4959
|
-
exports.PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton = new PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton$Type();
|
|
4960
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
4961
4742
|
class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime_4.MessageType {
|
|
4962
4743
|
constructor() {
|
|
4963
4744
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTabPopover", [
|
|
4964
4745
|
{ no: 1, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4965
4746
|
{ no: 2, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4966
4747
|
{ no: 3, name: "asset", kind: "message", T: () => exports.PremiumMarketingComponentProperties_ThemeAwareAsset },
|
|
4967
|
-
{ no: 4, name: "button", kind: "message", T: () => exports.
|
|
4748
|
+
{ no: 4, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
4968
4749
|
{ no: 5, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4969
4750
|
{ no: 6, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle },
|
|
4970
4751
|
{ no: 7, name: "header_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
@@ -4994,8 +4775,8 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
4994
4775
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset */ 3:
|
|
4995
4776
|
message.asset = exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryRead(reader, reader.uint32(), options, message.asset);
|
|
4996
4777
|
break;
|
|
4997
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
4998
|
-
message.button = exports.
|
|
4778
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 4:
|
|
4779
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
4999
4780
|
break;
|
|
5000
4781
|
case /* string help_article_id */ 5:
|
|
5001
4782
|
message.helpArticleId = reader.string();
|
|
@@ -5030,9 +4811,9 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
5030
4811
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset = 3; */
|
|
5031
4812
|
if (message.asset)
|
|
5032
4813
|
exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryWrite(message.asset, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5033
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
4814
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 4; */
|
|
5034
4815
|
if (message.button)
|
|
5035
|
-
exports.
|
|
4816
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5036
4817
|
/* string help_article_id = 5; */
|
|
5037
4818
|
if (message.helpArticleId !== "")
|
|
5038
4819
|
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.helpArticleId);
|
|
@@ -5223,90 +5004,13 @@ class PremiumMarketingComponentProperties_PlanSelectCardBanner$Type extends runt
|
|
|
5223
5004
|
*/
|
|
5224
5005
|
exports.PremiumMarketingComponentProperties_PlanSelectCardBanner = new PremiumMarketingComponentProperties_PlanSelectCardBanner$Type();
|
|
5225
5006
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
5226
|
-
class PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type extends runtime_4.MessageType {
|
|
5227
|
-
constructor() {
|
|
5228
|
-
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton", [
|
|
5229
|
-
{ no: 1, name: "copy", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5230
|
-
{ no: 2, name: "button_action", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction", PremiumMarketingComponentProperties_ButtonAction, "BUTTON_ACTION_"] },
|
|
5231
|
-
{ no: 3, name: "deeplink_section", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5232
|
-
{ no: 4, name: "copy_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
5233
|
-
{ no: 5, name: "navigable_storefront_application_id", kind: "message", T: () => wrappers_1.UInt64Value }
|
|
5234
|
-
]);
|
|
5235
|
-
}
|
|
5236
|
-
create(value) {
|
|
5237
|
-
const message = globalThis.Object.create((this.messagePrototype));
|
|
5238
|
-
message.copy = "";
|
|
5239
|
-
message.buttonAction = 0;
|
|
5240
|
-
message.deeplinkSection = "";
|
|
5241
|
-
if (value !== undefined)
|
|
5242
|
-
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
5243
|
-
return message;
|
|
5244
|
-
}
|
|
5245
|
-
internalBinaryRead(reader, length, options, target) {
|
|
5246
|
-
let message = target ?? this.create(), end = reader.pos + length;
|
|
5247
|
-
while (reader.pos < end) {
|
|
5248
|
-
let [fieldNo, wireType] = reader.tag();
|
|
5249
|
-
switch (fieldNo) {
|
|
5250
|
-
case /* string copy */ 1:
|
|
5251
|
-
message.copy = reader.string();
|
|
5252
|
-
break;
|
|
5253
|
-
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action */ 2:
|
|
5254
|
-
message.buttonAction = reader.int32();
|
|
5255
|
-
break;
|
|
5256
|
-
case /* string deeplink_section */ 3:
|
|
5257
|
-
message.deeplinkSection = reader.string();
|
|
5258
|
-
break;
|
|
5259
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized */ 4:
|
|
5260
|
-
message.copyLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.copyLocalized);
|
|
5261
|
-
break;
|
|
5262
|
-
case /* optional google.protobuf.UInt64Value navigable_storefront_application_id */ 5:
|
|
5263
|
-
message.navigableStorefrontApplicationId = wrappers_1.UInt64Value.internalBinaryRead(reader, reader.uint32(), options, message.navigableStorefrontApplicationId);
|
|
5264
|
-
break;
|
|
5265
|
-
default:
|
|
5266
|
-
let u = options.readUnknownField;
|
|
5267
|
-
if (u === "throw")
|
|
5268
|
-
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
5269
|
-
let d = reader.skip(wireType);
|
|
5270
|
-
if (u !== false)
|
|
5271
|
-
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
5272
|
-
}
|
|
5273
|
-
}
|
|
5274
|
-
return message;
|
|
5275
|
-
}
|
|
5276
|
-
internalBinaryWrite(message, writer, options) {
|
|
5277
|
-
/* string copy = 1; */
|
|
5278
|
-
if (message.copy !== "")
|
|
5279
|
-
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.copy);
|
|
5280
|
-
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ButtonAction button_action = 2; */
|
|
5281
|
-
if (message.buttonAction !== 0)
|
|
5282
|
-
writer.tag(2, runtime_1.WireType.Varint).int32(message.buttonAction);
|
|
5283
|
-
/* string deeplink_section = 3; */
|
|
5284
|
-
if (message.deeplinkSection !== "")
|
|
5285
|
-
writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.deeplinkSection);
|
|
5286
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString copy_localized = 4; */
|
|
5287
|
-
if (message.copyLocalized)
|
|
5288
|
-
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.copyLocalized, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5289
|
-
/* optional google.protobuf.UInt64Value navigable_storefront_application_id = 5; */
|
|
5290
|
-
if (message.navigableStorefrontApplicationId)
|
|
5291
|
-
wrappers_1.UInt64Value.internalBinaryWrite(message.navigableStorefrontApplicationId, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5292
|
-
let u = options.writeUnknownFields;
|
|
5293
|
-
if (u !== false)
|
|
5294
|
-
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
5295
|
-
return writer;
|
|
5296
|
-
}
|
|
5297
|
-
}
|
|
5298
|
-
/**
|
|
5299
|
-
* @generated MessageType for protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBannerCTAButton
|
|
5300
|
-
*/
|
|
5301
|
-
exports.PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton = new PremiumMarketingComponentProperties_BillingSettingsBannerCTAButton$Type();
|
|
5302
|
-
// @generated message type with reflection information, may provide speed optimized methods
|
|
5303
5007
|
class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends runtime_4.MessageType {
|
|
5304
5008
|
constructor() {
|
|
5305
5009
|
super("discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.BillingSettingsBanner", [
|
|
5306
5010
|
{ no: 1, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5307
5011
|
{ no: 2, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
5308
5012
|
{ no: 3, name: "asset", kind: "message", T: () => exports.PremiumMarketingComponentProperties_ThemeAwareAsset },
|
|
5309
|
-
{ no: 4, name: "button", kind: "message", T: () => exports.
|
|
5013
|
+
{ no: 4, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
5310
5014
|
{ no: 5, name: "header_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
5311
5015
|
{ no: 6, name: "body_localized", kind: "message", T: () => exports.PremiumMarketingComponentProperties_LocalizedString },
|
|
5312
5016
|
{ no: 7, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle }
|
|
@@ -5334,8 +5038,8 @@ class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends run
|
|
|
5334
5038
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset */ 3:
|
|
5335
5039
|
message.asset = exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryRead(reader, reader.uint32(), options, message.asset);
|
|
5336
5040
|
break;
|
|
5337
|
-
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
5338
|
-
message.button = exports.
|
|
5041
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button */ 4:
|
|
5042
|
+
message.button = exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
5339
5043
|
break;
|
|
5340
5044
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString header_localized */ 5:
|
|
5341
5045
|
message.headerLocalized = exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryRead(reader, reader.uint32(), options, message.headerLocalized);
|
|
@@ -5367,9 +5071,9 @@ class PremiumMarketingComponentProperties_BillingSettingsBanner$Type extends run
|
|
|
5367
5071
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.ThemeAwareAsset asset = 3; */
|
|
5368
5072
|
if (message.asset)
|
|
5369
5073
|
exports.PremiumMarketingComponentProperties_ThemeAwareAsset.internalBinaryWrite(message.asset, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5370
|
-
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.
|
|
5074
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.CTAButton button = 4; */
|
|
5371
5075
|
if (message.button)
|
|
5372
|
-
exports.
|
|
5076
|
+
exports.PremiumMarketingComponentProperties_CTAButton.internalBinaryWrite(message.button, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
5373
5077
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.LocalizedString header_localized = 5; */
|
|
5374
5078
|
if (message.headerLocalized)
|
|
5375
5079
|
exports.PremiumMarketingComponentProperties_LocalizedString.internalBinaryWrite(message.headerLocalized, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|