UNPKG

gplayapi-ts

Version:
1,527 lines 183 kB
import { Message, proto2, protoInt64 } from "@bufbuild/protobuf"; class AndroidAppDeliveryData extends Message { /** * @generated from field: optional int64 downloadSize = 1; */ downloadSize; /** * @generated from field: optional string sha1 = 2; */ sha1; /** * @generated from field: optional string downloadUrl = 3; */ downloadUrl; /** * @generated from field: repeated googleplay.AppFileMetadata additionalFile = 4; */ additionalFile = []; /** * @generated from field: repeated googleplay.HttpCookie downloadAuthCookie = 5; */ downloadAuthCookie = []; /** * @generated from field: optional bool forwardLocked = 6; */ forwardLocked; /** * @generated from field: optional int64 refundTimeout = 7; */ refundTimeout; /** * @generated from field: optional bool serverInitiated = 8 [default = true]; */ serverInitiated; /** * @generated from field: optional int64 postInstallRefundWindowMillis = 9; */ postInstallRefundWindowMillis; /** * @generated from field: optional bool immediateStartNeeded = 10; */ immediateStartNeeded; /** * @generated from field: optional googleplay.AndroidAppPatchData patchData = 11; */ patchData; /** * @generated from field: optional googleplay.EncryptionParams encryptionParams = 12; */ encryptionParams; /** * @generated from field: optional string compressedDownloadUrl = 13; */ compressedDownloadUrl; /** * @generated from field: optional int64 compressedSize = 14; */ compressedSize; /** * @generated from field: repeated googleplay.SplitDeliveryData splitDeliveryData = 15; */ splitDeliveryData = []; /** * @generated from field: optional int32 installLocation = 16; */ installLocation; /** * @generated from field: optional int64 type = 17; */ type; /** * @generated from field: optional googleplay.CompressedAppData compressedAppData = 18; */ compressedAppData; /** * @generated from field: optional string sha256 = 19; */ sha256; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.AndroidAppDeliveryData"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "downloadSize", kind: "scalar", T: 3, opt: true }, { no: 2, name: "sha1", kind: "scalar", T: 9, opt: true }, { no: 3, name: "downloadUrl", kind: "scalar", T: 9, opt: true }, { no: 4, name: "additionalFile", kind: "message", T: AppFileMetadata, repeated: true }, { no: 5, name: "downloadAuthCookie", kind: "message", T: HttpCookie, repeated: true }, { no: 6, name: "forwardLocked", kind: "scalar", T: 8, opt: true }, { no: 7, name: "refundTimeout", kind: "scalar", T: 3, opt: true }, { no: 8, name: "serverInitiated", kind: "scalar", T: 8, opt: true, default: true }, { no: 9, name: "postInstallRefundWindowMillis", kind: "scalar", T: 3, opt: true }, { no: 10, name: "immediateStartNeeded", kind: "scalar", T: 8, opt: true }, { no: 11, name: "patchData", kind: "message", T: AndroidAppPatchData, opt: true }, { no: 12, name: "encryptionParams", kind: "message", T: EncryptionParams, opt: true }, { no: 13, name: "compressedDownloadUrl", kind: "scalar", T: 9, opt: true }, { no: 14, name: "compressedSize", kind: "scalar", T: 3, opt: true }, { no: 15, name: "splitDeliveryData", kind: "message", T: SplitDeliveryData, repeated: true }, { no: 16, name: "installLocation", kind: "scalar", T: 5, opt: true }, { no: 17, name: "type", kind: "scalar", T: 3, opt: true }, { no: 18, name: "compressedAppData", kind: "message", T: CompressedAppData, opt: true }, { no: 19, name: "sha256", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new AndroidAppDeliveryData().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AndroidAppDeliveryData().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AndroidAppDeliveryData().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(AndroidAppDeliveryData, a, b); } } class SplitDeliveryData extends Message { /** * @generated from field: optional string name = 1; */ name; /** * @generated from field: optional int64 downloadSize = 2; */ downloadSize; /** * @generated from field: optional int64 compressedSize = 3; */ compressedSize; /** * @generated from field: optional string sha1 = 4; */ sha1; /** * @generated from field: optional string downloadUrl = 5; */ downloadUrl; /** * @generated from field: optional string compressedDownloadUrl = 6; */ compressedDownloadUrl; /** * @generated from field: optional googleplay.AndroidAppPatchData patchData = 7; */ patchData; /** * @generated from field: optional googleplay.CompressedAppData compressedAppData = 8; */ compressedAppData; /** * @generated from field: optional string sha256 = 9; */ sha256; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.SplitDeliveryData"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9, opt: true }, { no: 2, name: "downloadSize", kind: "scalar", T: 3, opt: true }, { no: 3, name: "compressedSize", kind: "scalar", T: 3, opt: true }, { no: 4, name: "sha1", kind: "scalar", T: 9, opt: true }, { no: 5, name: "downloadUrl", kind: "scalar", T: 9, opt: true }, { no: 6, name: "compressedDownloadUrl", kind: "scalar", T: 9, opt: true }, { no: 7, name: "patchData", kind: "message", T: AndroidAppPatchData, opt: true }, { no: 8, name: "compressedAppData", kind: "message", T: CompressedAppData, opt: true }, { no: 9, name: "sha256", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new SplitDeliveryData().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new SplitDeliveryData().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new SplitDeliveryData().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(SplitDeliveryData, a, b); } } class AndroidAppPatchData extends Message { /** * @generated from field: optional int32 baseVersionCode = 1; */ baseVersionCode; /** * @generated from field: optional string baseSha1 = 2; */ baseSha1; /** * @generated from field: optional string downloadUrl = 3; */ downloadUrl; /** * @generated from field: optional int32 patchFormat = 4 [default = 1]; */ patchFormat; /** * @generated from field: optional int64 maxPatchSize = 5; */ maxPatchSize; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.AndroidAppPatchData"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "baseVersionCode", kind: "scalar", T: 5, opt: true }, { no: 2, name: "baseSha1", kind: "scalar", T: 9, opt: true }, { no: 3, name: "downloadUrl", kind: "scalar", T: 9, opt: true }, { no: 4, name: "patchFormat", kind: "scalar", T: 5, opt: true, default: 1 }, { no: 5, name: "maxPatchSize", kind: "scalar", T: 3, opt: true } ]); static fromBinary(bytes, options) { return new AndroidAppPatchData().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AndroidAppPatchData().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AndroidAppPatchData().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(AndroidAppPatchData, a, b); } } class CompressedAppData extends Message { /** * @generated from field: optional int64 type = 1; */ type; /** * @generated from field: optional int64 size = 2; */ size; /** * @generated from field: optional string downloadUrl = 3; */ downloadUrl; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.CompressedAppData"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "type", kind: "scalar", T: 3, opt: true }, { no: 2, name: "size", kind: "scalar", T: 3, opt: true }, { no: 3, name: "downloadUrl", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new CompressedAppData().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new CompressedAppData().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new CompressedAppData().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(CompressedAppData, a, b); } } class AppFileMetadata extends Message { /** * @generated from field: optional int32 fileType = 1; */ fileType; /** * @generated from field: optional int32 versionCode = 2; */ versionCode; /** * @generated from field: optional int64 size = 3; */ size; /** * @generated from field: optional string downloadUrl = 4; */ downloadUrl; /** * @generated from field: optional googleplay.AndroidAppPatchData patchData = 5; */ patchData; /** * @generated from field: optional int64 compressedSize = 6; */ compressedSize; /** * @generated from field: optional string compressedDownloadUrl = 7; */ compressedDownloadUrl; /** * @generated from field: optional string sha1 = 8; */ sha1; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.AppFileMetadata"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "fileType", kind: "scalar", T: 5, opt: true }, { no: 2, name: "versionCode", kind: "scalar", T: 5, opt: true }, { no: 3, name: "size", kind: "scalar", T: 3, opt: true }, { no: 4, name: "downloadUrl", kind: "scalar", T: 9, opt: true }, { no: 5, name: "patchData", kind: "message", T: AndroidAppPatchData, opt: true }, { no: 6, name: "compressedSize", kind: "scalar", T: 3, opt: true }, { no: 7, name: "compressedDownloadUrl", kind: "scalar", T: 9, opt: true }, { no: 8, name: "sha1", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new AppFileMetadata().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AppFileMetadata().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AppFileMetadata().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(AppFileMetadata, a, b); } } class EncryptionParams extends Message { /** * @generated from field: optional int32 version = 1; */ version; /** * @generated from field: optional string encryptionKey = 2; */ encryptionKey; /** * @generated from field: optional string hMacKey = 3; */ hMacKey; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.EncryptionParams"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "version", kind: "scalar", T: 5, opt: true }, { no: 2, name: "encryptionKey", kind: "scalar", T: 9, opt: true }, { no: 3, name: "hMacKey", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new EncryptionParams().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new EncryptionParams().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new EncryptionParams().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(EncryptionParams, a, b); } } class HttpCookie extends Message { /** * @generated from field: optional string name = 1; */ name; /** * @generated from field: optional string value = 2; */ value; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.HttpCookie"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9, opt: true }, { no: 2, name: "value", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new HttpCookie().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new HttpCookie().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new HttpCookie().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(HttpCookie, a, b); } } class Address extends Message { /** * @generated from field: optional string name = 1; */ name; /** * @generated from field: optional string addressLine1 = 2; */ addressLine1; /** * @generated from field: optional string addressLine2 = 3; */ addressLine2; /** * @generated from field: optional string city = 4; */ city; /** * @generated from field: optional string state = 5; */ state; /** * @generated from field: optional string postalCode = 6; */ postalCode; /** * @generated from field: optional string postalCountry = 7; */ postalCountry; /** * @generated from field: optional string dependentLocality = 8; */ dependentLocality; /** * @generated from field: optional string sortingCode = 9; */ sortingCode; /** * @generated from field: optional string languageCode = 10; */ languageCode; /** * @generated from field: optional string phoneNumber = 11; */ phoneNumber; /** * @generated from field: optional bool deprecatedIsReduced = 12; */ deprecatedIsReduced; /** * @generated from field: optional string firstName = 13; */ firstName; /** * @generated from field: optional string lastName = 14; */ lastName; /** * @generated from field: optional string email = 15; */ email; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.Address"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9, opt: true }, { no: 2, name: "addressLine1", kind: "scalar", T: 9, opt: true }, { no: 3, name: "addressLine2", kind: "scalar", T: 9, opt: true }, { no: 4, name: "city", kind: "scalar", T: 9, opt: true }, { no: 5, name: "state", kind: "scalar", T: 9, opt: true }, { no: 6, name: "postalCode", kind: "scalar", T: 9, opt: true }, { no: 7, name: "postalCountry", kind: "scalar", T: 9, opt: true }, { no: 8, name: "dependentLocality", kind: "scalar", T: 9, opt: true }, { no: 9, name: "sortingCode", kind: "scalar", T: 9, opt: true }, { no: 10, name: "languageCode", kind: "scalar", T: 9, opt: true }, { no: 11, name: "phoneNumber", kind: "scalar", T: 9, opt: true }, { no: 12, name: "deprecatedIsReduced", kind: "scalar", T: 8, opt: true }, { no: 13, name: "firstName", kind: "scalar", T: 9, opt: true }, { no: 14, name: "lastName", kind: "scalar", T: 9, opt: true }, { no: 15, name: "email", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new Address().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Address().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Address().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(Address, a, b); } } class DirectPurchase extends Message { /** * @generated from field: optional string detailsUrl = 1; */ detailsUrl; /** * @generated from field: optional string purchaseItemId = 2; */ purchaseItemId; /** * @generated from field: optional string parentItemId = 3; */ parentItemId; /** * @generated from field: optional int32 offerType = 4 [default = 1]; */ offerType; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.DirectPurchase"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "detailsUrl", kind: "scalar", T: 9, opt: true }, { no: 2, name: "purchaseItemId", kind: "scalar", T: 9, opt: true }, { no: 3, name: "parentItemId", kind: "scalar", T: 9, opt: true }, { no: 4, name: "offerType", kind: "scalar", T: 5, opt: true, default: 1 } ]); static fromBinary(bytes, options) { return new DirectPurchase().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new DirectPurchase().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new DirectPurchase().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(DirectPurchase, a, b); } } class ResolvedLink extends Message { /** * @generated from field: optional string detailsUrl = 1; */ detailsUrl; /** * @generated from field: optional string browseUrl = 2; */ browseUrl; /** * @generated from field: optional string searchUrl = 3; */ searchUrl; /** * @generated from field: optional googleplay.DirectPurchase directPurchase = 4; */ directPurchase; /** * @generated from field: optional string homeUrl = 5; */ homeUrl; /** * @generated from field: optional bytes serverLogsCookie = 7; */ serverLogsCookie; /** * @generated from field: optional googleplay.DocId DocId = 8; */ DocId; /** * @generated from field: optional int32 backend = 10; */ backend; /** * @generated from field: optional string query = 11; */ query; /** * @generated from field: optional string myAccountUrl = 12; */ myAccountUrl; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.ResolvedLink"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "detailsUrl", kind: "scalar", T: 9, opt: true }, { no: 2, name: "browseUrl", kind: "scalar", T: 9, opt: true }, { no: 3, name: "searchUrl", kind: "scalar", T: 9, opt: true }, { no: 4, name: "directPurchase", kind: "message", T: DirectPurchase, opt: true }, { no: 5, name: "homeUrl", kind: "scalar", T: 9, opt: true }, { no: 7, name: "serverLogsCookie", kind: "scalar", T: 12, opt: true }, { no: 8, name: "DocId", kind: "message", T: DocId, opt: true }, { no: 10, name: "backend", kind: "scalar", T: 5, opt: true }, { no: 11, name: "query", kind: "scalar", T: 9, opt: true }, { no: 12, name: "myAccountUrl", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new ResolvedLink().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new ResolvedLink().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new ResolvedLink().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(ResolvedLink, a, b); } } class QuickLink extends Message { /** * @generated from field: optional string name = 1; */ name; /** * @generated from field: optional googleplay.Image image = 2; */ image; /** * @generated from field: optional googleplay.ResolvedLink link = 3; */ link; /** * @generated from field: optional bool displayRequired = 4; */ displayRequired; /** * @generated from field: optional bytes serverLogsCookie = 5; */ serverLogsCookie; /** * @generated from field: optional int32 backendId = 6; */ backendId; /** * @generated from field: optional bool prismStyle = 7; */ prismStyle; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.QuickLink"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9, opt: true }, { no: 2, name: "image", kind: "message", T: Image, opt: true }, { no: 3, name: "link", kind: "message", T: ResolvedLink, opt: true }, { no: 4, name: "displayRequired", kind: "scalar", T: 8, opt: true }, { no: 5, name: "serverLogsCookie", kind: "scalar", T: 12, opt: true }, { no: 6, name: "backendId", kind: "scalar", T: 5, opt: true }, { no: 7, name: "prismStyle", kind: "scalar", T: 8, opt: true } ]); static fromBinary(bytes, options) { return new QuickLink().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new QuickLink().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new QuickLink().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(QuickLink, a, b); } } class BuyResponse extends Message { /** * @generated from field: optional googleplay.PurchaseNotificationResponse purchaseResponse = 1; */ purchaseResponse; /** * @generated from field: optional googleplay.BuyResponse.CheckoutInfo checkoutinfo = 2; */ checkoutinfo; /** * @generated from field: optional string continueViaUrl = 8; */ continueViaUrl; /** * @generated from field: optional string purchaseStatusUrl = 9; */ purchaseStatusUrl; /** * @generated from field: optional string checkoutServiceId = 12; */ checkoutServiceId; /** * @generated from field: optional bool checkoutTokenRequired = 13; */ checkoutTokenRequired; /** * @generated from field: optional string baseCheckoutUrl = 14; */ baseCheckoutUrl; /** * @generated from field: repeated string tosCheckboxHtml = 37; */ tosCheckboxHtml = []; /** * @generated from field: optional int32 iabPermissionError = 38; */ iabPermissionError; /** * @generated from field: optional googleplay.PurchaseStatusResponse purchaseStatusResponse = 39; */ purchaseStatusResponse; /** * @generated from field: optional string purchaseCookie = 46; */ purchaseCookie; /** * @generated from field: optional googleplay.Challenge challenge = 49; */ challenge; /** * @generated from field: optional string addInstrumentPromptHtml = 50; */ addInstrumentPromptHtml; /** * @generated from field: optional string confirmButtonText = 51; */ confirmButtonText; /** * @generated from field: optional string permissionErrorTitleText = 52; */ permissionErrorTitleText; /** * @generated from field: optional string permissionErrorMessageText = 53; */ permissionErrorMessageText; /** * @generated from field: optional bytes serverLogsCookie = 54; */ serverLogsCookie; /** * @generated from field: optional string encodedDeliveryToken = 55; */ encodedDeliveryToken; /** * @generated from field: optional string unknownToken = 56; */ unknownToken; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.BuyResponse"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "purchaseResponse", kind: "message", T: PurchaseNotificationResponse, opt: true }, { no: 2, name: "checkoutinfo", kind: "message", T: BuyResponse_CheckoutInfo, delimited: true, opt: true }, { no: 8, name: "continueViaUrl", kind: "scalar", T: 9, opt: true }, { no: 9, name: "purchaseStatusUrl", kind: "scalar", T: 9, opt: true }, { no: 12, name: "checkoutServiceId", kind: "scalar", T: 9, opt: true }, { no: 13, name: "checkoutTokenRequired", kind: "scalar", T: 8, opt: true }, { no: 14, name: "baseCheckoutUrl", kind: "scalar", T: 9, opt: true }, { no: 37, name: "tosCheckboxHtml", kind: "scalar", T: 9, repeated: true }, { no: 38, name: "iabPermissionError", kind: "scalar", T: 5, opt: true }, { no: 39, name: "purchaseStatusResponse", kind: "message", T: PurchaseStatusResponse, opt: true }, { no: 46, name: "purchaseCookie", kind: "scalar", T: 9, opt: true }, { no: 49, name: "challenge", kind: "message", T: Challenge, opt: true }, { no: 50, name: "addInstrumentPromptHtml", kind: "scalar", T: 9, opt: true }, { no: 51, name: "confirmButtonText", kind: "scalar", T: 9, opt: true }, { no: 52, name: "permissionErrorTitleText", kind: "scalar", T: 9, opt: true }, { no: 53, name: "permissionErrorMessageText", kind: "scalar", T: 9, opt: true }, { no: 54, name: "serverLogsCookie", kind: "scalar", T: 12, opt: true }, { no: 55, name: "encodedDeliveryToken", kind: "scalar", T: 9, opt: true }, { no: 56, name: "unknownToken", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new BuyResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new BuyResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new BuyResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(BuyResponse, a, b); } } class BuyResponse_CheckoutInfo extends Message { /** * @generated from field: optional googleplay.LineItem item = 3; */ item; /** * @generated from field: repeated googleplay.LineItem subItem = 4; */ subItem = []; /** * @generated from field: repeated googleplay.BuyResponse.CheckoutInfo.CheckoutOption checkoutoption = 5; */ checkoutoption = []; /** * @generated from field: optional string deprecatedCheckoutUrl = 10; */ deprecatedCheckoutUrl; /** * @generated from field: optional string addInstrumentUrl = 11; */ addInstrumentUrl; /** * @generated from field: repeated string footerHtml = 20; */ footerHtml = []; /** * @generated from field: repeated int32 eligibleInstrumentFamily = 31; */ eligibleInstrumentFamily = []; /** * @generated from field: repeated string footnoteHtml = 36; */ footnoteHtml = []; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.BuyResponse.CheckoutInfo"; static fields = proto2.util.newFieldList(() => [ { no: 3, name: "item", kind: "message", T: LineItem, opt: true }, { no: 4, name: "subItem", kind: "message", T: LineItem, repeated: true }, { no: 5, name: "checkoutoption", kind: "message", T: BuyResponse_CheckoutInfo_CheckoutOption, delimited: true, repeated: true }, { no: 10, name: "deprecatedCheckoutUrl", kind: "scalar", T: 9, opt: true }, { no: 11, name: "addInstrumentUrl", kind: "scalar", T: 9, opt: true }, { no: 20, name: "footerHtml", kind: "scalar", T: 9, repeated: true }, { no: 31, name: "eligibleInstrumentFamily", kind: "scalar", T: 5, repeated: true }, { no: 36, name: "footnoteHtml", kind: "scalar", T: 9, repeated: true } ]); static fromBinary(bytes, options) { return new BuyResponse_CheckoutInfo().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new BuyResponse_CheckoutInfo().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new BuyResponse_CheckoutInfo().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(BuyResponse_CheckoutInfo, a, b); } } class BuyResponse_CheckoutInfo_CheckoutOption extends Message { /** * @generated from field: optional string formOfPayment = 6; */ formOfPayment; /** * @generated from field: optional string encodedAdjustedCart = 7; */ encodedAdjustedCart; /** * @generated from field: optional string instrumentId = 15; */ instrumentId; /** * @generated from field: repeated googleplay.LineItem item = 16; */ item = []; /** * @generated from field: repeated googleplay.LineItem subItem = 17; */ subItem = []; /** * @generated from field: optional googleplay.LineItem total = 18; */ total; /** * @generated from field: repeated string footerHtml = 19; */ footerHtml = []; /** * @generated from field: optional int32 instrumentFamily = 29; */ instrumentFamily; /** * @generated from field: repeated int32 deprecatedInstrumentInapplicableReason = 30; */ deprecatedInstrumentInapplicableReason = []; /** * @generated from field: optional bool selectedInstrument = 32; */ selectedInstrument; /** * @generated from field: optional googleplay.LineItem summary = 33; */ summary; /** * @generated from field: repeated string footnoteHtml = 35; */ footnoteHtml = []; /** * @generated from field: optional string purchaseCookie = 45; */ purchaseCookie; /** * @generated from field: repeated string disabledReason = 48; */ disabledReason = []; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.BuyResponse.CheckoutInfo.CheckoutOption"; static fields = proto2.util.newFieldList(() => [ { no: 6, name: "formOfPayment", kind: "scalar", T: 9, opt: true }, { no: 7, name: "encodedAdjustedCart", kind: "scalar", T: 9, opt: true }, { no: 15, name: "instrumentId", kind: "scalar", T: 9, opt: true }, { no: 16, name: "item", kind: "message", T: LineItem, repeated: true }, { no: 17, name: "subItem", kind: "message", T: LineItem, repeated: true }, { no: 18, name: "total", kind: "message", T: LineItem, opt: true }, { no: 19, name: "footerHtml", kind: "scalar", T: 9, repeated: true }, { no: 29, name: "instrumentFamily", kind: "scalar", T: 5, opt: true }, { no: 30, name: "deprecatedInstrumentInapplicableReason", kind: "scalar", T: 5, repeated: true }, { no: 32, name: "selectedInstrument", kind: "scalar", T: 8, opt: true }, { no: 33, name: "summary", kind: "message", T: LineItem, opt: true }, { no: 35, name: "footnoteHtml", kind: "scalar", T: 9, repeated: true }, { no: 45, name: "purchaseCookie", kind: "scalar", T: 9, opt: true }, { no: 48, name: "disabledReason", kind: "scalar", T: 9, repeated: true } ]); static fromBinary(bytes, options) { return new BuyResponse_CheckoutInfo_CheckoutOption().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new BuyResponse_CheckoutInfo_CheckoutOption().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new BuyResponse_CheckoutInfo_CheckoutOption().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(BuyResponse_CheckoutInfo_CheckoutOption, a, b); } } class LineItem extends Message { /** * @generated from field: optional string name = 1; */ name; /** * @generated from field: optional string description = 2; */ description; /** * @generated from field: optional googleplay.Offer offer = 3; */ offer; /** * @generated from field: optional googleplay.Money amount = 4; */ amount; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.LineItem"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "name", kind: "scalar", T: 9, opt: true }, { no: 2, name: "description", kind: "scalar", T: 9, opt: true }, { no: 3, name: "offer", kind: "message", T: Offer, opt: true }, { no: 4, name: "amount", kind: "message", T: Money, opt: true } ]); static fromBinary(bytes, options) { return new LineItem().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new LineItem().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new LineItem().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(LineItem, a, b); } } class Money extends Message { /** * @generated from field: optional int64 micros = 1; */ micros; /** * @generated from field: optional string currencyCode = 2; */ currencyCode; /** * @generated from field: optional string formattedAmount = 3; */ formattedAmount; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.Money"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "micros", kind: "scalar", T: 3, opt: true }, { no: 2, name: "currencyCode", kind: "scalar", T: 9, opt: true }, { no: 3, name: "formattedAmount", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new Money().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Money().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Money().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(Money, a, b); } } class PurchaseNotificationResponse extends Message { /** * @generated from field: optional int32 status = 1; */ status; /** * @generated from field: optional googleplay.DebugInfo debugInfo = 2; */ debugInfo; /** * @generated from field: optional string localizedErrorMessage = 3; */ localizedErrorMessage; /** * @generated from field: optional string purchaseId = 4; */ purchaseId; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.PurchaseNotificationResponse"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "status", kind: "scalar", T: 5, opt: true }, { no: 2, name: "debugInfo", kind: "message", T: DebugInfo, opt: true }, { no: 3, name: "localizedErrorMessage", kind: "scalar", T: 9, opt: true }, { no: 4, name: "purchaseId", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new PurchaseNotificationResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new PurchaseNotificationResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new PurchaseNotificationResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(PurchaseNotificationResponse, a, b); } } class PurchaseStatusResponse extends Message { /** * @generated from field: optional int32 status = 1; */ status; /** * @generated from field: optional string statusMsg = 2; */ statusMsg; /** * @generated from field: optional string statusTitle = 3; */ statusTitle; /** * @generated from field: optional string briefMessage = 4; */ briefMessage; /** * @generated from field: optional string infoUrl = 5; */ infoUrl; /** * @generated from field: optional googleplay.LibraryUpdate libraryUpdate = 6; */ libraryUpdate; /** * @generated from field: optional googleplay.AndroidAppDeliveryData appDeliveryData = 8; */ appDeliveryData; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.PurchaseStatusResponse"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "status", kind: "scalar", T: 5, opt: true }, { no: 2, name: "statusMsg", kind: "scalar", T: 9, opt: true }, { no: 3, name: "statusTitle", kind: "scalar", T: 9, opt: true }, { no: 4, name: "briefMessage", kind: "scalar", T: 9, opt: true }, { no: 5, name: "infoUrl", kind: "scalar", T: 9, opt: true }, { no: 6, name: "libraryUpdate", kind: "message", T: LibraryUpdate, opt: true }, { no: 8, name: "appDeliveryData", kind: "message", T: AndroidAppDeliveryData, opt: true } ]); static fromBinary(bytes, options) { return new PurchaseStatusResponse().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new PurchaseStatusResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new PurchaseStatusResponse().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(PurchaseStatusResponse, a, b); } } class PurchaseHistoryDetails extends Message { /** * @generated from field: optional int64 purchaseTimestampMillis = 2; */ purchaseTimestampMillis; /** * @generated from field: optional string purchaseDetailsHtml = 3; */ purchaseDetailsHtml; /** * @generated from field: optional googleplay.Offer offer = 5; */ offer; /** * @generated from field: optional string purchaseStatus = 6; */ purchaseStatus; /** * @generated from field: optional string titleBylineHtml = 7; */ titleBylineHtml; /** * @generated from field: optional bytes clientRefundContext = 8; */ clientRefundContext; /** * @generated from field: optional googleplay.Image purchaseDetailsImage = 9; */ purchaseDetailsImage; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.PurchaseHistoryDetails"; static fields = proto2.util.newFieldList(() => [ { no: 2, name: "purchaseTimestampMillis", kind: "scalar", T: 3, opt: true }, { no: 3, name: "purchaseDetailsHtml", kind: "scalar", T: 9, opt: true }, { no: 5, name: "offer", kind: "message", T: Offer, opt: true }, { no: 6, name: "purchaseStatus", kind: "scalar", T: 9, opt: true }, { no: 7, name: "titleBylineHtml", kind: "scalar", T: 9, opt: true }, { no: 8, name: "clientRefundContext", kind: "scalar", T: 12, opt: true }, { no: 9, name: "purchaseDetailsImage", kind: "message", T: Image, opt: true } ]); static fromBinary(bytes, options) { return new PurchaseHistoryDetails().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new PurchaseHistoryDetails().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new PurchaseHistoryDetails().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(PurchaseHistoryDetails, a, b); } } class AddressChallenge extends Message { /** * @generated from field: optional string responseAddressParam = 1; */ responseAddressParam; /** * @generated from field: optional string responseCheckboxesParam = 2; */ responseCheckboxesParam; /** * @generated from field: optional string title = 3; */ title; /** * @generated from field: optional string descriptionHtml = 4; */ descriptionHtml; /** * @generated from field: repeated googleplay.FormCheckbox checkbox = 5; */ checkbox = []; /** * @generated from field: optional googleplay.Address address = 6; */ address; /** * @generated from field: repeated googleplay.InputValidationError errorInputField = 7; */ errorInputField = []; /** * @generated from field: optional string errorHtml = 8; */ errorHtml; /** * @generated from field: repeated int32 requiredField = 9; */ requiredField = []; /** * @generated from field: repeated googleplay.Country supportedCountry = 10; */ supportedCountry = []; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.AddressChallenge"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "responseAddressParam", kind: "scalar", T: 9, opt: true }, { no: 2, name: "responseCheckboxesParam", kind: "scalar", T: 9, opt: true }, { no: 3, name: "title", kind: "scalar", T: 9, opt: true }, { no: 4, name: "descriptionHtml", kind: "scalar", T: 9, opt: true }, { no: 5, name: "checkbox", kind: "message", T: FormCheckbox, repeated: true }, { no: 6, name: "address", kind: "message", T: Address, opt: true }, { no: 7, name: "errorInputField", kind: "message", T: InputValidationError, repeated: true }, { no: 8, name: "errorHtml", kind: "scalar", T: 9, opt: true }, { no: 9, name: "requiredField", kind: "scalar", T: 5, repeated: true }, { no: 10, name: "supportedCountry", kind: "message", T: Country, repeated: true } ]); static fromBinary(bytes, options) { return new AddressChallenge().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AddressChallenge().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AddressChallenge().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(AddressChallenge, a, b); } } class AuthenticationChallenge extends Message { /** * @generated from field: optional int32 authenticationType = 1; */ authenticationType; /** * @generated from field: optional string responseAuthenticationTypeParam = 2; */ responseAuthenticationTypeParam; /** * @generated from field: optional string responseRetryCountParam = 3; */ responseRetryCountParam; /** * @generated from field: optional string pinHeaderText = 4; */ pinHeaderText; /** * @generated from field: optional string pinDescriptionTextHtml = 5; */ pinDescriptionTextHtml; /** * @generated from field: optional string gaiaHeaderText = 6; */ gaiaHeaderText; /** * @generated from field: optional string gaiaDescriptionTextHtml = 7; */ gaiaDescriptionTextHtml; /** * @generated from field: optional string gaiaFooterTextHtml = 8; */ gaiaFooterTextHtml; /** * @generated from field: optional googleplay.FormCheckbox gaiaOptOutCheckbox = 9; */ gaiaOptOutCheckbox; /** * @generated from field: optional string gaiaOptOutDescriptionTextHtml = 10; */ gaiaOptOutDescriptionTextHtml; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.AuthenticationChallenge"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "authenticationType", kind: "scalar", T: 5, opt: true }, { no: 2, name: "responseAuthenticationTypeParam", kind: "scalar", T: 9, opt: true }, { no: 3, name: "responseRetryCountParam", kind: "scalar", T: 9, opt: true }, { no: 4, name: "pinHeaderText", kind: "scalar", T: 9, opt: true }, { no: 5, name: "pinDescriptionTextHtml", kind: "scalar", T: 9, opt: true }, { no: 6, name: "gaiaHeaderText", kind: "scalar", T: 9, opt: true }, { no: 7, name: "gaiaDescriptionTextHtml", kind: "scalar", T: 9, opt: true }, { no: 8, name: "gaiaFooterTextHtml", kind: "scalar", T: 9, opt: true }, { no: 9, name: "gaiaOptOutCheckbox", kind: "message", T: FormCheckbox, opt: true }, { no: 10, name: "gaiaOptOutDescriptionTextHtml", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new AuthenticationChallenge().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new AuthenticationChallenge().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new AuthenticationChallenge().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(AuthenticationChallenge, a, b); } } class Challenge extends Message { /** * @generated from field: optional googleplay.AddressChallenge addressChallenge = 1; */ addressChallenge; /** * @generated from field: optional googleplay.AuthenticationChallenge authenticationChallenge = 2; */ authenticationChallenge; /** * @generated from field: optional googleplay.WebViewChallenge webViewChallenge = 3; */ webViewChallenge; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.Challenge"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "addressChallenge", kind: "message", T: AddressChallenge, opt: true }, { no: 2, name: "authenticationChallenge", kind: "message", T: AuthenticationChallenge, opt: true }, { no: 3, name: "webViewChallenge", kind: "message", T: WebViewChallenge, opt: true } ]); static fromBinary(bytes, options) { return new Challenge().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Challenge().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Challenge().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(Challenge, a, b); } } class Country extends Message { /** * @generated from field: optional string regionCode = 1; */ regionCode; /** * @generated from field: optional string displayName = 2; */ displayName; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.Country"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "regionCode", kind: "scalar", T: 9, opt: true }, { no: 2, name: "displayName", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new Country().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new Country().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new Country().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(Country, a, b); } } class FormCheckbox extends Message { /** * @generated from field: optional string description = 1; */ description; /** * @generated from field: optional bool checked = 2; */ checked; /** * @generated from field: optional bool required = 3; */ required; /** * @generated from field: optional string id = 4; */ id; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.FormCheckbox"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "description", kind: "scalar", T: 9, opt: true }, { no: 2, name: "checked", kind: "scalar", T: 8, opt: true }, { no: 3, name: "required", kind: "scalar", T: 8, opt: true }, { no: 4, name: "id", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new FormCheckbox().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new FormCheckbox().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new FormCheckbox().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(FormCheckbox, a, b); } } class InputValidationError extends Message { /** * @generated from field: optional int32 inputField = 1; */ inputField; /** * @generated from field: optional string errorMessage = 2; */ errorMessage; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.InputValidationError"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "inputField", kind: "scalar", T: 5, opt: true }, { no: 2, name: "errorMessage", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new InputValidationError().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new InputValidationError().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new InputValidationError().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(InputValidationError, a, b); } } class WebViewChallenge extends Message { /** * @generated from field: optional string startUrl = 1; */ startUrl; /** * @generated from field: optional string targetUrlRegexp = 2; */ targetUrlRegexp; /** * @generated from field: optional string cancelButtonDisplayLabel = 3; */ cancelButtonDisplayLabel; /** * @generated from field: optional string responseTargetUrlParam = 4; */ responseTargetUrlParam; /** * @generated from field: optional string cancelUrlRegexp = 5; */ cancelUrlRegexp; /** * @generated from field: optional string title = 6; */ title; constructor(data) { super(); proto2.util.initPartial(data, this); } static runtime = proto2; static typeName = "googleplay.WebViewChallenge"; static fields = proto2.util.newFieldList(() => [ { no: 1, name: "startUrl", kind: "scalar", T: 9, opt: true }, { no: 2, name: "targetUrlRegexp", kind: "scalar", T: 9, opt: true }, { no: 3, name: "cancelButtonDisplayLabel", kind: "scalar", T: 9, opt: true }, { no: 4, name: "responseTargetUrlParam", kind: "scalar", T: 9, opt: true }, { no: 5, name: "cancelUrlRegexp", kind: "scalar", T: 9, opt: true }, { no: 6, name: "title", kind: "scalar", T: 9, opt: true } ]); static fromBinary(bytes, options) { return new WebViewChallenge().fromBinary(bytes, options); } static fromJson(jsonValue, options) { return new WebViewChallenge().fromJson(jsonValue, options); } static fromJsonString(jsonString, options) { return new WebViewChallenge().fromJsonString(jsonString, options); } static equals(a, b) { return proto2.util.equals(WebViewChallenge, a, b); } } class DocId extends Message { /** * @generated from field: optional string backendDocId = 1; */ backendDocId; /** * @generated from field: optional int32 type = 2 [default = 1]; */ type; /** * @generated from field: optional int32 backend = 3; */ backend; cons