From 23db1c4b77352e5641ad6771284e738def21451f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 22 Feb 2023 17:36:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=AB=98=E9=98=B2=E7=9B=B8?= =?UTF-8?q?=E5=BA=94=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/rpc.json | 863 +++++++++- pkg/rpc/pb/model_ad_network.pb.go | 176 ++ pkg/rpc/pb/model_ad_package.pb.go | 250 +++ pkg/rpc/pb/model_ad_package_instance.pb.go | 274 +++ pkg/rpc/pb/model_ad_package_period.pb.go | 186 +++ pkg/rpc/pb/model_ad_package_price.pb.go | 170 ++ pkg/rpc/pb/model_user_ad_instance.pb.go | 324 ++++ pkg/rpc/pb/service_ad_network.pb.go | 1076 ++++++++++++ pkg/rpc/pb/service_ad_package.pb.go | 1385 ++++++++++++++++ pkg/rpc/pb/service_ad_package_instance.pb.go | 1449 ++++++++++++++++ pkg/rpc/pb/service_ad_package_period.pb.go | 1074 ++++++++++++ pkg/rpc/pb/service_ad_package_price.pb.go | 931 +++++++++++ pkg/rpc/pb/service_user_ad_instance.pb.go | 1471 +++++++++++++++++ pkg/rpc/protos/models/model_ad_network.proto | 12 + pkg/rpc/protos/models/model_ad_package.proto | 21 + .../models/model_ad_package_instance.proto | 25 + .../models/model_ad_package_period.proto | 13 + .../models/model_ad_package_price.proto | 11 + .../models/model_user_ad_instance.proto | 29 + pkg/rpc/protos/service_ad_network.proto | 78 + pkg/rpc/protos/service_ad_package.proto | 102 ++ .../protos/service_ad_package_instance.proto | 105 ++ .../protos/service_ad_package_period.proto | 76 + pkg/rpc/protos/service_ad_package_price.proto | 67 + pkg/rpc/protos/service_http_web.proto | 2 +- pkg/rpc/protos/service_user_ad_instance.proto | 108 ++ 26 files changed, 10271 insertions(+), 7 deletions(-) create mode 100644 pkg/rpc/pb/model_ad_network.pb.go create mode 100644 pkg/rpc/pb/model_ad_package.pb.go create mode 100644 pkg/rpc/pb/model_ad_package_instance.pb.go create mode 100644 pkg/rpc/pb/model_ad_package_period.pb.go create mode 100644 pkg/rpc/pb/model_ad_package_price.pb.go create mode 100644 pkg/rpc/pb/model_user_ad_instance.pb.go create mode 100644 pkg/rpc/pb/service_ad_network.pb.go create mode 100644 pkg/rpc/pb/service_ad_package.pb.go create mode 100644 pkg/rpc/pb/service_ad_package_instance.pb.go create mode 100644 pkg/rpc/pb/service_ad_package_period.pb.go create mode 100644 pkg/rpc/pb/service_ad_package_price.pb.go create mode 100644 pkg/rpc/pb/service_user_ad_instance.pb.go create mode 100644 pkg/rpc/protos/models/model_ad_network.proto create mode 100644 pkg/rpc/protos/models/model_ad_package.proto create mode 100644 pkg/rpc/protos/models/model_ad_package_instance.proto create mode 100644 pkg/rpc/protos/models/model_ad_package_period.proto create mode 100644 pkg/rpc/protos/models/model_ad_package_price.proto create mode 100644 pkg/rpc/protos/models/model_user_ad_instance.proto create mode 100644 pkg/rpc/protos/service_ad_network.proto create mode 100644 pkg/rpc/protos/service_ad_package.proto create mode 100644 pkg/rpc/protos/service_ad_package_instance.proto create mode 100644 pkg/rpc/protos/service_ad_package_period.proto create mode 100644 pkg/rpc/protos/service_ad_package_price.proto create mode 100644 pkg/rpc/protos/service_user_ad_instance.proto diff --git a/build/rpc.json b/build/rpc.json index 6210022..7d37ba8 100644 --- a/build/rpc.json +++ b/build/rpc.json @@ -350,6 +350,404 @@ "filename": "service_acme_user.proto", "doc": "ACME用户相关服务" }, + { + "name": "ADNetworkService", + "methods": [ + { + "name": "createADNetwork", + "requestMessageName": "CreateADNetworkRequest", + "responseMessageName": "CreateADNetworkResponse", + "code": "rpc createADNetwork(CreateADNetworkRequest) returns (CreateADNetworkResponse);", + "doc": "创建线路", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateADNetwork", + "requestMessageName": "UpdateADNetworkRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateADNetwork(UpdateADNetworkRequest) returns (RPCSuccess);", + "doc": "修改线路", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findADNetwork", + "requestMessageName": "FindADNetworkRequest", + "responseMessageName": "FindADNetworkResponse", + "code": "rpc findADNetwork(FindADNetworkRequest) returns (FindADNetworkResponse);", + "doc": "查找单个线路", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllADNetworks", + "requestMessageName": "FindAllADNetworkRequest", + "responseMessageName": "FindAllADNetworkResponse", + "code": "rpc findAllADNetworks(FindAllADNetworkRequest) returns (FindAllADNetworkResponse);", + "doc": "列出所有线路", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllAvailableADNetworks", + "requestMessageName": "FindAllAvailableADNetworksRequest", + "responseMessageName": "FindAllAvailableADNetworksResponse", + "code": "rpc findAllAvailableADNetworks(FindAllAvailableADNetworksRequest) returns (FindAllAvailableADNetworksResponse);", + "doc": "列出所有可用的线路", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "deleteADNetwork", + "requestMessageName": "DeleteADNetworkRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteADNetwork(DeleteADNetworkRequest) returns (RPCSuccess);", + "doc": "删除线路", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ad_network.proto", + "doc": "高防线路服务" + }, + { + "name": "ADPackageService", + "methods": [ + { + "name": "createADPackage", + "requestMessageName": "CreateADPackageRequest", + "responseMessageName": "CreateADPackageResponse", + "code": "rpc createADPackage(CreateADPackageRequest) returns (CreateADPackageResponse);", + "doc": "创建高防产品", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateADPackage", + "requestMessageName": "UpdateADPackageRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateADPackage(UpdateADPackageRequest) returns (RPCSuccess);", + "doc": "修改高防产品", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findADPackage", + "requestMessageName": "FindADPackageRequest", + "responseMessageName": "FindADPackageResponse", + "code": "rpc findADPackage(FindADPackageRequest) returns (FindADPackageResponse);", + "doc": "查找单个高防产品", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "countADPackages", + "requestMessageName": "CountADPackagesRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countADPackages(CountADPackagesRequest) returns (RPCCountResponse);", + "doc": "查询高防产品数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "countAllIdleADPackages", + "requestMessageName": "CountAllIdleADPackages", + "responseMessageName": "RPCCountResponse", + "code": "rpc countAllIdleADPackages(CountAllIdleADPackages) returns (RPCCountResponse);", + "doc": "查询可用的产品数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "listADPackages", + "requestMessageName": "ListADPackagesRequest", + "responseMessageName": "ListADPackagesResponse", + "code": "rpc listADPackages(ListADPackagesRequest) returns (ListADPackagesResponse);", + "doc": "列出单页高防产品", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllIdleADPackages", + "requestMessageName": "FindAllIdleADPackagesRequest", + "responseMessageName": "FindAllIdleADPackagesResponse", + "code": "rpc findAllIdleADPackages(FindAllIdleADPackagesRequest) returns (FindAllIdleADPackagesResponse);", + "doc": "列出所有可用的高防产品", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "deleteADPackage", + "requestMessageName": "DeleteADPackageRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteADPackage(DeleteADPackageRequest) returns (RPCSuccess);", + "doc": "删除高防产品", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ad_package.proto", + "doc": "高防产品服务" + }, + { + "name": "ADPackageInstanceService", + "methods": [ + { + "name": "createADPackageInstance", + "requestMessageName": "CreateADPackageInstanceRequest", + "responseMessageName": "CreateADPackageInstanceResponse", + "code": "rpc createADPackageInstance(CreateADPackageInstanceRequest) returns (CreateADPackageInstanceResponse);", + "doc": "创建实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateADPackageInstance", + "requestMessageName": "UpdateADPackageInstanceRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateADPackageInstance(UpdateADPackageInstanceRequest) returns (RPCSuccess);", + "doc": "修改实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findADPackageInstance", + "requestMessageName": "FindADPackageInstanceRequest", + "responseMessageName": "FindADPackageInstanceResponse", + "code": "rpc findADPackageInstance(FindADPackageInstanceRequest) returns (FindADPackageInstanceResponse);", + "doc": "查找单个实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllADPackageInstances", + "requestMessageName": "FindAllADPackageInstancesRequest", + "responseMessageName": "FindAllADPackageInstancesResponse", + "code": "rpc findAllADPackageInstances(FindAllADPackageInstancesRequest) returns (FindAllADPackageInstancesResponse);", + "doc": "列出单个高防产品所有实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "deleteADPackageInstance", + "requestMessageName": "DeleteADPackageInstanceRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteADPackageInstance(DeleteADPackageInstanceRequest) returns (RPCSuccess);", + "doc": "删除实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "countIdleADPackageInstances", + "requestMessageName": "CountIdleADPackageInstancesRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countIdleADPackageInstances(CountIdleADPackageInstancesRequest) returns (RPCCountResponse);", + "doc": "计算可购的实例数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "countADPackageInstances", + "requestMessageName": "CountADPackageInstancesRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countADPackageInstances(CountADPackageInstancesRequest) returns (RPCCountResponse);", + "doc": "计算实例数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "listADPackageInstances", + "requestMessageName": "ListADPackageInstancesRequest", + "responseMessageName": "ListADPackageInstancesResponse", + "code": "rpc listADPackageInstances(ListADPackageInstancesRequest) returns (ListADPackageInstancesResponse);", + "doc": "列出单页实例", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ad_package_instance.proto", + "doc": "高防实例服务" + }, + { + "name": "ADPackagePeriodService", + "methods": [ + { + "name": "createADPackagePeriod", + "requestMessageName": "CreateADPackagePeriodRequest", + "responseMessageName": "CreateADPackagePeriodResponse", + "code": "rpc createADPackagePeriod(CreateADPackagePeriodRequest) returns (CreateADPackagePeriodResponse);", + "doc": "创建有效期", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateADPackagePeriod", + "requestMessageName": "UpdateADPackagePeriodRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateADPackagePeriod(UpdateADPackagePeriodRequest) returns (RPCSuccess);", + "doc": "修改有效期", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "deleteADPackagePeriod", + "requestMessageName": "DeleteADPackagePeriodRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteADPackagePeriod(DeleteADPackagePeriodRequest) returns (RPCSuccess);", + "doc": "删除有效期", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findADPackagePeriod", + "requestMessageName": "FindADPackagePeriodRequest", + "responseMessageName": "FindADPackagePeriodResponse", + "code": "rpc findADPackagePeriod(FindADPackagePeriodRequest) returns (FindADPackagePeriodResponse);", + "doc": "查找有效期", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllADPackagePeriods", + "requestMessageName": "FindAllADPackagePeriodsRequest", + "responseMessageName": "FindAllADPackagePeriodsResponse", + "code": "rpc findAllADPackagePeriods(FindAllADPackagePeriodsRequest) returns (FindAllADPackagePeriodsResponse);", + "doc": "列出所有有效期", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllAvailableADPackagePeriods", + "requestMessageName": "FindAllAvailableADPackagePeriodsRequest", + "responseMessageName": "FindAllAvailableADPackagePeriodsResponse", + "code": "rpc findAllAvailableADPackagePeriods(FindAllAvailableADPackagePeriodsRequest) returns (FindAllAvailableADPackagePeriodsResponse);", + "doc": "列出所有可用有效期", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ad_package_period.proto", + "doc": "高防实例有效期服务" + }, + { + "name": "ADPackagePriceService", + "methods": [ + { + "name": "updateADPackagePrice", + "requestMessageName": "UpdateADPackagePriceRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateADPackagePrice(UpdateADPackagePriceRequest) returns (RPCSuccess);", + "doc": "设置高防产品价格", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findADPackagePrice", + "requestMessageName": "FindADPackagePriceRequest", + "responseMessageName": "FindADPackagePriceResponse", + "code": "rpc findADPackagePrice(FindADPackagePriceRequest) returns (FindADPackagePriceResponse);", + "doc": "获取单个高防产品具体价格", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "countADPackagePrices", + "requestMessageName": "CountADPackagePricesRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countADPackagePrices(CountADPackagePricesRequest) returns (RPCCountResponse);", + "doc": "计算高防产品价格项数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findADPackagePrices", + "requestMessageName": "FindADPackagePricesRequest", + "responseMessageName": "FindADPackagePricesResponse", + "code": "rpc findADPackagePrices(FindADPackagePricesRequest) returns (FindADPackagePricesResponse);", + "doc": "查找高防产品价格", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findAllADPackagePrices", + "requestMessageName": "FindAllADPackagePricesRequest", + "responseMessageName": "FindAllADPackagePricesResponse", + "code": "rpc findAllADPackagePrices(FindAllADPackagePricesRequest) returns (FindAllADPackagePricesResponse);", + "doc": "查找所有高防产品价格", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_ad_package_price.proto", + "doc": "高防产品价格服务" + }, { "name": "AdminService", "methods": [ @@ -3725,7 +4123,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc createLoginSession(CreateLoginSessionRequest) returns (RPCSuccess);", "doc": "创建SESSION", - "roles": [], + "roles": [ + "admin" + ], "isDeprecated": false }, { @@ -3734,7 +4134,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc writeLoginSessionValue(WriteLoginSessionValueRequest) returns (RPCSuccess);", "doc": "写入SESSION数据", - "roles": [], + "roles": [ + "admin" + ], "isDeprecated": false }, { @@ -3743,7 +4145,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc deleteLoginSession(DeleteLoginSessionRequest) returns (RPCSuccess);", "doc": "删除SESSION", - "roles": [], + "roles": [ + "admin" + ], "isDeprecated": false }, { @@ -3752,7 +4156,9 @@ "responseMessageName": "FindLoginSessionResponse", "code": "rpc findLoginSession(FindLoginSessionRequest) returns (FindLoginSessionResponse);", "doc": "查找SESSION", - "roles": [], + "roles": [ + "admin" + ], "isDeprecated": false } ], @@ -11592,6 +11998,101 @@ "filename": "service_user_account_log.proto", "doc": "用户账户日志服务" }, + { + "name": "UserADInstanceService", + "methods": [ + { + "name": "createUserADInstance", + "requestMessageName": "CreateUserADInstanceRequest", + "responseMessageName": "CreateUserADInstanceResponse", + "code": "rpc createUserADInstance(CreateUserADInstanceRequest) returns (CreateUserADInstanceResponse);", + "doc": "创建用户高防实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "buyUserADInstance", + "requestMessageName": "BuyUserADInstanceRequest", + "responseMessageName": "BuyUserADInstanceResponse", + "code": "rpc buyUserADInstance(BuyUserADInstanceRequest) returns (BuyUserADInstanceResponse);", + "doc": "购买用户高防实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "countUserADInstances", + "requestMessageName": "CountUserADInstancesRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countUserADInstances(CountUserADInstancesRequest) returns (RPCCountResponse);", + "doc": "计算用户高防实例数量", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "listUserADInstances", + "requestMessageName": "ListUserADInstancesRequest", + "responseMessageName": "ListUserADInstancesResponse", + "code": "rpc listUserADInstances(ListUserADInstancesRequest) returns (ListUserADInstancesResponse);", + "doc": "列出单页用户高防实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "findUserADInstance", + "requestMessageName": "FindUserADInstanceRequest", + "responseMessageName": "FindUserADInstanceResponse", + "code": "rpc findUserADInstance(FindUserADInstanceRequest) returns (FindUserADInstanceResponse);", + "doc": "查找单个用户高防实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "deleteUserADInstance", + "requestMessageName": "DeleteUserADInstanceRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteUserADInstance(DeleteUserADInstanceRequest) returns (RPCSuccess);", + "doc": "删除用户高防实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "renewUserADInstance", + "requestMessageName": "RenewUserADInstanceRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc renewUserADInstance(RenewUserADInstanceRequest) returns (RPCSuccess);", + "doc": "续期用户高防实例", + "roles": [ + "admin" + ], + "isDeprecated": false + }, + { + "name": "updateUserADInstanceObjects", + "requestMessageName": "UpdateUserADInstanceObjectsRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateUserADInstanceObjects(UpdateUserADInstanceObjectsRequest) returns (RPCSuccess);", + "doc": "修改实例防护对象", + "roles": [ + "admin" + ], + "isDeprecated": false + } + ], + "filename": "service_user_ad_instance.proto", + "doc": "用户高防实例服务" + }, { "name": "UserBillService", "methods": [ @@ -12472,6 +12973,31 @@ "code": "message ACMEUser {\n\tint64 id = 1;\n\tstring email = 2;\n\tstring description = 3;\n\tint64 createdAt = 4;\n\tstring acmeProviderCode = 5;\n\n\tACMEProvider acmeProvider = 30;\n\tACMEProviderAccount acmeProviderAccount = 31;\n}", "doc": "" }, + { + "name": "ADNetwork", + "code": "message ADNetwork {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n}", + "doc": "高防线路" + }, + { + "name": "ADPackage", + "code": "message ADPackage {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tint64 adNetworkId = 3;\n\tint32 protectionBandwidthSize = 4;\n\tstring protectionBandwidthUnit = 5;\n\tint32 serverBandwidthSize = 6;\n\tstring serverBandwidthUnit = 7;\n\n\tADNetwork adNetwork = 30;\n\tstring summary = 31; // 概述\n\tint64 countIdleADPackageInstances = 32; // 剩余可用的实例数,只有在获取可用高防产品的时候才会返回\n}", + "doc": "高防产品" + }, + { + "name": "ADPackageInstance", + "code": "message ADPackageInstance {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tint64 adPackageId = 3;\n\tint64 nodeClusterId = 4;\n\trepeated int64 nodeIds = 5;\n\trepeated string ipAddresses = 6;\n\tint64 userId = 7; // 租用用户ID\n\tstring userDayTo = 8; // 租用日期\n\tint64 userInstanceId = 9; // 当前绑定的用户实例ID\n\n\tNodeCluster nodeCluster = 30;\n\tADPackage adPackage = 31;\n\tUser user = 32;\n}", + "doc": "高防产品实例" + }, + { + "name": "ADPackagePeriod", + "code": "message ADPackagePeriod {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tint32 count = 3;\n\tstring unit = 4;\n\tint32 months = 5;\n}", + "doc": "高防实例有效期" + }, + { + "name": "ADPackagePrice", + "code": "message ADPackagePrice {\n\tint64 adPackageId = 1;\n\tint64 adPackagePeriodId = 2;\n\tdouble price = 3;\n}", + "doc": "高防产品价格定义" + }, { "name": "APIMethodStat", "code": "message APIMethodStat {\n\tint64 id = 1;\n\tint64 apiNodeId = 2;\n\tstring method = 3;\n\tstring tag = 4;\n\tfloat costMs = 5;\n\tfloat peekMs = 6;\n\tint64 countCalls = 7;\n\n\tAPINode apiNode = 30;\n}", @@ -12532,6 +13058,16 @@ "code": "message BuyNSUserPlanResponse {\n\tint64 userPlanId = 1;\n}", "doc": "" }, + { + "name": "BuyUserADInstanceRequest", + "code": "message BuyUserADInstanceRequest {\n\tint64 userId = 1;\n\tint64 adPackageId = 2;\n\tint64 adPackagePeriodId = 3;\n\tint32 count = 4;\n}", + "doc": "购买用户高防实例" + }, + { + "name": "BuyUserADInstanceResponse", + "code": "message BuyUserADInstanceResponse {\n\trepeated int64 userADInstanceIds = 1;\n}", + "doc": "" + }, { "name": "BuyUserPlanRequest", "code": "message BuyUserPlanRequest{\n\tint64 userId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n\tstring name = 6;\n}", @@ -12967,6 +13503,21 @@ "code": "message ComposeUserGlobalBoardResponse {\n\tint64 totalUsers = 1;\n\tint64 countTodayUsers = 2;\n\tint64 countWeeklyUsers = 3;\n\tint64 countUserNodes = 4;\n\tint64 countOfflineUserNodes = 5;\n\tint64 countVerifyingUsers = 6;\n\n\trepeated DailyStat dailyStats = 30;\n\trepeated NodeValue cpuNodeValues = 31;\n\trepeated NodeValue memoryNodeValues = 32;\n\trepeated NodeValue loadNodeValues = 33;\n\trepeated TrafficStat topTrafficStats = 34;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage TrafficStat {\n\t\tint64 userId = 1;\n\t\tstring userName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", "doc": "" }, + { + "name": "CountADPackageInstancesRequest", + "code": "message CountADPackageInstancesRequest {\n\tint64 adNetworkId = 1; // 可选,线路\n\tint64 adPackageId = 2; // 可选,如果不填则表示获取所有实例数量\n\tint64 userId = 3; // 可选,用户ID\n\tstring ip = 4; // 可选,高防IP\n}", + "doc": "计算实例数量" + }, + { + "name": "CountADPackagePricesRequest", + "code": "message CountADPackagePricesRequest {\n\tint64 adPackageId = 1;\n}", + "doc": "计算高防产品价格项数量" + }, + { + "name": "CountADPackagesRequest", + "code": "message CountADPackagesRequest {\n\tint64 adNetworkId = 1;\n}", + "doc": "查询高防产品数量" + }, { "name": "CountAPIMethodStatsWithDayRequest", "code": "message CountAPIMethodStatsWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n}", @@ -13227,6 +13778,11 @@ "code": "message CountAllHTTPAccessLogPoliciesRequest {\n\n}", "doc": "计算访问日志策略数量" }, + { + "name": "CountAllIdleADPackages", + "code": "message CountAllIdleADPackages {\n\n}", + "doc": "查询可用的产品数量" + }, { "name": "CountAllNSClustersWithSSLCertIdRequest", "code": "message CountAllNSClustersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", @@ -13372,6 +13928,11 @@ "code": "message CountIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 2;\n\tstring ipFrom = 3;\n\tstring ipTo = 4;\n\tstring eventLevel = 5;\n}", "doc": "计算IP数量" }, + { + "name": "CountIdleADPackageInstancesRequest", + "code": "message CountIdleADPackageInstancesRequest {\n\tint64 adPackageId = 1;\n}", + "doc": "计算可购的实例数量" + }, { "name": "CountLogRequest", "code": "message CountLogRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n\tstring keyword = 3;\n\tstring userType = 4; // admin|user\n}", @@ -13412,6 +13973,11 @@ "code": "message CountUnreadMessagesRequest {\n\n}", "doc": "计算未读消息数" }, + { + "name": "CountUserADInstancesRequest", + "code": "message CountUserADInstancesRequest {\n\tint64 adNetworkId = 1; // 线路ID\n\tint64 userId = 2; // 用户ID\n\tint64 adPackagePeriodId = 3;\n\tstring expiresDay = 4;\n\tbool availableOnly = 5; // 是否只查询有效的高防实例\n}", + "doc": "查询用户高防实例数量" + }, { "name": "CountUserAccountLogsRequest", "code": "message CountUserAccountLogsRequest {\n\tint64 userAccountId = 1;\n\tstring keyword = 2;\n\tstring eventType = 3;\n}", @@ -13467,6 +14033,46 @@ "code": "message CreateACMEUserResponse {\n\tint64 acmeUserId = 1;\n}", "doc": "" }, + { + "name": "CreateADNetworkRequest", + "code": "message CreateADNetworkRequest {\n\tstring name = 1;\n\tstring description = 2;\n}", + "doc": "创建线路" + }, + { + "name": "CreateADNetworkResponse", + "code": "message CreateADNetworkResponse {\n\tint64 adNetworkId = 1;\n}", + "doc": "" + }, + { + "name": "CreateADPackageInstanceRequest", + "code": "message CreateADPackageInstanceRequest {\n\tint64 adPackageId = 1;\n\tint64 nodeClusterId = 2;\n\trepeated int64 nodeIds = 3;\n\trepeated string ipAddresses = 4;\n}", + "doc": "创建实例" + }, + { + "name": "CreateADPackageInstanceResponse", + "code": "message CreateADPackageInstanceResponse {\n\tint64 adPackageInstanceId = 1;\n}", + "doc": "" + }, + { + "name": "CreateADPackagePeriodRequest", + "code": "message CreateADPackagePeriodRequest {\n\tint32 count = 1;\n\tstring unit = 2; // month | year\n}", + "doc": "创建有效期" + }, + { + "name": "CreateADPackagePeriodResponse", + "code": "message CreateADPackagePeriodResponse {\n\tint64 adPackagePeriodId = 1;\n}", + "doc": "" + }, + { + "name": "CreateADPackageRequest", + "code": "message CreateADPackageRequest {\n\tint64 adNetworkId = 1;\n\tint32 protectionBandwidthSize = 2;\n\tstring protectionBandwidthUnit = 3;\n\tint32 serverBandwidthSize = 4;\n\tstring serverBandwidthUnit = 5;\n}", + "doc": "创建高防产品" + }, + { + "name": "CreateADPackageResponse", + "code": "message CreateADPackageResponse {\n\tint64 adPackageId = 1;\n}", + "doc": "" + }, { "name": "CreateAPINodeRequest", "code": "message CreateAPINodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbytes httpJSON = 3;\n\tbytes httpsJSON = 4;\n\tbytes accessAddrsJSON = 5;\n\tbool isOn = 6;\n\tbool restIsOn = 7;\n\tbytes restHTTPJSON = 8;\n\tbytes restHTTPSJSON = 9;\n}", @@ -14282,6 +14888,16 @@ "code": "message CreateTrafficPackageResponse {\n\tint64 trafficPackageId = 1;\n}", "doc": "" }, + { + "name": "CreateUserADInstanceRequest", + "code": "message CreateUserADInstanceRequest {\n\tint64 userId = 1;\n\tint64 adPackageId = 2;\n\tint64 adPackagePeriodId = 3;\n\tint32 count = 4;\n}", + "doc": "创建用户高防实例" + }, + { + "name": "CreateUserADInstanceResponse", + "code": "message CreateUserADInstanceResponse {\n\trepeated int64 userADInstanceIds = 1;\n}", + "doc": "" + }, { "name": "CreateUserAccessKeyRequest", "code": "message CreateUserAccessKeyRequest {\n\tint64 userId = 1;\n\tint64 adminId = 3;\n\tstring description = 2;\n}", @@ -14442,6 +15058,26 @@ "code": "message DeleteACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", "doc": "删除用户" }, + { + "name": "DeleteADNetworkRequest", + "code": "message DeleteADNetworkRequest {\n\tint64 adNetworkId = 1;\n}", + "doc": "删除线路" + }, + { + "name": "DeleteADPackageInstanceRequest", + "code": "message DeleteADPackageInstanceRequest {\n\tint64 adPackageInstanceId = 1;\n}", + "doc": "删除实例" + }, + { + "name": "DeleteADPackagePeriodRequest", + "code": "message DeleteADPackagePeriodRequest {\n\tint64 adPackagePeriodId = 1;\n}", + "doc": "删除有效期" + }, + { + "name": "DeleteADPackageRequest", + "code": "message DeleteADPackageRequest {\n\tint64 adPackageId = 1;\n}", + "doc": "删除高防产品" + }, { "name": "DeleteAPINodeRequest", "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", @@ -14762,6 +15398,11 @@ "code": "message DeleteTrafficPackageRequest {\n\tint64 trafficPackageId = 1;\n}", "doc": "删除流量包" }, + { + "name": "DeleteUserADInstanceRequest", + "code": "message DeleteUserADInstanceRequest {\n\tint64 userADInstanceId = 1;\n}", + "doc": "删除用户高防实例" + }, { "name": "DeleteUserAccessKeyRequest", "code": "message DeleteUserAccessKeyRequest {\n\tint64 userAccessKeyId = 1;\n}", @@ -15007,6 +15648,66 @@ "code": "message FindACMEProviderWithCodeResponse {\n\tACMEProvider acmeProvider = 1;\n}", "doc": "" }, + { + "name": "FindADNetworkRequest", + "code": "message FindADNetworkRequest {\n\tint64 adNetworkId = 1;\n}", + "doc": "查找单个线路" + }, + { + "name": "FindADNetworkResponse", + "code": "message FindADNetworkResponse {\n\tADNetwork adNetwork = 1;\n}", + "doc": "" + }, + { + "name": "FindADPackageInstanceRequest", + "code": "message FindADPackageInstanceRequest {\n\tint64 adPackageInstanceId = 1;\n}", + "doc": "查找单个实例" + }, + { + "name": "FindADPackageInstanceResponse", + "code": "message FindADPackageInstanceResponse {\n\tADPackageInstance adPackageInstance = 1;\n}", + "doc": "" + }, + { + "name": "FindADPackagePeriodRequest", + "code": "message FindADPackagePeriodRequest {\n\tint64 adPackagePeriodId = 1;\n}", + "doc": "查找有效期" + }, + { + "name": "FindADPackagePeriodResponse", + "code": "message FindADPackagePeriodResponse {\n\tADPackagePeriod adPackagePeriod = 1;\n}", + "doc": "" + }, + { + "name": "FindADPackagePriceRequest", + "code": "message FindADPackagePriceRequest {\n\tint64 adPackageId = 1;\n\tint64 adPackagePeriodId = 2;\n\tint32 count = 3;\n}", + "doc": "获取单个高防产品具体价格" + }, + { + "name": "FindADPackagePriceResponse", + "code": "message FindADPackagePriceResponse {\n\tdouble price = 1; // 单价\n\tdouble amount = 2; // 总价\n}", + "doc": "" + }, + { + "name": "FindADPackagePricesRequest", + "code": "message FindADPackagePricesRequest {\n\tint64 adPackageId = 1;\n}", + "doc": "查找高防产品价格" + }, + { + "name": "FindADPackagePricesResponse", + "code": "message FindADPackagePricesResponse {\n\trepeated ADPackagePrice adPackagePrices = 1;\n}", + "doc": "" + }, + { + "name": "FindADPackageRequest", + "code": "message FindADPackageRequest {\n\tint64 adPackageId = 1;\n}", + "doc": "查找单个高防产品" + }, + { + "name": "FindADPackageResponse", + "code": "message FindADPackageResponse {\n\tADPackage adPackage = 1;\n}", + "doc": "" + }, { "name": "FindAPIMethodStatsWithDayRequest", "code": "message FindAPIMethodStatsWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n}", @@ -15067,6 +15768,46 @@ "code": "message FindAllACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", "doc": "" }, + { + "name": "FindAllADNetworkRequest", + "code": "message FindAllADNetworkRequest {\n\n}", + "doc": "列出所有线路" + }, + { + "name": "FindAllADNetworkResponse", + "code": "message FindAllADNetworkResponse {\n\trepeated ADNetwork adNetworks = 1;\n}", + "doc": "" + }, + { + "name": "FindAllADPackageInstancesRequest", + "code": "message FindAllADPackageInstancesRequest {\n\tint64 adPackageId = 1;\n}", + "doc": "列出单个高防产品所有实例" + }, + { + "name": "FindAllADPackageInstancesResponse", + "code": "message FindAllADPackageInstancesResponse {\n\trepeated ADPackageInstance adPackageInstances = 1;\n}", + "doc": "" + }, + { + "name": "FindAllADPackagePeriodsRequest", + "code": "message FindAllADPackagePeriodsRequest {\n\n}", + "doc": "列出所有有效期" + }, + { + "name": "FindAllADPackagePeriodsResponse", + "code": "message FindAllADPackagePeriodsResponse {\n\trepeated ADPackagePeriod adPackagePeriods = 1;\n}", + "doc": "" + }, + { + "name": "FindAllADPackagePricesRequest", + "code": "message FindAllADPackagePricesRequest {\n\n}", + "doc": "查找所有高防产品价格" + }, + { + "name": "FindAllADPackagePricesResponse", + "code": "message FindAllADPackagePricesResponse {\n\trepeated ADPackagePrice adPackagePrices = 1;\n}", + "doc": "" + }, { "name": "FindAllAdminModulesRequest", "code": "message FindAllAdminModulesRequest {\n\n}", @@ -15087,6 +15828,26 @@ "code": "message FindAllAgentNSRoutesResponse{\n\trepeated NSRoute nsRoutes = 1;\n}", "doc": "" }, + { + "name": "FindAllAvailableADNetworksRequest", + "code": "message FindAllAvailableADNetworksRequest {\n\n}", + "doc": "列出所有可用的线路" + }, + { + "name": "FindAllAvailableADNetworksResponse", + "code": "message FindAllAvailableADNetworksResponse {\n\trepeated ADNetwork adNetworks = 1;\n}", + "doc": "" + }, + { + "name": "FindAllAvailableADPackagePeriodsRequest", + "code": "message FindAllAvailableADPackagePeriodsRequest {\n\n}", + "doc": "列出所有可用有效期" + }, + { + "name": "FindAllAvailableADPackagePeriodsResponse", + "code": "message FindAllAvailableADPackagePeriodsResponse {\n\trepeated ADPackagePeriod adPackagePeriods = 1;\n}", + "doc": "" + }, { "name": "FindAllAvailableNSDomainGroupsRequest", "code": "message FindAllAvailableNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", @@ -15717,6 +16478,16 @@ "code": "message FindAllIPLibraryArtifactsResponse {\n\trepeated IPLibraryArtifact ipLibraryArtifacts = 1;\n}", "doc": "" }, + { + "name": "FindAllIdleADPackagesRequest", + "code": "message FindAllIdleADPackagesRequest {\n\n}", + "doc": "列出所有可用的高防产品" + }, + { + "name": "FindAllIdleADPackagesResponse", + "code": "message FindAllIdleADPackagesResponse {\n\trepeated ADPackage adPackages = 1;\n}", + "doc": "" + }, { "name": "FindAllMessageMediasRequest", "code": "message FindAllMessageMediasRequest {\n\n}", @@ -18067,6 +18838,16 @@ "code": "message FindTrafficPackageResponse {\n\tTrafficPackage trafficPackage = 1;\n}", "doc": "" }, + { + "name": "FindUserADInstanceRequest", + "code": "message FindUserADInstanceRequest {\n\tint64 userADInstanceId = 1;\n}", + "doc": "查找单个用户高防实例" + }, + { + "name": "FindUserADInstanceResponse", + "code": "message FindUserADInstanceResponse {\n\tUserADInstance userADInstance = 1;\n}", + "doc": "" + }, { "name": "FindUserBillRequest", "code": "message FindUserBillRequest {\n\tint64 userBillId = 1; // ID,和单号二选一\n\tstring code = 2; // 单号\n}", @@ -18357,6 +19138,26 @@ "code": "message ListACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", "doc": "" }, + { + "name": "ListADPackageInstancesRequest", + "code": "message ListADPackageInstancesRequest {\n\tint64 adNetworkId = 1; // 可选,线路\n\tint64 adPackageId = 2; // 可选,如果不填则表示获取所有实例数量\n\tint64 userId = 3; // 可选,用户ID\n\tstring ip = 4; // 可选,高防IP\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页实例" + }, + { + "name": "ListADPackageInstancesResponse", + "code": "message ListADPackageInstancesResponse {\n\trepeated ADPackageInstance adPackageInstances = 1;\n}", + "doc": "" + }, + { + "name": "ListADPackagesRequest", + "code": "message ListADPackagesRequest {\n\tint64 adNetworkId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页高防产品" + }, + { + "name": "ListADPackagesResponse", + "code": "message ListADPackagesResponse {\n\trepeated ADPackage adPackages = 1;\n}", + "doc": "" + }, { "name": "ListAllEnabledIPItemsRequest", "code": "message ListAllEnabledIPItemsRequest {\n\tstring keyword = 8;\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 5;\n\tstring eventLevel = 6;\n\tstring listType = 7;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", @@ -18982,6 +19783,16 @@ "code": "message ListUpdatedSSLCertOCSPResponse {\n\trepeated SSLCertOCSP sslCertOCSP = 1;\n\n\n\tmessage SSLCertOCSP {\n\t\tint64 sslCertId = 1;\n\t\tbytes data = 2;\n\t\tint64 version = 3;\n\t\tint64 expiresAt = 4;\n\t}\n}", "doc": "" }, + { + "name": "ListUserADInstancesRequest", + "code": "message ListUserADInstancesRequest {\n\tint64 adNetworkId = 1; // 线路ID\n\tint64 userId = 2; // 用户ID\n\tint64 adPackagePeriodId = 3;\n\tstring expiresDay = 4;\n\tbool availableOnly = 5; // 是否只查询有效的高防实例\n\tint64 offset = 6;\n\tint64 size = 7;\n}", + "doc": "列出单页用户高防实例" + }, + { + "name": "ListUserADInstancesResponse", + "code": "message ListUserADInstancesResponse {\n\trepeated UserADInstance userADInstances = 1;\n}", + "doc": "" + }, { "name": "ListUserAccountDailyStatsRequest", "code": "message ListUserAccountDailyStatsRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n}", @@ -19517,6 +20328,11 @@ "code": "message RejectUserIdentityRequest {\n\tint64 userIdentityId = 1;\n\tstring reason = 2;\n}", "doc": "拒绝用户实名认证信息" }, + { + "name": "RenewUserADInstanceRequest", + "code": "message RenewUserADInstanceRequest {\n\tint64 userADInstanceId = 1;\n\tint64 adPackagePeriodId = 2;\n}", + "doc": "续期用户高防实例" + }, { "name": "RenewUserPlanRequest", "code": "message RenewUserPlanRequest {\n\tint64 userPlanId = 1;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n}", @@ -19892,6 +20708,31 @@ "code": "message UpdateACMEUserRequest {\n\tint64 acmeUserId = 1;\n\tstring description = 2;\n}", "doc": "修改用户" }, + { + "name": "UpdateADNetworkRequest", + "code": "message UpdateADNetworkRequest {\n\tint64 adNetworkId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n}", + "doc": "修改线路" + }, + { + "name": "UpdateADPackageInstanceRequest", + "code": "message UpdateADPackageInstanceRequest {\n\tint64 adPackageInstanceId = 1;\n\tint64 nodeClusterId = 2;\n\trepeated int64 nodeIds = 3;\n\trepeated string ipAddresses = 4;\n\tbool isOn = 5;\n}", + "doc": "修改实例" + }, + { + "name": "UpdateADPackagePeriodRequest", + "code": "message UpdateADPackagePeriodRequest {\n\tint64 adPackagePeriodId = 1;\n\tbool isOn = 2;\n}", + "doc": "修改有效期" + }, + { + "name": "UpdateADPackagePriceRequest", + "code": "message UpdateADPackagePriceRequest {\n\tint64 adPackageId = 1;\n\tint64 adPackagePeriodId = 2;\n\tdouble price = 3;\n}", + "doc": "设置高防产品价格" + }, + { + "name": "UpdateADPackageRequest", + "code": "message UpdateADPackageRequest {\n\tint64 adPackageId = 1;\n\tbool isOn = 2;\n\tint64 adNetworkId = 3;\n\tint32 protectionBandwidthSize = 4;\n\tstring protectionBandwidthUnit = 5;\n\tint32 serverBandwidthSize = 6;\n\tstring serverBandwidthUnit = 7;\n}", + "doc": "修改高防产品" + }, { "name": "UpdateAPINodeRequest", "code": "message UpdateAPINodeRequest {\n\tint64 apiNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbytes httpJSON = 4;\n\tbytes httpsJSON = 5;\n\tbytes accessAddrsJSON = 6;\n\tbool isOn = 7;\n\tbool restIsOn = 8;\n\tbytes restHTTPJSON = 9;\n\tbytes restHTTPSJSON = 10;\n\tbool isPrimary = 11;\n}", @@ -20912,6 +21753,11 @@ "code": "message UpdateTrafficPackageRequest {\n\tint64 trafficPackageId = 1;\n\tbool isOn = 2;\n}", "doc": "修改流量包" }, + { + "name": "UpdateUserADInstanceObjectsRequest", + "code": "message UpdateUserADInstanceObjectsRequest {\n\tint64 userADInstanceId = 1;\n\trepeated string objectCodes = 2;\n}", + "doc": "修改实例防护对象" + }, { "name": "UpdateUserAccessKeyIsOnRequest", "code": "message UpdateUserAccessKeyIsOnRequest {\n\tint64 userAccessKeyId = 1;\n\tbool isOn = 2;\n}", @@ -21022,6 +21868,11 @@ "code": "message User {\n\tint64 id = 1;\n\tstring username = 2;\n\tstring fullname = 3;\n\tstring mobile = 4;\n\tstring tel = 5;\n\tstring email = 6;\n\tstring verifiedEmail = 20;\n\tstring remark = 7;\n\tbool isOn = 8;\n\tint64 createdAt = 9;\n\tstring registeredIP = 12;\n\tbool isVerified = 13;\n\tbool isRejected = 14;\n\tstring rejectReason = 15;\n\tbool isDeleted = 16;\n\tbool isIndividualIdentified = 17;\n\tbool isEnterpriseIdentified = 18;\n\n\tLogin otpLogin = 19; // OTP认证\n\n\tNodeCluster nodeCluster = 10;\n\trepeated UserFeature features = 11;\n}", "doc": "" }, + { + "name": "UserADInstance", + "code": "message UserADInstance {\n\tint64 id = 1;\n\tint64 userId = 2;\n\tint64 adPackageInstanceId = 3;\n\tint64 adPackagePeriodId = 4;\n\tint32 adPackagePeriodCount = 5;\n\tstring adPackagePeriodUnit = 6;\n\tstring dayFrom = 7; // 开始日期,格式:YYYYMMDD\n\tstring dayTo = 8; // 结束日期,格式:YYYYMMDD\n\tint64 createdAt = 9;\n\tint32 maxObjects = 10;\n\trepeated string objectCodes = 11;\n\n\tADPackageInstance adPackageInstance = 30;\n\tUser user = 31;\n\tbool canDelete = 32;\n\tbool isAvailable = 33; // 当前是否在生效中\n\tint32 countObjects = 34; // 防护对象数量\n\tbytes objectsJSON = 35; // 对象JSON\n}", + "doc": "高防实例" + }, { "name": "UserAccessKey", "code": "message UserAccessKey {\n\tint64 id = 1;\n\tint64 userId = 2;\n\tint64 subUserId = 3;\n\tbool isOn = 4;\n\tstring uniqueId = 5;\n\tstring secret = 6;\n\tstring description = 7;\n\tint64 accessedAt = 8;\n}", @@ -21175,11 +22026,11 @@ }, { "name": "json:http_cache_config", - "content": "# HTTP缓存配置\n## 定义\n~~~json\n{\n \"isPrior\": \"是否覆盖上级配置\",\n \"isOn\": \"是否启用配置\",\n \"addStatusHeader\": \"是否增加命中状态Header(X-Cache)\",\n \"addAgeHeader\": \"是否增加Age Header\",\n \"enableCacheControlMaxAge\": \"是否支持Cache-Control: max-age=...\",\n \"disablePolicyRefs\": \"是否停用策略中定义的条件\",\n \"purgeIsOn\": \"是否允许使用Purge方法清理\",\n \"purgeKey\": \"Purge时使用的X-Edge-Purge-Key\",\n \"stale\": \"陈旧缓存使用策略\",\n \"cacheRefs\": [\"缓存条件1\", \"缓存条件2\", ...]\n}\n~~~\n其中:\n* `缓存条件` - 参考 {json:http_cache_ref}\n\n## 示例\n### 无缓存条件\n~~~json\n{\n \"isPrior\": true,\n \"isOn\": true,\n \"addStatusHeader\": true,\n \"addAgeHeader\": true,\n \"enableCacheControlMaxAge\": true,\n \"disablePolicyRefs\": false,\n \"purgeIsOn\": false,\n \"purgeKey\": \"\",\n \"stale\": null,\n \"cacheRefs\": []\n}\n~~~\n\n### 加入缓存条件\n~~~json\n{\n \"isPrior\": true,\n \"isOn\": true,\n \"addStatusHeader\": true,\n \"addAgeHeader\": true,\n \"enableCacheControlMaxAge\": true,\n \"disablePolicyRefs\": false,\n \"purgeIsOn\": false,\n \"purgeKey\": \"\",\n \"stale\": null,\n \"cacheRefs\": [\n {\n\t \"id\": 0,\n\t \"isOn\": true,\n\t \"key\": \"${scheme}://${host}${requestPath}${isArgs}${args}\",\n\t \"life\": {\"count\": 2, \"unit\": \"hour\"},\n\t \"status\": [200],\n \"maxSize\": {\"count\": 32, \"unit\": \"mb\"},\n \"minSize\": {\"count\": 0, \"unit\": \"kb\"},\n \"skipCacheControlValues\": [\"private\", \"no-cache\", \"no-store\"],\n \"skipSetCookie\": true,\n \"enableRequestCachePragma\": false,\n \"conds\": {\n \"isOn\": true,\n \"connector\": \"or\",\n \"groups\": [\n {\n \"isOn\": true,\n \"connector\": \"and\",\n \"conds\": [\n {\n \"type\": \"url-extension\",\n \"isRequest\": true,\n \"param\": \"${requestPathExtension}\",\n \"operator\": \"in\",\n \"value\": \"[\\\".css\\\",\\\".png\\\",\\\".js\\\",\\\".woff2\\\"]\",\n \"isReverse\": false,\n \"isCaseInsensitive\": false,\n \"typeName\": \"URL扩展名\"\n }\n ],\n \"isReverse\": false,\n \"description\": \"\"\n }\n ]\n },\n \"allowChunkedEncoding\": true,\n \"allowPartialContent\": false,\n \"isReverse\": false,\n \"methods\": []\n\t}\n ]\n}\n~~~\n" + "content": "# HTTP缓存配置\n## 定义\n~~~json\n{\n \"isPrior\": \"是否覆盖上级配置\",\n \"isOn\": \"是否启用配置\",\n \"addStatusHeader\": \"是否增加命中状态Header(X-Cache)\",\n \"addAgeHeader\": \"是否增加Age Header\",\n \"enableCacheControlMaxAge\": \"是否支持Cache-Control: max-age=...\",\n \"disablePolicyRefs\": \"是否停用策略中定义的条件\",\n \"purgeIsOn\": \"是否允许使用Purge方法清理\",\n \"purgeKey\": \"Purge时使用的X-Edge-Purge-Key\",\n \"stale\": \"陈旧缓存使用策略\",\n \"cacheRefs\": [\"缓存条件1\", \"缓存条件2\", ...]\n}\n~~~\n其中:\n* `缓存条件` - 参考 {json:http_cache_ref}\n\n## 示例\n### 无缓存条件\n~~~json\n{\n \"isPrior\": true,\n \"isOn\": true,\n \"addStatusHeader\": true,\n \"addAgeHeader\": true,\n \"enableCacheControlMaxAge\": true,\n \"disablePolicyRefs\": false,\n \"purgeIsOn\": false,\n \"purgeKey\": \"\",\n \"stale\": null,\n \"cacheRefs\": []\n}\n~~~\n\n### 加入缓存条件\n~~~json\n{\n \"isPrior\": true,\n \"isOn\": true,\n \"addStatusHeader\": true,\n \"addAgeHeader\": true,\n \"enableCacheControlMaxAge\": true,\n \"disablePolicyRefs\": false,\n \"purgeIsOn\": false,\n \"purgeKey\": \"\",\n \"stale\": null,\n \"cacheRefs\": [\n {\n\t \"id\": 0,\n\t \"isOn\": true,\n\t \"key\": \"${scheme}://${host}${requestPath}${isArgs}${args}\",\n\t \"life\": {\"count\": 2, \"unit\": \"hour\"},\n\t \"status\": [200],\n \"maxSize\": {\"count\": 32, \"unit\": \"mb\"},\n \"minSize\": {\"count\": 0, \"unit\": \"kb\"},\n \"skipCacheControlValues\": [\"private\", \"no-cache\", \"no-store\"],\n \"skipSetCookie\": true,\n \"enableRequestCachePragma\": false,\n \"conds\": {\n \"isOn\": true,\n \"connector\": \"or\",\n \"groups\": [\n {\n \"isOn\": true,\n \"connector\": \"and\",\n \"conds\": [\n {\n \"type\": \"url-extension\",\n \"isRequest\": true,\n \"param\": \"${requestPathLowerExtension}\",\n \"operator\": \"in\",\n \"value\": \"[\\\".css\\\",\\\".png\\\",\\\".js\\\",\\\".woff2\\\"]\",\n \"isReverse\": false,\n \"isCaseInsensitive\": false,\n \"typeName\": \"URL扩展名\"\n }\n ],\n \"isReverse\": false,\n \"description\": \"\"\n }\n ]\n },\n \"allowChunkedEncoding\": true,\n \"allowPartialContent\": false,\n \"isReverse\": false,\n \"methods\": []\n\t}\n ]\n}\n~~~\n" }, { "name": "json:http_cache_ref", - "content": "# 缓存条件设置\n## 定义\n~~~json\n{\n \"isOn\": \"是否启用配置\",\n \"key\": \"每个缓存的Key规则,里面可以有变量\",\n \"life\": \"缓存时长\",\n \"expiresTime\": \"客户端过期时间\",\n \"status\": [\"缓存的状态码1\", \"缓存的状态码2\", ...],\n \"minSize\": \"能够缓存的最小尺寸\",\n \"maxSize\": \"能够缓存的最大尺寸\",\n \"methods\": [\"支持的请求方法1\", \"支持的请求方法2\", ...],\n \"skipCacheControlValues\": \"可以跳过的响应的Cache-Control值\",\n \"skipSetCookie\": \"是否跳过响应的Set-Cookie Header\",\n \"enableRequestCachePragma\": \"是否支持客户端的Pragma: no-cache\",\n \"allowChunkedEncoding\": \"是否允许分片内容\",\n \"allowPartialContent\": \"支持分段内容缓存\",\n \"conds\": \"请求条件\",\n \"isReverse\": \"是否为反向条件,反向条件的不缓存\"\n}\n~~~\n\n## 示例\n~~~json\n{\n\t\"isOn\": true,\n\t\"key\": \"${scheme}://${host}${requestURI}\",\n\t\"life\": {\n\t\t\"count\": 1,\n\t\t\"unit\": \"day\"\n\t},\n\t\"expiresTime\": {\n\t\t\"isPrior\": true,\n\t\t\"isOn\": true,\n\t\t\"overwrite\": true,\n\t\t\"autoCalculate\": false,\n\t\t\"duration\": {\n\t\t\t\"count\": 1,\n\t\t\t\"unit\": \"day\"\n\t\t}\n\t},\n\t\"status\": [\n\t\t200\n\t],\n\t\"minSize\": {\n\t\t\"count\": 0,\n\t\t\"unit\": \"kb\"\n\t},\n\t\"maxSize\": {\n\t\t\"count\": 32,\n\t\t\"unit\": \"mb\"\n\t},\n\t\"methods\": [],\n\t\"skipCacheControlValues\": [\n\t\t\"private\",\n\t\t\"no-cache\",\n\t\t\"no-store\"\n\t],\n\t\"skipSetCookie\": true,\n\t\"enableRequestCachePragma\": false,\n\t\"allowChunkedEncoding\": true,\n\t\"allowPartialContent\": false,\n\t\"conds\": {\n\t\t\"isOn\": true,\n\t\t\"connector\": \"or\",\n\t\t\"groups\": [\n\t\t\t{\n\t\t\t\t\"isOn\": true,\n\t\t\t\t\"connector\": \"and\",\n\t\t\t\t\"conds\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"url-extension\",\n\t\t\t\t\t\t\"isRequest\": true,\n\t\t\t\t\t\t\"param\": \"${requestPathExtension}\",\n\t\t\t\t\t\t\"operator\": \"in\",\n\t\t\t\t\t\t\"value\": \"[\\\".css\\\",\\\".png\\\",\\\".js\\\",\\\".woff2\\\"]\",\n\t\t\t\t\t\t\"isReverse\": false,\n\t\t\t\t\t\t\"isCaseInsensitive\": false,\n\t\t\t\t\t\t\"typeName\": \"URL扩展名\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"isReverse\": false,\n\t\t\t\t\"description\": \"\"\n\t\t\t}\n\t\t]\n\t},\n\t\"cachePolicy\": null,\n\t\"isReverse\": false,\n\t\"id\": 1\n}\n~~~" + "content": "# 缓存条件设置\n## 定义\n~~~json\n{\n \"isOn\": \"是否启用配置\",\n \"key\": \"每个缓存的Key规则,里面可以有变量\",\n \"life\": \"缓存时长\",\n \"expiresTime\": \"客户端过期时间\",\n \"status\": [\"缓存的状态码1\", \"缓存的状态码2\", ...],\n \"minSize\": \"能够缓存的最小尺寸\",\n \"maxSize\": \"能够缓存的最大尺寸\",\n \"methods\": [\"支持的请求方法1\", \"支持的请求方法2\", ...],\n \"skipCacheControlValues\": \"可以跳过的响应的Cache-Control值\",\n \"skipSetCookie\": \"是否跳过响应的Set-Cookie Header\",\n \"enableRequestCachePragma\": \"是否支持客户端的Pragma: no-cache\",\n \"allowChunkedEncoding\": \"是否允许分片内容\",\n \"allowPartialContent\": \"支持分段内容缓存\",\n \"conds\": \"请求条件\",\n \"isReverse\": \"是否为反向条件,反向条件的不缓存\"\n}\n~~~\n\n## 示例\n~~~json\n{\n\t\"isOn\": true,\n\t\"key\": \"${scheme}://${host}${requestURI}\",\n\t\"life\": {\n\t\t\"count\": 1,\n\t\t\"unit\": \"day\"\n\t},\n\t\"expiresTime\": {\n\t\t\"isPrior\": true,\n\t\t\"isOn\": true,\n\t\t\"overwrite\": true,\n\t\t\"autoCalculate\": false,\n\t\t\"duration\": {\n\t\t\t\"count\": 1,\n\t\t\t\"unit\": \"day\"\n\t\t}\n\t},\n\t\"status\": [\n\t\t200\n\t],\n\t\"minSize\": {\n\t\t\"count\": 0,\n\t\t\"unit\": \"kb\"\n\t},\n\t\"maxSize\": {\n\t\t\"count\": 32,\n\t\t\"unit\": \"mb\"\n\t},\n\t\"methods\": [],\n\t\"skipCacheControlValues\": [\n\t\t\"private\",\n\t\t\"no-cache\",\n\t\t\"no-store\"\n\t],\n\t\"skipSetCookie\": true,\n\t\"enableRequestCachePragma\": false,\n\t\"allowChunkedEncoding\": true,\n\t\"allowPartialContent\": false,\n\t\"conds\": {\n\t\t\"isOn\": true,\n\t\t\"connector\": \"or\",\n\t\t\"groups\": [\n\t\t\t{\n\t\t\t\t\"isOn\": true,\n\t\t\t\t\"connector\": \"and\",\n\t\t\t\t\"conds\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"type\": \"url-extension\",\n\t\t\t\t\t\t\"isRequest\": true,\n\t\t\t\t\t\t\"param\": \"${requestPathLowerExtension}\",\n\t\t\t\t\t\t\"operator\": \"in\",\n\t\t\t\t\t\t\"value\": \"[\\\".css\\\",\\\".png\\\",\\\".js\\\",\\\".woff2\\\"]\",\n\t\t\t\t\t\t\"isReverse\": false,\n\t\t\t\t\t\t\"isCaseInsensitive\": false,\n\t\t\t\t\t\t\"typeName\": \"URL扩展名\"\n\t\t\t\t\t}\n\t\t\t\t],\n\t\t\t\t\"isReverse\": false,\n\t\t\t\t\"description\": \"\"\n\t\t\t}\n\t\t]\n\t},\n\t\"cachePolicy\": null,\n\t\"isReverse\": false,\n\t\"id\": 1\n}\n~~~" }, { "name": "json:http_firewall_ref", diff --git a/pkg/rpc/pb/model_ad_network.pb.go b/pkg/rpc/pb/model_ad_network.pb.go new file mode 100644 index 0000000..11043c2 --- /dev/null +++ b/pkg/rpc/pb/model_ad_network.pb.go @@ -0,0 +1,176 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ad_network.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 高防线路 +type ADNetwork struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *ADNetwork) Reset() { + *x = ADNetwork{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ad_network_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ADNetwork) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ADNetwork) ProtoMessage() {} + +func (x *ADNetwork) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ad_network_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ADNetwork.ProtoReflect.Descriptor instead. +func (*ADNetwork) Descriptor() ([]byte, []int) { + return file_models_model_ad_network_proto_rawDescGZIP(), []int{0} +} + +func (x *ADNetwork) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ADNetwork) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *ADNetwork) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ADNetwork) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +var File_models_model_ad_network_proto protoreflect.FileDescriptor + +var file_models_model_ad_network_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x64, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x02, 0x70, 0x62, 0x22, 0x65, 0x0a, 0x09, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, + 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, + 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ad_network_proto_rawDescOnce sync.Once + file_models_model_ad_network_proto_rawDescData = file_models_model_ad_network_proto_rawDesc +) + +func file_models_model_ad_network_proto_rawDescGZIP() []byte { + file_models_model_ad_network_proto_rawDescOnce.Do(func() { + file_models_model_ad_network_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_network_proto_rawDescData) + }) + return file_models_model_ad_network_proto_rawDescData +} + +var file_models_model_ad_network_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ad_network_proto_goTypes = []interface{}{ + (*ADNetwork)(nil), // 0: pb.ADNetwork +} +var file_models_model_ad_network_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_ad_network_proto_init() } +func file_models_model_ad_network_proto_init() { + if File_models_model_ad_network_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_ad_network_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ADNetwork); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ad_network_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ad_network_proto_goTypes, + DependencyIndexes: file_models_model_ad_network_proto_depIdxs, + MessageInfos: file_models_model_ad_network_proto_msgTypes, + }.Build() + File_models_model_ad_network_proto = out.File + file_models_model_ad_network_proto_rawDesc = nil + file_models_model_ad_network_proto_goTypes = nil + file_models_model_ad_network_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_ad_package.pb.go b/pkg/rpc/pb/model_ad_package.pb.go new file mode 100644 index 0000000..66cfbcb --- /dev/null +++ b/pkg/rpc/pb/model_ad_package.pb.go @@ -0,0 +1,250 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ad_package.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 高防产品 +type ADPackage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` + AdNetworkId int64 `protobuf:"varint,3,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` + ProtectionBandwidthSize int32 `protobuf:"varint,4,opt,name=protectionBandwidthSize,proto3" json:"protectionBandwidthSize,omitempty"` + ProtectionBandwidthUnit string `protobuf:"bytes,5,opt,name=protectionBandwidthUnit,proto3" json:"protectionBandwidthUnit,omitempty"` + ServerBandwidthSize int32 `protobuf:"varint,6,opt,name=serverBandwidthSize,proto3" json:"serverBandwidthSize,omitempty"` + ServerBandwidthUnit string `protobuf:"bytes,7,opt,name=serverBandwidthUnit,proto3" json:"serverBandwidthUnit,omitempty"` + AdNetwork *ADNetwork `protobuf:"bytes,30,opt,name=adNetwork,proto3" json:"adNetwork,omitempty"` + Summary string `protobuf:"bytes,31,opt,name=summary,proto3" json:"summary,omitempty"` // 概述 + CountIdleADPackageInstances int64 `protobuf:"varint,32,opt,name=countIdleADPackageInstances,proto3" json:"countIdleADPackageInstances,omitempty"` // 剩余可用的实例数,只有在获取可用高防产品的时候才会返回 +} + +func (x *ADPackage) Reset() { + *x = ADPackage{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ad_package_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ADPackage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ADPackage) ProtoMessage() {} + +func (x *ADPackage) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ad_package_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ADPackage.ProtoReflect.Descriptor instead. +func (*ADPackage) Descriptor() ([]byte, []int) { + return file_models_model_ad_package_proto_rawDescGZIP(), []int{0} +} + +func (x *ADPackage) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ADPackage) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *ADPackage) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *ADPackage) GetProtectionBandwidthSize() int32 { + if x != nil { + return x.ProtectionBandwidthSize + } + return 0 +} + +func (x *ADPackage) GetProtectionBandwidthUnit() string { + if x != nil { + return x.ProtectionBandwidthUnit + } + return "" +} + +func (x *ADPackage) GetServerBandwidthSize() int32 { + if x != nil { + return x.ServerBandwidthSize + } + return 0 +} + +func (x *ADPackage) GetServerBandwidthUnit() string { + if x != nil { + return x.ServerBandwidthUnit + } + return "" +} + +func (x *ADPackage) GetAdNetwork() *ADNetwork { + if x != nil { + return x.AdNetwork + } + return nil +} + +func (x *ADPackage) GetSummary() string { + if x != nil { + return x.Summary + } + return "" +} + +func (x *ADPackage) GetCountIdleADPackageInstances() int64 { + if x != nil { + return x.CountIdleADPackageInstances + } + return 0 +} + +var File_models_model_ad_package_proto protoreflect.FileDescriptor + +var file_models_model_ad_package_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x02, 0x70, 0x62, 0x1a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0xb2, 0x03, 0x0a, 0x09, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, + 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, + 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, + 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, + 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, + 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a, 0x13, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, + 0x6e, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, + 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x2b, + 0x0a, 0x09, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x1e, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x09, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x73, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x40, 0x0a, 0x1b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, + 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x73, 0x18, 0x20, 0x20, 0x01, 0x28, 0x03, 0x52, 0x1b, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ad_package_proto_rawDescOnce sync.Once + file_models_model_ad_package_proto_rawDescData = file_models_model_ad_package_proto_rawDesc +) + +func file_models_model_ad_package_proto_rawDescGZIP() []byte { + file_models_model_ad_package_proto_rawDescOnce.Do(func() { + file_models_model_ad_package_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_proto_rawDescData) + }) + return file_models_model_ad_package_proto_rawDescData +} + +var file_models_model_ad_package_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ad_package_proto_goTypes = []interface{}{ + (*ADPackage)(nil), // 0: pb.ADPackage + (*ADNetwork)(nil), // 1: pb.ADNetwork +} +var file_models_model_ad_package_proto_depIdxs = []int32{ + 1, // 0: pb.ADPackage.adNetwork:type_name -> pb.ADNetwork + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_models_model_ad_package_proto_init() } +func file_models_model_ad_package_proto_init() { + if File_models_model_ad_package_proto != nil { + return + } + file_models_model_ad_network_proto_init() + if !protoimpl.UnsafeEnabled { + file_models_model_ad_package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ADPackage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ad_package_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ad_package_proto_goTypes, + DependencyIndexes: file_models_model_ad_package_proto_depIdxs, + MessageInfos: file_models_model_ad_package_proto_msgTypes, + }.Build() + File_models_model_ad_package_proto = out.File + file_models_model_ad_package_proto_rawDesc = nil + file_models_model_ad_package_proto_goTypes = nil + file_models_model_ad_package_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_ad_package_instance.pb.go b/pkg/rpc/pb/model_ad_package_instance.pb.go new file mode 100644 index 0000000..eefe8dc --- /dev/null +++ b/pkg/rpc/pb/model_ad_package_instance.pb.go @@ -0,0 +1,274 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ad_package_instance.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 高防产品实例 +type ADPackageInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` + AdPackageId int64 `protobuf:"varint,3,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + NodeClusterId int64 `protobuf:"varint,4,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"` + NodeIds []int64 `protobuf:"varint,5,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"` + IpAddresses []string `protobuf:"bytes,6,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"` + UserId int64 `protobuf:"varint,7,opt,name=userId,proto3" json:"userId,omitempty"` // 租用用户ID + UserDayTo string `protobuf:"bytes,8,opt,name=userDayTo,proto3" json:"userDayTo,omitempty"` // 租用日期 + UserInstanceId int64 `protobuf:"varint,9,opt,name=userInstanceId,proto3" json:"userInstanceId,omitempty"` // 当前绑定的用户实例ID + NodeCluster *NodeCluster `protobuf:"bytes,30,opt,name=nodeCluster,proto3" json:"nodeCluster,omitempty"` + AdPackage *ADPackage `protobuf:"bytes,31,opt,name=adPackage,proto3" json:"adPackage,omitempty"` + User *User `protobuf:"bytes,32,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *ADPackageInstance) Reset() { + *x = ADPackageInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ad_package_instance_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ADPackageInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ADPackageInstance) ProtoMessage() {} + +func (x *ADPackageInstance) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ad_package_instance_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ADPackageInstance.ProtoReflect.Descriptor instead. +func (*ADPackageInstance) Descriptor() ([]byte, []int) { + return file_models_model_ad_package_instance_proto_rawDescGZIP(), []int{0} +} + +func (x *ADPackageInstance) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ADPackageInstance) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *ADPackageInstance) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *ADPackageInstance) GetNodeClusterId() int64 { + if x != nil { + return x.NodeClusterId + } + return 0 +} + +func (x *ADPackageInstance) GetNodeIds() []int64 { + if x != nil { + return x.NodeIds + } + return nil +} + +func (x *ADPackageInstance) GetIpAddresses() []string { + if x != nil { + return x.IpAddresses + } + return nil +} + +func (x *ADPackageInstance) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *ADPackageInstance) GetUserDayTo() string { + if x != nil { + return x.UserDayTo + } + return "" +} + +func (x *ADPackageInstance) GetUserInstanceId() int64 { + if x != nil { + return x.UserInstanceId + } + return 0 +} + +func (x *ADPackageInstance) GetNodeCluster() *NodeCluster { + if x != nil { + return x.NodeCluster + } + return nil +} + +func (x *ADPackageInstance) GetAdPackage() *ADPackage { + if x != nil { + return x.AdPackage + } + return nil +} + +func (x *ADPackageInstance) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +var File_models_model_ad_package_instance_proto protoreflect.FileDescriptor + +var file_models_model_ad_package_instance_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x70, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, 0x03, 0x0a, 0x11, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, + 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, + 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, + 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x75, + 0x73, 0x65, 0x72, 0x44, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x75, 0x73, 0x65, 0x72, 0x44, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, + 0x64, 0x12, 0x31, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x09, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, + 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ad_package_instance_proto_rawDescOnce sync.Once + file_models_model_ad_package_instance_proto_rawDescData = file_models_model_ad_package_instance_proto_rawDesc +) + +func file_models_model_ad_package_instance_proto_rawDescGZIP() []byte { + file_models_model_ad_package_instance_proto_rawDescOnce.Do(func() { + file_models_model_ad_package_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_instance_proto_rawDescData) + }) + return file_models_model_ad_package_instance_proto_rawDescData +} + +var file_models_model_ad_package_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ad_package_instance_proto_goTypes = []interface{}{ + (*ADPackageInstance)(nil), // 0: pb.ADPackageInstance + (*NodeCluster)(nil), // 1: pb.NodeCluster + (*ADPackage)(nil), // 2: pb.ADPackage + (*User)(nil), // 3: pb.User +} +var file_models_model_ad_package_instance_proto_depIdxs = []int32{ + 1, // 0: pb.ADPackageInstance.nodeCluster:type_name -> pb.NodeCluster + 2, // 1: pb.ADPackageInstance.adPackage:type_name -> pb.ADPackage + 3, // 2: pb.ADPackageInstance.user:type_name -> pb.User + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_models_model_ad_package_instance_proto_init() } +func file_models_model_ad_package_instance_proto_init() { + if File_models_model_ad_package_instance_proto != nil { + return + } + file_models_model_node_cluster_proto_init() + file_models_model_ad_package_proto_init() + file_models_model_user_proto_init() + if !protoimpl.UnsafeEnabled { + file_models_model_ad_package_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ADPackageInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ad_package_instance_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ad_package_instance_proto_goTypes, + DependencyIndexes: file_models_model_ad_package_instance_proto_depIdxs, + MessageInfos: file_models_model_ad_package_instance_proto_msgTypes, + }.Build() + File_models_model_ad_package_instance_proto = out.File + file_models_model_ad_package_instance_proto_rawDesc = nil + file_models_model_ad_package_instance_proto_goTypes = nil + file_models_model_ad_package_instance_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_ad_package_period.pb.go b/pkg/rpc/pb/model_ad_package_period.pb.go new file mode 100644 index 0000000..970f203 --- /dev/null +++ b/pkg/rpc/pb/model_ad_package_period.pb.go @@ -0,0 +1,186 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ad_package_period.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 高防实例有效期 +type ADPackagePeriod struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` + Unit string `protobuf:"bytes,4,opt,name=unit,proto3" json:"unit,omitempty"` + Months int32 `protobuf:"varint,5,opt,name=months,proto3" json:"months,omitempty"` +} + +func (x *ADPackagePeriod) Reset() { + *x = ADPackagePeriod{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ad_package_period_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ADPackagePeriod) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ADPackagePeriod) ProtoMessage() {} + +func (x *ADPackagePeriod) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ad_package_period_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ADPackagePeriod.ProtoReflect.Descriptor instead. +func (*ADPackagePeriod) Descriptor() ([]byte, []int) { + return file_models_model_ad_package_period_proto_rawDescGZIP(), []int{0} +} + +func (x *ADPackagePeriod) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ADPackagePeriod) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *ADPackagePeriod) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *ADPackagePeriod) GetUnit() string { + if x != nil { + return x.Unit + } + return "" +} + +func (x *ADPackagePeriod) GetMonths() int32 { + if x != nil { + return x.Months + } + return 0 +} + +var File_models_model_ad_package_period_proto protoreflect.FileDescriptor + +var file_models_model_ad_package_period_proto_rawDesc = []byte{ + 0x0a, 0x24, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x77, 0x0a, 0x0f, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, + 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, + 0x6f, 0x6e, 0x74, 0x68, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6d, 0x6f, 0x6e, + 0x74, 0x68, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ad_package_period_proto_rawDescOnce sync.Once + file_models_model_ad_package_period_proto_rawDescData = file_models_model_ad_package_period_proto_rawDesc +) + +func file_models_model_ad_package_period_proto_rawDescGZIP() []byte { + file_models_model_ad_package_period_proto_rawDescOnce.Do(func() { + file_models_model_ad_package_period_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_period_proto_rawDescData) + }) + return file_models_model_ad_package_period_proto_rawDescData +} + +var file_models_model_ad_package_period_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ad_package_period_proto_goTypes = []interface{}{ + (*ADPackagePeriod)(nil), // 0: pb.ADPackagePeriod +} +var file_models_model_ad_package_period_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_ad_package_period_proto_init() } +func file_models_model_ad_package_period_proto_init() { + if File_models_model_ad_package_period_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_ad_package_period_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ADPackagePeriod); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ad_package_period_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ad_package_period_proto_goTypes, + DependencyIndexes: file_models_model_ad_package_period_proto_depIdxs, + MessageInfos: file_models_model_ad_package_period_proto_msgTypes, + }.Build() + File_models_model_ad_package_period_proto = out.File + file_models_model_ad_package_period_proto_rawDesc = nil + file_models_model_ad_package_period_proto_goTypes = nil + file_models_model_ad_package_period_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_ad_package_price.pb.go b/pkg/rpc/pb/model_ad_package_price.pb.go new file mode 100644 index 0000000..4f21d64 --- /dev/null +++ b/pkg/rpc/pb/model_ad_package_price.pb.go @@ -0,0 +1,170 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ad_package_price.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 高防产品价格定义 +type ADPackagePrice struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"` +} + +func (x *ADPackagePrice) Reset() { + *x = ADPackagePrice{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ad_package_price_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ADPackagePrice) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ADPackagePrice) ProtoMessage() {} + +func (x *ADPackagePrice) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ad_package_price_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ADPackagePrice.ProtoReflect.Descriptor instead. +func (*ADPackagePrice) Descriptor() ([]byte, []int) { + return file_models_model_ad_package_price_proto_rawDescGZIP(), []int{0} +} + +func (x *ADPackagePrice) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *ADPackagePrice) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *ADPackagePrice) GetPrice() float64 { + if x != nil { + return x.Price + } + return 0 +} + +var File_models_model_ad_package_price_proto protoreflect.FileDescriptor + +var file_models_model_ad_package_price_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x76, 0x0a, 0x0e, 0x41, 0x44, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, + 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, + 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_models_model_ad_package_price_proto_rawDescOnce sync.Once + file_models_model_ad_package_price_proto_rawDescData = file_models_model_ad_package_price_proto_rawDesc +) + +func file_models_model_ad_package_price_proto_rawDescGZIP() []byte { + file_models_model_ad_package_price_proto_rawDescOnce.Do(func() { + file_models_model_ad_package_price_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ad_package_price_proto_rawDescData) + }) + return file_models_model_ad_package_price_proto_rawDescData +} + +var file_models_model_ad_package_price_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ad_package_price_proto_goTypes = []interface{}{ + (*ADPackagePrice)(nil), // 0: pb.ADPackagePrice +} +var file_models_model_ad_package_price_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_ad_package_price_proto_init() } +func file_models_model_ad_package_price_proto_init() { + if File_models_model_ad_package_price_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_ad_package_price_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ADPackagePrice); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_ad_package_price_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ad_package_price_proto_goTypes, + DependencyIndexes: file_models_model_ad_package_price_proto_depIdxs, + MessageInfos: file_models_model_ad_package_price_proto_msgTypes, + }.Build() + File_models_model_ad_package_price_proto = out.File + file_models_model_ad_package_price_proto_rawDesc = nil + file_models_model_ad_package_price_proto_goTypes = nil + file_models_model_ad_package_price_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_user_ad_instance.pb.go b/pkg/rpc/pb/model_user_ad_instance.pb.go new file mode 100644 index 0000000..33e116d --- /dev/null +++ b/pkg/rpc/pb/model_user_ad_instance.pb.go @@ -0,0 +1,324 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_user_ad_instance.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 高防实例 +type UserADInstance struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` + AdPackageInstanceId int64 `protobuf:"varint,3,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,4,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + AdPackagePeriodCount int32 `protobuf:"varint,5,opt,name=adPackagePeriodCount,proto3" json:"adPackagePeriodCount,omitempty"` + AdPackagePeriodUnit string `protobuf:"bytes,6,opt,name=adPackagePeriodUnit,proto3" json:"adPackagePeriodUnit,omitempty"` + DayFrom string `protobuf:"bytes,7,opt,name=dayFrom,proto3" json:"dayFrom,omitempty"` // 开始日期,格式:YYYYMMDD + DayTo string `protobuf:"bytes,8,opt,name=dayTo,proto3" json:"dayTo,omitempty"` // 结束日期,格式:YYYYMMDD + CreatedAt int64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + MaxObjects int32 `protobuf:"varint,10,opt,name=maxObjects,proto3" json:"maxObjects,omitempty"` + ObjectCodes []string `protobuf:"bytes,11,rep,name=objectCodes,proto3" json:"objectCodes,omitempty"` + AdPackageInstance *ADPackageInstance `protobuf:"bytes,30,opt,name=adPackageInstance,proto3" json:"adPackageInstance,omitempty"` + User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"` + CanDelete bool `protobuf:"varint,32,opt,name=canDelete,proto3" json:"canDelete,omitempty"` + IsAvailable bool `protobuf:"varint,33,opt,name=isAvailable,proto3" json:"isAvailable,omitempty"` // 当前是否在生效中 + CountObjects int32 `protobuf:"varint,34,opt,name=countObjects,proto3" json:"countObjects,omitempty"` // 防护对象数量 + ObjectsJSON []byte `protobuf:"bytes,35,opt,name=objectsJSON,proto3" json:"objectsJSON,omitempty"` // 对象JSON +} + +func (x *UserADInstance) Reset() { + *x = UserADInstance{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_user_ad_instance_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserADInstance) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserADInstance) ProtoMessage() {} + +func (x *UserADInstance) ProtoReflect() protoreflect.Message { + mi := &file_models_model_user_ad_instance_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserADInstance.ProtoReflect.Descriptor instead. +func (*UserADInstance) Descriptor() ([]byte, []int) { + return file_models_model_user_ad_instance_proto_rawDescGZIP(), []int{0} +} + +func (x *UserADInstance) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *UserADInstance) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *UserADInstance) GetAdPackageInstanceId() int64 { + if x != nil { + return x.AdPackageInstanceId + } + return 0 +} + +func (x *UserADInstance) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *UserADInstance) GetAdPackagePeriodCount() int32 { + if x != nil { + return x.AdPackagePeriodCount + } + return 0 +} + +func (x *UserADInstance) GetAdPackagePeriodUnit() string { + if x != nil { + return x.AdPackagePeriodUnit + } + return "" +} + +func (x *UserADInstance) GetDayFrom() string { + if x != nil { + return x.DayFrom + } + return "" +} + +func (x *UserADInstance) GetDayTo() string { + if x != nil { + return x.DayTo + } + return "" +} + +func (x *UserADInstance) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *UserADInstance) GetMaxObjects() int32 { + if x != nil { + return x.MaxObjects + } + return 0 +} + +func (x *UserADInstance) GetObjectCodes() []string { + if x != nil { + return x.ObjectCodes + } + return nil +} + +func (x *UserADInstance) GetAdPackageInstance() *ADPackageInstance { + if x != nil { + return x.AdPackageInstance + } + return nil +} + +func (x *UserADInstance) GetUser() *User { + if x != nil { + return x.User + } + return nil +} + +func (x *UserADInstance) GetCanDelete() bool { + if x != nil { + return x.CanDelete + } + return false +} + +func (x *UserADInstance) GetIsAvailable() bool { + if x != nil { + return x.IsAvailable + } + return false +} + +func (x *UserADInstance) GetCountObjects() int32 { + if x != nil { + return x.CountObjects + } + return 0 +} + +func (x *UserADInstance) GetObjectsJSON() []byte { + if x != nil { + return x.ObjectsJSON + } + return nil +} + +var File_models_model_user_ad_instance_proto protoreflect.FileDescriptor + +var file_models_model_user_ad_instance_proto_rawDesc = []byte{ + 0x0a, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75, + 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x26, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, + 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x04, 0x0a, 0x0e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x14, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x14, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x64, + 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, + 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x78, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, + 0x61, 0x78, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, + 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, + 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x43, 0x0a, 0x11, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, + 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1c, + 0x0a, 0x09, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x63, 0x61, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x21, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0b, 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x22, + 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x22, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x4a, 0x53, 0x4f, + 0x4e, 0x18, 0x23, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x4a, 0x53, 0x4f, 0x4e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_user_ad_instance_proto_rawDescOnce sync.Once + file_models_model_user_ad_instance_proto_rawDescData = file_models_model_user_ad_instance_proto_rawDesc +) + +func file_models_model_user_ad_instance_proto_rawDescGZIP() []byte { + file_models_model_user_ad_instance_proto_rawDescOnce.Do(func() { + file_models_model_user_ad_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_user_ad_instance_proto_rawDescData) + }) + return file_models_model_user_ad_instance_proto_rawDescData +} + +var file_models_model_user_ad_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_user_ad_instance_proto_goTypes = []interface{}{ + (*UserADInstance)(nil), // 0: pb.UserADInstance + (*ADPackageInstance)(nil), // 1: pb.ADPackageInstance + (*User)(nil), // 2: pb.User +} +var file_models_model_user_ad_instance_proto_depIdxs = []int32{ + 1, // 0: pb.UserADInstance.adPackageInstance:type_name -> pb.ADPackageInstance + 2, // 1: pb.UserADInstance.user:type_name -> pb.User + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_models_model_user_ad_instance_proto_init() } +func file_models_model_user_ad_instance_proto_init() { + if File_models_model_user_ad_instance_proto != nil { + return + } + file_models_model_ad_package_instance_proto_init() + file_models_model_user_proto_init() + if !protoimpl.UnsafeEnabled { + file_models_model_user_ad_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserADInstance); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_user_ad_instance_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_user_ad_instance_proto_goTypes, + DependencyIndexes: file_models_model_user_ad_instance_proto_depIdxs, + MessageInfos: file_models_model_user_ad_instance_proto_msgTypes, + }.Build() + File_models_model_user_ad_instance_proto = out.File + file_models_model_user_ad_instance_proto_rawDesc = nil + file_models_model_user_ad_instance_proto_goTypes = nil + file_models_model_user_ad_instance_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/service_ad_network.pb.go b/pkg/rpc/pb/service_ad_network.pb.go new file mode 100644 index 0000000..057c242 --- /dev/null +++ b/pkg/rpc/pb/service_ad_network.pb.go @@ -0,0 +1,1076 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ad_network.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建线路 +type CreateADNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *CreateADNetworkRequest) Reset() { + *x = CreateADNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADNetworkRequest) ProtoMessage() {} + +func (x *CreateADNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADNetworkRequest.ProtoReflect.Descriptor instead. +func (*CreateADNetworkRequest) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateADNetworkRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateADNetworkRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +type CreateADNetworkResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` +} + +func (x *CreateADNetworkResponse) Reset() { + *x = CreateADNetworkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADNetworkResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADNetworkResponse) ProtoMessage() {} + +func (x *CreateADNetworkResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADNetworkResponse.ProtoReflect.Descriptor instead. +func (*CreateADNetworkResponse) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateADNetworkResponse) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +// 修改线路 +type UpdateADNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` +} + +func (x *UpdateADNetworkRequest) Reset() { + *x = UpdateADNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateADNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateADNetworkRequest) ProtoMessage() {} + +func (x *UpdateADNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateADNetworkRequest.ProtoReflect.Descriptor instead. +func (*UpdateADNetworkRequest) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateADNetworkRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *UpdateADNetworkRequest) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *UpdateADNetworkRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateADNetworkRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +// 查找单个线路 +type FindADNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` +} + +func (x *FindADNetworkRequest) Reset() { + *x = FindADNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADNetworkRequest) ProtoMessage() {} + +func (x *FindADNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADNetworkRequest.ProtoReflect.Descriptor instead. +func (*FindADNetworkRequest) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{3} +} + +func (x *FindADNetworkRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +type FindADNetworkResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetwork *ADNetwork `protobuf:"bytes,1,opt,name=adNetwork,proto3" json:"adNetwork,omitempty"` +} + +func (x *FindADNetworkResponse) Reset() { + *x = FindADNetworkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADNetworkResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADNetworkResponse) ProtoMessage() {} + +func (x *FindADNetworkResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADNetworkResponse.ProtoReflect.Descriptor instead. +func (*FindADNetworkResponse) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{4} +} + +func (x *FindADNetworkResponse) GetAdNetwork() *ADNetwork { + if x != nil { + return x.AdNetwork + } + return nil +} + +// 列出所有线路 +type FindAllADNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllADNetworkRequest) Reset() { + *x = FindAllADNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADNetworkRequest) ProtoMessage() {} + +func (x *FindAllADNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADNetworkRequest.ProtoReflect.Descriptor instead. +func (*FindAllADNetworkRequest) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{5} +} + +type FindAllADNetworkResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworks []*ADNetwork `protobuf:"bytes,1,rep,name=adNetworks,proto3" json:"adNetworks,omitempty"` +} + +func (x *FindAllADNetworkResponse) Reset() { + *x = FindAllADNetworkResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADNetworkResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADNetworkResponse) ProtoMessage() {} + +func (x *FindAllADNetworkResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADNetworkResponse.ProtoReflect.Descriptor instead. +func (*FindAllADNetworkResponse) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{6} +} + +func (x *FindAllADNetworkResponse) GetAdNetworks() []*ADNetwork { + if x != nil { + return x.AdNetworks + } + return nil +} + +// 列出所有可用的线路 +type FindAllAvailableADNetworksRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllAvailableADNetworksRequest) Reset() { + *x = FindAllAvailableADNetworksRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllAvailableADNetworksRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllAvailableADNetworksRequest) ProtoMessage() {} + +func (x *FindAllAvailableADNetworksRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllAvailableADNetworksRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableADNetworksRequest) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{7} +} + +type FindAllAvailableADNetworksResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworks []*ADNetwork `protobuf:"bytes,1,rep,name=adNetworks,proto3" json:"adNetworks,omitempty"` +} + +func (x *FindAllAvailableADNetworksResponse) Reset() { + *x = FindAllAvailableADNetworksResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllAvailableADNetworksResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllAvailableADNetworksResponse) ProtoMessage() {} + +func (x *FindAllAvailableADNetworksResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllAvailableADNetworksResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableADNetworksResponse) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{8} +} + +func (x *FindAllAvailableADNetworksResponse) GetAdNetworks() []*ADNetwork { + if x != nil { + return x.AdNetworks + } + return nil +} + +// 删除线路 +type DeleteADNetworkRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` +} + +func (x *DeleteADNetworkRequest) Reset() { + *x = DeleteADNetworkRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_network_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteADNetworkRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteADNetworkRequest) ProtoMessage() {} + +func (x *DeleteADNetworkRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_network_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteADNetworkRequest.ProtoReflect.Descriptor instead. +func (*DeleteADNetworkRequest) Descriptor() ([]byte, []int) { + return file_service_ad_network_proto_rawDescGZIP(), []int{9} +} + +func (x *DeleteADNetworkRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +var File_service_ad_network_proto protoreflect.FileDescriptor + +var file_service_ad_network_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x5f, 0x6e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1d, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, + 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3b, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x22, 0x84, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x38, 0x0a, 0x14, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x22, 0x44, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x2b, 0x0a, 0x09, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x09, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x22, 0x19, 0x0a, 0x17, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x49, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x0a, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x73, 0x22, 0x23, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x53, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, + 0x0a, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x52, 0x0a, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x22, 0x3a, 0x0a, 0x16, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x32, 0xdf, 0x03, 0x0a, 0x10, 0x41, 0x44, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, + 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1a, 0x2e, 0x70, + 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, + 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x64, + 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, + 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, + 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x25, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, + 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 0x1a, + 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_ad_network_proto_rawDescOnce sync.Once + file_service_ad_network_proto_rawDescData = file_service_ad_network_proto_rawDesc +) + +func file_service_ad_network_proto_rawDescGZIP() []byte { + file_service_ad_network_proto_rawDescOnce.Do(func() { + file_service_ad_network_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ad_network_proto_rawDescData) + }) + return file_service_ad_network_proto_rawDescData +} + +var file_service_ad_network_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_service_ad_network_proto_goTypes = []interface{}{ + (*CreateADNetworkRequest)(nil), // 0: pb.CreateADNetworkRequest + (*CreateADNetworkResponse)(nil), // 1: pb.CreateADNetworkResponse + (*UpdateADNetworkRequest)(nil), // 2: pb.UpdateADNetworkRequest + (*FindADNetworkRequest)(nil), // 3: pb.FindADNetworkRequest + (*FindADNetworkResponse)(nil), // 4: pb.FindADNetworkResponse + (*FindAllADNetworkRequest)(nil), // 5: pb.FindAllADNetworkRequest + (*FindAllADNetworkResponse)(nil), // 6: pb.FindAllADNetworkResponse + (*FindAllAvailableADNetworksRequest)(nil), // 7: pb.FindAllAvailableADNetworksRequest + (*FindAllAvailableADNetworksResponse)(nil), // 8: pb.FindAllAvailableADNetworksResponse + (*DeleteADNetworkRequest)(nil), // 9: pb.DeleteADNetworkRequest + (*ADNetwork)(nil), // 10: pb.ADNetwork + (*RPCSuccess)(nil), // 11: pb.RPCSuccess +} +var file_service_ad_network_proto_depIdxs = []int32{ + 10, // 0: pb.FindADNetworkResponse.adNetwork:type_name -> pb.ADNetwork + 10, // 1: pb.FindAllADNetworkResponse.adNetworks:type_name -> pb.ADNetwork + 10, // 2: pb.FindAllAvailableADNetworksResponse.adNetworks:type_name -> pb.ADNetwork + 0, // 3: pb.ADNetworkService.createADNetwork:input_type -> pb.CreateADNetworkRequest + 2, // 4: pb.ADNetworkService.updateADNetwork:input_type -> pb.UpdateADNetworkRequest + 3, // 5: pb.ADNetworkService.findADNetwork:input_type -> pb.FindADNetworkRequest + 5, // 6: pb.ADNetworkService.findAllADNetworks:input_type -> pb.FindAllADNetworkRequest + 7, // 7: pb.ADNetworkService.findAllAvailableADNetworks:input_type -> pb.FindAllAvailableADNetworksRequest + 9, // 8: pb.ADNetworkService.deleteADNetwork:input_type -> pb.DeleteADNetworkRequest + 1, // 9: pb.ADNetworkService.createADNetwork:output_type -> pb.CreateADNetworkResponse + 11, // 10: pb.ADNetworkService.updateADNetwork:output_type -> pb.RPCSuccess + 4, // 11: pb.ADNetworkService.findADNetwork:output_type -> pb.FindADNetworkResponse + 6, // 12: pb.ADNetworkService.findAllADNetworks:output_type -> pb.FindAllADNetworkResponse + 8, // 13: pb.ADNetworkService.findAllAvailableADNetworks:output_type -> pb.FindAllAvailableADNetworksResponse + 11, // 14: pb.ADNetworkService.deleteADNetwork:output_type -> pb.RPCSuccess + 9, // [9:15] is the sub-list for method output_type + 3, // [3:9] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_ad_network_proto_init() } +func file_service_ad_network_proto_init() { + if File_service_ad_network_proto != nil { + return + } + file_models_model_ad_network_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ad_network_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADNetworkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateADNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADNetworkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADNetworkResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllAvailableADNetworksRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllAvailableADNetworksResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_network_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteADNetworkRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ad_network_proto_rawDesc, + NumEnums: 0, + NumMessages: 10, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ad_network_proto_goTypes, + DependencyIndexes: file_service_ad_network_proto_depIdxs, + MessageInfos: file_service_ad_network_proto_msgTypes, + }.Build() + File_service_ad_network_proto = out.File + file_service_ad_network_proto_rawDesc = nil + file_service_ad_network_proto_goTypes = nil + file_service_ad_network_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ADNetworkServiceClient is the client API for ADNetworkService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ADNetworkServiceClient interface { + // 创建线路 + CreateADNetwork(ctx context.Context, in *CreateADNetworkRequest, opts ...grpc.CallOption) (*CreateADNetworkResponse, error) + // 修改线路 + UpdateADNetwork(ctx context.Context, in *UpdateADNetworkRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查找单个线路 + FindADNetwork(ctx context.Context, in *FindADNetworkRequest, opts ...grpc.CallOption) (*FindADNetworkResponse, error) + // 列出所有线路 + FindAllADNetworks(ctx context.Context, in *FindAllADNetworkRequest, opts ...grpc.CallOption) (*FindAllADNetworkResponse, error) + // 列出所有可用的线路 + FindAllAvailableADNetworks(ctx context.Context, in *FindAllAvailableADNetworksRequest, opts ...grpc.CallOption) (*FindAllAvailableADNetworksResponse, error) + // 删除线路 + DeleteADNetwork(ctx context.Context, in *DeleteADNetworkRequest, opts ...grpc.CallOption) (*RPCSuccess, error) +} + +type aDNetworkServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewADNetworkServiceClient(cc grpc.ClientConnInterface) ADNetworkServiceClient { + return &aDNetworkServiceClient{cc} +} + +func (c *aDNetworkServiceClient) CreateADNetwork(ctx context.Context, in *CreateADNetworkRequest, opts ...grpc.CallOption) (*CreateADNetworkResponse, error) { + out := new(CreateADNetworkResponse) + err := c.cc.Invoke(ctx, "/pb.ADNetworkService/createADNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDNetworkServiceClient) UpdateADNetwork(ctx context.Context, in *UpdateADNetworkRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADNetworkService/updateADNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDNetworkServiceClient) FindADNetwork(ctx context.Context, in *FindADNetworkRequest, opts ...grpc.CallOption) (*FindADNetworkResponse, error) { + out := new(FindADNetworkResponse) + err := c.cc.Invoke(ctx, "/pb.ADNetworkService/findADNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDNetworkServiceClient) FindAllADNetworks(ctx context.Context, in *FindAllADNetworkRequest, opts ...grpc.CallOption) (*FindAllADNetworkResponse, error) { + out := new(FindAllADNetworkResponse) + err := c.cc.Invoke(ctx, "/pb.ADNetworkService/findAllADNetworks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDNetworkServiceClient) FindAllAvailableADNetworks(ctx context.Context, in *FindAllAvailableADNetworksRequest, opts ...grpc.CallOption) (*FindAllAvailableADNetworksResponse, error) { + out := new(FindAllAvailableADNetworksResponse) + err := c.cc.Invoke(ctx, "/pb.ADNetworkService/findAllAvailableADNetworks", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDNetworkServiceClient) DeleteADNetwork(ctx context.Context, in *DeleteADNetworkRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADNetworkService/deleteADNetwork", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ADNetworkServiceServer is the server API for ADNetworkService service. +type ADNetworkServiceServer interface { + // 创建线路 + CreateADNetwork(context.Context, *CreateADNetworkRequest) (*CreateADNetworkResponse, error) + // 修改线路 + UpdateADNetwork(context.Context, *UpdateADNetworkRequest) (*RPCSuccess, error) + // 查找单个线路 + FindADNetwork(context.Context, *FindADNetworkRequest) (*FindADNetworkResponse, error) + // 列出所有线路 + FindAllADNetworks(context.Context, *FindAllADNetworkRequest) (*FindAllADNetworkResponse, error) + // 列出所有可用的线路 + FindAllAvailableADNetworks(context.Context, *FindAllAvailableADNetworksRequest) (*FindAllAvailableADNetworksResponse, error) + // 删除线路 + DeleteADNetwork(context.Context, *DeleteADNetworkRequest) (*RPCSuccess, error) +} + +// UnimplementedADNetworkServiceServer can be embedded to have forward compatible implementations. +type UnimplementedADNetworkServiceServer struct { +} + +func (*UnimplementedADNetworkServiceServer) CreateADNetwork(context.Context, *CreateADNetworkRequest) (*CreateADNetworkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateADNetwork not implemented") +} +func (*UnimplementedADNetworkServiceServer) UpdateADNetwork(context.Context, *UpdateADNetworkRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateADNetwork not implemented") +} +func (*UnimplementedADNetworkServiceServer) FindADNetwork(context.Context, *FindADNetworkRequest) (*FindADNetworkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindADNetwork not implemented") +} +func (*UnimplementedADNetworkServiceServer) FindAllADNetworks(context.Context, *FindAllADNetworkRequest) (*FindAllADNetworkResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllADNetworks not implemented") +} +func (*UnimplementedADNetworkServiceServer) FindAllAvailableADNetworks(context.Context, *FindAllAvailableADNetworksRequest) (*FindAllAvailableADNetworksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableADNetworks not implemented") +} +func (*UnimplementedADNetworkServiceServer) DeleteADNetwork(context.Context, *DeleteADNetworkRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteADNetwork not implemented") +} + +func RegisterADNetworkServiceServer(s *grpc.Server, srv ADNetworkServiceServer) { + s.RegisterService(&_ADNetworkService_serviceDesc, srv) +} + +func _ADNetworkService_CreateADNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateADNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADNetworkServiceServer).CreateADNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADNetworkService/CreateADNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADNetworkServiceServer).CreateADNetwork(ctx, req.(*CreateADNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADNetworkService_UpdateADNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateADNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADNetworkServiceServer).UpdateADNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADNetworkService/UpdateADNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADNetworkServiceServer).UpdateADNetwork(ctx, req.(*UpdateADNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADNetworkService_FindADNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindADNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADNetworkServiceServer).FindADNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADNetworkService/FindADNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADNetworkServiceServer).FindADNetwork(ctx, req.(*FindADNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADNetworkService_FindAllADNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllADNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADNetworkServiceServer).FindAllADNetworks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADNetworkService/FindAllADNetworks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADNetworkServiceServer).FindAllADNetworks(ctx, req.(*FindAllADNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADNetworkService_FindAllAvailableADNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableADNetworksRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADNetworkServiceServer).FindAllAvailableADNetworks(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADNetworkService/FindAllAvailableADNetworks", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADNetworkServiceServer).FindAllAvailableADNetworks(ctx, req.(*FindAllAvailableADNetworksRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADNetworkService_DeleteADNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteADNetworkRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADNetworkServiceServer).DeleteADNetwork(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADNetworkService/DeleteADNetwork", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADNetworkServiceServer).DeleteADNetwork(ctx, req.(*DeleteADNetworkRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ADNetworkService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ADNetworkService", + HandlerType: (*ADNetworkServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createADNetwork", + Handler: _ADNetworkService_CreateADNetwork_Handler, + }, + { + MethodName: "updateADNetwork", + Handler: _ADNetworkService_UpdateADNetwork_Handler, + }, + { + MethodName: "findADNetwork", + Handler: _ADNetworkService_FindADNetwork_Handler, + }, + { + MethodName: "findAllADNetworks", + Handler: _ADNetworkService_FindAllADNetworks_Handler, + }, + { + MethodName: "findAllAvailableADNetworks", + Handler: _ADNetworkService_FindAllAvailableADNetworks_Handler, + }, + { + MethodName: "deleteADNetwork", + Handler: _ADNetworkService_DeleteADNetwork_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ad_network.proto", +} diff --git a/pkg/rpc/pb/service_ad_package.pb.go b/pkg/rpc/pb/service_ad_package.pb.go new file mode 100644 index 0000000..5b4e5d5 --- /dev/null +++ b/pkg/rpc/pb/service_ad_package.pb.go @@ -0,0 +1,1385 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ad_package.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建高防产品 +type CreateADPackageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` + ProtectionBandwidthSize int32 `protobuf:"varint,2,opt,name=protectionBandwidthSize,proto3" json:"protectionBandwidthSize,omitempty"` + ProtectionBandwidthUnit string `protobuf:"bytes,3,opt,name=protectionBandwidthUnit,proto3" json:"protectionBandwidthUnit,omitempty"` + ServerBandwidthSize int32 `protobuf:"varint,4,opt,name=serverBandwidthSize,proto3" json:"serverBandwidthSize,omitempty"` + ServerBandwidthUnit string `protobuf:"bytes,5,opt,name=serverBandwidthUnit,proto3" json:"serverBandwidthUnit,omitempty"` +} + +func (x *CreateADPackageRequest) Reset() { + *x = CreateADPackageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADPackageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADPackageRequest) ProtoMessage() {} + +func (x *CreateADPackageRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADPackageRequest.ProtoReflect.Descriptor instead. +func (*CreateADPackageRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateADPackageRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *CreateADPackageRequest) GetProtectionBandwidthSize() int32 { + if x != nil { + return x.ProtectionBandwidthSize + } + return 0 +} + +func (x *CreateADPackageRequest) GetProtectionBandwidthUnit() string { + if x != nil { + return x.ProtectionBandwidthUnit + } + return "" +} + +func (x *CreateADPackageRequest) GetServerBandwidthSize() int32 { + if x != nil { + return x.ServerBandwidthSize + } + return 0 +} + +func (x *CreateADPackageRequest) GetServerBandwidthUnit() string { + if x != nil { + return x.ServerBandwidthUnit + } + return "" +} + +type CreateADPackageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *CreateADPackageResponse) Reset() { + *x = CreateADPackageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADPackageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADPackageResponse) ProtoMessage() {} + +func (x *CreateADPackageResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADPackageResponse.ProtoReflect.Descriptor instead. +func (*CreateADPackageResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateADPackageResponse) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +// 修改高防产品 +type UpdateADPackageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` + AdNetworkId int64 `protobuf:"varint,3,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` + ProtectionBandwidthSize int32 `protobuf:"varint,4,opt,name=protectionBandwidthSize,proto3" json:"protectionBandwidthSize,omitempty"` + ProtectionBandwidthUnit string `protobuf:"bytes,5,opt,name=protectionBandwidthUnit,proto3" json:"protectionBandwidthUnit,omitempty"` + ServerBandwidthSize int32 `protobuf:"varint,6,opt,name=serverBandwidthSize,proto3" json:"serverBandwidthSize,omitempty"` + ServerBandwidthUnit string `protobuf:"bytes,7,opt,name=serverBandwidthUnit,proto3" json:"serverBandwidthUnit,omitempty"` +} + +func (x *UpdateADPackageRequest) Reset() { + *x = UpdateADPackageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateADPackageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateADPackageRequest) ProtoMessage() {} + +func (x *UpdateADPackageRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateADPackageRequest.ProtoReflect.Descriptor instead. +func (*UpdateADPackageRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateADPackageRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *UpdateADPackageRequest) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *UpdateADPackageRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *UpdateADPackageRequest) GetProtectionBandwidthSize() int32 { + if x != nil { + return x.ProtectionBandwidthSize + } + return 0 +} + +func (x *UpdateADPackageRequest) GetProtectionBandwidthUnit() string { + if x != nil { + return x.ProtectionBandwidthUnit + } + return "" +} + +func (x *UpdateADPackageRequest) GetServerBandwidthSize() int32 { + if x != nil { + return x.ServerBandwidthSize + } + return 0 +} + +func (x *UpdateADPackageRequest) GetServerBandwidthUnit() string { + if x != nil { + return x.ServerBandwidthUnit + } + return "" +} + +// 查找单个高防产品 +type FindADPackageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *FindADPackageRequest) Reset() { + *x = FindADPackageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackageRequest) ProtoMessage() {} + +func (x *FindADPackageRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackageRequest.ProtoReflect.Descriptor instead. +func (*FindADPackageRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{3} +} + +func (x *FindADPackageRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +type FindADPackageResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackage *ADPackage `protobuf:"bytes,1,opt,name=adPackage,proto3" json:"adPackage,omitempty"` +} + +func (x *FindADPackageResponse) Reset() { + *x = FindADPackageResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackageResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackageResponse) ProtoMessage() {} + +func (x *FindADPackageResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackageResponse.ProtoReflect.Descriptor instead. +func (*FindADPackageResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{4} +} + +func (x *FindADPackageResponse) GetAdPackage() *ADPackage { + if x != nil { + return x.AdPackage + } + return nil +} + +// 查询高防产品数量 +type CountADPackagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` +} + +func (x *CountADPackagesRequest) Reset() { + *x = CountADPackagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountADPackagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountADPackagesRequest) ProtoMessage() {} + +func (x *CountADPackagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountADPackagesRequest.ProtoReflect.Descriptor instead. +func (*CountADPackagesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{5} +} + +func (x *CountADPackagesRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +// 查询可用的产品数量 +type CountAllIdleADPackages struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CountAllIdleADPackages) Reset() { + *x = CountAllIdleADPackages{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountAllIdleADPackages) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountAllIdleADPackages) ProtoMessage() {} + +func (x *CountAllIdleADPackages) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountAllIdleADPackages.ProtoReflect.Descriptor instead. +func (*CountAllIdleADPackages) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{6} +} + +// 列出单页高防产品 +type ListADPackagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` + Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *ListADPackagesRequest) Reset() { + *x = ListADPackagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListADPackagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListADPackagesRequest) ProtoMessage() {} + +func (x *ListADPackagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListADPackagesRequest.ProtoReflect.Descriptor instead. +func (*ListADPackagesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{7} +} + +func (x *ListADPackagesRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *ListADPackagesRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListADPackagesRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListADPackagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackages []*ADPackage `protobuf:"bytes,1,rep,name=adPackages,proto3" json:"adPackages,omitempty"` +} + +func (x *ListADPackagesResponse) Reset() { + *x = ListADPackagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListADPackagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListADPackagesResponse) ProtoMessage() {} + +func (x *ListADPackagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListADPackagesResponse.ProtoReflect.Descriptor instead. +func (*ListADPackagesResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{8} +} + +func (x *ListADPackagesResponse) GetAdPackages() []*ADPackage { + if x != nil { + return x.AdPackages + } + return nil +} + +// 列出所有可用的高防产品 +type FindAllIdleADPackagesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllIdleADPackagesRequest) Reset() { + *x = FindAllIdleADPackagesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllIdleADPackagesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllIdleADPackagesRequest) ProtoMessage() {} + +func (x *FindAllIdleADPackagesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllIdleADPackagesRequest.ProtoReflect.Descriptor instead. +func (*FindAllIdleADPackagesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{9} +} + +type FindAllIdleADPackagesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackages []*ADPackage `protobuf:"bytes,1,rep,name=adPackages,proto3" json:"adPackages,omitempty"` +} + +func (x *FindAllIdleADPackagesResponse) Reset() { + *x = FindAllIdleADPackagesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllIdleADPackagesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllIdleADPackagesResponse) ProtoMessage() {} + +func (x *FindAllIdleADPackagesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllIdleADPackagesResponse.ProtoReflect.Descriptor instead. +func (*FindAllIdleADPackagesResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{10} +} + +func (x *FindAllIdleADPackagesResponse) GetAdPackages() []*ADPackage { + if x != nil { + return x.AdPackages + } + return nil +} + +// 删除高防产品 +type DeleteADPackageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *DeleteADPackageRequest) Reset() { + *x = DeleteADPackageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteADPackageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteADPackageRequest) ProtoMessage() {} + +func (x *DeleteADPackageRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteADPackageRequest.ProtoReflect.Descriptor instead. +func (*DeleteADPackageRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_proto_rawDescGZIP(), []int{11} +} + +func (x *DeleteADPackageRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +var File_service_ad_package_proto protoreflect.FileDescriptor + +var file_service_ad_package_proto_rawDesc = []byte{ + 0x0a, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1d, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x02, 0x0a, 0x16, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, + 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, + 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, + 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, + 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, + 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x22, 0x3b, 0x0a, + 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0xc8, 0x02, 0x0a, 0x16, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x61, + 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x38, 0x0a, + 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, + 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x17, + 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, + 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x38, 0x0a, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, + 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x72, 0x6f, 0x74, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, + 0x74, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, + 0x69, 0x64, 0x74, 0x68, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x53, + 0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, + 0x64, 0x77, 0x69, 0x64, 0x74, 0x68, 0x55, 0x6e, 0x69, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x42, 0x61, 0x6e, 0x64, 0x77, 0x69, 0x64, 0x74, + 0x68, 0x55, 0x6e, 0x69, 0x74, 0x22, 0x38, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, + 0x44, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, + 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x09, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x22, 0x3a, 0x0a, 0x16, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, + 0x64, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, + 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x65, 0x0a, 0x15, 0x4c, + 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, + 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x22, 0x47, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, + 0x0a, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x1d, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, + 0x0a, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x22, 0x3a, 0x0a, 0x16, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x32, 0xda, 0x04, 0x0a, 0x10, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, + 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x64, 0x41, + 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, + 0x0f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, + 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x16, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x49, 0x64, + 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, + 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, + 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, + 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, + 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, 0x64, 0x6c, + 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x49, + 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, + 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_ad_package_proto_rawDescOnce sync.Once + file_service_ad_package_proto_rawDescData = file_service_ad_package_proto_rawDesc +) + +func file_service_ad_package_proto_rawDescGZIP() []byte { + file_service_ad_package_proto_rawDescOnce.Do(func() { + file_service_ad_package_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ad_package_proto_rawDescData) + }) + return file_service_ad_package_proto_rawDescData +} + +var file_service_ad_package_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_service_ad_package_proto_goTypes = []interface{}{ + (*CreateADPackageRequest)(nil), // 0: pb.CreateADPackageRequest + (*CreateADPackageResponse)(nil), // 1: pb.CreateADPackageResponse + (*UpdateADPackageRequest)(nil), // 2: pb.UpdateADPackageRequest + (*FindADPackageRequest)(nil), // 3: pb.FindADPackageRequest + (*FindADPackageResponse)(nil), // 4: pb.FindADPackageResponse + (*CountADPackagesRequest)(nil), // 5: pb.CountADPackagesRequest + (*CountAllIdleADPackages)(nil), // 6: pb.CountAllIdleADPackages + (*ListADPackagesRequest)(nil), // 7: pb.ListADPackagesRequest + (*ListADPackagesResponse)(nil), // 8: pb.ListADPackagesResponse + (*FindAllIdleADPackagesRequest)(nil), // 9: pb.FindAllIdleADPackagesRequest + (*FindAllIdleADPackagesResponse)(nil), // 10: pb.FindAllIdleADPackagesResponse + (*DeleteADPackageRequest)(nil), // 11: pb.DeleteADPackageRequest + (*ADPackage)(nil), // 12: pb.ADPackage + (*RPCSuccess)(nil), // 13: pb.RPCSuccess + (*RPCCountResponse)(nil), // 14: pb.RPCCountResponse +} +var file_service_ad_package_proto_depIdxs = []int32{ + 12, // 0: pb.FindADPackageResponse.adPackage:type_name -> pb.ADPackage + 12, // 1: pb.ListADPackagesResponse.adPackages:type_name -> pb.ADPackage + 12, // 2: pb.FindAllIdleADPackagesResponse.adPackages:type_name -> pb.ADPackage + 0, // 3: pb.ADPackageService.createADPackage:input_type -> pb.CreateADPackageRequest + 2, // 4: pb.ADPackageService.updateADPackage:input_type -> pb.UpdateADPackageRequest + 3, // 5: pb.ADPackageService.findADPackage:input_type -> pb.FindADPackageRequest + 5, // 6: pb.ADPackageService.countADPackages:input_type -> pb.CountADPackagesRequest + 6, // 7: pb.ADPackageService.countAllIdleADPackages:input_type -> pb.CountAllIdleADPackages + 7, // 8: pb.ADPackageService.listADPackages:input_type -> pb.ListADPackagesRequest + 9, // 9: pb.ADPackageService.findAllIdleADPackages:input_type -> pb.FindAllIdleADPackagesRequest + 11, // 10: pb.ADPackageService.deleteADPackage:input_type -> pb.DeleteADPackageRequest + 1, // 11: pb.ADPackageService.createADPackage:output_type -> pb.CreateADPackageResponse + 13, // 12: pb.ADPackageService.updateADPackage:output_type -> pb.RPCSuccess + 4, // 13: pb.ADPackageService.findADPackage:output_type -> pb.FindADPackageResponse + 14, // 14: pb.ADPackageService.countADPackages:output_type -> pb.RPCCountResponse + 14, // 15: pb.ADPackageService.countAllIdleADPackages:output_type -> pb.RPCCountResponse + 8, // 16: pb.ADPackageService.listADPackages:output_type -> pb.ListADPackagesResponse + 10, // 17: pb.ADPackageService.findAllIdleADPackages:output_type -> pb.FindAllIdleADPackagesResponse + 13, // 18: pb.ADPackageService.deleteADPackage:output_type -> pb.RPCSuccess + 11, // [11:19] is the sub-list for method output_type + 3, // [3:11] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_ad_package_proto_init() } +func file_service_ad_package_proto_init() { + if File_service_ad_package_proto != nil { + return + } + file_models_model_ad_package_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ad_package_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADPackageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADPackageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateADPackageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackageResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountADPackagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountAllIdleADPackages); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListADPackagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListADPackagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllIdleADPackagesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllIdleADPackagesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteADPackageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ad_package_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ad_package_proto_goTypes, + DependencyIndexes: file_service_ad_package_proto_depIdxs, + MessageInfos: file_service_ad_package_proto_msgTypes, + }.Build() + File_service_ad_package_proto = out.File + file_service_ad_package_proto_rawDesc = nil + file_service_ad_package_proto_goTypes = nil + file_service_ad_package_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ADPackageServiceClient is the client API for ADPackageService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ADPackageServiceClient interface { + // 创建高防产品 + CreateADPackage(ctx context.Context, in *CreateADPackageRequest, opts ...grpc.CallOption) (*CreateADPackageResponse, error) + // 修改高防产品 + UpdateADPackage(ctx context.Context, in *UpdateADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查找单个高防产品 + FindADPackage(ctx context.Context, in *FindADPackageRequest, opts ...grpc.CallOption) (*FindADPackageResponse, error) + // 查询高防产品数量 + CountADPackages(ctx context.Context, in *CountADPackagesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 查询可用的产品数量 + CountAllIdleADPackages(ctx context.Context, in *CountAllIdleADPackages, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 列出单页高防产品 + ListADPackages(ctx context.Context, in *ListADPackagesRequest, opts ...grpc.CallOption) (*ListADPackagesResponse, error) + // 列出所有可用的高防产品 + FindAllIdleADPackages(ctx context.Context, in *FindAllIdleADPackagesRequest, opts ...grpc.CallOption) (*FindAllIdleADPackagesResponse, error) + // 删除高防产品 + DeleteADPackage(ctx context.Context, in *DeleteADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error) +} + +type aDPackageServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewADPackageServiceClient(cc grpc.ClientConnInterface) ADPackageServiceClient { + return &aDPackageServiceClient{cc} +} + +func (c *aDPackageServiceClient) CreateADPackage(ctx context.Context, in *CreateADPackageRequest, opts ...grpc.CallOption) (*CreateADPackageResponse, error) { + out := new(CreateADPackageResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/createADPackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) UpdateADPackage(ctx context.Context, in *UpdateADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/updateADPackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) FindADPackage(ctx context.Context, in *FindADPackageRequest, opts ...grpc.CallOption) (*FindADPackageResponse, error) { + out := new(FindADPackageResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/findADPackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) CountADPackages(ctx context.Context, in *CountADPackagesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/countADPackages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) CountAllIdleADPackages(ctx context.Context, in *CountAllIdleADPackages, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/countAllIdleADPackages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) ListADPackages(ctx context.Context, in *ListADPackagesRequest, opts ...grpc.CallOption) (*ListADPackagesResponse, error) { + out := new(ListADPackagesResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/listADPackages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) FindAllIdleADPackages(ctx context.Context, in *FindAllIdleADPackagesRequest, opts ...grpc.CallOption) (*FindAllIdleADPackagesResponse, error) { + out := new(FindAllIdleADPackagesResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/findAllIdleADPackages", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageServiceClient) DeleteADPackage(ctx context.Context, in *DeleteADPackageRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackageService/deleteADPackage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ADPackageServiceServer is the server API for ADPackageService service. +type ADPackageServiceServer interface { + // 创建高防产品 + CreateADPackage(context.Context, *CreateADPackageRequest) (*CreateADPackageResponse, error) + // 修改高防产品 + UpdateADPackage(context.Context, *UpdateADPackageRequest) (*RPCSuccess, error) + // 查找单个高防产品 + FindADPackage(context.Context, *FindADPackageRequest) (*FindADPackageResponse, error) + // 查询高防产品数量 + CountADPackages(context.Context, *CountADPackagesRequest) (*RPCCountResponse, error) + // 查询可用的产品数量 + CountAllIdleADPackages(context.Context, *CountAllIdleADPackages) (*RPCCountResponse, error) + // 列出单页高防产品 + ListADPackages(context.Context, *ListADPackagesRequest) (*ListADPackagesResponse, error) + // 列出所有可用的高防产品 + FindAllIdleADPackages(context.Context, *FindAllIdleADPackagesRequest) (*FindAllIdleADPackagesResponse, error) + // 删除高防产品 + DeleteADPackage(context.Context, *DeleteADPackageRequest) (*RPCSuccess, error) +} + +// UnimplementedADPackageServiceServer can be embedded to have forward compatible implementations. +type UnimplementedADPackageServiceServer struct { +} + +func (*UnimplementedADPackageServiceServer) CreateADPackage(context.Context, *CreateADPackageRequest) (*CreateADPackageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateADPackage not implemented") +} +func (*UnimplementedADPackageServiceServer) UpdateADPackage(context.Context, *UpdateADPackageRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateADPackage not implemented") +} +func (*UnimplementedADPackageServiceServer) FindADPackage(context.Context, *FindADPackageRequest) (*FindADPackageResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindADPackage not implemented") +} +func (*UnimplementedADPackageServiceServer) CountADPackages(context.Context, *CountADPackagesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountADPackages not implemented") +} +func (*UnimplementedADPackageServiceServer) CountAllIdleADPackages(context.Context, *CountAllIdleADPackages) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllIdleADPackages not implemented") +} +func (*UnimplementedADPackageServiceServer) ListADPackages(context.Context, *ListADPackagesRequest) (*ListADPackagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListADPackages not implemented") +} +func (*UnimplementedADPackageServiceServer) FindAllIdleADPackages(context.Context, *FindAllIdleADPackagesRequest) (*FindAllIdleADPackagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllIdleADPackages not implemented") +} +func (*UnimplementedADPackageServiceServer) DeleteADPackage(context.Context, *DeleteADPackageRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteADPackage not implemented") +} + +func RegisterADPackageServiceServer(s *grpc.Server, srv ADPackageServiceServer) { + s.RegisterService(&_ADPackageService_serviceDesc, srv) +} + +func _ADPackageService_CreateADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateADPackageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).CreateADPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/CreateADPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).CreateADPackage(ctx, req.(*CreateADPackageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_UpdateADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateADPackageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).UpdateADPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/UpdateADPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).UpdateADPackage(ctx, req.(*UpdateADPackageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_FindADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindADPackageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).FindADPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/FindADPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).FindADPackage(ctx, req.(*FindADPackageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_CountADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountADPackagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).CountADPackages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/CountADPackages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).CountADPackages(ctx, req.(*CountADPackagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_CountAllIdleADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllIdleADPackages) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).CountAllIdleADPackages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/CountAllIdleADPackages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).CountAllIdleADPackages(ctx, req.(*CountAllIdleADPackages)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_ListADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListADPackagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).ListADPackages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/ListADPackages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).ListADPackages(ctx, req.(*ListADPackagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_FindAllIdleADPackages_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllIdleADPackagesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).FindAllIdleADPackages(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/FindAllIdleADPackages", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).FindAllIdleADPackages(ctx, req.(*FindAllIdleADPackagesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageService_DeleteADPackage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteADPackageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageServiceServer).DeleteADPackage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageService/DeleteADPackage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageServiceServer).DeleteADPackage(ctx, req.(*DeleteADPackageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ADPackageService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ADPackageService", + HandlerType: (*ADPackageServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createADPackage", + Handler: _ADPackageService_CreateADPackage_Handler, + }, + { + MethodName: "updateADPackage", + Handler: _ADPackageService_UpdateADPackage_Handler, + }, + { + MethodName: "findADPackage", + Handler: _ADPackageService_FindADPackage_Handler, + }, + { + MethodName: "countADPackages", + Handler: _ADPackageService_CountADPackages_Handler, + }, + { + MethodName: "countAllIdleADPackages", + Handler: _ADPackageService_CountAllIdleADPackages_Handler, + }, + { + MethodName: "listADPackages", + Handler: _ADPackageService_ListADPackages_Handler, + }, + { + MethodName: "findAllIdleADPackages", + Handler: _ADPackageService_FindAllIdleADPackages_Handler, + }, + { + MethodName: "deleteADPackage", + Handler: _ADPackageService_DeleteADPackage_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ad_package.proto", +} diff --git a/pkg/rpc/pb/service_ad_package_instance.pb.go b/pkg/rpc/pb/service_ad_package_instance.pb.go new file mode 100644 index 0000000..c39f887 --- /dev/null +++ b/pkg/rpc/pb/service_ad_package_instance.pb.go @@ -0,0 +1,1449 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ad_package_instance.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建实例 +type CreateADPackageInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + NodeClusterId int64 `protobuf:"varint,2,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"` + NodeIds []int64 `protobuf:"varint,3,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"` + IpAddresses []string `protobuf:"bytes,4,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"` +} + +func (x *CreateADPackageInstanceRequest) Reset() { + *x = CreateADPackageInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADPackageInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADPackageInstanceRequest) ProtoMessage() {} + +func (x *CreateADPackageInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADPackageInstanceRequest.ProtoReflect.Descriptor instead. +func (*CreateADPackageInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateADPackageInstanceRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *CreateADPackageInstanceRequest) GetNodeClusterId() int64 { + if x != nil { + return x.NodeClusterId + } + return 0 +} + +func (x *CreateADPackageInstanceRequest) GetNodeIds() []int64 { + if x != nil { + return x.NodeIds + } + return nil +} + +func (x *CreateADPackageInstanceRequest) GetIpAddresses() []string { + if x != nil { + return x.IpAddresses + } + return nil +} + +type CreateADPackageInstanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"` +} + +func (x *CreateADPackageInstanceResponse) Reset() { + *x = CreateADPackageInstanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADPackageInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADPackageInstanceResponse) ProtoMessage() {} + +func (x *CreateADPackageInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADPackageInstanceResponse.ProtoReflect.Descriptor instead. +func (*CreateADPackageInstanceResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateADPackageInstanceResponse) GetAdPackageInstanceId() int64 { + if x != nil { + return x.AdPackageInstanceId + } + return 0 +} + +// 修改实例 +type UpdateADPackageInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"` + NodeClusterId int64 `protobuf:"varint,2,opt,name=nodeClusterId,proto3" json:"nodeClusterId,omitempty"` + NodeIds []int64 `protobuf:"varint,3,rep,packed,name=nodeIds,proto3" json:"nodeIds,omitempty"` + IpAddresses []string `protobuf:"bytes,4,rep,name=ipAddresses,proto3" json:"ipAddresses,omitempty"` + IsOn bool `protobuf:"varint,5,opt,name=isOn,proto3" json:"isOn,omitempty"` +} + +func (x *UpdateADPackageInstanceRequest) Reset() { + *x = UpdateADPackageInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateADPackageInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateADPackageInstanceRequest) ProtoMessage() {} + +func (x *UpdateADPackageInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateADPackageInstanceRequest.ProtoReflect.Descriptor instead. +func (*UpdateADPackageInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateADPackageInstanceRequest) GetAdPackageInstanceId() int64 { + if x != nil { + return x.AdPackageInstanceId + } + return 0 +} + +func (x *UpdateADPackageInstanceRequest) GetNodeClusterId() int64 { + if x != nil { + return x.NodeClusterId + } + return 0 +} + +func (x *UpdateADPackageInstanceRequest) GetNodeIds() []int64 { + if x != nil { + return x.NodeIds + } + return nil +} + +func (x *UpdateADPackageInstanceRequest) GetIpAddresses() []string { + if x != nil { + return x.IpAddresses + } + return nil +} + +func (x *UpdateADPackageInstanceRequest) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +// 查找单个实例 +type FindADPackageInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"` +} + +func (x *FindADPackageInstanceRequest) Reset() { + *x = FindADPackageInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackageInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackageInstanceRequest) ProtoMessage() {} + +func (x *FindADPackageInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackageInstanceRequest.ProtoReflect.Descriptor instead. +func (*FindADPackageInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{3} +} + +func (x *FindADPackageInstanceRequest) GetAdPackageInstanceId() int64 { + if x != nil { + return x.AdPackageInstanceId + } + return 0 +} + +type FindADPackageInstanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstance *ADPackageInstance `protobuf:"bytes,1,opt,name=adPackageInstance,proto3" json:"adPackageInstance,omitempty"` +} + +func (x *FindADPackageInstanceResponse) Reset() { + *x = FindADPackageInstanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackageInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackageInstanceResponse) ProtoMessage() {} + +func (x *FindADPackageInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackageInstanceResponse.ProtoReflect.Descriptor instead. +func (*FindADPackageInstanceResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{4} +} + +func (x *FindADPackageInstanceResponse) GetAdPackageInstance() *ADPackageInstance { + if x != nil { + return x.AdPackageInstance + } + return nil +} + +// 列出单个高防产品所有实例 +type FindAllADPackageInstancesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *FindAllADPackageInstancesRequest) Reset() { + *x = FindAllADPackageInstancesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADPackageInstancesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADPackageInstancesRequest) ProtoMessage() {} + +func (x *FindAllADPackageInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADPackageInstancesRequest.ProtoReflect.Descriptor instead. +func (*FindAllADPackageInstancesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllADPackageInstancesRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +type FindAllADPackageInstancesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstances []*ADPackageInstance `protobuf:"bytes,1,rep,name=adPackageInstances,proto3" json:"adPackageInstances,omitempty"` +} + +func (x *FindAllADPackageInstancesResponse) Reset() { + *x = FindAllADPackageInstancesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADPackageInstancesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADPackageInstancesResponse) ProtoMessage() {} + +func (x *FindAllADPackageInstancesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADPackageInstancesResponse.ProtoReflect.Descriptor instead. +func (*FindAllADPackageInstancesResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{6} +} + +func (x *FindAllADPackageInstancesResponse) GetAdPackageInstances() []*ADPackageInstance { + if x != nil { + return x.AdPackageInstances + } + return nil +} + +// 删除实例 +type DeleteADPackageInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstanceId int64 `protobuf:"varint,1,opt,name=adPackageInstanceId,proto3" json:"adPackageInstanceId,omitempty"` +} + +func (x *DeleteADPackageInstanceRequest) Reset() { + *x = DeleteADPackageInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteADPackageInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteADPackageInstanceRequest) ProtoMessage() {} + +func (x *DeleteADPackageInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteADPackageInstanceRequest.ProtoReflect.Descriptor instead. +func (*DeleteADPackageInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{7} +} + +func (x *DeleteADPackageInstanceRequest) GetAdPackageInstanceId() int64 { + if x != nil { + return x.AdPackageInstanceId + } + return 0 +} + +// 计算可购的实例数量 +type CountIdleADPackageInstancesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *CountIdleADPackageInstancesRequest) Reset() { + *x = CountIdleADPackageInstancesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountIdleADPackageInstancesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountIdleADPackageInstancesRequest) ProtoMessage() {} + +func (x *CountIdleADPackageInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountIdleADPackageInstancesRequest.ProtoReflect.Descriptor instead. +func (*CountIdleADPackageInstancesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{8} +} + +func (x *CountIdleADPackageInstancesRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +// 计算实例数量 +type CountADPackageInstancesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 可选,线路 + AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` // 可选,如果不填则表示获取所有实例数量 + UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // 可选,用户ID + Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // 可选,高防IP +} + +func (x *CountADPackageInstancesRequest) Reset() { + *x = CountADPackageInstancesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountADPackageInstancesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountADPackageInstancesRequest) ProtoMessage() {} + +func (x *CountADPackageInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountADPackageInstancesRequest.ProtoReflect.Descriptor instead. +func (*CountADPackageInstancesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{9} +} + +func (x *CountADPackageInstancesRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *CountADPackageInstancesRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *CountADPackageInstancesRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CountADPackageInstancesRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +// 列出单页实例 +type ListADPackageInstancesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 可选,线路 + AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` // 可选,如果不填则表示获取所有实例数量 + UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` // 可选,用户ID + Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"` // 可选,高防IP + Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` + Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *ListADPackageInstancesRequest) Reset() { + *x = ListADPackageInstancesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListADPackageInstancesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListADPackageInstancesRequest) ProtoMessage() {} + +func (x *ListADPackageInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListADPackageInstancesRequest.ProtoReflect.Descriptor instead. +func (*ListADPackageInstancesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{10} +} + +func (x *ListADPackageInstancesRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *ListADPackageInstancesRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *ListADPackageInstancesRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *ListADPackageInstancesRequest) GetIp() string { + if x != nil { + return x.Ip + } + return "" +} + +func (x *ListADPackageInstancesRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListADPackageInstancesRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListADPackageInstancesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageInstances []*ADPackageInstance `protobuf:"bytes,1,rep,name=adPackageInstances,proto3" json:"adPackageInstances,omitempty"` +} + +func (x *ListADPackageInstancesResponse) Reset() { + *x = ListADPackageInstancesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_instance_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListADPackageInstancesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListADPackageInstancesResponse) ProtoMessage() {} + +func (x *ListADPackageInstancesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_instance_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListADPackageInstancesResponse.ProtoReflect.Descriptor instead. +func (*ListADPackageInstancesResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_instance_proto_rawDescGZIP(), []int{11} +} + +func (x *ListADPackageInstancesResponse) GetAdPackageInstances() []*ADPackageInstance { + if x != nil { + return x.AdPackageInstances + } + return nil +} + +var File_service_ad_package_instance_proto protoreflect.FileDescriptor + +var file_service_ad_package_instance_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x26, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa4, 0x01, 0x0a, 0x1e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, + 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, + 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, + 0x73, 0x22, 0x53, 0x0a, 0x1f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0xc8, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x6e, + 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x03, 0x52, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x69, + 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0b, 0x69, 0x70, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, + 0x6e, 0x22, 0x50, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x49, 0x64, 0x22, 0x64, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x44, 0x0a, 0x20, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, + 0x6a, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x12, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x52, 0x0a, 0x1e, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x30, 0x0a, + 0x13, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x13, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, + 0x46, 0x0a, 0x22, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x1e, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, + 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0xb7, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x41, + 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, + 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x22, 0x67, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x45, 0x0a, 0x12, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x12, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x32, 0xf7, 0x05, 0x0a, 0x18, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x17, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, + 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, + 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4d, 0x0a, 0x17, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x22, 0x2e, 0x70, + 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x5b, 0x0a, 0x1b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, + 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x6c, 0x65, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, + 0x17, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, + 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_service_ad_package_instance_proto_rawDescOnce sync.Once + file_service_ad_package_instance_proto_rawDescData = file_service_ad_package_instance_proto_rawDesc +) + +func file_service_ad_package_instance_proto_rawDescGZIP() []byte { + file_service_ad_package_instance_proto_rawDescOnce.Do(func() { + file_service_ad_package_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ad_package_instance_proto_rawDescData) + }) + return file_service_ad_package_instance_proto_rawDescData +} + +var file_service_ad_package_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_service_ad_package_instance_proto_goTypes = []interface{}{ + (*CreateADPackageInstanceRequest)(nil), // 0: pb.CreateADPackageInstanceRequest + (*CreateADPackageInstanceResponse)(nil), // 1: pb.CreateADPackageInstanceResponse + (*UpdateADPackageInstanceRequest)(nil), // 2: pb.UpdateADPackageInstanceRequest + (*FindADPackageInstanceRequest)(nil), // 3: pb.FindADPackageInstanceRequest + (*FindADPackageInstanceResponse)(nil), // 4: pb.FindADPackageInstanceResponse + (*FindAllADPackageInstancesRequest)(nil), // 5: pb.FindAllADPackageInstancesRequest + (*FindAllADPackageInstancesResponse)(nil), // 6: pb.FindAllADPackageInstancesResponse + (*DeleteADPackageInstanceRequest)(nil), // 7: pb.DeleteADPackageInstanceRequest + (*CountIdleADPackageInstancesRequest)(nil), // 8: pb.CountIdleADPackageInstancesRequest + (*CountADPackageInstancesRequest)(nil), // 9: pb.CountADPackageInstancesRequest + (*ListADPackageInstancesRequest)(nil), // 10: pb.ListADPackageInstancesRequest + (*ListADPackageInstancesResponse)(nil), // 11: pb.ListADPackageInstancesResponse + (*ADPackageInstance)(nil), // 12: pb.ADPackageInstance + (*RPCSuccess)(nil), // 13: pb.RPCSuccess + (*RPCCountResponse)(nil), // 14: pb.RPCCountResponse +} +var file_service_ad_package_instance_proto_depIdxs = []int32{ + 12, // 0: pb.FindADPackageInstanceResponse.adPackageInstance:type_name -> pb.ADPackageInstance + 12, // 1: pb.FindAllADPackageInstancesResponse.adPackageInstances:type_name -> pb.ADPackageInstance + 12, // 2: pb.ListADPackageInstancesResponse.adPackageInstances:type_name -> pb.ADPackageInstance + 0, // 3: pb.ADPackageInstanceService.createADPackageInstance:input_type -> pb.CreateADPackageInstanceRequest + 2, // 4: pb.ADPackageInstanceService.updateADPackageInstance:input_type -> pb.UpdateADPackageInstanceRequest + 3, // 5: pb.ADPackageInstanceService.findADPackageInstance:input_type -> pb.FindADPackageInstanceRequest + 5, // 6: pb.ADPackageInstanceService.findAllADPackageInstances:input_type -> pb.FindAllADPackageInstancesRequest + 7, // 7: pb.ADPackageInstanceService.deleteADPackageInstance:input_type -> pb.DeleteADPackageInstanceRequest + 8, // 8: pb.ADPackageInstanceService.countIdleADPackageInstances:input_type -> pb.CountIdleADPackageInstancesRequest + 9, // 9: pb.ADPackageInstanceService.countADPackageInstances:input_type -> pb.CountADPackageInstancesRequest + 10, // 10: pb.ADPackageInstanceService.listADPackageInstances:input_type -> pb.ListADPackageInstancesRequest + 1, // 11: pb.ADPackageInstanceService.createADPackageInstance:output_type -> pb.CreateADPackageInstanceResponse + 13, // 12: pb.ADPackageInstanceService.updateADPackageInstance:output_type -> pb.RPCSuccess + 4, // 13: pb.ADPackageInstanceService.findADPackageInstance:output_type -> pb.FindADPackageInstanceResponse + 6, // 14: pb.ADPackageInstanceService.findAllADPackageInstances:output_type -> pb.FindAllADPackageInstancesResponse + 13, // 15: pb.ADPackageInstanceService.deleteADPackageInstance:output_type -> pb.RPCSuccess + 14, // 16: pb.ADPackageInstanceService.countIdleADPackageInstances:output_type -> pb.RPCCountResponse + 14, // 17: pb.ADPackageInstanceService.countADPackageInstances:output_type -> pb.RPCCountResponse + 11, // 18: pb.ADPackageInstanceService.listADPackageInstances:output_type -> pb.ListADPackageInstancesResponse + 11, // [11:19] is the sub-list for method output_type + 3, // [3:11] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_ad_package_instance_proto_init() } +func file_service_ad_package_instance_proto_init() { + if File_service_ad_package_instance_proto != nil { + return + } + file_models_model_ad_package_instance_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ad_package_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADPackageInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADPackageInstanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateADPackageInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackageInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackageInstanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADPackageInstancesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADPackageInstancesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteADPackageInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountIdleADPackageInstancesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountADPackageInstancesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListADPackageInstancesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_instance_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListADPackageInstancesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ad_package_instance_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ad_package_instance_proto_goTypes, + DependencyIndexes: file_service_ad_package_instance_proto_depIdxs, + MessageInfos: file_service_ad_package_instance_proto_msgTypes, + }.Build() + File_service_ad_package_instance_proto = out.File + file_service_ad_package_instance_proto_rawDesc = nil + file_service_ad_package_instance_proto_goTypes = nil + file_service_ad_package_instance_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ADPackageInstanceServiceClient is the client API for ADPackageInstanceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ADPackageInstanceServiceClient interface { + // 创建实例 + CreateADPackageInstance(ctx context.Context, in *CreateADPackageInstanceRequest, opts ...grpc.CallOption) (*CreateADPackageInstanceResponse, error) + // 修改实例 + UpdateADPackageInstance(ctx context.Context, in *UpdateADPackageInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查找单个实例 + FindADPackageInstance(ctx context.Context, in *FindADPackageInstanceRequest, opts ...grpc.CallOption) (*FindADPackageInstanceResponse, error) + // 列出单个高防产品所有实例 + FindAllADPackageInstances(ctx context.Context, in *FindAllADPackageInstancesRequest, opts ...grpc.CallOption) (*FindAllADPackageInstancesResponse, error) + // 删除实例 + DeleteADPackageInstance(ctx context.Context, in *DeleteADPackageInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 计算可购的实例数量 + CountIdleADPackageInstances(ctx context.Context, in *CountIdleADPackageInstancesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 计算实例数量 + CountADPackageInstances(ctx context.Context, in *CountADPackageInstancesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 列出单页实例 + ListADPackageInstances(ctx context.Context, in *ListADPackageInstancesRequest, opts ...grpc.CallOption) (*ListADPackageInstancesResponse, error) +} + +type aDPackageInstanceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewADPackageInstanceServiceClient(cc grpc.ClientConnInterface) ADPackageInstanceServiceClient { + return &aDPackageInstanceServiceClient{cc} +} + +func (c *aDPackageInstanceServiceClient) CreateADPackageInstance(ctx context.Context, in *CreateADPackageInstanceRequest, opts ...grpc.CallOption) (*CreateADPackageInstanceResponse, error) { + out := new(CreateADPackageInstanceResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/createADPackageInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) UpdateADPackageInstance(ctx context.Context, in *UpdateADPackageInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/updateADPackageInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) FindADPackageInstance(ctx context.Context, in *FindADPackageInstanceRequest, opts ...grpc.CallOption) (*FindADPackageInstanceResponse, error) { + out := new(FindADPackageInstanceResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/findADPackageInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) FindAllADPackageInstances(ctx context.Context, in *FindAllADPackageInstancesRequest, opts ...grpc.CallOption) (*FindAllADPackageInstancesResponse, error) { + out := new(FindAllADPackageInstancesResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/findAllADPackageInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) DeleteADPackageInstance(ctx context.Context, in *DeleteADPackageInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/deleteADPackageInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) CountIdleADPackageInstances(ctx context.Context, in *CountIdleADPackageInstancesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/countIdleADPackageInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) CountADPackageInstances(ctx context.Context, in *CountADPackageInstancesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/countADPackageInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackageInstanceServiceClient) ListADPackageInstances(ctx context.Context, in *ListADPackageInstancesRequest, opts ...grpc.CallOption) (*ListADPackageInstancesResponse, error) { + out := new(ListADPackageInstancesResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackageInstanceService/listADPackageInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ADPackageInstanceServiceServer is the server API for ADPackageInstanceService service. +type ADPackageInstanceServiceServer interface { + // 创建实例 + CreateADPackageInstance(context.Context, *CreateADPackageInstanceRequest) (*CreateADPackageInstanceResponse, error) + // 修改实例 + UpdateADPackageInstance(context.Context, *UpdateADPackageInstanceRequest) (*RPCSuccess, error) + // 查找单个实例 + FindADPackageInstance(context.Context, *FindADPackageInstanceRequest) (*FindADPackageInstanceResponse, error) + // 列出单个高防产品所有实例 + FindAllADPackageInstances(context.Context, *FindAllADPackageInstancesRequest) (*FindAllADPackageInstancesResponse, error) + // 删除实例 + DeleteADPackageInstance(context.Context, *DeleteADPackageInstanceRequest) (*RPCSuccess, error) + // 计算可购的实例数量 + CountIdleADPackageInstances(context.Context, *CountIdleADPackageInstancesRequest) (*RPCCountResponse, error) + // 计算实例数量 + CountADPackageInstances(context.Context, *CountADPackageInstancesRequest) (*RPCCountResponse, error) + // 列出单页实例 + ListADPackageInstances(context.Context, *ListADPackageInstancesRequest) (*ListADPackageInstancesResponse, error) +} + +// UnimplementedADPackageInstanceServiceServer can be embedded to have forward compatible implementations. +type UnimplementedADPackageInstanceServiceServer struct { +} + +func (*UnimplementedADPackageInstanceServiceServer) CreateADPackageInstance(context.Context, *CreateADPackageInstanceRequest) (*CreateADPackageInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateADPackageInstance not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) UpdateADPackageInstance(context.Context, *UpdateADPackageInstanceRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateADPackageInstance not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) FindADPackageInstance(context.Context, *FindADPackageInstanceRequest) (*FindADPackageInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindADPackageInstance not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) FindAllADPackageInstances(context.Context, *FindAllADPackageInstancesRequest) (*FindAllADPackageInstancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllADPackageInstances not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) DeleteADPackageInstance(context.Context, *DeleteADPackageInstanceRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteADPackageInstance not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) CountIdleADPackageInstances(context.Context, *CountIdleADPackageInstancesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountIdleADPackageInstances not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) CountADPackageInstances(context.Context, *CountADPackageInstancesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountADPackageInstances not implemented") +} +func (*UnimplementedADPackageInstanceServiceServer) ListADPackageInstances(context.Context, *ListADPackageInstancesRequest) (*ListADPackageInstancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListADPackageInstances not implemented") +} + +func RegisterADPackageInstanceServiceServer(s *grpc.Server, srv ADPackageInstanceServiceServer) { + s.RegisterService(&_ADPackageInstanceService_serviceDesc, srv) +} + +func _ADPackageInstanceService_CreateADPackageInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateADPackageInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).CreateADPackageInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/CreateADPackageInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).CreateADPackageInstance(ctx, req.(*CreateADPackageInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_UpdateADPackageInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateADPackageInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).UpdateADPackageInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/UpdateADPackageInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).UpdateADPackageInstance(ctx, req.(*UpdateADPackageInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_FindADPackageInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindADPackageInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).FindADPackageInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/FindADPackageInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).FindADPackageInstance(ctx, req.(*FindADPackageInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_FindAllADPackageInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllADPackageInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).FindAllADPackageInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/FindAllADPackageInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).FindAllADPackageInstances(ctx, req.(*FindAllADPackageInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_DeleteADPackageInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteADPackageInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).DeleteADPackageInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/DeleteADPackageInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).DeleteADPackageInstance(ctx, req.(*DeleteADPackageInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_CountIdleADPackageInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountIdleADPackageInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).CountIdleADPackageInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/CountIdleADPackageInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).CountIdleADPackageInstances(ctx, req.(*CountIdleADPackageInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_CountADPackageInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountADPackageInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).CountADPackageInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/CountADPackageInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).CountADPackageInstances(ctx, req.(*CountADPackageInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackageInstanceService_ListADPackageInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListADPackageInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackageInstanceServiceServer).ListADPackageInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackageInstanceService/ListADPackageInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackageInstanceServiceServer).ListADPackageInstances(ctx, req.(*ListADPackageInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ADPackageInstanceService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ADPackageInstanceService", + HandlerType: (*ADPackageInstanceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createADPackageInstance", + Handler: _ADPackageInstanceService_CreateADPackageInstance_Handler, + }, + { + MethodName: "updateADPackageInstance", + Handler: _ADPackageInstanceService_UpdateADPackageInstance_Handler, + }, + { + MethodName: "findADPackageInstance", + Handler: _ADPackageInstanceService_FindADPackageInstance_Handler, + }, + { + MethodName: "findAllADPackageInstances", + Handler: _ADPackageInstanceService_FindAllADPackageInstances_Handler, + }, + { + MethodName: "deleteADPackageInstance", + Handler: _ADPackageInstanceService_DeleteADPackageInstance_Handler, + }, + { + MethodName: "countIdleADPackageInstances", + Handler: _ADPackageInstanceService_CountIdleADPackageInstances_Handler, + }, + { + MethodName: "countADPackageInstances", + Handler: _ADPackageInstanceService_CountADPackageInstances_Handler, + }, + { + MethodName: "listADPackageInstances", + Handler: _ADPackageInstanceService_ListADPackageInstances_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ad_package_instance.proto", +} diff --git a/pkg/rpc/pb/service_ad_package_period.pb.go b/pkg/rpc/pb/service_ad_package_period.pb.go new file mode 100644 index 0000000..ace07da --- /dev/null +++ b/pkg/rpc/pb/service_ad_package_period.pb.go @@ -0,0 +1,1074 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ad_package_period.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建有效期 +type CreateADPackagePeriodRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + Unit string `protobuf:"bytes,2,opt,name=unit,proto3" json:"unit,omitempty"` // month | year +} + +func (x *CreateADPackagePeriodRequest) Reset() { + *x = CreateADPackagePeriodRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADPackagePeriodRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADPackagePeriodRequest) ProtoMessage() {} + +func (x *CreateADPackagePeriodRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADPackagePeriodRequest.ProtoReflect.Descriptor instead. +func (*CreateADPackagePeriodRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateADPackagePeriodRequest) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +func (x *CreateADPackagePeriodRequest) GetUnit() string { + if x != nil { + return x.Unit + } + return "" +} + +type CreateADPackagePeriodResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriodId int64 `protobuf:"varint,1,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` +} + +func (x *CreateADPackagePeriodResponse) Reset() { + *x = CreateADPackagePeriodResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateADPackagePeriodResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateADPackagePeriodResponse) ProtoMessage() {} + +func (x *CreateADPackagePeriodResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateADPackagePeriodResponse.ProtoReflect.Descriptor instead. +func (*CreateADPackagePeriodResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateADPackagePeriodResponse) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +// 修改有效期 +type UpdateADPackagePeriodRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriodId int64 `protobuf:"varint,1,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + IsOn bool `protobuf:"varint,2,opt,name=isOn,proto3" json:"isOn,omitempty"` +} + +func (x *UpdateADPackagePeriodRequest) Reset() { + *x = UpdateADPackagePeriodRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateADPackagePeriodRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateADPackagePeriodRequest) ProtoMessage() {} + +func (x *UpdateADPackagePeriodRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateADPackagePeriodRequest.ProtoReflect.Descriptor instead. +func (*UpdateADPackagePeriodRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateADPackagePeriodRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *UpdateADPackagePeriodRequest) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +// 删除有效期 +type DeleteADPackagePeriodRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriodId int64 `protobuf:"varint,1,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` +} + +func (x *DeleteADPackagePeriodRequest) Reset() { + *x = DeleteADPackagePeriodRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteADPackagePeriodRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteADPackagePeriodRequest) ProtoMessage() {} + +func (x *DeleteADPackagePeriodRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteADPackagePeriodRequest.ProtoReflect.Descriptor instead. +func (*DeleteADPackagePeriodRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{3} +} + +func (x *DeleteADPackagePeriodRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +// 查找有效期 +type FindADPackagePeriodRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriodId int64 `protobuf:"varint,1,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` +} + +func (x *FindADPackagePeriodRequest) Reset() { + *x = FindADPackagePeriodRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackagePeriodRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackagePeriodRequest) ProtoMessage() {} + +func (x *FindADPackagePeriodRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackagePeriodRequest.ProtoReflect.Descriptor instead. +func (*FindADPackagePeriodRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{4} +} + +func (x *FindADPackagePeriodRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +type FindADPackagePeriodResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriod *ADPackagePeriod `protobuf:"bytes,1,opt,name=adPackagePeriod,proto3" json:"adPackagePeriod,omitempty"` +} + +func (x *FindADPackagePeriodResponse) Reset() { + *x = FindADPackagePeriodResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackagePeriodResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackagePeriodResponse) ProtoMessage() {} + +func (x *FindADPackagePeriodResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackagePeriodResponse.ProtoReflect.Descriptor instead. +func (*FindADPackagePeriodResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{5} +} + +func (x *FindADPackagePeriodResponse) GetAdPackagePeriod() *ADPackagePeriod { + if x != nil { + return x.AdPackagePeriod + } + return nil +} + +// 列出所有有效期 +type FindAllADPackagePeriodsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllADPackagePeriodsRequest) Reset() { + *x = FindAllADPackagePeriodsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADPackagePeriodsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADPackagePeriodsRequest) ProtoMessage() {} + +func (x *FindAllADPackagePeriodsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADPackagePeriodsRequest.ProtoReflect.Descriptor instead. +func (*FindAllADPackagePeriodsRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{6} +} + +type FindAllADPackagePeriodsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriods []*ADPackagePeriod `protobuf:"bytes,1,rep,name=adPackagePeriods,proto3" json:"adPackagePeriods,omitempty"` +} + +func (x *FindAllADPackagePeriodsResponse) Reset() { + *x = FindAllADPackagePeriodsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADPackagePeriodsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADPackagePeriodsResponse) ProtoMessage() {} + +func (x *FindAllADPackagePeriodsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADPackagePeriodsResponse.ProtoReflect.Descriptor instead. +func (*FindAllADPackagePeriodsResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{7} +} + +func (x *FindAllADPackagePeriodsResponse) GetAdPackagePeriods() []*ADPackagePeriod { + if x != nil { + return x.AdPackagePeriods + } + return nil +} + +// 列出所有可用有效期 +type FindAllAvailableADPackagePeriodsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllAvailableADPackagePeriodsRequest) Reset() { + *x = FindAllAvailableADPackagePeriodsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllAvailableADPackagePeriodsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllAvailableADPackagePeriodsRequest) ProtoMessage() {} + +func (x *FindAllAvailableADPackagePeriodsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllAvailableADPackagePeriodsRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableADPackagePeriodsRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{8} +} + +type FindAllAvailableADPackagePeriodsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePeriods []*ADPackagePeriod `protobuf:"bytes,1,rep,name=adPackagePeriods,proto3" json:"adPackagePeriods,omitempty"` +} + +func (x *FindAllAvailableADPackagePeriodsResponse) Reset() { + *x = FindAllAvailableADPackagePeriodsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_period_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllAvailableADPackagePeriodsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllAvailableADPackagePeriodsResponse) ProtoMessage() {} + +func (x *FindAllAvailableADPackagePeriodsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_period_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllAvailableADPackagePeriodsResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableADPackagePeriodsResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_period_proto_rawDescGZIP(), []int{9} +} + +func (x *FindAllAvailableADPackagePeriodsResponse) GetAdPackagePeriods() []*ADPackagePeriod { + if x != nil { + return x.AdPackagePeriods + } + return nil +} + +var File_service_ad_package_period_proto protoreflect.FileDescriptor + +var file_service_ad_package_period_proto_rawDesc = []byte{ + 0x0a, 0x1f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x24, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, + 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, + 0x22, 0x4d, 0x0a, 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x22, + 0x60, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, + 0x6e, 0x22, 0x4c, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x22, + 0x4a, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, + 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x22, 0x5c, 0x0a, 0x1b, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x61, 0x64, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x0f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x20, 0x0a, 0x1e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x62, 0x0a, 0x1f, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, + 0x0a, 0x10, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x10, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x22, + 0x29, 0x0a, 0x27, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x6b, 0x0a, 0x28, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x10, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x32, 0xc7, 0x04, 0x0a, 0x16, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x20, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x49, 0x0a, 0x15, 0x64, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, + 0x72, 0x69, 0x6f, 0x64, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x1e, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, + 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x20, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x12, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_service_ad_package_period_proto_rawDescOnce sync.Once + file_service_ad_package_period_proto_rawDescData = file_service_ad_package_period_proto_rawDesc +) + +func file_service_ad_package_period_proto_rawDescGZIP() []byte { + file_service_ad_package_period_proto_rawDescOnce.Do(func() { + file_service_ad_package_period_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ad_package_period_proto_rawDescData) + }) + return file_service_ad_package_period_proto_rawDescData +} + +var file_service_ad_package_period_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_service_ad_package_period_proto_goTypes = []interface{}{ + (*CreateADPackagePeriodRequest)(nil), // 0: pb.CreateADPackagePeriodRequest + (*CreateADPackagePeriodResponse)(nil), // 1: pb.CreateADPackagePeriodResponse + (*UpdateADPackagePeriodRequest)(nil), // 2: pb.UpdateADPackagePeriodRequest + (*DeleteADPackagePeriodRequest)(nil), // 3: pb.DeleteADPackagePeriodRequest + (*FindADPackagePeriodRequest)(nil), // 4: pb.FindADPackagePeriodRequest + (*FindADPackagePeriodResponse)(nil), // 5: pb.FindADPackagePeriodResponse + (*FindAllADPackagePeriodsRequest)(nil), // 6: pb.FindAllADPackagePeriodsRequest + (*FindAllADPackagePeriodsResponse)(nil), // 7: pb.FindAllADPackagePeriodsResponse + (*FindAllAvailableADPackagePeriodsRequest)(nil), // 8: pb.FindAllAvailableADPackagePeriodsRequest + (*FindAllAvailableADPackagePeriodsResponse)(nil), // 9: pb.FindAllAvailableADPackagePeriodsResponse + (*ADPackagePeriod)(nil), // 10: pb.ADPackagePeriod + (*RPCSuccess)(nil), // 11: pb.RPCSuccess +} +var file_service_ad_package_period_proto_depIdxs = []int32{ + 10, // 0: pb.FindADPackagePeriodResponse.adPackagePeriod:type_name -> pb.ADPackagePeriod + 10, // 1: pb.FindAllADPackagePeriodsResponse.adPackagePeriods:type_name -> pb.ADPackagePeriod + 10, // 2: pb.FindAllAvailableADPackagePeriodsResponse.adPackagePeriods:type_name -> pb.ADPackagePeriod + 0, // 3: pb.ADPackagePeriodService.createADPackagePeriod:input_type -> pb.CreateADPackagePeriodRequest + 2, // 4: pb.ADPackagePeriodService.updateADPackagePeriod:input_type -> pb.UpdateADPackagePeriodRequest + 3, // 5: pb.ADPackagePeriodService.deleteADPackagePeriod:input_type -> pb.DeleteADPackagePeriodRequest + 4, // 6: pb.ADPackagePeriodService.findADPackagePeriod:input_type -> pb.FindADPackagePeriodRequest + 6, // 7: pb.ADPackagePeriodService.findAllADPackagePeriods:input_type -> pb.FindAllADPackagePeriodsRequest + 8, // 8: pb.ADPackagePeriodService.findAllAvailableADPackagePeriods:input_type -> pb.FindAllAvailableADPackagePeriodsRequest + 1, // 9: pb.ADPackagePeriodService.createADPackagePeriod:output_type -> pb.CreateADPackagePeriodResponse + 11, // 10: pb.ADPackagePeriodService.updateADPackagePeriod:output_type -> pb.RPCSuccess + 11, // 11: pb.ADPackagePeriodService.deleteADPackagePeriod:output_type -> pb.RPCSuccess + 5, // 12: pb.ADPackagePeriodService.findADPackagePeriod:output_type -> pb.FindADPackagePeriodResponse + 7, // 13: pb.ADPackagePeriodService.findAllADPackagePeriods:output_type -> pb.FindAllADPackagePeriodsResponse + 9, // 14: pb.ADPackagePeriodService.findAllAvailableADPackagePeriods:output_type -> pb.FindAllAvailableADPackagePeriodsResponse + 9, // [9:15] is the sub-list for method output_type + 3, // [3:9] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_ad_package_period_proto_init() } +func file_service_ad_package_period_proto_init() { + if File_service_ad_package_period_proto != nil { + return + } + file_models_model_ad_package_period_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ad_package_period_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADPackagePeriodRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateADPackagePeriodResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateADPackagePeriodRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteADPackagePeriodRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackagePeriodRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackagePeriodResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADPackagePeriodsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADPackagePeriodsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllAvailableADPackagePeriodsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_period_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllAvailableADPackagePeriodsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ad_package_period_proto_rawDesc, + NumEnums: 0, + NumMessages: 10, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ad_package_period_proto_goTypes, + DependencyIndexes: file_service_ad_package_period_proto_depIdxs, + MessageInfos: file_service_ad_package_period_proto_msgTypes, + }.Build() + File_service_ad_package_period_proto = out.File + file_service_ad_package_period_proto_rawDesc = nil + file_service_ad_package_period_proto_goTypes = nil + file_service_ad_package_period_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ADPackagePeriodServiceClient is the client API for ADPackagePeriodService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ADPackagePeriodServiceClient interface { + // 创建有效期 + CreateADPackagePeriod(ctx context.Context, in *CreateADPackagePeriodRequest, opts ...grpc.CallOption) (*CreateADPackagePeriodResponse, error) + // 修改有效期 + UpdateADPackagePeriod(ctx context.Context, in *UpdateADPackagePeriodRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 删除有效期 + DeleteADPackagePeriod(ctx context.Context, in *DeleteADPackagePeriodRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查找有效期 + FindADPackagePeriod(ctx context.Context, in *FindADPackagePeriodRequest, opts ...grpc.CallOption) (*FindADPackagePeriodResponse, error) + // 列出所有有效期 + FindAllADPackagePeriods(ctx context.Context, in *FindAllADPackagePeriodsRequest, opts ...grpc.CallOption) (*FindAllADPackagePeriodsResponse, error) + // 列出所有可用有效期 + FindAllAvailableADPackagePeriods(ctx context.Context, in *FindAllAvailableADPackagePeriodsRequest, opts ...grpc.CallOption) (*FindAllAvailableADPackagePeriodsResponse, error) +} + +type aDPackagePeriodServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewADPackagePeriodServiceClient(cc grpc.ClientConnInterface) ADPackagePeriodServiceClient { + return &aDPackagePeriodServiceClient{cc} +} + +func (c *aDPackagePeriodServiceClient) CreateADPackagePeriod(ctx context.Context, in *CreateADPackagePeriodRequest, opts ...grpc.CallOption) (*CreateADPackagePeriodResponse, error) { + out := new(CreateADPackagePeriodResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePeriodService/createADPackagePeriod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePeriodServiceClient) UpdateADPackagePeriod(ctx context.Context, in *UpdateADPackagePeriodRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackagePeriodService/updateADPackagePeriod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePeriodServiceClient) DeleteADPackagePeriod(ctx context.Context, in *DeleteADPackagePeriodRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackagePeriodService/deleteADPackagePeriod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePeriodServiceClient) FindADPackagePeriod(ctx context.Context, in *FindADPackagePeriodRequest, opts ...grpc.CallOption) (*FindADPackagePeriodResponse, error) { + out := new(FindADPackagePeriodResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePeriodService/findADPackagePeriod", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePeriodServiceClient) FindAllADPackagePeriods(ctx context.Context, in *FindAllADPackagePeriodsRequest, opts ...grpc.CallOption) (*FindAllADPackagePeriodsResponse, error) { + out := new(FindAllADPackagePeriodsResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePeriodService/findAllADPackagePeriods", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePeriodServiceClient) FindAllAvailableADPackagePeriods(ctx context.Context, in *FindAllAvailableADPackagePeriodsRequest, opts ...grpc.CallOption) (*FindAllAvailableADPackagePeriodsResponse, error) { + out := new(FindAllAvailableADPackagePeriodsResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePeriodService/findAllAvailableADPackagePeriods", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ADPackagePeriodServiceServer is the server API for ADPackagePeriodService service. +type ADPackagePeriodServiceServer interface { + // 创建有效期 + CreateADPackagePeriod(context.Context, *CreateADPackagePeriodRequest) (*CreateADPackagePeriodResponse, error) + // 修改有效期 + UpdateADPackagePeriod(context.Context, *UpdateADPackagePeriodRequest) (*RPCSuccess, error) + // 删除有效期 + DeleteADPackagePeriod(context.Context, *DeleteADPackagePeriodRequest) (*RPCSuccess, error) + // 查找有效期 + FindADPackagePeriod(context.Context, *FindADPackagePeriodRequest) (*FindADPackagePeriodResponse, error) + // 列出所有有效期 + FindAllADPackagePeriods(context.Context, *FindAllADPackagePeriodsRequest) (*FindAllADPackagePeriodsResponse, error) + // 列出所有可用有效期 + FindAllAvailableADPackagePeriods(context.Context, *FindAllAvailableADPackagePeriodsRequest) (*FindAllAvailableADPackagePeriodsResponse, error) +} + +// UnimplementedADPackagePeriodServiceServer can be embedded to have forward compatible implementations. +type UnimplementedADPackagePeriodServiceServer struct { +} + +func (*UnimplementedADPackagePeriodServiceServer) CreateADPackagePeriod(context.Context, *CreateADPackagePeriodRequest) (*CreateADPackagePeriodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateADPackagePeriod not implemented") +} +func (*UnimplementedADPackagePeriodServiceServer) UpdateADPackagePeriod(context.Context, *UpdateADPackagePeriodRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateADPackagePeriod not implemented") +} +func (*UnimplementedADPackagePeriodServiceServer) DeleteADPackagePeriod(context.Context, *DeleteADPackagePeriodRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteADPackagePeriod not implemented") +} +func (*UnimplementedADPackagePeriodServiceServer) FindADPackagePeriod(context.Context, *FindADPackagePeriodRequest) (*FindADPackagePeriodResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindADPackagePeriod not implemented") +} +func (*UnimplementedADPackagePeriodServiceServer) FindAllADPackagePeriods(context.Context, *FindAllADPackagePeriodsRequest) (*FindAllADPackagePeriodsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllADPackagePeriods not implemented") +} +func (*UnimplementedADPackagePeriodServiceServer) FindAllAvailableADPackagePeriods(context.Context, *FindAllAvailableADPackagePeriodsRequest) (*FindAllAvailableADPackagePeriodsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableADPackagePeriods not implemented") +} + +func RegisterADPackagePeriodServiceServer(s *grpc.Server, srv ADPackagePeriodServiceServer) { + s.RegisterService(&_ADPackagePeriodService_serviceDesc, srv) +} + +func _ADPackagePeriodService_CreateADPackagePeriod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateADPackagePeriodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePeriodServiceServer).CreateADPackagePeriod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePeriodService/CreateADPackagePeriod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePeriodServiceServer).CreateADPackagePeriod(ctx, req.(*CreateADPackagePeriodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePeriodService_UpdateADPackagePeriod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateADPackagePeriodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePeriodServiceServer).UpdateADPackagePeriod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePeriodService/UpdateADPackagePeriod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePeriodServiceServer).UpdateADPackagePeriod(ctx, req.(*UpdateADPackagePeriodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePeriodService_DeleteADPackagePeriod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteADPackagePeriodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePeriodServiceServer).DeleteADPackagePeriod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePeriodService/DeleteADPackagePeriod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePeriodServiceServer).DeleteADPackagePeriod(ctx, req.(*DeleteADPackagePeriodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePeriodService_FindADPackagePeriod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindADPackagePeriodRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePeriodServiceServer).FindADPackagePeriod(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePeriodService/FindADPackagePeriod", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePeriodServiceServer).FindADPackagePeriod(ctx, req.(*FindADPackagePeriodRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePeriodService_FindAllADPackagePeriods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllADPackagePeriodsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePeriodServiceServer).FindAllADPackagePeriods(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePeriodService/FindAllADPackagePeriods", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePeriodServiceServer).FindAllADPackagePeriods(ctx, req.(*FindAllADPackagePeriodsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePeriodService_FindAllAvailableADPackagePeriods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableADPackagePeriodsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePeriodServiceServer).FindAllAvailableADPackagePeriods(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePeriodService/FindAllAvailableADPackagePeriods", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePeriodServiceServer).FindAllAvailableADPackagePeriods(ctx, req.(*FindAllAvailableADPackagePeriodsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ADPackagePeriodService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ADPackagePeriodService", + HandlerType: (*ADPackagePeriodServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createADPackagePeriod", + Handler: _ADPackagePeriodService_CreateADPackagePeriod_Handler, + }, + { + MethodName: "updateADPackagePeriod", + Handler: _ADPackagePeriodService_UpdateADPackagePeriod_Handler, + }, + { + MethodName: "deleteADPackagePeriod", + Handler: _ADPackagePeriodService_DeleteADPackagePeriod_Handler, + }, + { + MethodName: "findADPackagePeriod", + Handler: _ADPackagePeriodService_FindADPackagePeriod_Handler, + }, + { + MethodName: "findAllADPackagePeriods", + Handler: _ADPackagePeriodService_FindAllADPackagePeriods_Handler, + }, + { + MethodName: "findAllAvailableADPackagePeriods", + Handler: _ADPackagePeriodService_FindAllAvailableADPackagePeriods_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ad_package_period.proto", +} diff --git a/pkg/rpc/pb/service_ad_package_price.pb.go b/pkg/rpc/pb/service_ad_package_price.pb.go new file mode 100644 index 0000000..424603c --- /dev/null +++ b/pkg/rpc/pb/service_ad_package_price.pb.go @@ -0,0 +1,931 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ad_package_price.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 设置高防产品价格 +type UpdateADPackagePriceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + Price float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"` +} + +func (x *UpdateADPackagePriceRequest) Reset() { + *x = UpdateADPackagePriceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateADPackagePriceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateADPackagePriceRequest) ProtoMessage() {} + +func (x *UpdateADPackagePriceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateADPackagePriceRequest.ProtoReflect.Descriptor instead. +func (*UpdateADPackagePriceRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{0} +} + +func (x *UpdateADPackagePriceRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *UpdateADPackagePriceRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *UpdateADPackagePriceRequest) GetPrice() float64 { + if x != nil { + return x.Price + } + return 0 +} + +// 获取单个高防产品具体价格 +type FindADPackagePriceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *FindADPackagePriceRequest) Reset() { + *x = FindADPackagePriceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackagePriceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackagePriceRequest) ProtoMessage() {} + +func (x *FindADPackagePriceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackagePriceRequest.ProtoReflect.Descriptor instead. +func (*FindADPackagePriceRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{1} +} + +func (x *FindADPackagePriceRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *FindADPackagePriceRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *FindADPackagePriceRequest) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +type FindADPackagePriceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Price float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"` // 单价 + Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"` // 总价 +} + +func (x *FindADPackagePriceResponse) Reset() { + *x = FindADPackagePriceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackagePriceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackagePriceResponse) ProtoMessage() {} + +func (x *FindADPackagePriceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackagePriceResponse.ProtoReflect.Descriptor instead. +func (*FindADPackagePriceResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{2} +} + +func (x *FindADPackagePriceResponse) GetPrice() float64 { + if x != nil { + return x.Price + } + return 0 +} + +func (x *FindADPackagePriceResponse) GetAmount() float64 { + if x != nil { + return x.Amount + } + return 0 +} + +// 计算高防产品价格项数量 +type CountADPackagePricesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *CountADPackagePricesRequest) Reset() { + *x = CountADPackagePricesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountADPackagePricesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountADPackagePricesRequest) ProtoMessage() {} + +func (x *CountADPackagePricesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountADPackagePricesRequest.ProtoReflect.Descriptor instead. +func (*CountADPackagePricesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{3} +} + +func (x *CountADPackagePricesRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +// 查找高防产品价格 +type FindADPackagePricesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackageId int64 `protobuf:"varint,1,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` +} + +func (x *FindADPackagePricesRequest) Reset() { + *x = FindADPackagePricesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackagePricesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackagePricesRequest) ProtoMessage() {} + +func (x *FindADPackagePricesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackagePricesRequest.ProtoReflect.Descriptor instead. +func (*FindADPackagePricesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{4} +} + +func (x *FindADPackagePricesRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +type FindADPackagePricesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePrices []*ADPackagePrice `protobuf:"bytes,1,rep,name=adPackagePrices,proto3" json:"adPackagePrices,omitempty"` +} + +func (x *FindADPackagePricesResponse) Reset() { + *x = FindADPackagePricesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindADPackagePricesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindADPackagePricesResponse) ProtoMessage() {} + +func (x *FindADPackagePricesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindADPackagePricesResponse.ProtoReflect.Descriptor instead. +func (*FindADPackagePricesResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{5} +} + +func (x *FindADPackagePricesResponse) GetAdPackagePrices() []*ADPackagePrice { + if x != nil { + return x.AdPackagePrices + } + return nil +} + +// 查找所有高防产品价格 +type FindAllADPackagePricesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllADPackagePricesRequest) Reset() { + *x = FindAllADPackagePricesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADPackagePricesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADPackagePricesRequest) ProtoMessage() {} + +func (x *FindAllADPackagePricesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADPackagePricesRequest.ProtoReflect.Descriptor instead. +func (*FindAllADPackagePricesRequest) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{6} +} + +type FindAllADPackagePricesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdPackagePrices []*ADPackagePrice `protobuf:"bytes,1,rep,name=adPackagePrices,proto3" json:"adPackagePrices,omitempty"` +} + +func (x *FindAllADPackagePricesResponse) Reset() { + *x = FindAllADPackagePricesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ad_package_price_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllADPackagePricesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllADPackagePricesResponse) ProtoMessage() {} + +func (x *FindAllADPackagePricesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ad_package_price_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllADPackagePricesResponse.ProtoReflect.Descriptor instead. +func (*FindAllADPackagePricesResponse) Descriptor() ([]byte, []int) { + return file_service_ad_package_price_proto_rawDescGZIP(), []int{7} +} + +func (x *FindAllADPackagePricesResponse) GetAdPackagePrices() []*ADPackagePrice { + if x != nil { + return x.AdPackagePrices + } + return nil +} + +var File_service_ad_package_price_proto protoreflect.FileDescriptor + +var file_service_ad_package_price_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x02, 0x70, 0x62, 0x1a, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x5f, 0x61, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, + 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, 0x1b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, + 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, + 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x81, 0x01, 0x0a, 0x19, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x4a, + 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x70, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x01, 0x52, 0x06, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3f, 0x0a, 0x1b, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x1a, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x1b, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x61, 0x64, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x0f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x22, 0x1f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x1e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x0f, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x32, 0xbd, 0x03, 0x0a, 0x15, 0x41, 0x44, + 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, + 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x53, 0x0a, 0x12, + 0x66, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4d, 0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, + 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, + 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x41, 0x44, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_ad_package_price_proto_rawDescOnce sync.Once + file_service_ad_package_price_proto_rawDescData = file_service_ad_package_price_proto_rawDesc +) + +func file_service_ad_package_price_proto_rawDescGZIP() []byte { + file_service_ad_package_price_proto_rawDescOnce.Do(func() { + file_service_ad_package_price_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ad_package_price_proto_rawDescData) + }) + return file_service_ad_package_price_proto_rawDescData +} + +var file_service_ad_package_price_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_service_ad_package_price_proto_goTypes = []interface{}{ + (*UpdateADPackagePriceRequest)(nil), // 0: pb.UpdateADPackagePriceRequest + (*FindADPackagePriceRequest)(nil), // 1: pb.FindADPackagePriceRequest + (*FindADPackagePriceResponse)(nil), // 2: pb.FindADPackagePriceResponse + (*CountADPackagePricesRequest)(nil), // 3: pb.CountADPackagePricesRequest + (*FindADPackagePricesRequest)(nil), // 4: pb.FindADPackagePricesRequest + (*FindADPackagePricesResponse)(nil), // 5: pb.FindADPackagePricesResponse + (*FindAllADPackagePricesRequest)(nil), // 6: pb.FindAllADPackagePricesRequest + (*FindAllADPackagePricesResponse)(nil), // 7: pb.FindAllADPackagePricesResponse + (*ADPackagePrice)(nil), // 8: pb.ADPackagePrice + (*RPCSuccess)(nil), // 9: pb.RPCSuccess + (*RPCCountResponse)(nil), // 10: pb.RPCCountResponse +} +var file_service_ad_package_price_proto_depIdxs = []int32{ + 8, // 0: pb.FindADPackagePricesResponse.adPackagePrices:type_name -> pb.ADPackagePrice + 8, // 1: pb.FindAllADPackagePricesResponse.adPackagePrices:type_name -> pb.ADPackagePrice + 0, // 2: pb.ADPackagePriceService.updateADPackagePrice:input_type -> pb.UpdateADPackagePriceRequest + 1, // 3: pb.ADPackagePriceService.findADPackagePrice:input_type -> pb.FindADPackagePriceRequest + 3, // 4: pb.ADPackagePriceService.countADPackagePrices:input_type -> pb.CountADPackagePricesRequest + 4, // 5: pb.ADPackagePriceService.findADPackagePrices:input_type -> pb.FindADPackagePricesRequest + 6, // 6: pb.ADPackagePriceService.findAllADPackagePrices:input_type -> pb.FindAllADPackagePricesRequest + 9, // 7: pb.ADPackagePriceService.updateADPackagePrice:output_type -> pb.RPCSuccess + 2, // 8: pb.ADPackagePriceService.findADPackagePrice:output_type -> pb.FindADPackagePriceResponse + 10, // 9: pb.ADPackagePriceService.countADPackagePrices:output_type -> pb.RPCCountResponse + 5, // 10: pb.ADPackagePriceService.findADPackagePrices:output_type -> pb.FindADPackagePricesResponse + 7, // 11: pb.ADPackagePriceService.findAllADPackagePrices:output_type -> pb.FindAllADPackagePricesResponse + 7, // [7:12] is the sub-list for method output_type + 2, // [2:7] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_service_ad_package_price_proto_init() } +func file_service_ad_package_price_proto_init() { + if File_service_ad_package_price_proto != nil { + return + } + file_models_model_ad_package_price_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ad_package_price_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateADPackagePriceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackagePriceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackagePriceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountADPackagePricesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackagePricesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindADPackagePricesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADPackagePricesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ad_package_price_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllADPackagePricesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_ad_package_price_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ad_package_price_proto_goTypes, + DependencyIndexes: file_service_ad_package_price_proto_depIdxs, + MessageInfos: file_service_ad_package_price_proto_msgTypes, + }.Build() + File_service_ad_package_price_proto = out.File + file_service_ad_package_price_proto_rawDesc = nil + file_service_ad_package_price_proto_goTypes = nil + file_service_ad_package_price_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ADPackagePriceServiceClient is the client API for ADPackagePriceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ADPackagePriceServiceClient interface { + // 设置高防产品价格 + UpdateADPackagePrice(ctx context.Context, in *UpdateADPackagePriceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 获取单个高防产品具体价格 + FindADPackagePrice(ctx context.Context, in *FindADPackagePriceRequest, opts ...grpc.CallOption) (*FindADPackagePriceResponse, error) + // 计算高防产品价格项数量 + CountADPackagePrices(ctx context.Context, in *CountADPackagePricesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 查找高防产品价格 + FindADPackagePrices(ctx context.Context, in *FindADPackagePricesRequest, opts ...grpc.CallOption) (*FindADPackagePricesResponse, error) + // 查找所有高防产品价格 + FindAllADPackagePrices(ctx context.Context, in *FindAllADPackagePricesRequest, opts ...grpc.CallOption) (*FindAllADPackagePricesResponse, error) +} + +type aDPackagePriceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewADPackagePriceServiceClient(cc grpc.ClientConnInterface) ADPackagePriceServiceClient { + return &aDPackagePriceServiceClient{cc} +} + +func (c *aDPackagePriceServiceClient) UpdateADPackagePrice(ctx context.Context, in *UpdateADPackagePriceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/updateADPackagePrice", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePriceServiceClient) FindADPackagePrice(ctx context.Context, in *FindADPackagePriceRequest, opts ...grpc.CallOption) (*FindADPackagePriceResponse, error) { + out := new(FindADPackagePriceResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/findADPackagePrice", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePriceServiceClient) CountADPackagePrices(ctx context.Context, in *CountADPackagePricesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/countADPackagePrices", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePriceServiceClient) FindADPackagePrices(ctx context.Context, in *FindADPackagePricesRequest, opts ...grpc.CallOption) (*FindADPackagePricesResponse, error) { + out := new(FindADPackagePricesResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/findADPackagePrices", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aDPackagePriceServiceClient) FindAllADPackagePrices(ctx context.Context, in *FindAllADPackagePricesRequest, opts ...grpc.CallOption) (*FindAllADPackagePricesResponse, error) { + out := new(FindAllADPackagePricesResponse) + err := c.cc.Invoke(ctx, "/pb.ADPackagePriceService/findAllADPackagePrices", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ADPackagePriceServiceServer is the server API for ADPackagePriceService service. +type ADPackagePriceServiceServer interface { + // 设置高防产品价格 + UpdateADPackagePrice(context.Context, *UpdateADPackagePriceRequest) (*RPCSuccess, error) + // 获取单个高防产品具体价格 + FindADPackagePrice(context.Context, *FindADPackagePriceRequest) (*FindADPackagePriceResponse, error) + // 计算高防产品价格项数量 + CountADPackagePrices(context.Context, *CountADPackagePricesRequest) (*RPCCountResponse, error) + // 查找高防产品价格 + FindADPackagePrices(context.Context, *FindADPackagePricesRequest) (*FindADPackagePricesResponse, error) + // 查找所有高防产品价格 + FindAllADPackagePrices(context.Context, *FindAllADPackagePricesRequest) (*FindAllADPackagePricesResponse, error) +} + +// UnimplementedADPackagePriceServiceServer can be embedded to have forward compatible implementations. +type UnimplementedADPackagePriceServiceServer struct { +} + +func (*UnimplementedADPackagePriceServiceServer) UpdateADPackagePrice(context.Context, *UpdateADPackagePriceRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateADPackagePrice not implemented") +} +func (*UnimplementedADPackagePriceServiceServer) FindADPackagePrice(context.Context, *FindADPackagePriceRequest) (*FindADPackagePriceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindADPackagePrice not implemented") +} +func (*UnimplementedADPackagePriceServiceServer) CountADPackagePrices(context.Context, *CountADPackagePricesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountADPackagePrices not implemented") +} +func (*UnimplementedADPackagePriceServiceServer) FindADPackagePrices(context.Context, *FindADPackagePricesRequest) (*FindADPackagePricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindADPackagePrices not implemented") +} +func (*UnimplementedADPackagePriceServiceServer) FindAllADPackagePrices(context.Context, *FindAllADPackagePricesRequest) (*FindAllADPackagePricesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllADPackagePrices not implemented") +} + +func RegisterADPackagePriceServiceServer(s *grpc.Server, srv ADPackagePriceServiceServer) { + s.RegisterService(&_ADPackagePriceService_serviceDesc, srv) +} + +func _ADPackagePriceService_UpdateADPackagePrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateADPackagePriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePriceServiceServer).UpdateADPackagePrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePriceService/UpdateADPackagePrice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePriceServiceServer).UpdateADPackagePrice(ctx, req.(*UpdateADPackagePriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePriceService_FindADPackagePrice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindADPackagePriceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePriceServiceServer).FindADPackagePrice(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePriceService/FindADPackagePrice", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePriceServiceServer).FindADPackagePrice(ctx, req.(*FindADPackagePriceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePriceService_CountADPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountADPackagePricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePriceServiceServer).CountADPackagePrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePriceService/CountADPackagePrices", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePriceServiceServer).CountADPackagePrices(ctx, req.(*CountADPackagePricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePriceService_FindADPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindADPackagePricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePriceServiceServer).FindADPackagePrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePriceService/FindADPackagePrices", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePriceServiceServer).FindADPackagePrices(ctx, req.(*FindADPackagePricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ADPackagePriceService_FindAllADPackagePrices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllADPackagePricesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ADPackagePriceServiceServer).FindAllADPackagePrices(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ADPackagePriceService/FindAllADPackagePrices", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ADPackagePriceServiceServer).FindAllADPackagePrices(ctx, req.(*FindAllADPackagePricesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ADPackagePriceService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ADPackagePriceService", + HandlerType: (*ADPackagePriceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "updateADPackagePrice", + Handler: _ADPackagePriceService_UpdateADPackagePrice_Handler, + }, + { + MethodName: "findADPackagePrice", + Handler: _ADPackagePriceService_FindADPackagePrice_Handler, + }, + { + MethodName: "countADPackagePrices", + Handler: _ADPackagePriceService_CountADPackagePrices_Handler, + }, + { + MethodName: "findADPackagePrices", + Handler: _ADPackagePriceService_FindADPackagePrices_Handler, + }, + { + MethodName: "findAllADPackagePrices", + Handler: _ADPackagePriceService_FindAllADPackagePrices_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ad_package_price.proto", +} diff --git a/pkg/rpc/pb/service_user_ad_instance.pb.go b/pkg/rpc/pb/service_user_ad_instance.pb.go new file mode 100644 index 0000000..66aaa29 --- /dev/null +++ b/pkg/rpc/pb/service_user_ad_instance.pb.go @@ -0,0 +1,1471 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_user_ad_instance.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建用户高防实例 +type CreateUserADInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *CreateUserADInstanceRequest) Reset() { + *x = CreateUserADInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserADInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserADInstanceRequest) ProtoMessage() {} + +func (x *CreateUserADInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserADInstanceRequest.ProtoReflect.Descriptor instead. +func (*CreateUserADInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateUserADInstanceRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CreateUserADInstanceRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *CreateUserADInstanceRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *CreateUserADInstanceRequest) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +type CreateUserADInstanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstanceIds []int64 `protobuf:"varint,1,rep,packed,name=userADInstanceIds,proto3" json:"userADInstanceIds,omitempty"` +} + +func (x *CreateUserADInstanceResponse) Reset() { + *x = CreateUserADInstanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateUserADInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateUserADInstanceResponse) ProtoMessage() {} + +func (x *CreateUserADInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateUserADInstanceResponse.ProtoReflect.Descriptor instead. +func (*CreateUserADInstanceResponse) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateUserADInstanceResponse) GetUserADInstanceIds() []int64 { + if x != nil { + return x.UserADInstanceIds + } + return nil +} + +// 购买用户高防实例 +type BuyUserADInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + AdPackageId int64 `protobuf:"varint,2,opt,name=adPackageId,proto3" json:"adPackageId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + Count int32 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` +} + +func (x *BuyUserADInstanceRequest) Reset() { + *x = BuyUserADInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuyUserADInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuyUserADInstanceRequest) ProtoMessage() {} + +func (x *BuyUserADInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuyUserADInstanceRequest.ProtoReflect.Descriptor instead. +func (*BuyUserADInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{2} +} + +func (x *BuyUserADInstanceRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *BuyUserADInstanceRequest) GetAdPackageId() int64 { + if x != nil { + return x.AdPackageId + } + return 0 +} + +func (x *BuyUserADInstanceRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *BuyUserADInstanceRequest) GetCount() int32 { + if x != nil { + return x.Count + } + return 0 +} + +type BuyUserADInstanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstanceIds []int64 `protobuf:"varint,1,rep,packed,name=userADInstanceIds,proto3" json:"userADInstanceIds,omitempty"` +} + +func (x *BuyUserADInstanceResponse) Reset() { + *x = BuyUserADInstanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BuyUserADInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BuyUserADInstanceResponse) ProtoMessage() {} + +func (x *BuyUserADInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BuyUserADInstanceResponse.ProtoReflect.Descriptor instead. +func (*BuyUserADInstanceResponse) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{3} +} + +func (x *BuyUserADInstanceResponse) GetUserADInstanceIds() []int64 { + if x != nil { + return x.UserADInstanceIds + } + return nil +} + +// 查询用户高防实例数量 +type CountUserADInstancesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 线路ID + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID + AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + ExpiresDay string `protobuf:"bytes,4,opt,name=expiresDay,proto3" json:"expiresDay,omitempty"` + AvailableOnly bool `protobuf:"varint,5,opt,name=availableOnly,proto3" json:"availableOnly,omitempty"` // 是否只查询有效的高防实例 +} + +func (x *CountUserADInstancesRequest) Reset() { + *x = CountUserADInstancesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountUserADInstancesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountUserADInstancesRequest) ProtoMessage() {} + +func (x *CountUserADInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountUserADInstancesRequest.ProtoReflect.Descriptor instead. +func (*CountUserADInstancesRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{4} +} + +func (x *CountUserADInstancesRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *CountUserADInstancesRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CountUserADInstancesRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *CountUserADInstancesRequest) GetExpiresDay() string { + if x != nil { + return x.ExpiresDay + } + return "" +} + +func (x *CountUserADInstancesRequest) GetAvailableOnly() bool { + if x != nil { + return x.AvailableOnly + } + return false +} + +// 列出单页用户高防实例 +type ListUserADInstancesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AdNetworkId int64 `protobuf:"varint,1,opt,name=adNetworkId,proto3" json:"adNetworkId,omitempty"` // 线路ID + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` // 用户ID + AdPackagePeriodId int64 `protobuf:"varint,3,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` + ExpiresDay string `protobuf:"bytes,4,opt,name=expiresDay,proto3" json:"expiresDay,omitempty"` + AvailableOnly bool `protobuf:"varint,5,opt,name=availableOnly,proto3" json:"availableOnly,omitempty"` // 是否只查询有效的高防实例 + Offset int64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"` + Size int64 `protobuf:"varint,7,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *ListUserADInstancesRequest) Reset() { + *x = ListUserADInstancesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserADInstancesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserADInstancesRequest) ProtoMessage() {} + +func (x *ListUserADInstancesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserADInstancesRequest.ProtoReflect.Descriptor instead. +func (*ListUserADInstancesRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{5} +} + +func (x *ListUserADInstancesRequest) GetAdNetworkId() int64 { + if x != nil { + return x.AdNetworkId + } + return 0 +} + +func (x *ListUserADInstancesRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *ListUserADInstancesRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +func (x *ListUserADInstancesRequest) GetExpiresDay() string { + if x != nil { + return x.ExpiresDay + } + return "" +} + +func (x *ListUserADInstancesRequest) GetAvailableOnly() bool { + if x != nil { + return x.AvailableOnly + } + return false +} + +func (x *ListUserADInstancesRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListUserADInstancesRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListUserADInstancesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstances []*UserADInstance `protobuf:"bytes,1,rep,name=userADInstances,proto3" json:"userADInstances,omitempty"` +} + +func (x *ListUserADInstancesResponse) Reset() { + *x = ListUserADInstancesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListUserADInstancesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListUserADInstancesResponse) ProtoMessage() {} + +func (x *ListUserADInstancesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListUserADInstancesResponse.ProtoReflect.Descriptor instead. +func (*ListUserADInstancesResponse) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{6} +} + +func (x *ListUserADInstancesResponse) GetUserADInstances() []*UserADInstance { + if x != nil { + return x.UserADInstances + } + return nil +} + +// 查找单个用户高防实例 +type FindUserADInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"` +} + +func (x *FindUserADInstanceRequest) Reset() { + *x = FindUserADInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindUserADInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindUserADInstanceRequest) ProtoMessage() {} + +func (x *FindUserADInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindUserADInstanceRequest.ProtoReflect.Descriptor instead. +func (*FindUserADInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{7} +} + +func (x *FindUserADInstanceRequest) GetUserADInstanceId() int64 { + if x != nil { + return x.UserADInstanceId + } + return 0 +} + +type FindUserADInstanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstance *UserADInstance `protobuf:"bytes,1,opt,name=userADInstance,proto3" json:"userADInstance,omitempty"` +} + +func (x *FindUserADInstanceResponse) Reset() { + *x = FindUserADInstanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindUserADInstanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindUserADInstanceResponse) ProtoMessage() {} + +func (x *FindUserADInstanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindUserADInstanceResponse.ProtoReflect.Descriptor instead. +func (*FindUserADInstanceResponse) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{8} +} + +func (x *FindUserADInstanceResponse) GetUserADInstance() *UserADInstance { + if x != nil { + return x.UserADInstance + } + return nil +} + +// 删除用户高防实例 +type DeleteUserADInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"` +} + +func (x *DeleteUserADInstanceRequest) Reset() { + *x = DeleteUserADInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteUserADInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteUserADInstanceRequest) ProtoMessage() {} + +func (x *DeleteUserADInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteUserADInstanceRequest.ProtoReflect.Descriptor instead. +func (*DeleteUserADInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{9} +} + +func (x *DeleteUserADInstanceRequest) GetUserADInstanceId() int64 { + if x != nil { + return x.UserADInstanceId + } + return 0 +} + +// 续期用户高防实例 +type RenewUserADInstanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"` + AdPackagePeriodId int64 `protobuf:"varint,2,opt,name=adPackagePeriodId,proto3" json:"adPackagePeriodId,omitempty"` +} + +func (x *RenewUserADInstanceRequest) Reset() { + *x = RenewUserADInstanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RenewUserADInstanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RenewUserADInstanceRequest) ProtoMessage() {} + +func (x *RenewUserADInstanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RenewUserADInstanceRequest.ProtoReflect.Descriptor instead. +func (*RenewUserADInstanceRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{10} +} + +func (x *RenewUserADInstanceRequest) GetUserADInstanceId() int64 { + if x != nil { + return x.UserADInstanceId + } + return 0 +} + +func (x *RenewUserADInstanceRequest) GetAdPackagePeriodId() int64 { + if x != nil { + return x.AdPackagePeriodId + } + return 0 +} + +// 修改实例防护对象 +type UpdateUserADInstanceObjectsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserADInstanceId int64 `protobuf:"varint,1,opt,name=userADInstanceId,proto3" json:"userADInstanceId,omitempty"` + ObjectCodes []string `protobuf:"bytes,2,rep,name=objectCodes,proto3" json:"objectCodes,omitempty"` +} + +func (x *UpdateUserADInstanceObjectsRequest) Reset() { + *x = UpdateUserADInstanceObjectsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_user_ad_instance_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateUserADInstanceObjectsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateUserADInstanceObjectsRequest) ProtoMessage() {} + +func (x *UpdateUserADInstanceObjectsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_user_ad_instance_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateUserADInstanceObjectsRequest.ProtoReflect.Descriptor instead. +func (*UpdateUserADInstanceObjectsRequest) Descriptor() ([]byte, []int) { + return file_service_user_ad_instance_proto_rawDescGZIP(), []int{11} +} + +func (x *UpdateUserADInstanceObjectsRequest) GetUserADInstanceId() int64 { + if x != nil { + return x.UserADInstanceId + } + return 0 +} + +func (x *UpdateUserADInstanceObjectsRequest) GetObjectCodes() []string { + if x != nil { + return x.ObjectCodes + } + return nil +} + +var File_service_user_ad_instance_proto protoreflect.FileDescriptor + +var file_service_user_ad_instance_proto_rawDesc = []byte{ + 0x0a, 0x1e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, + 0x64, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x02, 0x70, 0x62, 0x1a, 0x23, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x61, 0x64, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, + 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, + 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, + 0x64, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x4c, 0x0a, 0x1c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, + 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x11, 0x75, + 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, + 0x22, 0x98, 0x01, 0x0a, 0x18, 0x42, 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, + 0x67, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x50, 0x61, + 0x63, 0x6b, 0x61, 0x67, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x49, 0x0a, 0x19, 0x42, + 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x75, 0x73, 0x65, 0x72, + 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x03, 0x52, 0x11, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x49, 0x64, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x1b, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, + 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, + 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x1e, + 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x44, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x44, 0x61, 0x79, 0x12, 0x24, + 0x0a, 0x0d, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0xf6, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, + 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x61, 0x64, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2c, 0x0a, + 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, + 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x44, 0x61, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x44, 0x61, 0x79, 0x12, 0x24, 0x0a, 0x0d, 0x61, + 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x0d, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x6e, 0x6c, + 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x5b, 0x0a, + 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, + 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x19, 0x46, 0x69, + 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x75, + 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x49, 0x0a, + 0x1b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, + 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x76, 0x0a, 0x1a, 0x52, 0x65, 0x6e, 0x65, + 0x77, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, + 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x61, + 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, + 0x22, 0x72, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, + 0x6f, 0x64, 0x65, 0x73, 0x32, 0xa7, 0x05, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x59, + 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x62, 0x75, 0x79, + 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1c, + 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, + 0x62, 0x2e, 0x42, 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x14, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x6c, 0x69, + 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x14, 0x64, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, + 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, + 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x45, 0x0a, 0x13, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x6e, + 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x1b, 0x75, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4f, + 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x44, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, + 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_user_ad_instance_proto_rawDescOnce sync.Once + file_service_user_ad_instance_proto_rawDescData = file_service_user_ad_instance_proto_rawDesc +) + +func file_service_user_ad_instance_proto_rawDescGZIP() []byte { + file_service_user_ad_instance_proto_rawDescOnce.Do(func() { + file_service_user_ad_instance_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_user_ad_instance_proto_rawDescData) + }) + return file_service_user_ad_instance_proto_rawDescData +} + +var file_service_user_ad_instance_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_service_user_ad_instance_proto_goTypes = []interface{}{ + (*CreateUserADInstanceRequest)(nil), // 0: pb.CreateUserADInstanceRequest + (*CreateUserADInstanceResponse)(nil), // 1: pb.CreateUserADInstanceResponse + (*BuyUserADInstanceRequest)(nil), // 2: pb.BuyUserADInstanceRequest + (*BuyUserADInstanceResponse)(nil), // 3: pb.BuyUserADInstanceResponse + (*CountUserADInstancesRequest)(nil), // 4: pb.CountUserADInstancesRequest + (*ListUserADInstancesRequest)(nil), // 5: pb.ListUserADInstancesRequest + (*ListUserADInstancesResponse)(nil), // 6: pb.ListUserADInstancesResponse + (*FindUserADInstanceRequest)(nil), // 7: pb.FindUserADInstanceRequest + (*FindUserADInstanceResponse)(nil), // 8: pb.FindUserADInstanceResponse + (*DeleteUserADInstanceRequest)(nil), // 9: pb.DeleteUserADInstanceRequest + (*RenewUserADInstanceRequest)(nil), // 10: pb.RenewUserADInstanceRequest + (*UpdateUserADInstanceObjectsRequest)(nil), // 11: pb.UpdateUserADInstanceObjectsRequest + (*UserADInstance)(nil), // 12: pb.UserADInstance + (*RPCCountResponse)(nil), // 13: pb.RPCCountResponse + (*RPCSuccess)(nil), // 14: pb.RPCSuccess +} +var file_service_user_ad_instance_proto_depIdxs = []int32{ + 12, // 0: pb.ListUserADInstancesResponse.userADInstances:type_name -> pb.UserADInstance + 12, // 1: pb.FindUserADInstanceResponse.userADInstance:type_name -> pb.UserADInstance + 0, // 2: pb.UserADInstanceService.createUserADInstance:input_type -> pb.CreateUserADInstanceRequest + 2, // 3: pb.UserADInstanceService.buyUserADInstance:input_type -> pb.BuyUserADInstanceRequest + 4, // 4: pb.UserADInstanceService.countUserADInstances:input_type -> pb.CountUserADInstancesRequest + 5, // 5: pb.UserADInstanceService.listUserADInstances:input_type -> pb.ListUserADInstancesRequest + 7, // 6: pb.UserADInstanceService.findUserADInstance:input_type -> pb.FindUserADInstanceRequest + 9, // 7: pb.UserADInstanceService.deleteUserADInstance:input_type -> pb.DeleteUserADInstanceRequest + 10, // 8: pb.UserADInstanceService.renewUserADInstance:input_type -> pb.RenewUserADInstanceRequest + 11, // 9: pb.UserADInstanceService.updateUserADInstanceObjects:input_type -> pb.UpdateUserADInstanceObjectsRequest + 1, // 10: pb.UserADInstanceService.createUserADInstance:output_type -> pb.CreateUserADInstanceResponse + 3, // 11: pb.UserADInstanceService.buyUserADInstance:output_type -> pb.BuyUserADInstanceResponse + 13, // 12: pb.UserADInstanceService.countUserADInstances:output_type -> pb.RPCCountResponse + 6, // 13: pb.UserADInstanceService.listUserADInstances:output_type -> pb.ListUserADInstancesResponse + 8, // 14: pb.UserADInstanceService.findUserADInstance:output_type -> pb.FindUserADInstanceResponse + 14, // 15: pb.UserADInstanceService.deleteUserADInstance:output_type -> pb.RPCSuccess + 14, // 16: pb.UserADInstanceService.renewUserADInstance:output_type -> pb.RPCSuccess + 14, // 17: pb.UserADInstanceService.updateUserADInstanceObjects:output_type -> pb.RPCSuccess + 10, // [10:18] is the sub-list for method output_type + 2, // [2:10] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_service_user_ad_instance_proto_init() } +func file_service_user_ad_instance_proto_init() { + if File_service_user_ad_instance_proto != nil { + return + } + file_models_model_user_ad_instance_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_user_ad_instance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserADInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateUserADInstanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuyUserADInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BuyUserADInstanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountUserADInstancesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserADInstancesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListUserADInstancesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindUserADInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindUserADInstanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteUserADInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RenewUserADInstanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_user_ad_instance_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateUserADInstanceObjectsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_user_ad_instance_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_user_ad_instance_proto_goTypes, + DependencyIndexes: file_service_user_ad_instance_proto_depIdxs, + MessageInfos: file_service_user_ad_instance_proto_msgTypes, + }.Build() + File_service_user_ad_instance_proto = out.File + file_service_user_ad_instance_proto_rawDesc = nil + file_service_user_ad_instance_proto_goTypes = nil + file_service_user_ad_instance_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// UserADInstanceServiceClient is the client API for UserADInstanceService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type UserADInstanceServiceClient interface { + // 创建用户高防实例 + CreateUserADInstance(ctx context.Context, in *CreateUserADInstanceRequest, opts ...grpc.CallOption) (*CreateUserADInstanceResponse, error) + // 购买用户高防实例 + BuyUserADInstance(ctx context.Context, in *BuyUserADInstanceRequest, opts ...grpc.CallOption) (*BuyUserADInstanceResponse, error) + // 计算用户高防实例数量 + CountUserADInstances(ctx context.Context, in *CountUserADInstancesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 列出单页用户高防实例 + ListUserADInstances(ctx context.Context, in *ListUserADInstancesRequest, opts ...grpc.CallOption) (*ListUserADInstancesResponse, error) + // 查找单个用户高防实例 + FindUserADInstance(ctx context.Context, in *FindUserADInstanceRequest, opts ...grpc.CallOption) (*FindUserADInstanceResponse, error) + // 删除用户高防实例 + DeleteUserADInstance(ctx context.Context, in *DeleteUserADInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 续期用户高防实例 + RenewUserADInstance(ctx context.Context, in *RenewUserADInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 修改实例防护对象 + UpdateUserADInstanceObjects(ctx context.Context, in *UpdateUserADInstanceObjectsRequest, opts ...grpc.CallOption) (*RPCSuccess, error) +} + +type userADInstanceServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewUserADInstanceServiceClient(cc grpc.ClientConnInterface) UserADInstanceServiceClient { + return &userADInstanceServiceClient{cc} +} + +func (c *userADInstanceServiceClient) CreateUserADInstance(ctx context.Context, in *CreateUserADInstanceRequest, opts ...grpc.CallOption) (*CreateUserADInstanceResponse, error) { + out := new(CreateUserADInstanceResponse) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/createUserADInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) BuyUserADInstance(ctx context.Context, in *BuyUserADInstanceRequest, opts ...grpc.CallOption) (*BuyUserADInstanceResponse, error) { + out := new(BuyUserADInstanceResponse) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/buyUserADInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) CountUserADInstances(ctx context.Context, in *CountUserADInstancesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/countUserADInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) ListUserADInstances(ctx context.Context, in *ListUserADInstancesRequest, opts ...grpc.CallOption) (*ListUserADInstancesResponse, error) { + out := new(ListUserADInstancesResponse) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/listUserADInstances", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) FindUserADInstance(ctx context.Context, in *FindUserADInstanceRequest, opts ...grpc.CallOption) (*FindUserADInstanceResponse, error) { + out := new(FindUserADInstanceResponse) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/findUserADInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) DeleteUserADInstance(ctx context.Context, in *DeleteUserADInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/deleteUserADInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) RenewUserADInstance(ctx context.Context, in *RenewUserADInstanceRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/renewUserADInstance", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *userADInstanceServiceClient) UpdateUserADInstanceObjects(ctx context.Context, in *UpdateUserADInstanceObjectsRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.UserADInstanceService/updateUserADInstanceObjects", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// UserADInstanceServiceServer is the server API for UserADInstanceService service. +type UserADInstanceServiceServer interface { + // 创建用户高防实例 + CreateUserADInstance(context.Context, *CreateUserADInstanceRequest) (*CreateUserADInstanceResponse, error) + // 购买用户高防实例 + BuyUserADInstance(context.Context, *BuyUserADInstanceRequest) (*BuyUserADInstanceResponse, error) + // 计算用户高防实例数量 + CountUserADInstances(context.Context, *CountUserADInstancesRequest) (*RPCCountResponse, error) + // 列出单页用户高防实例 + ListUserADInstances(context.Context, *ListUserADInstancesRequest) (*ListUserADInstancesResponse, error) + // 查找单个用户高防实例 + FindUserADInstance(context.Context, *FindUserADInstanceRequest) (*FindUserADInstanceResponse, error) + // 删除用户高防实例 + DeleteUserADInstance(context.Context, *DeleteUserADInstanceRequest) (*RPCSuccess, error) + // 续期用户高防实例 + RenewUserADInstance(context.Context, *RenewUserADInstanceRequest) (*RPCSuccess, error) + // 修改实例防护对象 + UpdateUserADInstanceObjects(context.Context, *UpdateUserADInstanceObjectsRequest) (*RPCSuccess, error) +} + +// UnimplementedUserADInstanceServiceServer can be embedded to have forward compatible implementations. +type UnimplementedUserADInstanceServiceServer struct { +} + +func (*UnimplementedUserADInstanceServiceServer) CreateUserADInstance(context.Context, *CreateUserADInstanceRequest) (*CreateUserADInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateUserADInstance not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) BuyUserADInstance(context.Context, *BuyUserADInstanceRequest) (*BuyUserADInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BuyUserADInstance not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) CountUserADInstances(context.Context, *CountUserADInstancesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountUserADInstances not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) ListUserADInstances(context.Context, *ListUserADInstancesRequest) (*ListUserADInstancesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListUserADInstances not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) FindUserADInstance(context.Context, *FindUserADInstanceRequest) (*FindUserADInstanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindUserADInstance not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) DeleteUserADInstance(context.Context, *DeleteUserADInstanceRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteUserADInstance not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) RenewUserADInstance(context.Context, *RenewUserADInstanceRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method RenewUserADInstance not implemented") +} +func (*UnimplementedUserADInstanceServiceServer) UpdateUserADInstanceObjects(context.Context, *UpdateUserADInstanceObjectsRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateUserADInstanceObjects not implemented") +} + +func RegisterUserADInstanceServiceServer(s *grpc.Server, srv UserADInstanceServiceServer) { + s.RegisterService(&_UserADInstanceService_serviceDesc, srv) +} + +func _UserADInstanceService_CreateUserADInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateUserADInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).CreateUserADInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/CreateUserADInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).CreateUserADInstance(ctx, req.(*CreateUserADInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_BuyUserADInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BuyUserADInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).BuyUserADInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/BuyUserADInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).BuyUserADInstance(ctx, req.(*BuyUserADInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_CountUserADInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountUserADInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).CountUserADInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/CountUserADInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).CountUserADInstances(ctx, req.(*CountUserADInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_ListUserADInstances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListUserADInstancesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).ListUserADInstances(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/ListUserADInstances", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).ListUserADInstances(ctx, req.(*ListUserADInstancesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_FindUserADInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindUserADInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).FindUserADInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/FindUserADInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).FindUserADInstance(ctx, req.(*FindUserADInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_DeleteUserADInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteUserADInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).DeleteUserADInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/DeleteUserADInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).DeleteUserADInstance(ctx, req.(*DeleteUserADInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_RenewUserADInstance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RenewUserADInstanceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).RenewUserADInstance(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/RenewUserADInstance", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).RenewUserADInstance(ctx, req.(*RenewUserADInstanceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _UserADInstanceService_UpdateUserADInstanceObjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateUserADInstanceObjectsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(UserADInstanceServiceServer).UpdateUserADInstanceObjects(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.UserADInstanceService/UpdateUserADInstanceObjects", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(UserADInstanceServiceServer).UpdateUserADInstanceObjects(ctx, req.(*UpdateUserADInstanceObjectsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _UserADInstanceService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.UserADInstanceService", + HandlerType: (*UserADInstanceServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createUserADInstance", + Handler: _UserADInstanceService_CreateUserADInstance_Handler, + }, + { + MethodName: "buyUserADInstance", + Handler: _UserADInstanceService_BuyUserADInstance_Handler, + }, + { + MethodName: "countUserADInstances", + Handler: _UserADInstanceService_CountUserADInstances_Handler, + }, + { + MethodName: "listUserADInstances", + Handler: _UserADInstanceService_ListUserADInstances_Handler, + }, + { + MethodName: "findUserADInstance", + Handler: _UserADInstanceService_FindUserADInstance_Handler, + }, + { + MethodName: "deleteUserADInstance", + Handler: _UserADInstanceService_DeleteUserADInstance_Handler, + }, + { + MethodName: "renewUserADInstance", + Handler: _UserADInstanceService_RenewUserADInstance_Handler, + }, + { + MethodName: "updateUserADInstanceObjects", + Handler: _UserADInstanceService_UpdateUserADInstanceObjects_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_user_ad_instance.proto", +} diff --git a/pkg/rpc/protos/models/model_ad_network.proto b/pkg/rpc/protos/models/model_ad_network.proto new file mode 100644 index 0000000..0c54dc6 --- /dev/null +++ b/pkg/rpc/protos/models/model_ad_network.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +// 高防线路 +message ADNetwork { + int64 id = 1; + bool isOn = 2; + string name = 3; + string description = 4; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_ad_package.proto b/pkg/rpc/protos/models/model_ad_package.proto new file mode 100644 index 0000000..8259b47 --- /dev/null +++ b/pkg/rpc/protos/models/model_ad_package.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_network.proto"; + +// 高防产品 +message ADPackage { + int64 id = 1; + bool isOn = 2; + int64 adNetworkId = 3; + int32 protectionBandwidthSize = 4; + string protectionBandwidthUnit = 5; + int32 serverBandwidthSize = 6; + string serverBandwidthUnit = 7; + + ADNetwork adNetwork = 30; + string summary = 31; // 概述 + int64 countIdleADPackageInstances = 32; // 剩余可用的实例数,只有在获取可用高防产品的时候才会返回 +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_ad_package_instance.proto b/pkg/rpc/protos/models/model_ad_package_instance.proto new file mode 100644 index 0000000..778c3de --- /dev/null +++ b/pkg/rpc/protos/models/model_ad_package_instance.proto @@ -0,0 +1,25 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_node_cluster.proto"; +import "models/model_ad_package.proto"; +import "models/model_user.proto"; + +// 高防产品实例 +message ADPackageInstance { + int64 id = 1; + bool isOn = 2; + int64 adPackageId = 3; + int64 nodeClusterId = 4; + repeated int64 nodeIds = 5; + repeated string ipAddresses = 6; + int64 userId = 7; // 租用用户ID + string userDayTo = 8; // 租用日期 + int64 userInstanceId = 9; // 当前绑定的用户实例ID + + NodeCluster nodeCluster = 30; + ADPackage adPackage = 31; + User user = 32; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_ad_package_period.proto b/pkg/rpc/protos/models/model_ad_package_period.proto new file mode 100644 index 0000000..74054d8 --- /dev/null +++ b/pkg/rpc/protos/models/model_ad_package_period.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +// 高防实例有效期 +message ADPackagePeriod { + int64 id = 1; + bool isOn = 2; + int32 count = 3; + string unit = 4; + int32 months = 5; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_ad_package_price.proto b/pkg/rpc/protos/models/model_ad_package_price.proto new file mode 100644 index 0000000..a222223 --- /dev/null +++ b/pkg/rpc/protos/models/model_ad_package_price.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +// 高防产品价格定义 +message ADPackagePrice { + int64 adPackageId = 1; + int64 adPackagePeriodId = 2; + double price = 3; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_user_ad_instance.proto b/pkg/rpc/protos/models/model_user_ad_instance.proto new file mode 100644 index 0000000..ec90808 --- /dev/null +++ b/pkg/rpc/protos/models/model_user_ad_instance.proto @@ -0,0 +1,29 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_package_instance.proto"; +import "models/model_user.proto"; + +// 高防实例 +message UserADInstance { + int64 id = 1; + int64 userId = 2; + int64 adPackageInstanceId = 3; + int64 adPackagePeriodId = 4; + int32 adPackagePeriodCount = 5; + string adPackagePeriodUnit = 6; + string dayFrom = 7; // 开始日期,格式:YYYYMMDD + string dayTo = 8; // 结束日期,格式:YYYYMMDD + int64 createdAt = 9; + int32 maxObjects = 10; + repeated string objectCodes = 11; + + ADPackageInstance adPackageInstance = 30; + User user = 31; + bool canDelete = 32; + bool isAvailable = 33; // 当前是否在生效中 + int32 countObjects = 34; // 防护对象数量 + bytes objectsJSON = 35; // 对象JSON +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ad_network.proto b/pkg/rpc/protos/service_ad_network.proto new file mode 100644 index 0000000..aa8ea90 --- /dev/null +++ b/pkg/rpc/protos/service_ad_network.proto @@ -0,0 +1,78 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_network.proto"; +import "models/rpc_messages.proto"; + +// 高防线路服务 +service ADNetworkService { + // 创建线路 + rpc createADNetwork(CreateADNetworkRequest) returns (CreateADNetworkResponse); + + // 修改线路 + rpc updateADNetwork(UpdateADNetworkRequest) returns (RPCSuccess); + + // 查找单个线路 + rpc findADNetwork(FindADNetworkRequest) returns (FindADNetworkResponse); + + // 列出所有线路 + rpc findAllADNetworks(FindAllADNetworkRequest) returns (FindAllADNetworkResponse); + + // 列出所有可用的线路 + rpc findAllAvailableADNetworks(FindAllAvailableADNetworksRequest) returns (FindAllAvailableADNetworksResponse); + + // 删除线路 + rpc deleteADNetwork(DeleteADNetworkRequest) returns (RPCSuccess); +} + +// 创建线路 +message CreateADNetworkRequest { + string name = 1; + string description = 2; +} + +message CreateADNetworkResponse { + int64 adNetworkId = 1; +} + +// 修改线路 +message UpdateADNetworkRequest { + int64 adNetworkId = 1; + bool isOn = 2; + string name = 3; + string description = 4; +} + +// 查找单个线路 +message FindADNetworkRequest { + int64 adNetworkId = 1; +} + +message FindADNetworkResponse { + ADNetwork adNetwork = 1; +} + +// 列出所有线路 +message FindAllADNetworkRequest { + +} + +message FindAllADNetworkResponse { + repeated ADNetwork adNetworks = 1; +} + +// 列出所有可用的线路 +message FindAllAvailableADNetworksRequest { + +} + +message FindAllAvailableADNetworksResponse { + repeated ADNetwork adNetworks = 1; +} + +// 删除线路 +message DeleteADNetworkRequest { + int64 adNetworkId = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ad_package.proto b/pkg/rpc/protos/service_ad_package.proto new file mode 100644 index 0000000..00c5d58 --- /dev/null +++ b/pkg/rpc/protos/service_ad_package.proto @@ -0,0 +1,102 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_package.proto"; +import "models/rpc_messages.proto"; + +// 高防产品服务 +service ADPackageService { + // 创建高防产品 + rpc createADPackage(CreateADPackageRequest) returns (CreateADPackageResponse); + + // 修改高防产品 + rpc updateADPackage(UpdateADPackageRequest) returns (RPCSuccess); + + // 查找单个高防产品 + rpc findADPackage(FindADPackageRequest) returns (FindADPackageResponse); + + // 查询高防产品数量 + rpc countADPackages(CountADPackagesRequest) returns (RPCCountResponse); + + // 查询可用的产品数量 + rpc countAllIdleADPackages(CountAllIdleADPackages) returns (RPCCountResponse); + + // 列出单页高防产品 + rpc listADPackages(ListADPackagesRequest) returns (ListADPackagesResponse); + + // 列出所有可用的高防产品 + rpc findAllIdleADPackages(FindAllIdleADPackagesRequest) returns (FindAllIdleADPackagesResponse); + + // 删除高防产品 + rpc deleteADPackage(DeleteADPackageRequest) returns (RPCSuccess); +} + +// 创建高防产品 +message CreateADPackageRequest { + int64 adNetworkId = 1; + int32 protectionBandwidthSize = 2; + string protectionBandwidthUnit = 3; + int32 serverBandwidthSize = 4; + string serverBandwidthUnit = 5; +} + +message CreateADPackageResponse { + int64 adPackageId = 1; +} + +// 修改高防产品 +message UpdateADPackageRequest { + int64 adPackageId = 1; + bool isOn = 2; + int64 adNetworkId = 3; + int32 protectionBandwidthSize = 4; + string protectionBandwidthUnit = 5; + int32 serverBandwidthSize = 6; + string serverBandwidthUnit = 7; +} + +// 查找单个高防产品 +message FindADPackageRequest { + int64 adPackageId = 1; +} + +message FindADPackageResponse { + ADPackage adPackage = 1; +} + +// 查询高防产品数量 +message CountADPackagesRequest { + int64 adNetworkId = 1; +} + +// 查询可用的产品数量 +message CountAllIdleADPackages { + +} + +// 列出单页高防产品 +message ListADPackagesRequest { + int64 adNetworkId = 1; + int64 offset = 2; + int64 size = 3; +} + +message ListADPackagesResponse { + repeated ADPackage adPackages = 1; +} + +// 列出所有可用的高防产品 +message FindAllIdleADPackagesRequest { + +} + +message FindAllIdleADPackagesResponse { + repeated ADPackage adPackages = 1; +} + +// 删除高防产品 +message DeleteADPackageRequest { + int64 adPackageId = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ad_package_instance.proto b/pkg/rpc/protos/service_ad_package_instance.proto new file mode 100644 index 0000000..75af84a --- /dev/null +++ b/pkg/rpc/protos/service_ad_package_instance.proto @@ -0,0 +1,105 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_package_instance.proto"; +import "models/rpc_messages.proto"; + +// 高防实例服务 +service ADPackageInstanceService { + // 创建实例 + rpc createADPackageInstance(CreateADPackageInstanceRequest) returns (CreateADPackageInstanceResponse); + + // 修改实例 + rpc updateADPackageInstance(UpdateADPackageInstanceRequest) returns (RPCSuccess); + + // 查找单个实例 + rpc findADPackageInstance(FindADPackageInstanceRequest) returns (FindADPackageInstanceResponse); + + // 列出单个高防产品所有实例 + rpc findAllADPackageInstances(FindAllADPackageInstancesRequest) returns (FindAllADPackageInstancesResponse); + + // 删除实例 + rpc deleteADPackageInstance(DeleteADPackageInstanceRequest) returns (RPCSuccess); + + // 计算可购的实例数量 + rpc countIdleADPackageInstances(CountIdleADPackageInstancesRequest) returns (RPCCountResponse); + + // 计算实例数量 + rpc countADPackageInstances(CountADPackageInstancesRequest) returns (RPCCountResponse); + + // 列出单页实例 + rpc listADPackageInstances(ListADPackageInstancesRequest) returns (ListADPackageInstancesResponse); +} + +// 创建实例 +message CreateADPackageInstanceRequest { + int64 adPackageId = 1; + int64 nodeClusterId = 2; + repeated int64 nodeIds = 3; + repeated string ipAddresses = 4; +} + +message CreateADPackageInstanceResponse { + int64 adPackageInstanceId = 1; +} + +// 修改实例 +message UpdateADPackageInstanceRequest { + int64 adPackageInstanceId = 1; + int64 nodeClusterId = 2; + repeated int64 nodeIds = 3; + repeated string ipAddresses = 4; + bool isOn = 5; +} + +// 查找单个实例 +message FindADPackageInstanceRequest { + int64 adPackageInstanceId = 1; +} + +message FindADPackageInstanceResponse { + ADPackageInstance adPackageInstance = 1; +} + +// 列出单个高防产品所有实例 +message FindAllADPackageInstancesRequest { + int64 adPackageId = 1; +} + +message FindAllADPackageInstancesResponse { + repeated ADPackageInstance adPackageInstances = 1; +} + +// 删除实例 +message DeleteADPackageInstanceRequest { + int64 adPackageInstanceId = 1; +} + +// 计算可购的实例数量 +message CountIdleADPackageInstancesRequest { + int64 adPackageId = 1; +} + +// 计算实例数量 +message CountADPackageInstancesRequest { + int64 adNetworkId = 1; // 可选,线路 + int64 adPackageId = 2; // 可选,如果不填则表示获取所有实例数量 + int64 userId = 3; // 可选,用户ID + string ip = 4; // 可选,高防IP +} + +// 列出单页实例 +message ListADPackageInstancesRequest { + int64 adNetworkId = 1; // 可选,线路 + int64 adPackageId = 2; // 可选,如果不填则表示获取所有实例数量 + int64 userId = 3; // 可选,用户ID + string ip = 4; // 可选,高防IP + int64 offset = 5; + int64 size = 6; +} + +message ListADPackageInstancesResponse { + repeated ADPackageInstance adPackageInstances = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ad_package_period.proto b/pkg/rpc/protos/service_ad_package_period.proto new file mode 100644 index 0000000..87c7c0c --- /dev/null +++ b/pkg/rpc/protos/service_ad_package_period.proto @@ -0,0 +1,76 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_package_period.proto"; +import "models/rpc_messages.proto"; + +// 高防实例有效期服务 +service ADPackagePeriodService { + // 创建有效期 + rpc createADPackagePeriod(CreateADPackagePeriodRequest) returns (CreateADPackagePeriodResponse); + + // 修改有效期 + rpc updateADPackagePeriod(UpdateADPackagePeriodRequest) returns (RPCSuccess); + + // 删除有效期 + rpc deleteADPackagePeriod(DeleteADPackagePeriodRequest) returns (RPCSuccess); + + // 查找有效期 + rpc findADPackagePeriod(FindADPackagePeriodRequest) returns (FindADPackagePeriodResponse); + + // 列出所有有效期 + rpc findAllADPackagePeriods(FindAllADPackagePeriodsRequest) returns (FindAllADPackagePeriodsResponse); + + // 列出所有可用有效期 + rpc findAllAvailableADPackagePeriods(FindAllAvailableADPackagePeriodsRequest) returns (FindAllAvailableADPackagePeriodsResponse); +} + +// 创建有效期 +message CreateADPackagePeriodRequest { + int32 count = 1; + string unit = 2; // month | year +} + +message CreateADPackagePeriodResponse { + int64 adPackagePeriodId = 1; +} + +// 修改有效期 +message UpdateADPackagePeriodRequest { + int64 adPackagePeriodId = 1; + bool isOn = 2; +} + +// 删除有效期 +message DeleteADPackagePeriodRequest { + int64 adPackagePeriodId = 1; +} + +// 查找有效期 +message FindADPackagePeriodRequest { + int64 adPackagePeriodId = 1; +} + +message FindADPackagePeriodResponse { + ADPackagePeriod adPackagePeriod = 1; +} + +// 列出所有有效期 +message FindAllADPackagePeriodsRequest { + +} + +message FindAllADPackagePeriodsResponse { + repeated ADPackagePeriod adPackagePeriods = 1; +} + +// 列出所有可用有效期 +message FindAllAvailableADPackagePeriodsRequest { + +} + +message FindAllAvailableADPackagePeriodsResponse { + repeated ADPackagePeriod adPackagePeriods = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ad_package_price.proto b/pkg/rpc/protos/service_ad_package_price.proto new file mode 100644 index 0000000..7147e8f --- /dev/null +++ b/pkg/rpc/protos/service_ad_package_price.proto @@ -0,0 +1,67 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ad_package_price.proto"; +import "models/rpc_messages.proto"; + +// 高防产品价格服务 +service ADPackagePriceService { + // 设置高防产品价格 + rpc updateADPackagePrice(UpdateADPackagePriceRequest) returns (RPCSuccess); + + // 获取单个高防产品具体价格 + rpc findADPackagePrice(FindADPackagePriceRequest) returns (FindADPackagePriceResponse); + + // 计算高防产品价格项数量 + rpc countADPackagePrices(CountADPackagePricesRequest) returns (RPCCountResponse); + + // 查找高防产品价格 + rpc findADPackagePrices(FindADPackagePricesRequest) returns (FindADPackagePricesResponse); + + // 查找所有高防产品价格 + rpc findAllADPackagePrices(FindAllADPackagePricesRequest) returns (FindAllADPackagePricesResponse); +} + +// 设置高防产品价格 +message UpdateADPackagePriceRequest { + int64 adPackageId = 1; + int64 adPackagePeriodId = 2; + double price = 3; +} + +// 获取单个高防产品具体价格 +message FindADPackagePriceRequest { + int64 adPackageId = 1; + int64 adPackagePeriodId = 2; + int32 count = 3; +} + +message FindADPackagePriceResponse { + double price = 1; // 单价 + double amount = 2; // 总价 +} + +// 计算高防产品价格项数量 +message CountADPackagePricesRequest { + int64 adPackageId = 1; +} + +// 查找高防产品价格 +message FindADPackagePricesRequest { + int64 adPackageId = 1; +} + +message FindADPackagePricesResponse { + repeated ADPackagePrice adPackagePrices = 1; +} + +// 查找所有高防产品价格 +message FindAllADPackagePricesRequest { + +} + +message FindAllADPackagePricesResponse { + repeated ADPackagePrice adPackagePrices = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_http_web.proto b/pkg/rpc/protos/service_http_web.proto index 9895a93..24c5c20 100644 --- a/pkg/rpc/protos/service_http_web.proto +++ b/pkg/rpc/protos/service_http_web.proto @@ -116,7 +116,7 @@ service HTTPWebService { // 创建Web配置 message CreateHTTPWebRequest { - bytes rootJSON = 1; + bytes rootJSON = 1; // 可选,静态分发配置 } message CreateHTTPWebResponse { diff --git a/pkg/rpc/protos/service_user_ad_instance.proto b/pkg/rpc/protos/service_user_ad_instance.proto new file mode 100644 index 0000000..4e259fd --- /dev/null +++ b/pkg/rpc/protos/service_user_ad_instance.proto @@ -0,0 +1,108 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_user_ad_instance.proto"; +import "models/rpc_messages.proto"; + +// 用户高防实例服务 +service UserADInstanceService { + // 创建用户高防实例 + rpc createUserADInstance(CreateUserADInstanceRequest) returns (CreateUserADInstanceResponse); + + // 购买用户高防实例 + rpc buyUserADInstance(BuyUserADInstanceRequest) returns (BuyUserADInstanceResponse); + + // 计算用户高防实例数量 + rpc countUserADInstances(CountUserADInstancesRequest) returns (RPCCountResponse); + + // 列出单页用户高防实例 + rpc listUserADInstances(ListUserADInstancesRequest) returns (ListUserADInstancesResponse); + + // 查找单个用户高防实例 + rpc findUserADInstance(FindUserADInstanceRequest) returns (FindUserADInstanceResponse); + + // 删除用户高防实例 + rpc deleteUserADInstance(DeleteUserADInstanceRequest) returns (RPCSuccess); + + // 续期用户高防实例 + rpc renewUserADInstance(RenewUserADInstanceRequest) returns (RPCSuccess); + + // 修改实例防护对象 + rpc updateUserADInstanceObjects(UpdateUserADInstanceObjectsRequest) returns (RPCSuccess); +} + +// 创建用户高防实例 +message CreateUserADInstanceRequest { + int64 userId = 1; + int64 adPackageId = 2; + int64 adPackagePeriodId = 3; + int32 count = 4; +} + +message CreateUserADInstanceResponse { + repeated int64 userADInstanceIds = 1; +} + +// 购买用户高防实例 +message BuyUserADInstanceRequest { + int64 userId = 1; + int64 adPackageId = 2; + int64 adPackagePeriodId = 3; + int32 count = 4; +} + +message BuyUserADInstanceResponse { + repeated int64 userADInstanceIds = 1; +} + +// 查询用户高防实例数量 +message CountUserADInstancesRequest { + int64 adNetworkId = 1; // 线路ID + int64 userId = 2; // 用户ID + int64 adPackagePeriodId = 3; + string expiresDay = 4; + bool availableOnly = 5; // 是否只查询有效的高防实例 +} + +// 列出单页用户高防实例 +message ListUserADInstancesRequest { + int64 adNetworkId = 1; // 线路ID + int64 userId = 2; // 用户ID + int64 adPackagePeriodId = 3; + string expiresDay = 4; + bool availableOnly = 5; // 是否只查询有效的高防实例 + int64 offset = 6; + int64 size = 7; +} + +message ListUserADInstancesResponse { + repeated UserADInstance userADInstances = 1; +} + +// 查找单个用户高防实例 +message FindUserADInstanceRequest { + int64 userADInstanceId = 1; +} + +message FindUserADInstanceResponse { + UserADInstance userADInstance = 1; +} + +// 删除用户高防实例 +message DeleteUserADInstanceRequest { + int64 userADInstanceId = 1; +} + +// 续期用户高防实例 +message RenewUserADInstanceRequest { + int64 userADInstanceId = 1; + int64 adPackagePeriodId = 2; +} + +// 修改实例防护对象 +message UpdateUserADInstanceObjectsRequest { + int64 userADInstanceId = 1; + repeated string objectCodes = 2; +} \ No newline at end of file