-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgoogleplay.proto
2078 lines (1813 loc) · 58.4 KB
/
googleplay.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
syntax = "proto2";
// Both sha1 and sha256 are encoded with base64 with URL and Filename Safe
// Alphabet with padding removed
message AndroidAppDeliveryData {
optional int64 downloadSize = 1;
optional string sha1 = 2;
optional string downloadUrl = 3;
repeated AppFileMetadata additionalFile = 4;
repeated HttpCookie downloadAuthCookie = 5;
optional bool forwardLocked = 6;
optional int64 refundTimeout = 7;
optional bool serverInitiated = 8 [ default = true ];
optional int64 postInstallRefundWindowMillis = 9;
optional bool immediateStartNeeded = 10;
optional AndroidAppPatchData patchData = 11;
optional EncryptionParams encryptionParams = 12;
optional string compressedDownloadUrl = 13;
optional int64 compressedSize = 14;
repeated SplitDeliveryData splitDeliveryData = 15;
optional int32 installLocation = 16;
optional int64 type = 17;
optional CompressedAppData compressedAppData = 18;
optional string sha256 = 19;
}
message SplitDeliveryData {
optional string name = 1;
optional int64 downloadSize = 2;
optional int64 compressedSize = 3;
optional string sha1 = 4;
optional string downloadUrl = 5;
optional string compressedDownloadUrl = 6;
optional AndroidAppPatchData patchData = 7;
optional CompressedAppData compressedAppData = 8;
optional string sha256 = 9;
}
message AndroidAppPatchData {
optional int32 baseVersionCode = 1;
optional string baseSha1 = 2;
optional string downloadUrl = 3;
optional int32 patchFormat = 4 [ default = 1 ];
optional int64 maxPatchSize = 5;
}
message CompressedAppData {
optional int64 type = 1;
optional int64 size = 2;
optional string downloadUrl = 3;
}
message AppFileMetadata {
optional int32 fileType = 1;
optional int32 versionCode = 2;
optional int64 size = 3;
optional string downloadUrl = 4;
optional AndroidAppPatchData patchData = 5;
optional int64 compressedSize = 6;
optional string compressedDownloadUrl = 7;
optional string sha1 = 8;
}
message EncryptionParams {
optional int32 version = 1;
optional string encryptionKey = 2;
optional string hMacKey = 3;
}
message HttpCookie {
optional string name = 1;
optional string value = 2;
}
message Address {
optional string name = 1;
optional string addressLine1 = 2;
optional string addressLine2 = 3;
optional string city = 4;
optional string state = 5;
optional string postalCode = 6;
optional string postalCountry = 7;
optional string dependentLocality = 8;
optional string sortingCode = 9;
optional string languageCode = 10;
optional string phoneNumber = 11;
optional bool deprecatedIsReduced = 12;
optional string firstName = 13;
optional string lastName = 14;
optional string email = 15;
}
message BrowseLink {
optional string name = 1;
optional string dataUrl = 3;
optional bytes serverLogsCookie = 4;
optional Image icon = 5;
}
message BrowseResponse {
optional string contentsUrl = 1;
optional string promoUrl = 2;
repeated BrowseLink category = 3;
repeated BrowseLink breadcrumb = 4;
repeated QuickLink quickLink = 5;
optional bytes serverLogsCookie = 6;
optional string title = 7;
optional int32 backendId = 8;
optional BrowseTab browseTab = 9;
optional int32 landingTabIndex = 10;
optional int32 quickLinkTabIndex = 11;
optional int32 quickLinkFallbackTabIndex = 12;
optional bool isFamilySafe = 14;
optional string shareUrl = 18;
}
message DirectPurchase {
optional string detailsUrl = 1;
optional string purchaseItemId = 2;
optional string parentItemId = 3;
optional int32 offerType = 4 [ default = 1 ];
}
message RedeemGiftCard {
optional string prefillCode = 1;
optional string partnerPayload = 2;
}
message ResolvedLink {
optional string detailsUrl = 1;
optional string browseUrl = 2;
optional string searchUrl = 3;
optional DirectPurchase directPurchase = 4;
optional string homeUrl = 5;
optional RedeemGiftCard redeemGiftCard = 6;
optional bytes serverLogsCookie = 7;
optional DocId DocId = 8;
optional string wishlistUrl = 9;
optional int32 backend = 10;
optional string query = 11;
optional string myAccountUrl = 12;
optional HelpCenter helpCenter = 13;
}
message HelpCenter { optional string contextId = 1; }
message QuickLink {
optional string name = 1;
optional Image image = 2;
optional ResolvedLink link = 3;
optional bool displayRequired = 4;
optional bytes serverLogsCookie = 5;
optional int32 backendId = 6;
optional bool prismStyle = 7;
}
message BrowseTab {
optional string title = 1;
optional bytes serverLogsCookie = 2;
optional string listUrl = 3;
repeated BrowseLink browseLink = 4;
repeated QuickLink quickLink = 5;
optional string quickLinkTitle = 6;
optional string categoriesTitle = 7;
optional int32 backendId = 8;
optional string highlightsBannerUrl = 9;
}
message BuyResponse {
optional PurchaseNotificationResponse purchaseResponse = 1;
optional group CheckoutInfo = 2 {
optional LineItem item = 3;
repeated LineItem subItem = 4;
repeated group CheckoutOption = 5 {
optional string formOfPayment = 6;
optional string encodedAdjustedCart = 7;
optional string instrumentId = 15;
repeated LineItem item = 16;
repeated LineItem subItem = 17;
optional LineItem total = 18;
repeated string footerHtml = 19;
optional int32 instrumentFamily = 29;
repeated int32 deprecatedInstrumentInapplicableReason = 30;
optional bool selectedInstrument = 32;
optional LineItem summary = 33;
repeated string footnoteHtml = 35;
optional Instrument instrument = 43;
optional string purchaseCookie = 45;
repeated string disabledReason = 48;
}
optional string deprecatedCheckoutUrl = 10;
optional string addInstrumentUrl = 11;
repeated string footerHtml = 20;
repeated int32 eligibleInstrumentFamily = 31;
repeated string footnoteHtml = 36;
repeated Instrument eligibleInstrument = 44;
}
optional string continueViaUrl = 8;
optional string purchaseStatusUrl = 9;
optional string checkoutServiceId = 12;
optional bool checkoutTokenRequired = 13;
optional string baseCheckoutUrl = 14;
repeated string tosCheckboxHtml = 37;
optional int32 iabPermissionError = 38;
optional PurchaseStatusResponse purchaseStatusResponse = 39;
optional string purchaseCookie = 46;
optional Challenge challenge = 49;
optional string addInstrumentPromptHtml = 50;
optional string confirmButtonText = 51;
optional string permissionErrorTitleText = 52;
optional string permissionErrorMessageText = 53;
optional bytes serverLogsCookie = 54;
optional string encodedDeliveryToken = 55;
optional string unknownToken = 56;
}
message LineItem {
optional string name = 1;
optional string description = 2;
optional Offer offer = 3;
optional Money amount = 4;
}
message Money {
optional int64 micros = 1;
optional string currencyCode = 2;
optional string formattedAmount = 3;
}
message PurchaseNotificationResponse {
optional int32 status = 1;
optional DebugInfo debugInfo = 2;
optional string localizedErrorMessage = 3;
optional string purchaseId = 4;
}
message PurchaseStatusResponse {
optional int32 status = 1;
optional string statusMsg = 2;
optional string statusTitle = 3;
optional string briefMessage = 4;
optional string infoUrl = 5;
optional LibraryUpdate libraryUpdate = 6;
optional Instrument rejectedInstrument = 7;
optional AndroidAppDeliveryData appDeliveryData = 8;
}
message PurchaseHistoryDetails {
optional int64 purchaseTimestampMillis = 2;
optional string purchaseDetailsHtml = 3;
optional Offer offer = 5;
optional string purchaseStatus = 6;
optional string titleBylineHtml = 7;
optional bytes clientRefundContext = 8;
optional Image purchaseDetailsImage = 9;
}
message BillingProfileResponse {
optional int32 result = 1;
optional BillingProfile billingProfile = 2;
optional string userMessageHtml = 3;
}
message CheckInstrumentResponse {
optional bool userHasValidInstrument = 1;
optional bool checkoutTokenRequired = 2;
repeated Instrument instrument = 4;
repeated Instrument eligibleInstrument = 5;
}
message InstrumentSetupInfoResponse {
repeated InstrumentSetupInfo setupInfo = 1;
optional bool checkoutTokenRequired = 2;
}
message RedeemGiftCardRequest {
optional string giftCardPin = 1;
optional Address address = 2;
repeated string acceptedLegalDocumentId = 3;
optional string checkoutToken = 4;
}
message RedeemGiftCardResponse {
optional int32 result = 1;
optional string userMessageHtml = 2;
optional string balanceHtml = 3;
optional AddressChallenge addressChallenge = 4;
optional bool checkoutTokenRequired = 5;
}
message UpdateInstrumentRequest {
optional Instrument instrument = 1;
optional string checkoutToken = 2;
}
message UpdateInstrumentResponse {
optional int32 result = 1;
optional string instrumentId = 2;
optional string userMessageHtml = 3;
repeated InputValidationError errorInputField = 4;
optional bool checkoutTokenRequired = 5;
optional RedeemedPromoOffer redeemedOffer = 6;
}
message InitiateAssociationResponse { optional string userToken = 1; }
message VerifyAssociationResponse {
optional int32 status = 1;
optional Address billingAddress = 2;
optional CarrierTos carrierTos = 3;
optional string carrierErrorMessage = 4;
}
message AddressChallenge {
optional string responseAddressParam = 1;
optional string responseCheckboxesParam = 2;
optional string title = 3;
optional string descriptionHtml = 4;
repeated FormCheckbox checkbox = 5;
optional Address address = 6;
repeated InputValidationError errorInputField = 7;
optional string errorHtml = 8;
repeated int32 requiredField = 9;
repeated Country supportedCountry = 10;
}
message AuthenticationChallenge {
optional int32 authenticationType = 1;
optional string responseAuthenticationTypeParam = 2;
optional string responseRetryCountParam = 3;
optional string pinHeaderText = 4;
optional string pinDescriptionTextHtml = 5;
optional string gaiaHeaderText = 6;
optional string gaiaDescriptionTextHtml = 7;
optional string gaiaFooterTextHtml = 8;
optional FormCheckbox gaiaOptOutCheckbox = 9;
optional string gaiaOptOutDescriptionTextHtml = 10;
}
message Challenge {
optional AddressChallenge addressChallenge = 1;
optional AuthenticationChallenge authenticationChallenge = 2;
optional WebViewChallenge webViewChallenge = 3;
}
message Country {
optional string regionCode = 1;
optional string displayName = 2;
}
message FormCheckbox {
optional string description = 1;
optional bool checked = 2;
optional bool required = 3;
optional string id = 4;
}
message InputValidationError {
optional int32 inputField = 1;
optional string errorMessage = 2;
}
message WebViewChallenge {
optional string startUrl = 1;
optional string targetUrlRegexp = 2;
optional string cancelButtonDisplayLabel = 3;
optional string responseTargetUrlParam = 4;
optional string cancelUrlRegexp = 5;
optional string title = 6;
}
message AddCreditCardPromoOffer {
optional string headerText = 1;
optional string descriptionHtml = 2;
optional Image image = 3;
optional string introductoryTextHtml = 4;
optional string offerTitle = 5;
optional string noActionDescription = 6;
optional string termsAndConditionsHtml = 7;
}
message AvailablePromoOffer {
optional AddCreditCardPromoOffer addCreditCardOffer = 1;
}
message CheckPromoOfferResponse {
repeated AvailablePromoOffer availableOffer = 1;
optional RedeemedPromoOffer redeemedOffer = 2;
optional bool checkoutTokenRequired = 3;
}
message RedeemedPromoOffer {
optional string headerText = 1;
optional string descriptionHtml = 2;
optional Image image = 3;
}
message DocId {
optional string backendDocId = 1;
optional int32 type = 2 [ default = 1 ];
optional int32 backend = 3;
}
message Install {
optional fixed64 androidId = 1;
optional int32 version = 2;
optional bool bundled = 3;
optional bool pending = 4;
optional int64 lastUpdated = 5;
}
message GroupLicenseKey {
optional fixed64 dasher_customer_id = 1;
optional DocId docId = 2;
optional int32 licensed_offer_type = 3 [ default = 1 ];
optional int32 type = 4;
optional int32 rental_period_days = 5;
}
message LicenseTerms { optional GroupLicenseKey groupLicenseKey = 1; }
message Offer {
optional int64 micros = 1;
optional string currencyCode = 2;
optional string formattedAmount = 3;
repeated Offer convertedPrice = 4;
optional bool checkoutFlowRequired = 5;
optional int64 fullPriceMicros = 6;
optional string formattedFullAmount = 7;
optional int32 offerType = 8 [ default = 1 ];
optional RentalTerms rentalTerms = 9;
optional int64 onSaleDate = 10;
repeated string promotionLabel = 11;
optional SubscriptionTerms subscriptionTerms = 12;
optional string formattedName = 13;
optional string formattedDescription = 14;
optional bool preorder = 15;
optional int32 onSaleDateDisplayTimeZoneOffsetMillis = 16;
optional int32 licensedOfferType = 17;
optional SubscriptionContentTerms subscriptionContentTerms = 18;
optional string offerId = 19;
optional int64 preorderFulfillmentDisplayDate = 20;
optional LicenseTerms licenseTerms = 21;
optional bool sale = 22;
optional VoucherTerms voucherTerms = 23;
repeated OfferPayment offerPayment = 24;
optional bool repeatLastPayment = 25;
optional string buyButtonLabel = 26;
optional bool instantPurchaseEnabled = 27;
optional int64 saleEndTimestamp = 30;
optional string saleMessage = 31;
}
message MonthAndDay {
optional uint32 month = 1;
optional uint32 day = 2;
}
message OfferPaymentPeriod {
optional TimePeriod duration = 1;
optional MonthAndDay start = 2;
optional MonthAndDay end = 3;
}
message OfferPaymentOverride {
optional int64 micros = 1;
optional MonthAndDay start = 2;
optional MonthAndDay end = 3;
}
message OfferPayment {
optional int64 micros = 1;
optional string currencyCode = 2;
optional OfferPaymentPeriod offerPaymentPeriod = 3;
repeated OfferPaymentOverride offerPaymentOverride = 4;
}
message VoucherTerms {}
message RentalTerms {
optional int32 dEPRECATEDGrantPeriodSeconds = 1;
optional int32 dEPRECATEDActivatePeriodSeconds = 2;
optional TimePeriod grantPeriod = 3;
optional TimePeriod activatePeriod = 4;
}
message SignedData {
optional string signedData = 1;
optional string signature = 2;
}
message SubscriptionContentTerms { optional DocId requiredSubscription = 1; }
message GroupLicenseInfo {
optional int32 licensedOfferType = 1;
optional fixed64 gaiaGroupId = 2;
}
message LicensedDocumentInfo { repeated fixed64 gaiaGroupId = 1; }
message OwnershipInfo {
optional int64 initiationTimestamp = 1;
optional int64 validUntilTimestamp = 2;
optional bool autoRenewing = 3;
optional int64 refundTimeoutTimestamp = 4;
optional int64 postDeliveryRefundWindowMillis = 5;
optional SignedData developerPurchaseInfo = 6;
optional bool preOrdered = 7;
optional bool hidden = 8;
optional RentalTerms rentalTerms = 9;
optional GroupLicenseInfo groupLicenseInfo = 10;
optional LicensedDocumentInfo licensedDocumentInfo = 11;
optional int32 quantity = 12;
optional int64 libraryExpirationTimestamp = 14;
}
message SubscriptionTerms {
optional TimePeriod recurringPeriod = 1;
optional TimePeriod trialPeriod = 2;
}
message TimePeriod {
optional int32 unit = 1;
optional int32 count = 2;
}
message BillingAddressSpec {
optional int32 billingAddressType = 1;
repeated int32 requiredField = 2;
}
message BillingProfile {
repeated Instrument instrument = 1;
optional string selectedExternalInstrumentId = 2;
repeated BillingProfileOption billingProfileOption = 3;
}
message BillingProfileOption {
optional int32 type = 1;
optional string displayTitle = 2;
optional string externalInstrumentId = 3;
optional TopupInfo topupInfo = 4;
optional CarrierBillingInstrumentStatus carrierBillingInstrumentStatus = 5;
}
message CarrierBillingCredentials {
optional string value = 1;
optional int64 expiration = 2;
}
message CarrierBillingInstrument {
optional string instrumentKey = 1;
optional string accountType = 2;
optional string currencyCode = 3;
optional int64 transactionLimit = 4;
optional string subscriberIdentifier = 5;
optional EncryptedSubscriberInfo encryptedSubscriberInfo = 6;
optional CarrierBillingCredentials credentials = 7;
optional CarrierTos acceptedCarrierTos = 8;
}
message CarrierBillingInstrumentStatus {
optional CarrierTos carrierTos = 1;
optional bool associationRequired = 2;
optional bool passwordRequired = 3;
optional PasswordPrompt carrierPasswordPrompt = 4;
optional int32 apiVersion = 5;
optional string name = 6;
optional DeviceAssociation deviceAssociation = 7;
optional string carrierSupportPhoneNumber = 8;
}
message CarrierTos {
optional CarrierTosEntry dcbTos = 1;
optional CarrierTosEntry piiTos = 2;
optional bool needsDcbTosAcceptance = 3;
optional bool needsPiiTosAcceptance = 4;
}
message CarrierTosEntry {
optional string url = 1;
optional string version = 2;
}
message CreditCardInstrument {
optional int32 type = 1;
optional string escrowHandle = 2;
optional string lastDigits = 3;
optional int32 expirationMonth = 4;
optional int32 expirationYear = 5;
repeated EfeParam escrowEfeParam = 6;
}
message DeviceAssociation {
optional string userTokenRequestMessage = 1;
optional string userTokenRequestAddress = 2;
}
message DisabledInfo {
optional int32 disabledReason = 1;
optional string disabledMessageHtml = 2;
optional string errorMessage = 3;
}
message EfeParam {
optional int32 key = 1;
optional string value = 2;
}
message Instrument {
optional string instrumentId = 1;
optional Address billingAddress = 2;
optional CreditCardInstrument creditCard = 3;
optional CarrierBillingInstrument carrierBilling = 4;
optional BillingAddressSpec billingAddressSpec = 5;
optional int32 instrumentFamily = 6;
optional CarrierBillingInstrumentStatus carrierBillingStatus = 7;
optional string displayTitle = 8;
optional TopupInfo topupInfoDeprecated = 9;
optional int32 version = 10;
optional StoredValueInstrument storedValue = 11;
repeated DisabledInfo disabledInfo = 12;
}
message InstrumentSetupInfo {
optional int32 instrumentFamily = 1;
optional bool supported = 2;
optional AddressChallenge addressChallenge = 3;
optional Money balance = 4;
repeated string footerHtml = 5;
}
message PasswordPrompt {
optional string prompt = 1;
optional string forgotPasswordUrl = 2;
}
message StoredValueInstrument {
optional int32 type = 1;
optional Money balance = 2;
optional TopupInfo topupInfo = 3;
}
message TopupInfo {
optional string optionsContainerDocIdDeprecated = 1;
optional string optionsListUrl = 2;
optional string subtitle = 3;
optional DocId optionsContainerDocId = 4;
}
message ConsumePurchaseResponse {
optional LibraryUpdate libraryUpdate = 1;
optional int32 status = 2;
}
message ContainerMetadata {
optional string browseUrl = 1;
optional string nextPageUrl = 2;
optional double relevance = 3;
optional int64 estimatedResults = 4;
optional string analyticsCookie = 5;
optional bool ordered = 6;
repeated ContainerView containerView = 7;
optional Image leftIcon = 8;
}
message ContainerView {
optional bool selected = 1;
optional string title = 2;
optional string listUrl = 3;
optional bytes serverLogsCookie = 4;
}
message FlagContentResponse {}
message ClientDownloadRequest {
message ApkInfo {
optional string packageName = 1;
optional int32 versionCode = 2;
}
message CertificateChain {
message Element {
optional bytes certificate = 1;
optional bool parsedSuccessfully = 2;
optional bytes subject = 3;
optional bytes issuer = 4;
optional bytes fingerprint = 5;
optional int64 expiryTime = 6;
optional int64 startTime = 7;
}
repeated Element element = 1;
}
message Digests {
optional bytes sha256 = 1;
optional bytes sha1 = 2;
optional bytes md5 = 3;
}
message Resource {
optional string url = 1;
optional int32 type = 2;
optional bytes remoteIp = 3;
optional string referrer = 4;
}
message SignatureInfo {
repeated CertificateChain certificateChain = 1;
optional bool trusted = 2;
}
optional string url = 1;
optional Digests digests = 2;
optional int64 length = 3;
repeated Resource resources = 4;
optional SignatureInfo signature = 5;
optional bool userInitiated = 6;
repeated string clientAsn = 8;
optional string fileBasename = 9;
optional int32 downloadType = 10;
optional string locale = 11;
optional ApkInfo apkInfo = 12;
optional fixed64 androidId = 13;
repeated string originatingPackages = 15;
optional SignatureInfo originatingSignature = 17;
}
message ClientDownloadResponse {
message MoreInfo {
optional string description = 1;
optional string url = 2;
}
optional int32 verdict = 1;
optional MoreInfo moreInfo = 2;
optional bytes token = 3;
}
message ClientDownloadStatsRequest {
optional int32 userDecision = 1;
optional bytes token = 2;
}
message DebugInfo {
repeated string message = 1;
repeated group Timing = 2 {
optional string name = 3;
optional double timeInMs = 4;
}
}
message DebugSettingsResponse {
optional string playCountryOverride = 1;
optional string playCountryDebugInfo = 2;
}
message DeliveryResponse {
optional int32 status = 1 [ default = 1 ];
optional AndroidAppDeliveryData appDeliveryData = 2;
}
message BulkDetailsEntry { optional Item item = 1; }
message BulkDetailsRequest {
repeated string DocId = 1;
optional bool includeChildDocs = 2 [ default = true ];
optional bool includeDetails = 3;
optional string sourcePackageName = 4;
repeated int32 installedVersionCode = 7;
}
message BulkDetailsResponse { repeated BulkDetailsEntry entry = 1; }
message DetailsResponse {
optional string analyticsCookie = 2;
optional Review userReview = 3;
optional Item item = 4;
optional string footerHtml = 5;
optional bytes serverLogsCookie = 6;
repeated DiscoveryBadge discoveryBadge = 7;
optional bool enableReviews = 8 [ default = true ];
optional Features features = 12;
optional string detailsStreamUrl = 13;
optional string userReviewUrl = 14;
optional string postAcquireDetailsStreamUrl = 17;
}
message DiscoveryBadge {
optional string label = 1;
optional Image image = 2;
optional int32 backgroundColor = 3;
optional DiscoveryBadgeLink badgeContainer1 = 4;
optional bytes serverLogsCookie = 5;
optional bool isPlusOne = 6;
optional float aggregateRating = 7;
optional int32 userStarRating = 8;
optional string downloadCount = 9;
optional string downloadUnits = 10;
optional string contentDescription = 11;
optional PlayerBadge playerBadge = 12;
optional bytes familyAgeRangeBadge = 13;
optional bytes familyCategoryBadge = 14;
}
message PlayerBadge { optional Image overlayIcon = 1; }
message DiscoveryBadgeLink {
optional Link link = 1;
optional string userReviewsUrl = 2;
optional string criticReviewsUrl = 3;
}
message Features {
repeated Feature featurePresence = 1;
repeated Feature featureRating = 2;
}
message Feature {
optional string label = 1;
optional string value = 3;
}
message DeviceConfigurationProto {
optional int32 touchScreen = 1;
optional int32 keyboard = 2;
optional int32 navigation = 3;
optional int32 screenLayout = 4;
optional bool hasHardKeyboard = 5;
optional bool hasFiveWayNavigation = 6;
optional int32 screenDensity = 7;
optional int32 glEsVersion = 8;
repeated string systemSharedLibrary = 9;
repeated string systemAvailableFeature = 10;
repeated string nativePlatform = 11;
optional int32 screenWidth = 12;
optional int32 screenHeight = 13;
repeated string systemSupportedLocale = 14;
repeated string glExtension = 15;
optional int32 deviceClass = 16;
optional int32 maxApkDownloadSizeMb = 17 [ default = 50 ];
optional int32 smallestScreenWidthDP = 18;
optional int32 lowRamDevice = 19 [ default = 0 ];
optional int64 totalMemoryBytes = 20 [ default = 8354971648 ];
optional int32 maxNumOf_CPUCores = 21 [ default = 8 ];
repeated DeviceFeature deviceFeature = 26;
optional int32 unknown28 = 28 [ default = 0 ];
optional int32 unknown30 = 30 [ default = 4 ];
}
message DeviceFeature {
optional string name = 1;
optional int32 value = 2;
}
message Document {
optional DocId DocId = 1;
optional DocId fetchDocId = 2;
optional DocId sampleDocId = 3;
optional string title = 4;
optional string url = 5;
repeated string snippet = 6;
optional Offer priceDeprecated = 7;
optional Availability availability = 9;
repeated Image image = 10;
repeated Document child = 11;
optional AggregateRating aggregateRating = 13;
repeated Offer offer = 14;
repeated TranslatedText translatedSnippet = 15;
repeated DocumentVariant documentVariant = 16;
repeated string categoryId = 17;
repeated Document decoration = 18;
repeated Document parent = 19;
optional string privacyPolicyUrl = 20;
optional string consumptionUrl = 21;
optional int32 estimatedNumChildren = 22;
optional string subtitle = 23;
}
message DocumentVariant {
optional int32 variationType = 1;
optional Rule rule = 2;
optional string title = 3;
repeated string snippet = 4;
optional string recentChanges = 5;
repeated TranslatedText autoTranslation = 6;
repeated Offer offer = 7;
optional int64 channelId = 9;
repeated Document child = 10;
repeated Document decoration = 11;
repeated Image image = 12;
repeated string categoryId = 13;
optional string subtitle = 14;
}
message SectionImage { repeated ImageContainer imageContainer = 1; }
message ImageContainer { optional Image image = 4; }
message Image {
optional int32 imageType = 1;
optional group Dimension = 2 {
optional int32 width = 3;
optional int32 height = 4;
optional int32 aspectRatio = 18;
}
optional string imageUrl = 5;
optional string altTextLocalized = 6;
optional string secureUrl = 7;
optional int32 positionInSequence = 8;
optional bool supportsFifeUrlOptions = 9;
optional group Citation = 10 {
optional string titleLocalized = 11;
optional string url = 12;
}
optional int32 durationSeconds = 14;
optional string fillColorRGB = 15;
optional bool autogen = 16;
optional Attribution attribution = 17;
optional string backgroundColorRgb = 19;
optional ImagePalette palette = 20;
optional int32 deviceClass = 21;
optional bool supportsFifeMonogramOption = 22;
optional string imageUrlAlt = 28;
}
message Attribution {
optional string sourceTitle = 1;
optional string sourceUrl = 2;
optional string licenseTitle = 3;
optional string licenseUrl = 4;
}
message ImagePalette {
optional string lightVibrantRGB = 1;
optional string vibrantRGB = 2;
optional string darkVibrantRGB = 3;
optional string lightMutedRGB = 4;
optional string mutedRGB = 5;
optional string darkMutedRGB = 6;
}
message TranslatedText {
optional string text = 1;
optional string sourceLocale = 2;
optional string targetLocale = 3;
}
message PlusOneData {
optional bool setByUser = 1;
optional int64 total = 2;
optional int64 circlesTotal = 3;
repeated PlusPerson circlesPeople = 4;
}
message PlusPerson {
optional string displayName = 2;
optional string profileImageUrl = 4;
}
message AppDetails {
optional string developerName = 1;
optional int32 majorVersionNumber = 2;
optional int32 versionCode = 3;
optional string versionString = 4;
optional string title = 5;
repeated string appCategory = 7;
optional int32 contentRating = 8;
optional int64 infoDownloadSize = 9;
repeated string permission = 10;
optional string developerEmail = 11;
optional string developerWebsite = 12;
optional string infoDownload = 13;
optional string packageName = 14;
optional string recentChangesHtml = 15;
optional string infoUpdatedOn = 16;
repeated FileMetadata file = 17;
optional string appType = 18;
repeated string certificateHash = 19;
optional bool variesWithDevice = 21 [ default = true ];
repeated CertificateSet certificateSet = 22;
repeated string autoAcquireFreeAppIfHigherVersionAvailableTag = 23;
optional bool hasInstantLink = 24;
repeated string splitId = 25;
optional bool gamepadRequired = 26;
optional bool externallyHosted = 27;
optional bool everExternallyHosted = 28;
optional string installNotes = 30;
optional int32 installLocation = 31;
optional int32 targetSdkVersion = 32;
optional string hasPreregistrationPromoCode = 33;
optional Dependencies dependencies = 34;
optional TestingProgramInfo testingProgramInfo = 35;
optional EarlyAccessInfo earlyAccessInfo = 36;
optional EditorChoice editorChoice = 41;
optional string instantLink = 43;
optional string developerAddress = 45;
optional Publisher publisher = 46;
optional string categoryName = 48;
optional int64 downloadCount = 53;
optional string downloadLabelDisplay = 61;
optional string inAppProduct = 67;
optional string downloadLabelAbbreviated = 77;
optional string downloadLabel = 78;
}