diff --git a/build/rpc.json b/build/rpc.json index af9ec3b..f8d4c59 100644 --- a/build/rpc.json +++ b/build/rpc.json @@ -2841,6 +2841,93 @@ "filename": "service_ip_library.proto", "doc": "IP库" }, + { + "name": "IPLibraryFileService", + "methods": [ + { + "name": "findAllUnfinishedIPLibraryFiles", + "requestMessageName": "FindAllUnfinishedIPLibraryFilesRequest", + "responseMessageName": "FindAllUnfinishedIPLibraryFilesResponse", + "code": "rpc findAllUnfinishedIPLibraryFiles(FindAllUnfinishedIPLibraryFilesRequest) returns (FindAllUnfinishedIPLibraryFilesResponse);", + "doc": "查找所有未完成的IP库文件", + "roles": [ + "admin" + ] + }, + { + "name": "findIPLibraryFile", + "requestMessageName": "FindIPLibraryFileRequest", + "responseMessageName": "FindIPLibraryFileResponse", + "code": "rpc findIPLibraryFile(FindIPLibraryFileRequest) returns (FindIPLibraryFileResponse);", + "doc": "查找单个IP库文件", + "roles": [ + "admin" + ] + }, + { + "name": "createIPLibraryFile", + "requestMessageName": "CreateIPLibraryFileRequest", + "responseMessageName": "CreateIPLibraryFileResponse", + "code": "rpc createIPLibraryFile(CreateIPLibraryFileRequest) returns (CreateIPLibraryFileResponse);", + "doc": "创建IP库文件", + "roles": [ + "admin" + ] + }, + { + "name": "checkCountriesWithIPLibraryFileId", + "requestMessageName": "CheckCountriesWithIPLibraryFileIdRequest", + "responseMessageName": "CheckCountriesWithIPLibraryFileIdResponse", + "code": "rpc checkCountriesWithIPLibraryFileId(CheckCountriesWithIPLibraryFileIdRequest) returns (CheckCountriesWithIPLibraryFileIdResponse);", + "doc": "检查国家/地区", + "roles": [ + "admin" + ] + }, + { + "name": "checkProvincesWithIPLibraryFileId", + "requestMessageName": "CheckProvincesWithIPLibraryFileIdRequest", + "responseMessageName": "CheckProvincesWithIPLibraryFileIdResponse", + "code": "rpc checkProvincesWithIPLibraryFileId(CheckProvincesWithIPLibraryFileIdRequest) returns (CheckProvincesWithIPLibraryFileIdResponse);", + "doc": "检查省份/州", + "roles": [ + "admin" + ] + }, + { + "name": "checkCitiesWithIPLibraryFileId", + "requestMessageName": "CheckCitiesWithIPLibraryFileIdRequest", + "responseMessageName": "CheckCitiesWithIPLibraryFileIdResponse", + "code": "rpc checkCitiesWithIPLibraryFileId(CheckCitiesWithIPLibraryFileIdRequest) returns (CheckCitiesWithIPLibraryFileIdResponse);", + "doc": "检查城市/市", + "roles": [ + "admin" + ] + }, + { + "name": "checkProvidersWithIPLibraryFileId", + "requestMessageName": "CheckProvidersWithIPLibraryFileIdRequest", + "responseMessageName": "CheckProvidersWithIPLibraryFileIdResponse", + "code": "rpc checkProvidersWithIPLibraryFileId(CheckProvidersWithIPLibraryFileIdRequest) returns (CheckProvidersWithIPLibraryFileIdResponse);", + "doc": "检查ISP运营商", + "roles": [ + "admin" + ] + }, + { + "name": "generateIPLibraryFile", + "requestMessageName": "GenerateIPLibraryFileRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc generateIPLibraryFile(GenerateIPLibraryFileRequest) returns (RPCSuccess);", + "doc": "生成IP库文件", + "roles": [ + "admin" + ] + } + ], + "filename": "service_ip_library_file.proto", + "doc": "IP库文件管理" + }, { "name": "IPListService", "methods": [ @@ -6615,93 +6702,25 @@ }, { "name": "RegionCityService", - "methods": [ - { - "name": "findAllEnabledRegionCities", - "requestMessageName": "FindAllEnabledRegionCitiesRequest", - "responseMessageName": "FindAllEnabledRegionCitiesResponse", - "code": "rpc findAllEnabledRegionCities (FindAllEnabledRegionCitiesRequest) returns (FindAllEnabledRegionCitiesResponse);", - "doc": "查找所有城市", - "roles": [] - }, - { - "name": "findEnabledRegionCity", - "requestMessageName": "FindEnabledRegionCityRequest", - "responseMessageName": "FindEnabledRegionCityResponse", - "code": "rpc findEnabledRegionCity (FindEnabledRegionCityRequest) returns (FindEnabledRegionCityResponse);", - "doc": "查找单个城市信息", - "roles": [] - } - ], + "methods": [], "filename": "service_region_city.proto", "doc": "城市相关服务" }, { "name": "RegionCountryService", - "methods": [ - { - "name": "findAllEnabledRegionCountries", - "requestMessageName": "FindAllEnabledRegionCountriesRequest", - "responseMessageName": "FindAllEnabledRegionCountriesResponse", - "code": "rpc findAllEnabledRegionCountries (FindAllEnabledRegionCountriesRequest) returns (FindAllEnabledRegionCountriesResponse);", - "doc": "查找所有的国家列表", - "roles": [] - }, - { - "name": "findEnabledRegionCountry", - "requestMessageName": "FindEnabledRegionCountryRequest", - "responseMessageName": "FindEnabledRegionCountryResponse", - "code": "rpc findEnabledRegionCountry (FindEnabledRegionCountryRequest) returns (FindEnabledRegionCountryResponse);", - "doc": "查找单个国家信息", - "roles": [] - } - ], + "methods": [], "filename": "service_region_country.proto", "doc": "国家相关服务" }, { "name": "RegionProviderService", - "methods": [ - { - "name": "findAllEnabledRegionProviders", - "requestMessageName": "FindAllEnabledRegionProvidersRequest", - "responseMessageName": "FindAllEnabledRegionProvidersResponse", - "code": "rpc findAllEnabledRegionProviders (FindAllEnabledRegionProvidersRequest) returns (FindAllEnabledRegionProvidersResponse);", - "doc": "查找所有ISP", - "roles": [] - }, - { - "name": "findEnabledRegionProvider", - "requestMessageName": "FindEnabledRegionProviderRequest", - "responseMessageName": "FindEnabledRegionProviderResponse", - "code": "rpc findEnabledRegionProvider (FindEnabledRegionProviderRequest) returns (FindEnabledRegionProviderResponse);", - "doc": "查找单个ISP信息", - "roles": [] - } - ], + "methods": [], "filename": "service_region_provider.proto", "doc": "ISP相关服务" }, { "name": "RegionProvinceService", - "methods": [ - { - "name": "findAllEnabledRegionProvincesWithCountryId", - "requestMessageName": "FindAllEnabledRegionProvincesWithCountryIdRequest", - "responseMessageName": "FindAllEnabledRegionProvincesWithCountryIdResponse", - "code": "rpc findAllEnabledRegionProvincesWithCountryId (FindAllEnabledRegionProvincesWithCountryIdRequest) returns (FindAllEnabledRegionProvincesWithCountryIdResponse);", - "doc": "查找所有省份", - "roles": [] - }, - { - "name": "findEnabledRegionProvince", - "requestMessageName": "FindEnabledRegionProvinceRequest", - "responseMessageName": "FindEnabledRegionProvinceResponse", - "code": "rpc findEnabledRegionProvince (FindEnabledRegionProvinceRequest) returns (FindEnabledRegionProvinceResponse);", - "doc": "查找单个省份信息", - "roles": [] - } - ], + "methods": [], "filename": "service_region_province.proto", "doc": "省份相关服务" }, @@ -9348,24 +9367,14 @@ "code": "message CountAPIMethodStatsWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n}", "doc": "检查是否有统计数据" }, - { - "name": "FindACMEAuthenticationKeyWithTokenResponse", - "code": "message FindACMEAuthenticationKeyWithTokenResponse {\n\tstring key = 1;\n}", - "doc": "" - }, { "name": "FindACMEAuthenticationKeyWithTokenRequest", "code": "message FindACMEAuthenticationKeyWithTokenRequest {\n\tstring token = 1;\n}", "doc": "获取Key" }, { - "name": "FindAllACMEProvidersRequest", - "code": "message FindAllACMEProvidersRequest {\n\n}", - "doc": "查找所有的服务商" - }, - { - "name": "FindAllACMEProvidersResponse", - "code": "message FindAllACMEProvidersResponse {\n\trepeated ACMEProvider acmeProviders = 1;\n}", + "name": "FindACMEAuthenticationKeyWithTokenResponse", + "code": "message FindACMEAuthenticationKeyWithTokenResponse {\n\tstring key = 1;\n}", "doc": "" }, { @@ -9378,11 +9387,46 @@ "code": "message FindACMEProviderWithCodeResponse {\n\tACMEProvider acmeProvider = 1;\n}", "doc": "" }, + { + "name": "FindAllACMEProvidersRequest", + "code": "message FindAllACMEProvidersRequest {\n\n}", + "doc": "查找所有的服务商" + }, + { + "name": "FindAllACMEProvidersResponse", + "code": "message FindAllACMEProvidersResponse {\n\trepeated ACMEProvider acmeProviders = 1;\n}", + "doc": "" + }, + { + "name": "CreateACMEProviderAccountRequest", + "code": "message CreateACMEProviderAccountRequest {\n\tstring name = 1;\n\tstring providerCode = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", + "doc": "创建服务商" + }, + { + "name": "CreateACMEProviderAccountResponse", + "code": "message CreateACMEProviderAccountResponse {\n\tint64 acmeProviderAccountId = 1;\n}", + "doc": "" + }, { "name": "FindAllACMEProviderAccountsWithProviderCodeRequest", "code": "message FindAllACMEProviderAccountsWithProviderCodeRequest {\n\tstring acmeProviderCode = 1;\n}", "doc": "使用代号查找服务商账号" }, + { + "name": "FindAllACMEProviderAccountsWithProviderCodeResponse", + "code": "message FindAllACMEProviderAccountsWithProviderCodeResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", + "doc": "" + }, + { + "name": "UpdateACMEProviderAccountRequest", + "code": "message UpdateACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n\tstring name = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", + "doc": "修改服务商账号" + }, + { + "name": "ListEnabledACMEProviderAccountsResponse", + "code": "message ListEnabledACMEProviderAccountsResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", + "doc": "" + }, { "name": "DeleteACMEProviderAccountRequest", "code": "message DeleteACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n}", @@ -9409,35 +9453,45 @@ "doc": "列出单页服务商账号" }, { - "name": "ListEnabledACMEProviderAccountsResponse", - "code": "message ListEnabledACMEProviderAccountsResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", + "name": "CountEnabledACMETasksWithDNSProviderIdRequest", + "code": "message CountEnabledACMETasksWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算跟某个DNS服务商相关的任务数量" + }, + { + "name": "DeleteACMETaskRequest", + "code": "message DeleteACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", + "doc": "删除任务" + }, + { + "name": "RunACMETaskRequest", + "code": "message RunACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", + "doc": "运行某个任务" + }, + { + "name": "FindEnabledACMETaskResponse", + "code": "message FindEnabledACMETaskResponse {\n\tACMETask acmeTask = 1;\n}", "doc": "" }, { - "name": "CreateACMEProviderAccountRequest", - "code": "message CreateACMEProviderAccountRequest {\n\tstring name = 1;\n\tstring providerCode = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", - "doc": "创建服务商" + "name": "CountAllEnabledACMETasksWithACMEUserIdRequest", + "code": "message CountAllEnabledACMETasksWithACMEUserIdRequest {\n\tint64 acmeUserId = 1;\n}", + "doc": "计算某个ACME用户相关的任务数量" }, { - "name": "FindAllACMEProviderAccountsWithProviderCodeResponse", - "code": "message FindAllACMEProviderAccountsWithProviderCodeResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", - "doc": "" - }, - { - "name": "UpdateACMEProviderAccountRequest", - "code": "message UpdateACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n\tstring name = 2;\n\tstring eabKid = 3;\n\tstring eabKey = 4;\n}", - "doc": "修改服务商账号" - }, - { - "name": "CreateACMEProviderAccountResponse", - "code": "message CreateACMEProviderAccountResponse {\n\tint64 acmeProviderAccountId = 1;\n}", - "doc": "" + "name": "CountAllEnabledACMETasksRequest", + "code": "message CountAllEnabledACMETasksRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tbool isAvailable = 3;\n\tbool isExpired = 4;\n\tint32 expiringDays = 5;\n\tstring keyword = 6;\n}", + "doc": "计算所有任务数量" }, { "name": "ListEnabledACMETasksRequest", "code": "message ListEnabledACMETasksRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n\tbool isAvailable = 5;\n\tbool isExpired = 6;\n\tint32 expiringDays = 7;\n\tstring keyword = 8;\n}", "doc": "列出单页任务" }, + { + "name": "ListEnabledACMETasksResponse", + "code": "message ListEnabledACMETasksResponse {\n\trepeated ACMETask acmeTasks = 1;\n}", + "doc": "" + }, { "name": "CreateACMETaskRequest", "code": "message CreateACMETaskRequest {\n\tint64 acmeUserId = 1;\n\tint64 dnsProviderId = 2;\n\tstring dnsDomain = 3;\n\trepeated string domains = 4;\n\tbool autoRenew = 5;\n\tstring authType = 6;\n\tstring authURL = 7;\n}", @@ -9458,86 +9512,16 @@ "code": "message RunACMETaskResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n\tint64 sslCertId = 3;\n}", "doc": "" }, - { - "name": "FindEnabledACMETaskResponse", - "code": "message FindEnabledACMETaskResponse {\n\tACMETask acmeTask = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledACMETasksWithACMEUserIdRequest", - "code": "message CountAllEnabledACMETasksWithACMEUserIdRequest {\n\tint64 acmeUserId = 1;\n}", - "doc": "计算某个ACME用户相关的任务数量" - }, - { - "name": "CountAllEnabledACMETasksRequest", - "code": "message CountAllEnabledACMETasksRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tbool isAvailable = 3;\n\tbool isExpired = 4;\n\tint32 expiringDays = 5;\n\tstring keyword = 6;\n}", - "doc": "计算所有任务数量" - }, - { - "name": "DeleteACMETaskRequest", - "code": "message DeleteACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", - "doc": "删除任务" - }, - { - "name": "RunACMETaskRequest", - "code": "message RunACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", - "doc": "运行某个任务" - }, { "name": "FindEnabledACMETaskRequest", "code": "message FindEnabledACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", "doc": "查找单个任务信息" }, - { - "name": "CountEnabledACMETasksWithDNSProviderIdRequest", - "code": "message CountEnabledACMETasksWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算跟某个DNS服务商相关的任务数量" - }, - { - "name": "ListEnabledACMETasksResponse", - "code": "message ListEnabledACMETasksResponse {\n\trepeated ACMETask acmeTasks = 1;\n}", - "doc": "" - }, - { - "name": "CreateACMEUserRequest", - "code": "message CreateACMEUserRequest {\n\tstring email = 1;\n\tstring description = 2;\n\tstring acmeProviderCode = 3;\n\tint64 acmeProviderAccountId = 4;\n}", - "doc": "创建用户" - }, - { - "name": "CreateACMEUserResponse", - "code": "message CreateACMEUserResponse {\n\tint64 acmeUserId = 1;\n}", - "doc": "" - }, - { - "name": "DeleteACMEUserRequest", - "code": "message DeleteACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", - "doc": "删除用户" - }, - { - "name": "ListACMEUsersRequest", - "code": "message ListACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页用户" - }, { "name": "ListACMEUsersResponse", "code": "message ListACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", "doc": "" }, - { - "name": "FindAllACMEUsersResponse", - "code": "message FindAllACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", - "doc": "" - }, - { - "name": "UpdateACMEUserRequest", - "code": "message UpdateACMEUserRequest {\n\tint64 acmeUserId = 1;\n\tstring description = 2;\n}", - "doc": "修改用户" - }, - { - "name": "CountAcmeUsersRequest", - "code": "message CountAcmeUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 acmeProviderAccountId = 3;\n}", - "doc": "计算用户数量" - }, { "name": "FindEnabledACMEUserRequest", "code": "message FindEnabledACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", @@ -9553,25 +9537,65 @@ "code": "message FindAllACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring acmeProviderCode = 3;\n}", "doc": "查找所有用户" }, + { + "name": "CreateACMEUserRequest", + "code": "message CreateACMEUserRequest {\n\tstring email = 1;\n\tstring description = 2;\n\tstring acmeProviderCode = 3;\n\tint64 acmeProviderAccountId = 4;\n}", + "doc": "创建用户" + }, + { + "name": "UpdateACMEUserRequest", + "code": "message UpdateACMEUserRequest {\n\tint64 acmeUserId = 1;\n\tstring description = 2;\n}", + "doc": "修改用户" + }, + { + "name": "DeleteACMEUserRequest", + "code": "message DeleteACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", + "doc": "删除用户" + }, + { + "name": "CountAcmeUsersRequest", + "code": "message CountAcmeUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 acmeProviderAccountId = 3;\n}", + "doc": "计算用户数量" + }, + { + "name": "ListACMEUsersRequest", + "code": "message ListACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页用户" + }, + { + "name": "FindAllACMEUsersResponse", + "code": "message FindAllACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", + "doc": "" + }, + { + "name": "CreateACMEUserResponse", + "code": "message CreateACMEUserResponse {\n\tint64 acmeUserId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateAdminRequest", + "code": "message UpdateAdminRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tbytes modulesJSON = 5;\n\tbool isSuper = 6;\n\tbool isOn = 7;\n\tbool canLogin = 8;\n}", + "doc": "修改管理员" + }, { "name": "CheckAdminUsernameRequest", "code": "message CheckAdminUsernameRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n}", "doc": "检查用户名是否存在" }, + { + "name": "FindAdminFullnameRequest", + "code": "message FindAdminFullnameRequest {\n\tint64 adminId = 1;\n}", + "doc": "获取管理员名称" + }, { "name": "FindAdminFullnameResponse", "code": "message FindAdminFullnameResponse {\n\tstring fullname = 1;\n}", "doc": "" }, { - "name": "DeleteAdminRequest", - "code": "message DeleteAdminRequest {\n\tint64 adminId = 1;\n}", - "doc": "删除管理员" - }, - { - "name": "ComposeAdminDashboardResponse", - "code": "message ComposeAdminDashboardResponse {\n\tint64 countNodeClusters = 1;\n\tint64 countNodes = 2;\n\tint64 countOfflineNodes = 9;\n\tint64 countServers = 3;\n\tint64 countAuditingServers = 13;\n\tint64 countUsers = 4;\n\tint64 countAPINodes = 5;\n\tint64 countOfflineAPINodes = 10;\n\tint64 countDBNodes = 6;\n\tint64 countOfflineDBNodes = 11;\n\tint64 countUserNodes = 7;\n\tint64 countOfflineUserNodes = 12;\n\tint64 defaultNodeClusterId = 8;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\n\tUpgradeInfo nodeUpgradeInfo = 32;\n\tUpgradeInfo apiNodeUpgradeInfo = 33;\n\tUpgradeInfo monitorNodeUpgradeInfo = 34;\n\tUpgradeInfo userNodeUpgradeInfo = 35;\n\tUpgradeInfo authorityNodeUpgradeInfo = 36;\n\tUpgradeInfo nsNodeUpgradeInfo = 37;\n\tUpgradeInfo reportNodeUpgradeInfo = 41;\n\n\trepeated NodeStat topNodeStats = 38;\n\trepeated DomainStat topDomainStats = 39;\n\trepeated CountryStat topCountryStats = 42;\n\n\trepeated MetricDataChart metricDataCharts = 40;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n\n\n\tmessage CountryStat {\n\t\tstring countryName = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t\tfloat percent = 4; // 流量占比\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\t// 节点升级信息\n\n\tmessage UpgradeInfo {\n\t\tint64 countNodes = 1; // 节点数\n\t\tstring newVersion = 2; // 新版本\n\t}\n}", - "doc": "" + "name": "LoginAdminRequest", + "code": "message LoginAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", + "doc": "登录" }, { "name": "CheckAdminExistsRequest", @@ -9579,19 +9603,44 @@ "doc": "检查管理员是否存在" }, { - "name": "CheckAdminUsernameResponse", - "code": "message CheckAdminUsernameResponse {\n\tbool exists = 1;\n}", + "name": "CreateOrUpdateAdminRequest", + "code": "message CreateOrUpdateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", + "doc": "创建或修改管理员" + }, + { + "name": "ListEnabledAdminsResponse", + "code": "message ListEnabledAdminsResponse {\n\trepeated Admin admins = 1;\n}", "doc": "" }, { - "name": "CreateAdminResponse", - "code": "message CreateAdminResponse {\n\tint64 adminId = 1;\n}", + "name": "ComposeAdminDashboardResponse", + "code": "message ComposeAdminDashboardResponse {\n\tint64 countNodeClusters = 1;\n\tint64 countNodes = 2;\n\tint64 countOfflineNodes = 9;\n\tint64 countServers = 3;\n\tint64 countAuditingServers = 13;\n\tint64 countUsers = 4;\n\tint64 countAPINodes = 5;\n\tint64 countOfflineAPINodes = 10;\n\tint64 countDBNodes = 6;\n\tint64 countOfflineDBNodes = 11;\n\tint64 countUserNodes = 7;\n\tint64 countOfflineUserNodes = 12;\n\tint64 defaultNodeClusterId = 8;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\n\tUpgradeInfo nodeUpgradeInfo = 32;\n\tUpgradeInfo apiNodeUpgradeInfo = 33;\n\tUpgradeInfo monitorNodeUpgradeInfo = 34;\n\tUpgradeInfo userNodeUpgradeInfo = 35;\n\tUpgradeInfo authorityNodeUpgradeInfo = 36;\n\tUpgradeInfo nsNodeUpgradeInfo = 37;\n\tUpgradeInfo reportNodeUpgradeInfo = 41;\n\n\trepeated NodeStat topNodeStats = 38;\n\trepeated DomainStat topDomainStats = 39;\n\trepeated CountryStat topCountryStats = 42;\n\n\trepeated MetricDataChart metricDataCharts = 40;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n\n\n\tmessage CountryStat {\n\t\tstring countryName = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t\tfloat percent = 4; // 流量占比\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\t// 节点升级信息\n\n\tmessage UpgradeInfo {\n\t\tint64 countNodes = 1; // 节点数\n\t\tstring newVersion = 2; // 新版本\n\t}\n}", "doc": "" }, { - "name": "ListEnabledAdminsRequest", - "code": "message ListEnabledAdminsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的管理员" + "name": "FindEnabledAdminResponse", + "code": "message FindEnabledAdminResponse {\n\tAdmin admin = 1;\n}", + "doc": "" + }, + { + "name": "UpdateAdminLoginRequest", + "code": "message UpdateAdminLoginRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", + "doc": "修改管理员登录信息" + }, + { + "name": "CountAllEnabledAdminsRequest", + "code": "message CountAllEnabledAdminsRequest {\n\n}", + "doc": "计算管理员数量" + }, + { + "name": "DeleteAdminRequest", + "code": "message DeleteAdminRequest {\n\tint64 adminId = 1;\n}", + "doc": "删除管理员" + }, + { + "name": "CreateAdminRequest", + "code": "message CreateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring fullname = 3;\n\tbytes modulesJSON = 4;\n\tbool isSuper = 5;\n\tbool canLogin = 6;\n}", + "doc": "创建管理员" }, { "name": "CheckAdminOTPWithUsernameResponse", @@ -9603,61 +9652,11 @@ "code": "message UpdateAdminThemeRequest {\n\tint64 adminId = 1;\n\tstring theme = 2;\n}", "doc": "修改管理员使用的界面风格" }, - { - "name": "CheckAdminExistsResponse", - "code": "message CheckAdminExistsResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", - "doc": "" - }, - { - "name": "FindAdminFullnameRequest", - "code": "message FindAdminFullnameRequest {\n\tint64 adminId = 1;\n}", - "doc": "获取管理员名称" - }, - { - "name": "UpdateAdminInfoRequest", - "code": "message UpdateAdminInfoRequest {\n\tint64 adminId = 1;\n\tstring fullname = 2;\n}", - "doc": "修改管理员信息" - }, - { - "name": "CreateAdminRequest", - "code": "message CreateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring fullname = 3;\n\tbytes modulesJSON = 4;\n\tbool isSuper = 5;\n\tbool canLogin = 6;\n}", - "doc": "创建管理员" - }, - { - "name": "FindEnabledAdminRequest", - "code": "message FindEnabledAdminRequest {\n\tint64 adminId = 1;\n}", - "doc": "获取管理员信息" - }, - { - "name": "FindAllAdminModulesResponse", - "code": "message FindAllAdminModulesResponse {\n\trepeated AdminModuleList adminModules = 1;\n}", - "doc": "" - }, - { - "name": "UpdateAdminRequest", - "code": "message UpdateAdminRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tbytes modulesJSON = 5;\n\tbool isSuper = 6;\n\tbool isOn = 7;\n\tbool canLogin = 8;\n}", - "doc": "修改管理员" - }, - { - "name": "CheckAdminOTPWithUsernameRequest", - "code": "message CheckAdminOTPWithUsernameRequest {\n\tstring username = 1;\n}", - "doc": "根据用户名检查是否需要输入OTP" - }, { "name": "ComposeAdminDashboardRequest", "code": "message ComposeAdminDashboardRequest {\n\tstring apiVersion = 1;\n}", "doc": "取得管理员Dashboard数据" }, - { - "name": "FindAllAdminModulesRequest", - "code": "message FindAllAdminModulesRequest {\n\n}", - "doc": "获取管理所有权限列表" - }, - { - "name": "LoginAdminRequest", - "code": "message LoginAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "登录" - }, { "name": "LoginAdminResponse", "code": "message LoginAdminResponse {\n\tint64 adminId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", @@ -9669,29 +9668,49 @@ "doc": "" }, { - "name": "CreateOrUpdateAdminRequest", - "code": "message CreateOrUpdateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "创建或修改管理员" + "name": "UpdateAdminInfoRequest", + "code": "message UpdateAdminInfoRequest {\n\tint64 adminId = 1;\n\tstring fullname = 2;\n}", + "doc": "修改管理员信息" }, { - "name": "UpdateAdminLoginRequest", - "code": "message UpdateAdminLoginRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", - "doc": "修改管理员登录信息" - }, - { - "name": "ListEnabledAdminsResponse", - "code": "message ListEnabledAdminsResponse {\n\trepeated Admin admins = 1;\n}", + "name": "FindAllAdminModulesResponse", + "code": "message FindAllAdminModulesResponse {\n\trepeated AdminModuleList adminModules = 1;\n}", "doc": "" }, { - "name": "FindEnabledAdminResponse", - "code": "message FindEnabledAdminResponse {\n\tAdmin admin = 1;\n}", + "name": "CreateAdminResponse", + "code": "message CreateAdminResponse {\n\tint64 adminId = 1;\n}", "doc": "" }, { - "name": "CountAllEnabledAdminsRequest", - "code": "message CountAllEnabledAdminsRequest {\n\n}", - "doc": "计算管理员数量" + "name": "CheckAdminOTPWithUsernameRequest", + "code": "message CheckAdminOTPWithUsernameRequest {\n\tstring username = 1;\n}", + "doc": "根据用户名检查是否需要输入OTP" + }, + { + "name": "CheckAdminExistsResponse", + "code": "message CheckAdminExistsResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", + "doc": "" + }, + { + "name": "CheckAdminUsernameResponse", + "code": "message CheckAdminUsernameResponse {\n\tbool exists = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledAdminRequest", + "code": "message FindEnabledAdminRequest {\n\tint64 adminId = 1;\n}", + "doc": "获取管理员信息" + }, + { + "name": "FindAllAdminModulesRequest", + "code": "message FindAllAdminModulesRequest {\n\n}", + "doc": "获取管理所有权限列表" + }, + { + "name": "ListEnabledAdminsRequest", + "code": "message ListEnabledAdminsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的管理员" }, { "name": "GetAPIAccessTokenRequest", @@ -9704,23 +9723,38 @@ "doc": "" }, { - "name": "CreateAPINodeResponse", - "code": "message CreateAPINodeResponse {\n\tint64 apiNodeId = 1;\n}", + "name": "FindCurrentAPINodeVersionRequest", + "code": "message FindCurrentAPINodeVersionRequest {\n\n}", + "doc": "获取当前API节点的版本" + }, + { + "name": "ListEnabledAPINodesRequest", + "code": "message ListEnabledAPINodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的API节点" + }, + { + "name": "DeleteAPINodeRequest", + "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", + "doc": "删除API节点" + }, + { + "name": "FindAllEnabledAPINodesRequest", + "code": "message FindAllEnabledAPINodesRequest {\n\n}", + "doc": "列出所有可用API节点" + }, + { + "name": "FindEnabledAPINodeRequest", + "code": "message FindEnabledAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", + "doc": "根据ID查找节点" + }, + { + "name": "FindEnabledAPINodeResponse", + "code": "message FindEnabledAPINodeResponse {\n\tAPINode apiNode = 1;\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}", - "doc": "修改API节点" - }, - { - "name": "CountAllEnabledAndOnAPINodesRequest", - "code": "message CountAllEnabledAndOnAPINodesRequest {\n\n}", - "doc": "计算启用的API节点数量" - }, - { - "name": "FindCurrentAPINodeVersionResponse", - "code": "message FindCurrentAPINodeVersionResponse {\n\tstring version = 1;\n}", + "name": "FindCurrentAPINodeResponse", + "code": "message FindCurrentAPINodeResponse {\n\tAPINode apiNode = 1;\n}", "doc": "" }, { @@ -9734,60 +9768,45 @@ "doc": "创建API节点" }, { - "name": "FindEnabledAPINodeRequest", - "code": "message FindEnabledAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", - "doc": "根据ID查找节点" - }, - { - "name": "FindCurrentAPINodeVersionRequest", - "code": "message FindCurrentAPINodeVersionRequest {\n\n}", - "doc": "获取当前API节点的版本" + "name": "CountAllEnabledAPINodesRequest", + "code": "message CountAllEnabledAPINodesRequest {\n\n}", + "doc": "计算API节点数量" }, { "name": "DebugAPINodeRequest", "code": "message DebugAPINodeRequest {\n\tbool debug = 1;\n}", "doc": "修改调试模式状态" }, - { - "name": "CountAllEnabledAPINodesRequest", - "code": "message CountAllEnabledAPINodesRequest {\n\n}", - "doc": "计算API节点数量" - }, - { - "name": "ListEnabledAPINodesRequest", - "code": "message ListEnabledAPINodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的API节点" - }, - { - "name": "FindAllEnabledAPINodesRequest", - "code": "message FindAllEnabledAPINodesRequest {\n\n}", - "doc": "列出所有可用API节点" - }, { "name": "FindAllEnabledAPINodesResponse", "code": "message FindAllEnabledAPINodesResponse {\n\trepeated APINode apiNodes = 1;\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}", + "doc": "修改API节点" + }, + { + "name": "CountAllEnabledAndOnAPINodesRequest", + "code": "message CountAllEnabledAndOnAPINodesRequest {\n\n}", + "doc": "计算启用的API节点数量" + }, { "name": "ListEnabledAPINodesResponse", "code": "message ListEnabledAPINodesResponse {\n\trepeated APINode apiNodes = 1;\n}", "doc": "" }, { - "name": "FindEnabledAPINodeResponse", - "code": "message FindEnabledAPINodeResponse {\n\tAPINode apiNode = 1;\n}", + "name": "FindCurrentAPINodeVersionResponse", + "code": "message FindCurrentAPINodeVersionResponse {\n\tstring version = 1;\n}", "doc": "" }, { - "name": "FindCurrentAPINodeResponse", - "code": "message FindCurrentAPINodeResponse {\n\tAPINode apiNode = 1;\n}", + "name": "CreateAPINodeResponse", + "code": "message CreateAPINodeResponse {\n\tint64 apiNodeId = 1;\n}", "doc": "" }, - { - "name": "DeleteAPINodeRequest", - "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", - "doc": "删除API节点" - }, { "name": "FindAllEnabledAPITokensRequest", "code": "message FindAllEnabledAPITokensRequest {\n\tstring role = 1;\n}", @@ -9798,6 +9817,16 @@ "code": "message FindAllEnabledAPITokensResponse {\n\trepeated APIToken apiTokens = 1;\n}", "doc": "" }, + { + "name": "FindAllDBTablesRequest", + "code": "message FindAllDBTablesRequest {\n\n}", + "doc": "获取所有表信息" + }, + { + "name": "FindAllDBTablesResponse", + "code": "message FindAllDBTablesResponse {\n\trepeated DBTable dbTables = 1;\n}", + "doc": "" + }, { "name": "DeleteDBTableRequest", "code": "message DeleteDBTableRequest {\n\tstring dbTable = 1;\n}", @@ -9809,34 +9838,34 @@ "doc": "清空表" }, { - "name": "FindAllDBTablesRequest", - "code": "message FindAllDBTablesRequest {\n\n}", - "doc": "获取所有表信息" - }, - { - "name": "FindAllDBTablesResponse", - "code": "message FindAllDBTablesResponse {\n\trepeated DBTable dbTables = 1;\n}", - "doc": "" - }, - { - "name": "FindAllDBNodeTablesResponse", - "code": "message FindAllDBNodeTablesResponse {\n\trepeated DBTable dbNodeTables = 1;\n}", - "doc": "" + "name": "UpdateDBNodeRequest", + "code": "message UpdateDBNodeRequest {\n\tint64 dbNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n\tstring host = 5;\n\tint32 port = 6;\n\tstring database = 7;\n\tstring username = 8;\n\tstring password = 9;\n\tstring charset = 10;\n}", + "doc": "修改数据库节点" }, { "name": "ListEnabledDBNodesRequest", "code": "message ListEnabledDBNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页的数据库节点" }, + { + "name": "FindAllDBNodeTablesResponse", + "code": "message FindAllDBNodeTablesResponse {\n\trepeated DBTable dbNodeTables = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledDBNodesRequest", + "code": "message CountAllEnabledDBNodesRequest {\n\n}", + "doc": "计算可用的数据库节点数量" + }, { "name": "ListEnabledDBNodesResponse", "code": "message ListEnabledDBNodesResponse {\n\trepeated DBNode dbNodes = 1;\n}", "doc": "" }, { - "name": "FindAllDBNodeTablesRequest", - "code": "message FindAllDBNodeTablesRequest {\n\tint64 dbNodeId = 1;\n}", - "doc": "获取所有表信息" + "name": "DeleteDBNodeTableRequest", + "code": "message DeleteDBNodeTableRequest {\n\tint64 dbNodeId = 1;\n\tstring dbNodeTable = 2;\n}", + "doc": "删除表" }, { "name": "TruncateDBNodeTableRequest", @@ -9849,49 +9878,39 @@ "doc": "检查数据库节点状态" }, { - "name": "UpdateDBNodeRequest", - "code": "message UpdateDBNodeRequest {\n\tint64 dbNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n\tstring host = 5;\n\tint32 port = 6;\n\tstring database = 7;\n\tstring username = 8;\n\tstring password = 9;\n\tstring charset = 10;\n}", - "doc": "修改数据库节点" - }, - { - "name": "CountAllEnabledDBNodesRequest", - "code": "message CountAllEnabledDBNodesRequest {\n\n}", - "doc": "计算可用的数据库节点数量" - }, - { - "name": "DeleteDBNodeTableRequest", - "code": "message DeleteDBNodeTableRequest {\n\tint64 dbNodeId = 1;\n\tstring dbNodeTable = 2;\n}", - "doc": "删除表" - }, - { - "name": "CheckDBNodeStatusResponse", - "code": "message CheckDBNodeStatusResponse {\n\tDBNodeStatus dbNodeStatus = 1;\n}", - "doc": "" + "name": "CreateDBNodeRequest", + "code": "message CreateDBNodeRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring host = 4;\n\tint32 port = 5;\n\tstring database = 6;\n\tstring username = 7;\n\tstring password = 8;\n\tstring charset = 9;\n}", + "doc": "创建数据库节点" }, { "name": "DeleteDBNodeRequest", "code": "message DeleteDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", "doc": "删除节点" }, - { - "name": "CreateDBNodeResponse", - "code": "message CreateDBNodeResponse {\n\tint64 dbNodeId = 1;\n}", - "doc": "" - }, { "name": "FindEnabledDBNodeRequest", "code": "message FindEnabledDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", "doc": "根据ID查找可用的数据库节点" }, + { + "name": "CheckDBNodeStatusResponse", + "code": "message CheckDBNodeStatusResponse {\n\tDBNodeStatus dbNodeStatus = 1;\n}", + "doc": "" + }, + { + "name": "CreateDBNodeResponse", + "code": "message CreateDBNodeResponse {\n\tint64 dbNodeId = 1;\n}", + "doc": "" + }, { "name": "FindEnabledDBNodeResponse", "code": "message FindEnabledDBNodeResponse {\n\tDBNode dbNode = 1;\n}", "doc": "" }, { - "name": "CreateDBNodeRequest", - "code": "message CreateDBNodeRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring host = 4;\n\tint32 port = 5;\n\tstring database = 6;\n\tstring username = 7;\n\tstring password = 8;\n\tstring charset = 9;\n}", - "doc": "创建数据库节点" + "name": "FindAllDBNodeTablesRequest", + "code": "message FindAllDBNodeTablesRequest {\n\tint64 dbNodeId = 1;\n}", + "doc": "获取所有表信息" }, { "name": "FindAllDNSIssuesRequest", @@ -9903,31 +9922,31 @@ "code": "message FindAllDNSIssuesResponse {\n\trepeated DNSIssue issues = 1;\n}", "doc": "" }, + { + "name": "FindAllDNSDomainRoutesRequest", + "code": "message FindAllDNSDomainRoutesRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查看支持的线路" + }, + { + "name": "ExistDNSDomainRecordResponse", + "code": "message ExistDNSDomainRecordResponse {\n\tbool isOk = 1;\n}", + "doc": "" + }, { "name": "SyncDNSDomainsFromProviderRequest", "code": "message SyncDNSDomainsFromProviderRequest {\n\tint64 dnsProviderId = 1;\n}", "doc": "从服务商同步域名" }, { - "name": "FindEnabledBasicDNSDomainRequest", - "code": "message FindEnabledBasicDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查询单个域名的基础信息" + "name": "FindEnabledDNSDomainRequest", + "code": "message FindEnabledDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查询单个域名信息" }, { "name": "CountAllEnabledDNSDomainsWithDNSProviderIdRequest", "code": "message CountAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", "doc": "计算服务商下的域名数量" }, - { - "name": "SyncDNSDomainDataResponse", - "code": "message SyncDNSDomainDataResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n\tbool shouldFix = 3;\n}", - "doc": "" - }, - { - "name": "FindAllDNSDomainRoutesResponse", - "code": "message FindAllDNSDomainRoutesResponse {\n\trepeated DNSRoute routes = 1;\n}", - "doc": "" - }, { "name": "FindAllEnabledDNSDomainsWithDNSProviderIdRequest", "code": "message FindAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", @@ -9939,34 +9958,9 @@ "doc": "" }, { - "name": "FindAllDNSDomainRoutesRequest", - "code": "message FindAllDNSDomainRoutesRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查看支持的线路" - }, - { - "name": "ExistAvailableDomainsRequest", - "code": "message ExistAvailableDomainsRequest {\n\n}", - "doc": "判断是否有域名可选" - }, - { - "name": "CreateDNSDomainResponse", - "code": "message CreateDNSDomainResponse {\n\tint64 dnsDomainId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledDNSDomainRequest", - "code": "message FindEnabledDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查询单个域名信息" - }, - { - "name": "FindEnabledDNSDomainResponse", - "code": "message FindEnabledDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledBasicDNSDomainResponse", - "code": "message FindEnabledBasicDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", - "doc": "" + "name": "SyncDNSDomainDataRequest", + "code": "message SyncDNSDomainDataRequest {\n\tint64 dnsDomainId = 1;\n\tint64 nodeClusterId = 2; // 如果指定,表示只更新单个集群ID\n}", + "doc": "同步域名数据" }, { "name": "ExistDNSDomainRecordRequest", @@ -9974,24 +9968,9 @@ "doc": "检查域名是否在记录中" }, { - "name": "SyncDNSDomainDataRequest", - "code": "message SyncDNSDomainDataRequest {\n\tint64 dnsDomainId = 1;\n\tint64 nodeClusterId = 2; // 如果指定,表示只更新单个集群ID\n}", - "doc": "同步域名数据" - }, - { - "name": "ExistAvailableDomainsResponse", - "code": "message ExistAvailableDomainsResponse {\n\tbool exist = 1;\n}", - "doc": "" - }, - { - "name": "CreateDNSDomainRequest", - "code": "message CreateDNSDomainRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n}", - "doc": "创建域名" - }, - { - "name": "DeleteDNSDomainRequest", - "code": "message DeleteDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "删除域名" + "name": "RecoverDNSDomainRequest", + "code": "message RecoverDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "恢复删除的域名" }, { "name": "FindAllEnabledDNSDomainsWithDNSProviderIdResponse", @@ -10003,19 +9982,59 @@ "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", "doc": "列出服务商下的所有域名基本信息" }, + { + "name": "FindAllDNSDomainRoutesResponse", + "code": "message FindAllDNSDomainRoutesResponse {\n\trepeated DNSRoute routes = 1;\n}", + "doc": "" + }, + { + "name": "ExistAvailableDomainsRequest", + "code": "message ExistAvailableDomainsRequest {\n\n}", + "doc": "判断是否有域名可选" + }, + { + "name": "SyncDNSDomainDataResponse", + "code": "message SyncDNSDomainDataResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n\tbool shouldFix = 3;\n}", + "doc": "" + }, + { + "name": "ExistAvailableDomainsResponse", + "code": "message ExistAvailableDomainsResponse {\n\tbool exist = 1;\n}", + "doc": "" + }, + { + "name": "CreateDNSDomainRequest", + "code": "message CreateDNSDomainRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n}", + "doc": "创建域名" + }, { "name": "UpdateDNSDomainRequest", "code": "message UpdateDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", "doc": "修改域名" }, { - "name": "RecoverDNSDomainRequest", - "code": "message RecoverDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "恢复删除的域名" + "name": "DeleteDNSDomainRequest", + "code": "message DeleteDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "删除域名" }, { - "name": "ExistDNSDomainRecordResponse", - "code": "message ExistDNSDomainRecordResponse {\n\tbool isOk = 1;\n}", + "name": "FindEnabledBasicDNSDomainRequest", + "code": "message FindEnabledBasicDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查询单个域名的基础信息" + }, + { + "name": "FindEnabledBasicDNSDomainResponse", + "code": "message FindEnabledBasicDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", + "doc": "" + }, + { + "name": "CreateDNSDomainResponse", + "code": "message CreateDNSDomainResponse {\n\tint64 dnsDomainId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledDNSDomainResponse", + "code": "message FindEnabledDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", "doc": "" }, { @@ -10024,40 +10043,60 @@ "doc": "" }, { - "name": "CountAllEnabledDNSProvidersRequest", - "code": "message CountAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 3;\n\tstring domain = 4;\n\tstring type = 5;\n}", - "doc": "计算服务商数量" - }, - { - "name": "ListEnabledDNSProvidersResponse", - "code": "message ListEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", + "name": "FindAllEnabledDNSProvidersWithTypeResponse", + "code": "message FindAllEnabledDNSProvidersWithTypeResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", "doc": "" }, - { - "name": "FindEnabledDNSProviderResponse", - "code": "message FindEnabledDNSProviderResponse {\n\tDNSProvider dnsProvider = 1;\n}", - "doc": "" - }, - { - "name": "CreateDNSProviderRequest", - "code": "message CreateDNSProviderRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes apiParamsJSON = 3;\n}", - "doc": "创建服务商" - }, { "name": "CreateDNSProviderResponse", "code": "message CreateDNSProviderResponse {\n\tint64 dnsProviderId = 1;\n}", "doc": "" }, + { + "name": "ListEnabledDNSProvidersRequest", + "code": "message ListEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 5;\n\tstring domain = 6;\n\tstring type = 7;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页的服务商信息" + }, { "name": "DeleteDNSProviderRequest", "code": "message DeleteDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", "doc": "删除服务商" }, + { + "name": "FindAllDNSProviderTypesResponse", + "code": "message FindAllDNSProviderTypesResponse {\n\trepeated DNSProviderType providerTypes = 1;\n}", + "doc": "" + }, + { + "name": "DNSProviderType", + "code": "message DNSProviderType {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n}", + "doc": "" + }, + { + "name": "UpdateDNSProviderRequest", + "code": "message UpdateDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n\tbytes apiParamsJSON = 3;\n}", + "doc": "修改服务商" + }, + { + "name": "CountAllEnabledDNSProvidersRequest", + "code": "message CountAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 3;\n\tstring domain = 4;\n\tstring type = 5;\n}", + "doc": "计算服务商数量" + }, + { + "name": "FindEnabledDNSProviderResponse", + "code": "message FindEnabledDNSProviderResponse {\n\tDNSProvider dnsProvider = 1;\n}", + "doc": "" + }, { "name": "FindAllDNSProviderTypesRequest", "code": "message FindAllDNSProviderTypesRequest {\n\n}", "doc": "取得所有服务商类型" }, + { + "name": "ListEnabledDNSProvidersResponse", + "code": "message ListEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", + "doc": "" + }, { "name": "FindAllEnabledDNSProvidersRequest", "code": "message FindAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", @@ -10069,29 +10108,9 @@ "doc": "" }, { - "name": "UpdateDNSProviderRequest", - "code": "message UpdateDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n\tbytes apiParamsJSON = 3;\n}", - "doc": "修改服务商" - }, - { - "name": "ListEnabledDNSProvidersRequest", - "code": "message ListEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring keyword = 5;\n\tstring domain = 6;\n\tstring type = 7;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页的服务商信息" - }, - { - "name": "DNSProviderType", - "code": "message DNSProviderType {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledDNSProvidersWithTypeRequest", - "code": "message FindAllEnabledDNSProvidersWithTypeRequest {\n\tstring providerTypeCode = 1;\n}", - "doc": "取得某个类型的所有服务商" - }, - { - "name": "FindAllEnabledDNSProvidersWithTypeResponse", - "code": "message FindAllEnabledDNSProvidersWithTypeResponse {\n\trepeated DNSProvider dnsProviders = 1;\n}", - "doc": "" + "name": "CreateDNSProviderRequest", + "code": "message CreateDNSProviderRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes apiParamsJSON = 3;\n}", + "doc": "创建服务商" }, { "name": "FindEnabledDNSProviderRequest", @@ -10099,9 +10118,9 @@ "doc": "查找单个服务商" }, { - "name": "FindAllDNSProviderTypesResponse", - "code": "message FindAllDNSProviderTypesResponse {\n\trepeated DNSProviderType providerTypes = 1;\n}", - "doc": "" + "name": "FindAllEnabledDNSProvidersWithTypeRequest", + "code": "message FindAllEnabledDNSProvidersWithTypeRequest {\n\tstring providerTypeCode = 1;\n}", + "doc": "取得某个类型的所有服务商" }, { "name": "ExistsDNSTasksRequest", @@ -10153,21 +10172,6 @@ "code": "message UpdateFileFinishedRequest {\n\tint64 fileId = 1;\n}", "doc": "将文件置为已完成" }, - { - "name": "CreateFileChunkRequest", - "code": "message CreateFileChunkRequest {\n\tint64 fileId = 1;\n\tbytes data = 2;\n}", - "doc": "创建文件片段" - }, - { - "name": "CreateFileChunkResponse", - "code": "message CreateFileChunkResponse {\n\tint64 fileChunkId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllFileChunkIdsRequest", - "code": "message FindAllFileChunkIdsRequest {\n\tint64 fileId = 1;\n}", - "doc": "获取的一个文件的所有片段IDs" - }, { "name": "FindAllFileChunkIdsResponse", "code": "message FindAllFileChunkIdsResponse {\n\trepeated int64 fileChunkIds = 1;\n}", @@ -10183,16 +10187,31 @@ "code": "message DownloadFileChunkResponse {\n\tFileChunk fileChunk = 1;\n}", "doc": "" }, + { + "name": "CreateFileChunkRequest", + "code": "message CreateFileChunkRequest {\n\tint64 fileId = 1;\n\tbytes data = 2;\n}", + "doc": "创建文件片段" + }, + { + "name": "CreateFileChunkResponse", + "code": "message CreateFileChunkResponse {\n\tint64 fileChunkId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllFileChunkIdsRequest", + "code": "message FindAllFileChunkIdsRequest {\n\tint64 fileId = 1;\n}", + "doc": "获取的一个文件的所有片段IDs" + }, + { + "name": "ComposeFirewallGlobalBoardResponse", + "code": "message ComposeFirewallGlobalBoardResponse {\n\tint64 countDailyLogs = 1;\n\tint64 countDailyBlocks = 2;\n\tint64 countDailyCaptcha = 3;\n\tint64 countWeeklyBlocks = 4;\n\n\trepeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;\n\trepeated DailyStat dailyStats = 31;\n\trepeated HourlyStat hourlyStats = 32;\n\trepeated NodeStat topNodeStats = 33;\n\trepeated DomainStat topDomainStats = 34;\n\trepeated CountryStat topCountryStats = 35;\n\n\n\tmessage HTTPFirewallRuleGroupStat {\n\t\tHTTPFirewallRuleGroup httpFirewallRuleGroup = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage HourlyStat {\n\t\tstring hour = 1;\n\t\tint64 countLogs = 2;\n\t\tint64 countCaptcha = 3;\n\t\tint64 countBlocks = 4;\n\t}\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 countLogs = 2;\n\t\tint64 countCaptcha = 3;\n\t\tint64 countBlocks = 4;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage CountryStat {\n\t\tstring countryName = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t\tfloat percent = 4; // 流量占比\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", + "doc": "" + }, { "name": "NotifyHTTPFirewallEventRequest", "code": "message NotifyHTTPFirewallEventRequest {\n\tint64 serverId = 1;\n\tint64 httpFirewallPolicyId = 2;\n\tint64 httpFirewallRuleGroupId = 3;\n\tint64 httpFirewallRuleSetId = 4;\n\tint64 createdAt = 5;\n}", "doc": "发送告警(notify)消息" }, - { - "name": "CountFirewallDailyBlocksRequest", - "code": "message CountFirewallDailyBlocksRequest {\n\n}", - "doc": "读取当前Block动作次数" - }, { "name": "CountFirewallDailyBlocksResponse", "code": "message CountFirewallDailyBlocksResponse {\n\tint64 countBlocks = 1;\n}", @@ -10204,14 +10223,9 @@ "doc": "组合看板数据" }, { - "name": "ComposeFirewallGlobalBoardResponse", - "code": "message ComposeFirewallGlobalBoardResponse {\n\tint64 countDailyLogs = 1;\n\tint64 countDailyBlocks = 2;\n\tint64 countDailyCaptcha = 3;\n\tint64 countWeeklyBlocks = 4;\n\n\trepeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;\n\trepeated DailyStat dailyStats = 31;\n\trepeated HourlyStat hourlyStats = 32;\n\trepeated NodeStat topNodeStats = 33;\n\trepeated DomainStat topDomainStats = 34;\n\trepeated CountryStat topCountryStats = 35;\n\n\n\tmessage HTTPFirewallRuleGroupStat {\n\t\tHTTPFirewallRuleGroup httpFirewallRuleGroup = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage HourlyStat {\n\t\tstring hour = 1;\n\t\tint64 countLogs = 2;\n\t\tint64 countCaptcha = 3;\n\t\tint64 countBlocks = 4;\n\t}\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 countLogs = 2;\n\t\tint64 countCaptcha = 3;\n\t\tint64 countBlocks = 4;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage CountryStat {\n\t\tstring countryName = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t\tfloat percent = 4; // 流量占比\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", - "doc": "" - }, - { - "name": "FindHTTPAccessLogPartitionsResponse", - "code": "message FindHTTPAccessLogPartitionsResponse {\n\trepeated int32 partitions = 1;\n\trepeated int32 reversePartitions = 2;\n}", - "doc": "" + "name": "CountFirewallDailyBlocksRequest", + "code": "message CountFirewallDailyBlocksRequest {\n\n}", + "doc": "读取当前Block动作次数" }, { "name": "CreateHTTPAccessLogsRequest", @@ -10249,25 +10263,15 @@ "doc": "查找日志分区" }, { - "name": "CreateHTTPAccessLogPolicyResponse", - "code": "message CreateHTTPAccessLogPolicyResponse {\n\tint64 httpAccessLogPolicyId = 1;\n}", + "name": "FindHTTPAccessLogPartitionsResponse", + "code": "message FindHTTPAccessLogPartitionsResponse {\n\trepeated int32 partitions = 1;\n\trepeated int32 reversePartitions = 2;\n}", "doc": "" }, - { - "name": "WriteHTTPAccessLogPolicyRequest", - "code": "message WriteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tHTTPAccessLog httpAccessLog = 2;\n}", - "doc": "测试写入某个访问日志策略" - }, { "name": "UpdateHTTPAccessLogPolicyRequest", "code": "message UpdateHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tbytes optionsJSON = 4;\n\tbytes condsJSON = 5;\n\tbool isPublic = 6;\n\tbool firewallOnly = 7;\n}", "doc": "修改访问日志策略" }, - { - "name": "FindHTTPAccessLogPolicyRequest", - "code": "message FindHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", - "doc": "查找单个访问日志策略" - }, { "name": "FindHTTPAccessLogPolicyResponse", "code": "message FindHTTPAccessLogPolicyResponse {\n\tHTTPAccessLogPolicy httpAccessLogPolicy = 1;\n}", @@ -10278,25 +10282,40 @@ "code": "message DeleteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", "doc": "删除策略" }, - { - "name": "CountAllHTTPAccessLogPoliciesRequest", - "code": "message CountAllHTTPAccessLogPoliciesRequest {\n\n}", - "doc": "计算访问日志策略数量" - }, { "name": "ListHTTPAccessLogPoliciesRequest", "code": "message ListHTTPAccessLogPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页访问日志策略" }, + { + "name": "CreateHTTPAccessLogPolicyRequest", + "code": "message CreateHTTPAccessLogPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes optionsJSON = 3;\n\tbytes condsJSON = 4;\n\tbool isPublic = 5;\n\tbool firewallOnly = 6;\n}", + "doc": "创建访问日志策略" + }, + { + "name": "CreateHTTPAccessLogPolicyResponse", + "code": "message CreateHTTPAccessLogPolicyResponse {\n\tint64 httpAccessLogPolicyId = 1;\n}", + "doc": "" + }, + { + "name": "WriteHTTPAccessLogPolicyRequest", + "code": "message WriteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tHTTPAccessLog httpAccessLog = 2;\n}", + "doc": "测试写入某个访问日志策略" + }, + { + "name": "CountAllHTTPAccessLogPoliciesRequest", + "code": "message CountAllHTTPAccessLogPoliciesRequest {\n\n}", + "doc": "计算访问日志策略数量" + }, { "name": "ListHTTPAccessLogPoliciesResponse", "code": "message ListHTTPAccessLogPoliciesResponse {\n\trepeated HTTPAccessLogPolicy httpAccessLogPolicies = 1;\n}", "doc": "" }, { - "name": "CreateHTTPAccessLogPolicyRequest", - "code": "message CreateHTTPAccessLogPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes optionsJSON = 3;\n\tbytes condsJSON = 4;\n\tbool isPublic = 5;\n\tbool firewallOnly = 6;\n}", - "doc": "创建访问日志策略" + "name": "FindHTTPAccessLogPolicyRequest", + "code": "message FindHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", + "doc": "查找单个访问日志策略" }, { "name": "CreateHTTPAuthPolicyRequest", @@ -10323,36 +10342,56 @@ "code": "message FindEnabledHTTPAuthPolicyResponse {\n\tHTTPAuthPolicy httpAuthPolicy = 1;\n}", "doc": "" }, + { + "name": "FindAllEnabledHTTPCachePoliciesResponse", + "code": "message FindAllEnabledHTTPCachePoliciesResponse {\n\trepeated HTTPCachePolicy cachePolicies = 1;\n}", + "doc": "" + }, { "name": "UpdateHTTPCachePolicyRequest", "code": "message UpdateHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tbytes capacityJSON = 5;\n\tint64 maxKeys = 6;\n\tbytes maxSizeJSON = 7;\n\tstring type = 8;\n\tbytes optionsJSON = 9;\n\tbool syncCompressionCache = 10;\n}", "doc": "修改缓存策略" }, - { - "name": "FindEnabledHTTPCachePolicyConfigResponse", - "code": "message FindEnabledHTTPCachePolicyConfigResponse {\n\tbytes httpCachePolicyJSON = 1;\n}", - "doc": "" - }, { "name": "FindEnabledHTTPCachePolicyRequest", "code": "message FindEnabledHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", "doc": "查找单个缓存策略信息" }, + { + "name": "FindAllEnabledHTTPCachePoliciesRequest", + "code": "message FindAllEnabledHTTPCachePoliciesRequest {\n\n}", + "doc": "获取所有可用策略" + }, + { + "name": "ListEnabledHTTPCachePoliciesResponse", + "code": "message ListEnabledHTTPCachePoliciesResponse {\n\tbytes httpCachePoliciesJSON = 1;\n}", + "doc": "" + }, { "name": "CreateHTTPCachePolicyRequest", "code": "message CreateHTTPCachePolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbytes capacityJSON = 4;\n\tint64 maxKeys = 5;\n\tbytes maxSizeJSON = 6;\n\tstring type = 7;\n\tbytes optionsJSON = 8;\n\tbool syncCompressionCache = 9;\n}", "doc": "创建缓存策略" }, + { + "name": "CreateHTTPCachePolicyResponse", + "code": "message CreateHTTPCachePolicyResponse {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "" + }, { "name": "FindEnabledHTTPCachePolicyConfigRequest", "code": "message FindEnabledHTTPCachePolicyConfigRequest {\n\tint64 httpCachePolicyId = 1;\n}", "doc": "查找单个缓存策略配置" }, { - "name": "CreateHTTPCachePolicyResponse", - "code": "message CreateHTTPCachePolicyResponse {\n\tint64 httpCachePolicyId = 1;\n}", + "name": "FindEnabledHTTPCachePolicyResponse", + "code": "message FindEnabledHTTPCachePolicyResponse {\n\tHTTPCachePolicy httpCachePolicy = 1;\n}", "doc": "" }, + { + "name": "DeleteHTTPCachePolicyRequest", + "code": "message DeleteHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "删除缓存策略" + }, { "name": "CountAllEnabledHTTPCachePoliciesRequest", "code": "message CountAllEnabledHTTPCachePoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", @@ -10364,8 +10403,8 @@ "doc": "列出单页的缓存策略" }, { - "name": "FindEnabledHTTPCachePolicyResponse", - "code": "message FindEnabledHTTPCachePolicyResponse {\n\tHTTPCachePolicy httpCachePolicy = 1;\n}", + "name": "FindEnabledHTTPCachePolicyConfigResponse", + "code": "message FindEnabledHTTPCachePolicyConfigResponse {\n\tbytes httpCachePolicyJSON = 1;\n}", "doc": "" }, { @@ -10373,56 +10412,6 @@ "code": "message UpdateHTTPCachePolicyRefsRequest {\n\tint64 httpCachePolicyId = 1;\n\tbytes refsJSON = 2;\n}", "doc": "设置缓存策略的默认条件" }, - { - "name": "FindAllEnabledHTTPCachePoliciesRequest", - "code": "message FindAllEnabledHTTPCachePoliciesRequest {\n\n}", - "doc": "获取所有可用策略" - }, - { - "name": "FindAllEnabledHTTPCachePoliciesResponse", - "code": "message FindAllEnabledHTTPCachePoliciesResponse {\n\trepeated HTTPCachePolicy cachePolicies = 1;\n}", - "doc": "" - }, - { - "name": "DeleteHTTPCachePolicyRequest", - "code": "message DeleteHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "删除缓存策略" - }, - { - "name": "ListEnabledHTTPCachePoliciesResponse", - "code": "message ListEnabledHTTPCachePoliciesResponse {\n\tbytes httpCachePoliciesJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountHTTPCacheTasksRequest", - "code": "message CountHTTPCacheTasksRequest {\n\n}", - "doc": "计算任务总数量" - }, - { - "name": "ListHTTPCacheTasksRequest", - "code": "message ListHTTPCacheTasksRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页任务" - }, - { - "name": "ListHTTPCacheTasksResponse", - "code": "message ListHTTPCacheTasksResponse {\n\trepeated HTTPCacheTask httpCacheTasks = 1;\n}", - "doc": "" - }, - { - "name": "DeleteHTTPCacheTaskRequest", - "code": "message DeleteHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", - "doc": "删除任务" - }, - { - "name": "ResetHTTPCacheTaskRequest", - "code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", - "doc": "重置任务状态" - }, - { - "name": "CreateHTTPCacheTaskRequest", - "code": "message CreateHTTPCacheTaskRequest {\n\tstring type = 1;\n\tstring keyType = 2;\n\trepeated string keys = 3;\n}", - "doc": "创建任务" - }, { "name": "CreateHTTPCacheTaskResponse", "code": "message CreateHTTPCacheTaskResponse {\n\tint64 httpCacheTaskId = 1;\n\tint64 countKeys = 2;\n}", @@ -10443,6 +10432,36 @@ "code": "message FindEnabledHTTPCacheTaskResponse {\n\tHTTPCacheTask httpCacheTask = 1;\n}", "doc": "" }, + { + "name": "ListHTTPCacheTasksResponse", + "code": "message ListHTTPCacheTasksResponse {\n\trepeated HTTPCacheTask httpCacheTasks = 1;\n}", + "doc": "" + }, + { + "name": "ResetHTTPCacheTaskRequest", + "code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", + "doc": "重置任务状态" + }, + { + "name": "CreateHTTPCacheTaskRequest", + "code": "message CreateHTTPCacheTaskRequest {\n\tstring type = 1;\n\tstring keyType = 2;\n\trepeated string keys = 3;\n}", + "doc": "创建任务" + }, + { + "name": "CountHTTPCacheTasksRequest", + "code": "message CountHTTPCacheTasksRequest {\n\n}", + "doc": "计算任务总数量" + }, + { + "name": "ListHTTPCacheTasksRequest", + "code": "message ListHTTPCacheTasksRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页任务" + }, + { + "name": "DeleteHTTPCacheTaskRequest", + "code": "message DeleteHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", + "doc": "删除任务" + }, { "name": "ValidateHTTPCacheTaskKeysRequest", "code": "message ValidateHTTPCacheTaskKeysRequest {\n\trepeated string keys = 1;\n}", @@ -10468,11 +10487,6 @@ "code": "message UpdateHTTPCacheTaskKeysStatusRequest {\n\trepeated KeyResult keyResults = 1;\n\n\n\tmessage KeyResult {\n\t\tint64 id = 1;\n\t\tint64 nodeClusterId = 2; // 特意设置的冗余数据\n\t\tstring error = 3;\n\t}\n}", "doc": "更新一组Key状态" }, - { - "name": "UpdateHTTPFastcgiRequest", - "code": "message UpdateHTTPFastcgiRequest {\n\tint64 httpFastcgiId = 1;\n\tbool isOn = 2;\n\tstring address = 3;\n\tbytes paramsJSON = 4;\n\tbytes readTimeoutJSON = 5;\n\tbytes connTimeoutJSON = 6;\n\tint32 poolSize = 7;\n\tstring pathInfoPattern = 8;\n}", - "doc": "修改Fastcgi服务" - }, { "name": "FindEnabledHTTPFastcgiRequest", "code": "message FindEnabledHTTPFastcgiRequest {\n\tint64 httpFastcgiId = 1;\n}", @@ -10503,11 +10517,96 @@ "code": "message CreateHTTPFastcgiResponse {\n\tint64 httpFastcgiId = 1;\n}", "doc": "" }, + { + "name": "UpdateHTTPFastcgiRequest", + "code": "message UpdateHTTPFastcgiRequest {\n\tint64 httpFastcgiId = 1;\n\tbool isOn = 2;\n\tstring address = 3;\n\tbytes paramsJSON = 4;\n\tbytes readTimeoutJSON = 5;\n\tbytes connTimeoutJSON = 6;\n\tint32 poolSize = 7;\n\tstring pathInfoPattern = 8;\n}", + "doc": "修改Fastcgi服务" + }, + { + "name": "UpdateHTTPFirewallPolicyRequest", + "code": "message UpdateHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\trepeated string firewallGroupCodes = 5;\n\tbytes blockOptionsJSON = 6;\n\tbytes captchaOptionsJSON = 11;\n\tstring mode = 7;\n\tbool useLocalFirewall = 8;\n\tbytes synFloodJSON = 9;\n\tbytes LogJSON = 10;\n}", + "doc": "修改防火墙策略" + }, + { + "name": "ListEnabledHTTPFirewallPoliciesRequest", + "code": "message ListEnabledHTTPFirewallPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n\tint64 nodeClusterId = 4;\n}", + "doc": "列出单页的防火墙策略" + }, + { + "name": "DeleteHTTPFirewallPolicyRequest", + "code": "message DeleteHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "删除某个防火墙策略" + }, + { + "name": "FindAllEnabledHTTPFirewallPoliciesResponse", + "code": "message FindAllEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy firewallPolicies = 1;\n}", + "doc": "" + }, + { + "name": "CreateEmptyHTTPFirewallPolicyRequest", + "code": "message CreateEmptyHTTPFirewallPolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 serverId = 4;\n\tint64 serverGroupId = 5;\n}", + "doc": "创建空防火墙策略" + }, + { + "name": "UpdateHTTPFirewallInboundConfigRequest", + "code": "message UpdateHTTPFirewallInboundConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n}", + "doc": "修改inbound信息" + }, + { + "name": "CountAllEnabledHTTPFirewallPoliciesRequest", + "code": "message CountAllEnabledHTTPFirewallPoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n}", + "doc": "计算可用的防火墙策略数量" + }, + { + "name": "FindEnabledHTTPFirewallPolicyResponse", + "code": "message FindEnabledHTTPFirewallPolicyResponse {\n\tHTTPFirewallPolicy httpFirewallPolicy = 1;\n}", + "doc": "" + }, + { + "name": "ImportHTTPFirewallPolicyRequest", + "code": "message ImportHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes httpFirewallPolicyJSON = 2;\n}", + "doc": "导入策略数据" + }, + { + "name": "CreateHTTPFirewallPolicyRequest", + "code": "message CreateHTTPFirewallPolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\trepeated string httpFirewallGroupCodes = 4;\n\tint64 serverId = 5;\n\tint64 serverGroupId = 6;\n}", + "doc": "创建防火墙策略" + }, { "name": "CreateHTTPFirewallPolicyResponse", "code": "message CreateHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", "doc": "" }, + { + "name": "CreateEmptyHTTPFirewallPolicyResponse", + "code": "message CreateEmptyHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPFirewallPolicyConfigResponse", + "code": "message FindEnabledHTTPFirewallPolicyConfigResponse {\n\tbytes httpFirewallPolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "CheckHTTPFirewallPolicyIPStatusRequest", + "code": "message CheckHTTPFirewallPolicyIPStatusRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tstring ip = 2;\n}", + "doc": "检查IP状态" + }, + { + "name": "CheckHTTPFirewallPolicyIPStatusResponse", + "code": "message CheckHTTPFirewallPolicyIPStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPList ipList = 5; // 匹配的IPList\n\tIPItem ipItem = 6; // 匹配的IPItem\n\tRegionCountry regionCountry = 7; // 匹配到封禁的地区\n\tRegionProvince regionProvince = 8; // 匹配到封禁的省份\n}", + "doc": "" + }, + { + "name": "FindAllEnabledHTTPFirewallPoliciesRequest", + "code": "message FindAllEnabledHTTPFirewallPoliciesRequest {\n\n}", + "doc": "获取所有可用策略" + }, + { + "name": "ListEnabledHTTPFirewallPoliciesResponse", + "code": "message ListEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy httpFirewallPolicies = 1;\n}", + "doc": "" + }, { "name": "FindEnabledHTTPFirewallPolicyConfigRequest", "code": "message FindEnabledHTTPFirewallPolicyConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", @@ -10518,130 +10617,55 @@ "code": "message FindEnabledHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", "doc": "获取防火墙的基本信息" }, - { - "name": "ImportHTTPFirewallPolicyRequest", - "code": "message ImportHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes httpFirewallPolicyJSON = 2;\n}", - "doc": "导入策略数据" - }, - { - "name": "CheckHTTPFirewallPolicyIPStatusRequest", - "code": "message CheckHTTPFirewallPolicyIPStatusRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tstring ip = 2;\n}", - "doc": "检查IP状态" - }, - { - "name": "FindAllEnabledHTTPFirewallPoliciesResponse", - "code": "message FindAllEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy firewallPolicies = 1;\n}", - "doc": "" - }, - { - "name": "CreateEmptyHTTPFirewallPolicyRequest", - "code": "message CreateEmptyHTTPFirewallPolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 serverId = 4;\n\tint64 serverGroupId = 5;\n}", - "doc": "创建空防火墙策略" - }, - { - "name": "CreateEmptyHTTPFirewallPolicyResponse", - "code": "message CreateEmptyHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPFirewallPolicyRequest", - "code": "message UpdateHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\trepeated string firewallGroupCodes = 5;\n\tbytes blockOptionsJSON = 6;\n\tbytes captchaOptionsJSON = 11;\n\tstring mode = 7;\n\tbool useLocalFirewall = 8;\n\tbytes synFloodJSON = 9;\n\tbytes LogJSON = 10;\n}", - "doc": "修改防火墙策略" - }, { "name": "UpdateHTTPFirewallPolicyGroupsRequest", "code": "message UpdateHTTPFirewallPolicyGroupsRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n\tbytes outboundJSON = 3;\n}", "doc": "修改分组信息" }, - { - "name": "CountAllEnabledHTTPFirewallPoliciesRequest", - "code": "message CountAllEnabledHTTPFirewallPoliciesRequest {\n\tstring keyword = 1;\n\tint64 nodeClusterId = 2;\n}", - "doc": "计算可用的防火墙策略数量" - }, - { - "name": "UpdateHTTPFirewallInboundConfigRequest", - "code": "message UpdateHTTPFirewallInboundConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n}", - "doc": "修改inbound信息" - }, - { - "name": "ListEnabledHTTPFirewallPoliciesRequest", - "code": "message ListEnabledHTTPFirewallPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n\tint64 nodeClusterId = 4;\n}", - "doc": "列出单页的防火墙策略" - }, - { - "name": "ListEnabledHTTPFirewallPoliciesResponse", - "code": "message ListEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy httpFirewallPolicies = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledHTTPFirewallPoliciesRequest", - "code": "message FindAllEnabledHTTPFirewallPoliciesRequest {\n\n}", - "doc": "获取所有可用策略" - }, - { - "name": "CreateHTTPFirewallPolicyRequest", - "code": "message CreateHTTPFirewallPolicyRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\trepeated string httpFirewallGroupCodes = 4;\n\tint64 serverId = 5;\n\tint64 serverGroupId = 6;\n}", - "doc": "创建防火墙策略" - }, - { - "name": "DeleteHTTPFirewallPolicyRequest", - "code": "message DeleteHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "删除某个防火墙策略" - }, - { - "name": "FindEnabledHTTPFirewallPolicyConfigResponse", - "code": "message FindEnabledHTTPFirewallPolicyConfigResponse {\n\tbytes httpFirewallPolicyJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPFirewallPolicyResponse", - "code": "message FindEnabledHTTPFirewallPolicyResponse {\n\tHTTPFirewallPolicy httpFirewallPolicy = 1;\n}", - "doc": "" - }, - { - "name": "CheckHTTPFirewallPolicyIPStatusResponse", - "code": "message CheckHTTPFirewallPolicyIPStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPList ipList = 5; // 匹配的IPList\n\tIPItem ipItem = 6; // 匹配的IPItem\n\tRegionCountry regionCountry = 7; // 匹配到封禁的地区\n\tRegionProvince regionProvince = 8; // 匹配到封禁的省份\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPFirewallRuleGroupResponse", - "code": "message FindEnabledHTTPFirewallRuleGroupResponse {\n\tHTTPFirewallRuleGroup firewallRuleGroup = 1;\n}", - "doc": "" - }, - { - "name": "AddHTTPFirewallRuleGroupSetRequest", - "code": "message AddHTTPFirewallRuleGroupSetRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbytes firewallRuleSetConfigJSON = 2;\n}", - "doc": "添加规则集" - }, - { - "name": "CreateHTTPFirewallRuleGroupResponse", - "code": "message CreateHTTPFirewallRuleGroupResponse {\n\tint64 firewallRuleGroupId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPFirewallRuleGroupConfigRequest", - "code": "message FindEnabledHTTPFirewallRuleGroupConfigRequest {\n\tint64 firewallRuleGroupId = 1;\n}", - "doc": "获取分组配置" - }, - { - "name": "UpdateHTTPFirewallRuleGroupRequest", - "code": "message UpdateHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tstring code = 5;\n}", - "doc": "修改分组" - }, { "name": "FindEnabledHTTPFirewallRuleGroupConfigResponse", "code": "message FindEnabledHTTPFirewallRuleGroupConfigResponse {\n\tbytes firewallRuleGroupJSON = 1;\n}", "doc": "" }, + { + "name": "UpdateHTTPFirewallRuleGroupSetsRequest", + "code": "message UpdateHTTPFirewallRuleGroupSetsRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbytes firewallRuleSetsJSON = 2;\n}", + "doc": "修改分组的规则集" + }, + { + "name": "AddHTTPFirewallRuleGroupSetRequest", + "code": "message AddHTTPFirewallRuleGroupSetRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbytes firewallRuleSetConfigJSON = 2;\n}", + "doc": "添加规则集" + }, + { + "name": "CreateHTTPFirewallRuleGroupRequest", + "code": "message CreateHTTPFirewallRuleGroupRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring code = 4;\n\tstring description = 3;\n}", + "doc": "创建分组" + }, + { + "name": "CreateHTTPFirewallRuleGroupResponse", + "code": "message CreateHTTPFirewallRuleGroupResponse {\n\tint64 firewallRuleGroupId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPFirewallRuleGroupRequest", + "code": "message UpdateHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tstring code = 5;\n}", + "doc": "修改分组" + }, + { + "name": "FindEnabledHTTPFirewallRuleGroupConfigRequest", + "code": "message FindEnabledHTTPFirewallRuleGroupConfigRequest {\n\tint64 firewallRuleGroupId = 1;\n}", + "doc": "获取分组配置" + }, { "name": "FindEnabledHTTPFirewallRuleGroupRequest", "code": "message FindEnabledHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n}", "doc": "获取分组信息" }, { - "name": "UpdateHTTPFirewallRuleGroupSetsRequest", - "code": "message UpdateHTTPFirewallRuleGroupSetsRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbytes firewallRuleSetsJSON = 2;\n}", - "doc": "修改分组的规则集" + "name": "FindEnabledHTTPFirewallRuleGroupResponse", + "code": "message FindEnabledHTTPFirewallRuleGroupResponse {\n\tHTTPFirewallRuleGroup firewallRuleGroup = 1;\n}", + "doc": "" }, { "name": "UpdateHTTPFirewallRuleGroupIsOnRequest", @@ -10649,9 +10673,9 @@ "doc": "设置是否启用分组" }, { - "name": "CreateHTTPFirewallRuleGroupRequest", - "code": "message CreateHTTPFirewallRuleGroupRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring code = 4;\n\tstring description = 3;\n}", - "doc": "创建分组" + "name": "CreateOrUpdateHTTPFirewallRuleSetFromConfigRequest", + "code": "message CreateOrUpdateHTTPFirewallRuleSetFromConfigRequest {\n\tbytes firewallRuleSetConfigJSON = 1;\n}", + "doc": "根据配置创建或修改规则集" }, { "name": "CreateOrUpdateHTTPFirewallRuleSetFromConfigResponse", @@ -10684,9 +10708,9 @@ "doc": "" }, { - "name": "CreateOrUpdateHTTPFirewallRuleSetFromConfigRequest", - "code": "message CreateOrUpdateHTTPFirewallRuleSetFromConfigRequest {\n\tbytes firewallRuleSetConfigJSON = 1;\n}", - "doc": "根据配置创建或修改规则集" + "name": "FindEnabledGzipConfigResponse", + "code": "message FindEnabledGzipConfigResponse {\n\tbytes httpGzipJSON = 1;\n}", + "doc": "" }, { "name": "UpdateHTTPGzipRequest", @@ -10708,16 +10732,6 @@ "code": "message FindEnabledGzipConfigRequest {\n\tint64 httpGzipId = 1;\n}", "doc": "查找Gzip配置" }, - { - "name": "FindEnabledGzipConfigResponse", - "code": "message FindEnabledGzipConfigResponse {\n\tbytes httpGzipJSON = 1;\n}", - "doc": "" - }, - { - "name": "CreateHTTPHeaderResponse", - "code": "message CreateHTTPHeaderResponse {\n\tint64 headerId = 1;\n}", - "doc": "" - }, { "name": "UpdateHTTPHeaderRequest", "code": "message UpdateHTTPHeaderRequest {\n\tint64 headerId = 1;\n\tstring name = 2;\n\tstring value = 3;\n\trepeated int32 status = 4;\n\tbool disableRedirect = 5;\n\tbool shouldAppend = 6;\n\tbool shouldReplace = 7;\n\tbytes replaceValuesJSON = 8;\n\trepeated string methods = 9;\n\trepeated string domains = 10;\n}", @@ -10739,19 +10753,9 @@ "doc": "创建Header" }, { - "name": "UpdateHTTPHeaderPolicyAddingTrailersRequest", - "code": "message UpdateHTTPHeaderPolicyAddingTrailersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", - "doc": "修改AddTrailers" - }, - { - "name": "UpdateHTTPHeaderPolicyReplacingHeadersRequest", - "code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", - "doc": "修改ReplaceHeaders" - }, - { - "name": "FindEnabledHTTPHeaderPolicyConfigRequest", - "code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}", - "doc": "查找策略" + "name": "CreateHTTPHeaderResponse", + "code": "message CreateHTTPHeaderResponse {\n\tint64 headerId = 1;\n}", + "doc": "" }, { "name": "FindEnabledHTTPHeaderPolicyConfigResponse", @@ -10763,61 +10767,51 @@ "code": "message CreateHTTPHeaderPolicyRequest {\n\n}", "doc": "创建策略" }, - { - "name": "CreateHTTPHeaderPolicyResponse", - "code": "message CreateHTTPHeaderPolicyResponse {\n\tint64 headerPolicyId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPHeaderPolicyAddingHeadersRequest", - "code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", - "doc": "修改AddHeaders" - }, { "name": "UpdateHTTPHeaderPolicySettingHeadersRequest", "code": "message UpdateHTTPHeaderPolicySettingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", "doc": "修改SetHeaders" }, + { + "name": "UpdateHTTPHeaderPolicyAddingTrailersRequest", + "code": "message UpdateHTTPHeaderPolicyAddingTrailersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", + "doc": "修改AddTrailers" + }, + { + "name": "UpdateHTTPHeaderPolicyReplacingHeadersRequest", + "code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", + "doc": "修改ReplaceHeaders" + }, { "name": "UpdateHTTPHeaderPolicyDeletingHeadersRequest", "code": "message UpdateHTTPHeaderPolicyDeletingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\trepeated string headerNames = 2;\n}", "doc": "修改删除的Headers" }, { - "name": "CreateHTTPLocationRequest", - "code": "message CreateHTTPLocationRequest {\n\tint64 parentId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isBreak = 5;\n\tbytes condsJSON = 6;\n\trepeated string domains = 7;\n}", - "doc": "创建路径规则" + "name": "FindEnabledHTTPHeaderPolicyConfigRequest", + "code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}", + "doc": "查找策略" }, { - "name": "CreateHTTPLocationResponse", - "code": "message CreateHTTPLocationResponse {\n\tint64 locationId = 1;\n}", + "name": "UpdateHTTPHeaderPolicyAddingHeadersRequest", + "code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", + "doc": "修改AddHeaders" + }, + { + "name": "CreateHTTPHeaderPolicyResponse", + "code": "message CreateHTTPHeaderPolicyResponse {\n\tint64 headerPolicyId = 1;\n}", "doc": "" }, + { + "name": "UpdateHTTPLocationReverseProxyRequest", + "code": "message UpdateHTTPLocationReverseProxyRequest {\n\tint64 locationId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改反向代理设置" + }, { "name": "UpdateHTTPLocationRequest", "code": "message UpdateHTTPLocationRequest {\n\tint64 locationId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isOn = 5;\n\tbool isBreak = 6;\n\tbytes condsJSON = 7;\n\trepeated string domains = 8;\n}", "doc": "修改路径规则" }, - { - "name": "FindEnabledHTTPLocationConfigRequest", - "code": "message FindEnabledHTTPLocationConfigRequest {\n\tint64 locationId = 1;\n}", - "doc": "查找路径规则配置" - }, - { - "name": "FindAndInitHTTPLocationReverseProxyConfigRequest", - "code": "message FindAndInitHTTPLocationReverseProxyConfigRequest {\n\tint64 locationId = 1;\n}", - "doc": "查找反向代理设置" - }, - { - "name": "FindAndInitHTTPLocationWebConfigRequest", - "code": "message FindAndInitHTTPLocationWebConfigRequest {\n\tint64 locationId = 1;\n}", - "doc": "初始化Web设置" - }, - { - "name": "FindEnabledHTTPLocationConfigResponse", - "code": "message FindEnabledHTTPLocationConfigResponse {\n\tbytes locationJSON = 1;\n}", - "doc": "" - }, { "name": "DeleteHTTPLocationRequest", "code": "message DeleteHTTPLocationRequest {\n\tint64 locationId = 1;\n}", @@ -10828,20 +10822,40 @@ "code": "message FindAndInitHTTPLocationReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, + { + "name": "FindEnabledHTTPLocationConfigResponse", + "code": "message FindEnabledHTTPLocationConfigResponse {\n\tbytes locationJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAndInitHTTPLocationReverseProxyConfigRequest", + "code": "message FindAndInitHTTPLocationReverseProxyConfigRequest {\n\tint64 locationId = 1;\n}", + "doc": "查找反向代理设置" + }, + { + "name": "FindAndInitHTTPLocationWebConfigRequest", + "code": "message FindAndInitHTTPLocationWebConfigRequest {\n\tint64 locationId = 1;\n}", + "doc": "初始化Web设置" + }, { "name": "FindAndInitHTTPLocationWebConfigResponse", "code": "message FindAndInitHTTPLocationWebConfigResponse {\n\tbytes webJSON = 1;\n}", "doc": "" }, { - "name": "UpdateHTTPLocationReverseProxyRequest", - "code": "message UpdateHTTPLocationReverseProxyRequest {\n\tint64 locationId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改反向代理设置" + "name": "CreateHTTPLocationRequest", + "code": "message CreateHTTPLocationRequest {\n\tint64 parentId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring pattern = 4;\n\tbool isBreak = 5;\n\tbytes condsJSON = 6;\n\trepeated string domains = 7;\n}", + "doc": "创建路径规则" }, { - "name": "CreateHTTPPageRequest", - "code": "message CreateHTTPPageRequest {\n\trepeated string statusList = 1;\n\tstring bodyType = 5;\n\tstring url = 2;\n\tstring body = 4;\n\tint32 newStatus = 3;\n}", - "doc": "创建Page" + "name": "CreateHTTPLocationResponse", + "code": "message CreateHTTPLocationResponse {\n\tint64 locationId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPLocationConfigRequest", + "code": "message FindEnabledHTTPLocationConfigRequest {\n\tint64 locationId = 1;\n}", + "doc": "查找路径规则配置" }, { "name": "CreateHTTPPageResponse", @@ -10863,6 +10877,16 @@ "code": "message FindEnabledHTTPPageConfigResponse {\n\tbytes pageJSON = 1;\n}", "doc": "" }, + { + "name": "CreateHTTPPageRequest", + "code": "message CreateHTTPPageRequest {\n\trepeated string statusList = 1;\n\tstring bodyType = 5;\n\tstring url = 2;\n\tstring body = 4;\n\tint32 newStatus = 3;\n}", + "doc": "创建Page" + }, + { + "name": "CreateHTTPRewriteRuleRequest", + "code": "message CreateHTTPRewriteRuleRequest {\n\tstring pattern = 1;\n\tstring replace = 2;\n\tstring mode = 3;\n\tint32 redirectStatus = 4;\n\tbool isBreak = 5;\n\tstring proxyHost = 6;\n\tbool isOn = 7;\n\tbool withQuery = 8;\n\tbytes condsJSON = 9;\n}", + "doc": "创建重写规则" + }, { "name": "CreateHTTPRewriteRuleResponse", "code": "message CreateHTTPRewriteRuleResponse {\n\tint64 rewriteRuleId = 1;\n}", @@ -10874,19 +10898,114 @@ "doc": "修改重写规则" }, { - "name": "CreateHTTPRewriteRuleRequest", - "code": "message CreateHTTPRewriteRuleRequest {\n\tstring pattern = 1;\n\tstring replace = 2;\n\tstring mode = 3;\n\tint32 redirectStatus = 4;\n\tbool isBreak = 5;\n\tstring proxyHost = 6;\n\tbool isOn = 7;\n\tbool withQuery = 8;\n\tbytes condsJSON = 9;\n}", - "doc": "创建重写规则" + "name": "FindHTTPWebRequestLimitResponse", + "code": "message FindHTTPWebRequestLimitResponse {\n\tbytes requestLimitJSON = 1;\n}", + "doc": "" }, { - "name": "UpdateHTTPWebRemoteAddrRequest", - "code": "message UpdateHTTPWebRemoteAddrRequest {\n\tint64 httpWebId = 1;\n\tbytes remoteAddrJSON = 2; // @link json:http_remote_addr_config\n}", - "doc": "更改RemoteAddr配置" + "name": "FindHTTPWebUAMResponse", + "code": "message FindHTTPWebUAMResponse {\n\tbytes uamJSON = 1;\n}", + "doc": "" }, { - "name": "UpdateHTTPWebResponseHeaderRequest", - "code": "message UpdateHTTPWebResponseHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", - "doc": "更改响应Header策略" + "name": "UpdateHTTPWebShutdownRequest", + "code": "message UpdateHTTPWebShutdownRequest {\n\tint64 httpWebId = 1;\n\tbytes shutdownJSON = 2;\n}", + "doc": "更改Shutdown" + }, + { + "name": "FindHTTPWebRequestLimitRequest", + "code": "message FindHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找请求限制" + }, + { + "name": "UpdateHTTPWebHostRedirectsRequest", + "code": "message UpdateHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n\tbytes hostRedirectsJSON = 2;\n}", + "doc": "更改主机跳转设置" + }, + { + "name": "UpdateHTTPWebCommonRequest", + "code": "message UpdateHTTPWebCommonRequest {\n\tint64 httpWebId = 1;\n\tbool mergeSlashes = 2;\n}", + "doc": "更改通用设置" + }, + { + "name": "UpdateHTTPWebRequestScriptsRequest", + "code": "message UpdateHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n\tbytes requestScriptsJSON = 2;\n}", + "doc": "修改请求脚本" + }, + { + "name": "FindHTTPWebRequestScriptsResponse", + "code": "message FindHTTPWebRequestScriptsResponse {\n\tbytes requestScriptsJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPWebRequest", + "code": "message FindEnabledHTTPWebRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找Web信息" + }, + { + "name": "UpdateHTTPWebRedirectToHTTPSRequest", + "code": "message UpdateHTTPWebRedirectToHTTPSRequest {\n\tint64 httpWebId = 1;\n\tbytes redirectToHTTPSJSON = 2;\n}", + "doc": "更改跳转到HTTPS设置" + }, + { + "name": "FindHTTPWebUAMRequest", + "code": "message FindHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找服务UAM设置" + }, + { + "name": "FindEnabledHTTPWebConfigResponse", + "code": "message FindEnabledHTTPWebConfigResponse {\n\tbytes httpWebJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPWebLocationsRequest", + "code": "message UpdateHTTPWebLocationsRequest {\n\tint64 httpWebId = 1;\n\tbytes locationsJSON = 3;\n}", + "doc": "更改路径规则配置" + }, + { + "name": "UpdateHTTPWebCharsetRequest", + "code": "message UpdateHTTPWebCharsetRequest {\n\tint64 httpWebId = 1;\n\tbytes charsetJSON = 2;\n}", + "doc": "更改字符集配置" + }, + { + "name": "UpdateHTTPWebRequestHeaderRequest", + "code": "message UpdateHTTPWebRequestHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", + "doc": "更改请求Header策略" + }, + { + "name": "UpdateHTTPWebPagesRequest", + "code": "message UpdateHTTPWebPagesRequest {\n\tint64 httpWebId = 1;\n\tbytes pagesJSON = 2;\n}", + "doc": "更改Pages" + }, + { + "name": "UpdateHTTPWebRewriteRulesRequest", + "code": "message UpdateHTTPWebRewriteRulesRequest {\n\tint64 httpWebId = 1;\n\tbytes rewriteRulesJSON = 2;\n}", + "doc": "更改重写规则设置" + }, + { + "name": "FindHTTPWebHostRedirectsRequest", + "code": "message FindHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找主机跳转设置" + }, + { + "name": "UpdateHTTPWebUAMRequest", + "code": "message UpdateHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n\tbytes uamJSON = 2;\n}", + "doc": "修改服务UAM设置" + }, + { + "name": "FindEnabledHTTPWebConfigRequest", + "code": "message FindEnabledHTTPWebConfigRequest {\n\tint64 httpWebId = 1;\n}", + "doc": "查找Web配置" + }, + { + "name": "UpdateHTTPWebCompressionRequest", + "code": "message UpdateHTTPWebCompressionRequest {\n\tint64 httpWebId = 1;\n\tbytes compressionJSON = 2;\n}", + "doc": "更改压缩配置" + }, + { + "name": "UpdateHTTPWebFirewallRequest", + "code": "message UpdateHTTPWebFirewallRequest {\n\tint64 httpWebId = 1;\n\tbytes firewallJSON = 2; // @link json:http_firewall_ref\n}", + "doc": "更改防火墙设置" }, { "name": "UpdateHTTPWebWebsocketRequest", @@ -10898,124 +11017,39 @@ "code": "message UpdateHTTPWebFastcgiRequest {\n\tint64 httpWebId = 1;\n\tbytes fastcgiJSON = 2;\n}", "doc": "更改Fastcgi设置" }, - { - "name": "FindHTTPWebHostRedirectsResponse", - "code": "message FindHTTPWebHostRedirectsResponse {\n\tbytes hostRedirectsJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledHTTPWebConfigRequest", - "code": "message FindEnabledHTTPWebConfigRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找Web配置" - }, - { - "name": "FindEnabledHTTPWebConfigResponse", - "code": "message FindEnabledHTTPWebConfigResponse {\n\tbytes httpWebJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPWebRewriteRulesRequest", - "code": "message UpdateHTTPWebRewriteRulesRequest {\n\tint64 httpWebId = 1;\n\tbytes rewriteRulesJSON = 2;\n}", - "doc": "更改重写规则设置" - }, - { - "name": "UpdateHTTPWebUAMRequest", - "code": "message UpdateHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n\tbytes uamJSON = 2;\n}", - "doc": "修改服务UAM设置" - }, - { - "name": "UpdateHTTPWebRequest", - "code": "message UpdateHTTPWebRequest {\n\tint64 httpWebId = 1;\n\tbytes rootJSON = 2;\n}", - "doc": "更改Web配置" - }, - { - "name": "UpdateHTTPWebCacheRequest", - "code": "message UpdateHTTPWebCacheRequest {\n\tint64 httpWebId = 1;\n\tbytes cacheJSON = 2; // @link json:http_cache_config\n}", - "doc": "更改缓存配置" - }, - { - "name": "FindHTTPWebHostRedirectsRequest", - "code": "message FindHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找主机跳转设置" - }, - { - "name": "FindHTTPWebUAMResponse", - "code": "message FindHTTPWebUAMResponse {\n\tbytes uamJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPWebStatRequest", - "code": "message UpdateHTTPWebStatRequest {\n\tint64 httpWebId = 1;\n\tbytes statJSON = 2; // @link json:http_stat_stat_ref\n}", - "doc": "更改统计配置" - }, - { - "name": "UpdateHTTPWebFirewallRequest", - "code": "message UpdateHTTPWebFirewallRequest {\n\tint64 httpWebId = 1;\n\tbytes firewallJSON = 2; // @link json:http_firewall_ref\n}", - "doc": "更改防火墙设置" - }, - { - "name": "UpdateHTTPWebLocationsRequest", - "code": "message UpdateHTTPWebLocationsRequest {\n\tint64 httpWebId = 1;\n\tbytes locationsJSON = 3;\n}", - "doc": "更改路径规则配置" - }, { "name": "UpdateHTTPWebAuthRequest", "code": "message UpdateHTTPWebAuthRequest {\n\tint64 httpWebId = 1;\n\tbytes authJSON = 2;\n}", "doc": "更改认证设置" }, - { - "name": "UpdateHTTPWebRequestLimitRequest", - "code": "message UpdateHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n\tbytes requestLimitJSON = 2;\n}", - "doc": "修改请求限制" - }, { "name": "FindHTTPWebRequestScriptsRequest", "code": "message FindHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n}", "doc": "查找请求脚本" }, - { - "name": "FindEnabledHTTPWebRequest", - "code": "message FindEnabledHTTPWebRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找Web信息" - }, - { - "name": "UpdateHTTPWebCompressionRequest", - "code": "message UpdateHTTPWebCompressionRequest {\n\tint64 httpWebId = 1;\n\tbytes compressionJSON = 2;\n}", - "doc": "更改压缩配置" - }, - { - "name": "UpdateHTTPWebPagesRequest", - "code": "message UpdateHTTPWebPagesRequest {\n\tint64 httpWebId = 1;\n\tbytes pagesJSON = 2;\n}", - "doc": "更改Pages" - }, - { - "name": "UpdateHTTPWebCommonRequest", - "code": "message UpdateHTTPWebCommonRequest {\n\tint64 httpWebId = 1;\n\tbool mergeSlashes = 2;\n}", - "doc": "更改通用设置" - }, { "name": "UpdateHTTPWebWebPRequest", "code": "message UpdateHTTPWebWebPRequest {\n\tint64 httpWebId = 1;\n\tbytes webpJSON = 2;\n}", "doc": "更改WebP配置" }, { - "name": "UpdateHTTPWebRequestHeaderRequest", - "code": "message UpdateHTTPWebRequestHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", - "doc": "更改请求Header策略" + "name": "UpdateHTTPWebRemoteAddrRequest", + "code": "message UpdateHTTPWebRemoteAddrRequest {\n\tint64 httpWebId = 1;\n\tbytes remoteAddrJSON = 2; // @link json:http_remote_addr_config\n}", + "doc": "更改RemoteAddr配置" }, { - "name": "UpdateHTTPWebRedirectToHTTPSRequest", - "code": "message UpdateHTTPWebRedirectToHTTPSRequest {\n\tint64 httpWebId = 1;\n\tbytes redirectToHTTPSJSON = 2;\n}", - "doc": "更改跳转到HTTPS设置" + "name": "UpdateHTTPWebResponseHeaderRequest", + "code": "message UpdateHTTPWebResponseHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", + "doc": "更改响应Header策略" }, { - "name": "UpdateHTTPWebHostRedirectsRequest", - "code": "message UpdateHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n\tbytes hostRedirectsJSON = 2;\n}", - "doc": "更改主机跳转设置" + "name": "UpdateHTTPWebAccessLogRequest", + "code": "message UpdateHTTPWebAccessLogRequest {\n\tint64 httpWebId = 1;\n\tbytes accessLogJSON = 2; // @link json:http_access_log_ref\n}", + "doc": "更改访问日志配置" }, { - "name": "FindHTTPWebRequestScriptsResponse", - "code": "message FindHTTPWebRequestScriptsResponse {\n\tbytes requestScriptsJSON = 1;\n}", + "name": "FindHTTPWebHostRedirectsResponse", + "code": "message FindHTTPWebHostRedirectsResponse {\n\tbytes hostRedirectsJSON = 1;\n}", "doc": "" }, { @@ -11023,6 +11057,21 @@ "code": "message CreateHTTPWebRequest {\n\tbytes rootJSON = 1;\n}", "doc": "创建Web配置" }, + { + "name": "UpdateHTTPWebRequest", + "code": "message UpdateHTTPWebRequest {\n\tint64 httpWebId = 1;\n\tbytes rootJSON = 2;\n}", + "doc": "更改Web配置" + }, + { + "name": "UpdateHTTPWebStatRequest", + "code": "message UpdateHTTPWebStatRequest {\n\tint64 httpWebId = 1;\n\tbytes statJSON = 2; // @link json:http_stat_stat_ref\n}", + "doc": "更改统计配置" + }, + { + "name": "UpdateHTTPWebCacheRequest", + "code": "message UpdateHTTPWebCacheRequest {\n\tint64 httpWebId = 1;\n\tbytes cacheJSON = 2; // @link json:http_cache_config\n}", + "doc": "更改缓存配置" + }, { "name": "CreateHTTPWebResponse", "code": "message CreateHTTPWebResponse {\n\tint64 httpWebId = 1;\n}", @@ -11034,39 +11083,9 @@ "doc": "" }, { - "name": "UpdateHTTPWebShutdownRequest", - "code": "message UpdateHTTPWebShutdownRequest {\n\tint64 httpWebId = 1;\n\tbytes shutdownJSON = 2;\n}", - "doc": "更改Shutdown" - }, - { - "name": "FindHTTPWebRequestLimitResponse", - "code": "message FindHTTPWebRequestLimitResponse {\n\tbytes requestLimitJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPWebRequestScriptsRequest", - "code": "message UpdateHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n\tbytes requestScriptsJSON = 2;\n}", - "doc": "修改请求脚本" - }, - { - "name": "UpdateHTTPWebCharsetRequest", - "code": "message UpdateHTTPWebCharsetRequest {\n\tint64 httpWebId = 1;\n\tbytes charsetJSON = 2;\n}", - "doc": "更改字符集配置" - }, - { - "name": "UpdateHTTPWebAccessLogRequest", - "code": "message UpdateHTTPWebAccessLogRequest {\n\tint64 httpWebId = 1;\n\tbytes accessLogJSON = 2; // @link json:http_access_log_ref\n}", - "doc": "更改访问日志配置" - }, - { - "name": "FindHTTPWebRequestLimitRequest", - "code": "message FindHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找请求限制" - }, - { - "name": "FindHTTPWebUAMRequest", - "code": "message FindHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找服务UAM设置" + "name": "UpdateHTTPWebRequestLimitRequest", + "code": "message UpdateHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n\tbytes requestLimitJSON = 2;\n}", + "doc": "修改请求限制" }, { "name": "CreateHTTPWebsocketRequest", @@ -11083,6 +11102,11 @@ "code": "message UpdateHTTPWebsocketRequest {\n\tint64 websocketId = 1;\n\tbytes handshakeTimeoutJSON = 2;\n\tbool allowAllOrigins = 3;\n\trepeated string allowedOrigins = 4;\n\tbool requestSameOrigin = 5;\n\tstring requestOrigin = 6;\n}", "doc": "修改Websocket配置" }, + { + "name": "CreateIPItemRequest", + "code": "message CreateIPItemRequest {\n\tint64 ipListId = 1; // IP列表ID\n\tstring ipFrom = 2; // 开始IP\n\tstring ipTo = 3; // 结束IP(可选)\n\tint64 expiredAt = 4; // 过期时间戳(可选)\n\tstring reason = 5; // 加入理由(可选)\n\tstring type = 6; // 类型\n\tstring eventLevel = 7; // 级别\n\n\tint64 nodeId = 8; // 所属节点ID\n\tint64 serverId = 9; // 所属服务ID\n\n\tint64 sourceNodeId = 10;\n\tint64 sourceServerId = 11;\n\tint64 sourceHTTPFirewallPolicyId = 12;\n\tint64 sourceHTTPFirewallRuleGroupId = 13;\n\tint64 sourceHTTPFirewallRuleSetId = 14;\n}", + "doc": "创建IP" + }, { "name": "DeleteIPItemsRequest", "code": "message DeleteIPItemsRequest {\n\trepeated int64 ipItemIds = 1;\n}", @@ -11094,29 +11118,9 @@ "doc": "计算IP数量" }, { - "name": "FindEnabledIPItemResponse", - "code": "message FindEnabledIPItemResponse {\n\tIPItem ipItem = 1;\n}", - "doc": "" - }, - { - "name": "ListIPItemsAfterVersionResponse", - "code": "message ListIPItemsAfterVersionResponse {\n\trepeated IPItem ipItems = 1;\n}", - "doc": "" - }, - { - "name": "CheckIPItemStatusResponse", - "code": "message CheckIPItemStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPItem ipItem = 5; // 匹配的IPItem\n}", - "doc": "" - }, - { - "name": "UpdateIPItemsReadRequest", - "code": "message UpdateIPItemsReadRequest {\n\n}", - "doc": "设置所有为已读" - }, - { - "name": "CreateIPItemRequest", - "code": "message CreateIPItemRequest {\n\tint64 ipListId = 1; // IP列表ID\n\tstring ipFrom = 2; // 开始IP\n\tstring ipTo = 3; // 结束IP(可选)\n\tint64 expiredAt = 4; // 过期时间戳(可选)\n\tstring reason = 5; // 加入理由(可选)\n\tstring type = 6; // 类型\n\tstring eventLevel = 7; // 级别\n\n\tint64 nodeId = 8; // 所属节点ID\n\tint64 serverId = 9; // 所属服务ID\n\n\tint64 sourceNodeId = 10;\n\tint64 sourceServerId = 11;\n\tint64 sourceHTTPFirewallPolicyId = 12;\n\tint64 sourceHTTPFirewallRuleGroupId = 13;\n\tint64 sourceHTTPFirewallRuleSetId = 14;\n}", - "doc": "创建IP" + "name": "ListIPItemsWithListIdRequest", + "code": "message ListIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 4;\n\tstring ipFrom = 5;\n\tstring ipTo = 6;\n\tstring eventLevel = 7;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页的IP" }, { "name": "ListIPItemsAfterVersionRequest", @@ -11124,23 +11128,13 @@ "doc": "根据版本列出一组IP" }, { - "name": "CheckIPItemStatusRequest", - "code": "message CheckIPItemStatusRequest {\n\tint64 ipListId = 1;\n\tstring ip = 2;\n}", - "doc": "检查IP状态" - }, - { - "name": "ExistsEnabledIPItemResponse", - "code": "message ExistsEnabledIPItemResponse {\n\tbool exists = 1;\n}", + "name": "CheckIPItemStatusResponse", + "code": "message CheckIPItemStatusResponse {\n\tbool isOk = 1; // 是否查询成功\n\tstring error = 2;\n\tbool isFound = 3; // 是否找到\n\tbool isAllowed = 4; // 是否允许\n\tIPItem ipItem = 5; // 匹配的IPItem\n}", "doc": "" }, { - "name": "ListAllEnabledIPItemsResponse", - "code": "message ListAllEnabledIPItemsResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tIPList ipList = 1; // 所属名单\n\t\tIPItem ipItem = 2; // IP信息\n\t\tServer server = 3; // 所属服务\n\t\tHTTPFirewallPolicy httpFirewallPolicy = 4; // 所属WAF策略\n\t}\n}", - "doc": "" - }, - { - "name": "ListIPItemsWithListIdResponse", - "code": "message ListIPItemsWithListIdResponse {\n\trepeated IPItem ipItems = 1;\n}", + "name": "CreateIPItemResponse", + "code": "message CreateIPItemResponse {\n\tint64 ipItemId = 1;\n}", "doc": "" }, { @@ -11148,11 +11142,41 @@ "code": "message FindEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", "doc": "查找单个IP" }, + { + "name": "UpdateIPItemsReadRequest", + "code": "message UpdateIPItemsReadRequest {\n\n}", + "doc": "设置所有为已读" + }, + { + "name": "ListIPItemsWithListIdResponse", + "code": "message ListIPItemsWithListIdResponse {\n\trepeated IPItem ipItems = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledIPItemResponse", + "code": "message FindEnabledIPItemResponse {\n\tIPItem ipItem = 1;\n}", + "doc": "" + }, + { + "name": "CheckIPItemStatusRequest", + "code": "message CheckIPItemStatusRequest {\n\tint64 ipListId = 1;\n\tstring ip = 2;\n}", + "doc": "检查IP状态" + }, + { + "name": "CountAllEnabledIPItemsRequest", + "code": "message CountAllEnabledIPItemsRequest {\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 3;\n\tstring eventLevel = 4;\n\tstring listType = 5;\n}", + "doc": "计算所有IP数量" + }, { "name": "ListAllEnabledIPItemsRequest", "code": "message ListAllEnabledIPItemsRequest {\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}", "doc": "列出所有名单中的IP" }, + { + "name": "ListAllEnabledIPItemsResponse", + "code": "message ListAllEnabledIPItemsResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tIPList ipList = 1; // 所属名单\n\t\tIPItem ipItem = 2; // IP信息\n\t\tServer server = 3; // 所属服务\n\t\tHTTPFirewallPolicy httpFirewallPolicy = 4; // 所属WAF策略\n\t}\n}", + "doc": "" + }, { "name": "UpdateIPItemRequest", "code": "message UpdateIPItemRequest {\n\tint64 ipItemId = 1;\n\tstring ipFrom = 2;\n\tstring ipTo = 3;\n\tint64 expiredAt = 4;\n\tstring reason = 5;\n\tstring type = 6; // 类型\n\tstring eventLevel = 7; // 级别\n}", @@ -11164,9 +11188,9 @@ "doc": "删除IP\n可以使用 ipItemId 删除,也可以使用 ipFrom+ipTo+ipListId 删除,如果只是单个IP,则不需要指定ipTo" }, { - "name": "ListIPItemsWithListIdRequest", - "code": "message ListIPItemsWithListIdRequest {\n\tint64 ipListId = 1;\n\tstring keyword = 4;\n\tstring ipFrom = 5;\n\tstring ipTo = 6;\n\tstring eventLevel = 7;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页的IP" + "name": "ListIPItemsAfterVersionResponse", + "code": "message ListIPItemsAfterVersionResponse {\n\trepeated IPItem ipItems = 1;\n}", + "doc": "" }, { "name": "ExistsEnabledIPItemRequest", @@ -11174,60 +11198,20 @@ "doc": "检查IP是否存在" }, { - "name": "CountAllEnabledIPItemsRequest", - "code": "message CountAllEnabledIPItemsRequest {\n\tstring ip = 1;\n\tbool globalOnly = 2;\n\tbool unread = 3;\n\tstring eventLevel = 4;\n\tstring listType = 5;\n}", - "doc": "计算所有IP数量" - }, - { - "name": "CreateIPItemResponse", - "code": "message CreateIPItemResponse {\n\tint64 ipItemId = 1;\n}", + "name": "ExistsEnabledIPItemResponse", + "code": "message ExistsEnabledIPItemResponse {\n\tbool exists = 1;\n}", "doc": "" }, - { - "name": "FindLatestIPLibraryWithTypeRequest", - "code": "message FindLatestIPLibraryWithTypeRequest {\n\tstring type = 1;\n}", - "doc": "查找最新的IP库" - }, { "name": "DeleteIPLibraryRequest", "code": "message DeleteIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", "doc": "删除IP库" }, - { - "name": "LookupIPRegionsRequest", - "code": "message LookupIPRegionsRequest {\n\trepeated string ipList = 1;\n}", - "doc": "查询一组IP信息" - }, - { - "name": "IPRegion", - "code": "message IPRegion {\n\tstring country = 1;\n\tstring region = 2;\n\tstring province = 3;\n\tstring city = 4;\n\tstring isp = 5;\n\tint64 countryId = 6;\n\tint64 provinceId = 7;\n\tstring summary = 8; // 完整的地区组合\n}", - "doc": "IP信息" - }, - { - "name": "LookupIPRegionResponse", - "code": "message LookupIPRegionResponse {\n\tIPRegion ipRegion = 1;\n}", - "doc": "" - }, - { - "name": "LookupIPRegionsResponse", - "code": "message LookupIPRegionsResponse {\n\tmap\u003cstring, IPRegion\u003e ipRegionMap = 1;\n}", - "doc": "" - }, - { - "name": "CreateIPLibraryResponse", - "code": "message CreateIPLibraryResponse {\n\tint64 ipLibraryId = 1;\n}", - "doc": "" - }, { "name": "FindEnabledIPLibraryResponse", "code": "message FindEnabledIPLibraryResponse {\n\tIPLibrary ipLibrary = 1;\n}", "doc": "" }, - { - "name": "FindLatestIPLibraryWithTypeResponse", - "code": "message FindLatestIPLibraryWithTypeResponse {\n\tIPLibrary ipLibrary = 1;\n}", - "doc": "" - }, { "name": "FindAllEnabledIPLibrariesWithTypeRequest", "code": "message FindAllEnabledIPLibrariesWithTypeRequest {\n\tstring type = 1;\n}", @@ -11238,15 +11222,25 @@ "code": "message LookupIPRegionRequest {\n\tstring ip = 1;\n}", "doc": "查询某个IP信息" }, + { + "name": "LookupIPRegionsResponse", + "code": "message LookupIPRegionsResponse {\n\tmap\u003cstring, IPRegion\u003e ipRegionMap = 1;\n}", + "doc": "" + }, { "name": "CreateIPLibraryRequest", "code": "message CreateIPLibraryRequest {\n\tstring type = 1;\n\tint64 fileId = 3;\n}", "doc": "创建IP库" }, { - "name": "FindEnabledIPLibraryRequest", - "code": "message FindEnabledIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", - "doc": "查找单个IP库" + "name": "FindLatestIPLibraryWithTypeRequest", + "code": "message FindLatestIPLibraryWithTypeRequest {\n\tstring type = 1;\n}", + "doc": "查找最新的IP库" + }, + { + "name": "FindLatestIPLibraryWithTypeResponse", + "code": "message FindLatestIPLibraryWithTypeResponse {\n\tIPLibrary ipLibrary = 1;\n}", + "doc": "" }, { "name": "FindAllEnabledIPLibrariesWithTypeResponse", @@ -11254,30 +11248,105 @@ "doc": "" }, { - "name": "UpdateIPListRequest", - "code": "message UpdateIPListRequest {\n\tint64 ipListId = 1;\n\tstring name = 2;\n\tstring code = 3;\n\tbytes timeoutJSON = 4;\n\tstring description = 5;\n}", - "doc": "修改IP列表" - }, - { - "name": "FindEnabledIPListResponse", - "code": "message FindEnabledIPListResponse {\n\tIPList ipList = 1;\n}", + "name": "LookupIPRegionResponse", + "code": "message LookupIPRegionResponse {\n\tIPRegion ipRegion = 1;\n}", "doc": "" }, { - "name": "ListEnabledIPListsRequest", - "code": "message ListEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页名单" - }, - { - "name": "DeleteIPListRequest", - "code": "message DeleteIPListRequest {\n\tint64 ipListId = 1;\n}", - "doc": "删除IP名单" - }, - { - "name": "ExistsEnabledIPListResponse", - "code": "message ExistsEnabledIPListResponse {\n\tbool exists = 1;\n}", + "name": "CreateIPLibraryResponse", + "code": "message CreateIPLibraryResponse {\n\tint64 ipLibraryId = 1;\n}", "doc": "" }, + { + "name": "FindEnabledIPLibraryRequest", + "code": "message FindEnabledIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", + "doc": "查找单个IP库" + }, + { + "name": "LookupIPRegionsRequest", + "code": "message LookupIPRegionsRequest {\n\trepeated string ipList = 1;\n}", + "doc": "查询一组IP信息" + }, + { + "name": "IPRegion", + "code": "message IPRegion {\n\tstring country = 1;\n\tstring region = 2;\n\tstring province = 3;\n\tstring city = 4;\n\tstring isp = 5;\n\tint64 countryId = 6;\n\tint64 provinceId = 7;\n\tstring summary = 8; // 完整的地区组合\n}", + "doc": "IP信息" + }, + { + "name": "FindIPLibraryFileRequest", + "code": "message FindIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "查找单个IP库文件" + }, + { + "name": "CreateIPLibraryFileResponse", + "code": "message CreateIPLibraryFileResponse {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "" + }, + { + "name": "CheckProvincesWithIPLibraryFileIdRequest", + "code": "message CheckProvincesWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查省份/州" + }, + { + "name": "GenerateIPLibraryFileRequest", + "code": "message GenerateIPLibraryFileRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "生成IP库文件" + }, + { + "name": "CheckCountriesWithIPLibraryFileIdResponse", + "code": "message CheckCountriesWithIPLibraryFileIdResponse {\n\trepeated MissingCountry missingCountries = 1;\n\n\n\tmessage MissingCountry {\n\t\tstring countryName = 1;\n\t\trepeated RegionCountry similarCountries = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "FindAllUnfinishedIPLibraryFilesResponse", + "code": "message FindAllUnfinishedIPLibraryFilesResponse {\n\trepeated IPLibraryFile ipLibraryFiles = 1;\n}", + "doc": "" + }, + { + "name": "CreateIPLibraryFileRequest", + "code": "message CreateIPLibraryFileRequest {\n\tstring template = 1;\n\trepeated string emptyValues = 2;\n\tint64 fileId = 3;\n\tbytes countriesJSON = 4;\n\tbytes provincesJSON = 5;\n\tbytes citiesJSON = 6;\n\tbytes townsJSON = 7;\n\tbytes providersJSON = 8;\n}", + "doc": "创建IP库文件" + }, + { + "name": "CheckCitiesWithIPLibraryFileIdRequest", + "code": "message CheckCitiesWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查城市/市" + }, + { + "name": "CheckProvincesWithIPLibraryFileIdResponse", + "code": "message CheckProvincesWithIPLibraryFileIdResponse {\n\trepeated MissingProvince missingProvinces = 1;\n\n\n\tmessage MissingProvince {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\trepeated RegionProvince similarProvinces = 3;\n\t}\n}", + "doc": "" + }, + { + "name": "CheckCitiesWithIPLibraryFileIdResponse", + "code": "message CheckCitiesWithIPLibraryFileIdResponse {\n\trepeated MissingCity missingCities = 1;\n\n\n\tmessage MissingCity {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t\trepeated RegionCity similarCities = 4;\n\t}\n}", + "doc": "" + }, + { + "name": "CheckProvidersWithIPLibraryFileIdResponse", + "code": "message CheckProvidersWithIPLibraryFileIdResponse {\n\trepeated MissingProvider missingProviders = 1;\n\n\n\tmessage MissingProvider {\n\t\tstring providerName = 1;\n\t\trepeated RegionProvider similarProviders = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "FindIPLibraryFileResponse", + "code": "message FindIPLibraryFileResponse {\n\tIPLibraryFile ipLibraryFile = 1;\n}", + "doc": "" + }, + { + "name": "CheckProvidersWithIPLibraryFileIdRequest", + "code": "message CheckProvidersWithIPLibraryFileIdRequest{\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查ISP运营商" + }, + { + "name": "FindAllUnfinishedIPLibraryFilesRequest", + "code": "message FindAllUnfinishedIPLibraryFilesRequest {\n\n}", + "doc": "查找所有未完成的IP库文件" + }, + { + "name": "CheckCountriesWithIPLibraryFileIdRequest", + "code": "message CheckCountriesWithIPLibraryFileIdRequest {\n\tint64 ipLibraryFileId = 1;\n}", + "doc": "检查国家/地区" + }, { "name": "CreateIPListRequest", "code": "message CreateIPListRequest {\n\tstring type = 1;\n\tstring name = 2;\n\tstring code = 3;\n\tbytes timeoutJSON = 4;\n\tbool isPublic = 5;\n\tstring description = 6;\n\tbool isGlobal = 7;\n\tint64 serverId = 8;\n}", @@ -11293,11 +11362,41 @@ "code": "message FindEnabledIPListRequest {\n\tint64 ipListId = 1;\n}", "doc": "查找IP列表信息" }, + { + "name": "DeleteIPListRequest", + "code": "message DeleteIPListRequest {\n\tint64 ipListId = 1;\n}", + "doc": "删除IP名单" + }, + { + "name": "ExistsEnabledIPListResponse", + "code": "message ExistsEnabledIPListResponse {\n\tbool exists = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledIPListContainsIPRequest", + "code": "message FindEnabledIPListContainsIPRequest {\n\tstring ip = 1;\n}", + "doc": "根据IP来搜索IP名单" + }, + { + "name": "UpdateIPListRequest", + "code": "message UpdateIPListRequest {\n\tint64 ipListId = 1;\n\tstring name = 2;\n\tstring code = 3;\n\tbytes timeoutJSON = 4;\n\tstring description = 5;\n}", + "doc": "修改IP列表" + }, + { + "name": "FindEnabledIPListResponse", + "code": "message FindEnabledIPListResponse {\n\tIPList ipList = 1;\n}", + "doc": "" + }, { "name": "CountAllEnabledIPListsRequest", "code": "message CountAllEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n}", "doc": "计算名单数量" }, + { + "name": "ListEnabledIPListsRequest", + "code": "message ListEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页名单" + }, { "name": "ListEnabledIPListsResponse", "code": "message ListEnabledIPListsResponse {\n\trepeated IPList ipLists = 1;\n}", @@ -11308,11 +11407,6 @@ "code": "message ExistsEnabledIPListRequest {\n\tint64 ipListId = 1;\n}", "doc": "检查IPList是否存在" }, - { - "name": "FindEnabledIPListContainsIPRequest", - "code": "message FindEnabledIPListContainsIPRequest {\n\tstring ip = 1;\n}", - "doc": "根据IP来搜索IP名单" - }, { "name": "FindEnabledIPListContainsIPResponse", "code": "message FindEnabledIPListContainsIPResponse {\n\trepeated IPList ipLists = 1;\n}", @@ -11324,14 +11418,9 @@ "doc": "记录最近使用的条目" }, { - "name": "ListLogsResponse", - "code": "message ListLogsResponse {\n\trepeated Log logs = 1;\n}", - "doc": "" - }, - { - "name": "DeleteLogsPermanentlyRequest", - "code": "message DeleteLogsPermanentlyRequest {\n\trepeated int64 logIds = 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}", + "doc": "计算日志数量" }, { "name": "CleanLogsPermanentlyRequest", @@ -11348,30 +11437,40 @@ "code": "message CreateLogRequest {\n\tstring level = 1;\n\tstring description = 2;\n\tstring action = 3;\n\tstring ip = 4;\n}", "doc": "创建日志" }, + { + "name": "CreateLogResponse", + "code": "message CreateLogResponse {\n\n}", + "doc": "" + }, { "name": "ListLogsRequest", "code": "message ListLogsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring userType = 6;\n}", "doc": "列出单页日志" }, + { + "name": "ListLogsResponse", + "code": "message ListLogsResponse {\n\trepeated Log logs = 1;\n}", + "doc": "" + }, { "name": "DeleteLogPermanentlyRequest", "code": "message DeleteLogPermanentlyRequest {\n\tint64 logId = 1;\n}", "doc": "删除单条" }, + { + "name": "DeleteLogsPermanentlyRequest", + "code": "message DeleteLogsPermanentlyRequest {\n\trepeated int64 logIds = 1;\n}", + "doc": "批量删除" + }, { "name": "SumLogsResponse", "code": "message SumLogsResponse {\n\tint64 sizeBytes = 1;\n}", "doc": "" }, { - "name": "CreateLogResponse", - "code": "message CreateLogResponse {\n\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}", - "doc": "计算日志数量" + "name": "FindEnabledLoginRequest", + "code": "message FindEnabledLoginRequest {\n\tint64 adminId = 1;\n\tint64 userId = 3;\n\tstring type = 2;\n}", + "doc": "查找认证" }, { "name": "FindEnabledLoginResponse", @@ -11383,11 +11482,6 @@ "code": "message UpdateLoginRequest {\n\tLogin login = 1;\n}", "doc": "修改认证" }, - { - "name": "FindEnabledLoginRequest", - "code": "message FindEnabledLoginRequest {\n\tint64 adminId = 1;\n\tint64 userId = 3;\n\tstring type = 2;\n}", - "doc": "查找认证" - }, { "name": "CountUnreadMessagesRequest", "code": "message CountUnreadMessagesRequest {\n\n}", @@ -11433,26 +11527,6 @@ "code": "message UpdateMessageMediasRequest {\n\trepeated MessageMedia messageMedias = 2;\n}", "doc": "设置所有支持的媒介" }, - { - "name": "UpdateMessageMediaInstanceRequest", - "code": "message UpdateMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n\tstring name = 2;\n\tstring mediaType = 3;\n\tbytes paramsJSON = 4;\n\tstring description = 5;\n\tbytes rateJSON = 7;\n\tint32 hashLife = 8;\n\tbool isOn = 6;\n}", - "doc": "修改接收人" - }, - { - "name": "ListEnabledMessageMediaInstancesRequest", - "code": "message ListEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页接收人" - }, - { - "name": "FindEnabledMessageMediaInstanceRequest", - "code": "message FindEnabledMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", - "doc": "查找单个接收人信息" - }, - { - "name": "FindEnabledMessageMediaInstanceResponse", - "code": "message FindEnabledMessageMediaInstanceResponse {\n\tMessageMediaInstance messageMediaInstance = 1;\n}", - "doc": "" - }, { "name": "CreateMessageMediaInstanceRequest", "code": "message CreateMessageMediaInstanceRequest {\n\tstring name = 1;\n\tstring mediaType = 2;\n\tbytes paramsJSON = 3;\n\trepeated int64 groupIds = 4;\n\tstring description = 5;\n\tbytes rateJSON = 6;\n\tint32 hashLife = 7;\n}", @@ -11463,21 +11537,51 @@ "code": "message CreateMessageMediaInstanceResponse {\n\tint64 messageMediaInstanceId = 1;\n}", "doc": "" }, - { - "name": "DeleteMessageMediaInstanceRequest", - "code": "message DeleteMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", - "doc": "删除接收人" - }, { "name": "CountAllEnabledMessageMediaInstancesRequest", "code": "message CountAllEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\n}", "doc": "计算接收人数量" }, + { + "name": "FindEnabledMessageMediaInstanceResponse", + "code": "message FindEnabledMessageMediaInstanceResponse {\n\tMessageMediaInstance messageMediaInstance = 1;\n}", + "doc": "" + }, + { + "name": "UpdateMessageMediaInstanceRequest", + "code": "message UpdateMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n\tstring name = 2;\n\tstring mediaType = 3;\n\tbytes paramsJSON = 4;\n\tstring description = 5;\n\tbytes rateJSON = 7;\n\tint32 hashLife = 8;\n\tbool isOn = 6;\n}", + "doc": "修改接收人" + }, + { + "name": "DeleteMessageMediaInstanceRequest", + "code": "message DeleteMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", + "doc": "删除接收人" + }, + { + "name": "ListEnabledMessageMediaInstancesRequest", + "code": "message ListEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页接收人" + }, { "name": "ListEnabledMessageMediaInstancesResponse", "code": "message ListEnabledMessageMediaInstancesResponse {\n\trepeated MessageMediaInstance messageMediaInstances = 1;\n}", "doc": "" }, + { + "name": "FindEnabledMessageMediaInstanceRequest", + "code": "message FindEnabledMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", + "doc": "查找单个接收人信息" + }, + { + "name": "DeleteMessageReceiverRequest", + "code": "message DeleteMessageReceiverRequest {\n\tint64 messageReceiverId = 1;\n}", + "doc": "删除接收者" + }, + { + "name": "CountAllEnabledMessageReceiversRequest", + "code": "message CountAllEnabledMessageReceiversRequest {\n\tstring role = 4;\n\tint64 nodeClusterId = 1;\n\tint64 nodeId = 2;\n\tint64 serverId = 3;\n}", + "doc": "计算接收者数量" + }, { "name": "UpdateMessageReceiversRequest", "code": "message UpdateMessageReceiversRequest {\n\tstring role = 7;\n\tint64 nodeClusterId = 1;\n\tint64 nodeId = 2;\n\tint64 serverId = 3;\n\tbytes paramsJSON = 5;\n\tmap\u003cstring, RecipientOptions\u003e recipientOptions = 6; // type =\u003e options\n\n\n\tmessage RecipientOption {\n\t\tint64 messageRecipientId = 1;\n\t\tint64 messageRecipientGroupId = 2;\n\t}\n\n\n\tmessage RecipientOptions {\n\t\trepeated RecipientOption recipientOptions = 1;\n\t}\n}", @@ -11494,14 +11598,34 @@ "doc": "" }, { - "name": "DeleteMessageReceiverRequest", - "code": "message DeleteMessageReceiverRequest {\n\tint64 messageReceiverId = 1;\n}", - "doc": "删除接收者" + "name": "CreateMessageRecipientRequest", + "code": "message CreateMessageRecipientRequest {\n\tint64 adminId = 1;\n\tint64 messageMediaInstanceId = 2;\n\trepeated int64 messageRecipientGroupIds = 3;\n\tstring description = 4;\n\tstring user = 5;\n\tstring timeFrom = 6;\n\tstring timeTo = 7;\n}", + "doc": "创建接收人" }, { - "name": "CountAllEnabledMessageReceiversRequest", - "code": "message CountAllEnabledMessageReceiversRequest {\n\tstring role = 4;\n\tint64 nodeClusterId = 1;\n\tint64 nodeId = 2;\n\tint64 serverId = 3;\n}", - "doc": "计算接收者数量" + "name": "DeleteMessageRecipientRequest", + "code": "message DeleteMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n}", + "doc": "删除接收人" + }, + { + "name": "CountAllEnabledMessageRecipientsRequest", + "code": "message CountAllEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n}", + "doc": "计算接收人数量" + }, + { + "name": "CreateMessageRecipientResponse", + "code": "message CreateMessageRecipientResponse {\n\tint64 messageRecipientId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateMessageRecipientRequest", + "code": "message UpdateMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n\tint64 adminId = 2;\n\tint64 messageMediaInstanceId = 3;\n\trepeated int64 messageRecipientGroupIds = 4;\n\tstring description = 5;\n\tbool isOn = 6;\n\tstring user = 7;\n\tstring timeFrom = 8;\n\tstring timeTo = 9;\n}", + "doc": "修改接收人" + }, + { + "name": "ListEnabledMessageRecipientsRequest", + "code": "message ListEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页接收人" }, { "name": "ListEnabledMessageRecipientsResponse", @@ -11513,46 +11637,11 @@ "code": "message FindEnabledMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n}", "doc": "查找单个接收人信息" }, - { - "name": "CreateMessageRecipientResponse", - "code": "message CreateMessageRecipientResponse {\n\tint64 messageRecipientId = 1;\n}", - "doc": "" - }, - { - "name": "DeleteMessageRecipientRequest", - "code": "message DeleteMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n}", - "doc": "删除接收人" - }, - { - "name": "ListEnabledMessageRecipientsRequest", - "code": "message ListEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "列出单页接收人" - }, { "name": "FindEnabledMessageRecipientResponse", "code": "message FindEnabledMessageRecipientResponse {\n\tMessageRecipient messageRecipient = 1;\n}", "doc": "" }, - { - "name": "CreateMessageRecipientRequest", - "code": "message CreateMessageRecipientRequest {\n\tint64 adminId = 1;\n\tint64 messageMediaInstanceId = 2;\n\trepeated int64 messageRecipientGroupIds = 3;\n\tstring description = 4;\n\tstring user = 5;\n\tstring timeFrom = 6;\n\tstring timeTo = 7;\n}", - "doc": "创建接收人" - }, - { - "name": "UpdateMessageRecipientRequest", - "code": "message UpdateMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\n\tint64 adminId = 2;\n\tint64 messageMediaInstanceId = 3;\n\trepeated int64 messageRecipientGroupIds = 4;\n\tstring description = 5;\n\tbool isOn = 6;\n\tstring user = 7;\n\tstring timeFrom = 8;\n\tstring timeTo = 9;\n}", - "doc": "修改接收人" - }, - { - "name": "CountAllEnabledMessageRecipientsRequest", - "code": "message CountAllEnabledMessageRecipientsRequest {\n\tint64 adminId = 1;\n\tstring mediaType = 2;\n\tint64 messageRecipientGroupId = 3;\n\tstring keyword = 4;\n}", - "doc": "计算接收人数量" - }, - { - "name": "DeleteMessageRecipientGroupRequest", - "code": "message DeleteMessageRecipientGroupRequest {\n\tint64 messageRecipientGroupId = 1;\n}", - "doc": "删除分组" - }, { "name": "FindEnabledMessageRecipientGroupRequest", "code": "message FindEnabledMessageRecipientGroupRequest {\n\tint64 messageRecipientGroupId = 1;\n}", @@ -11588,6 +11677,21 @@ "code": "message FindAllEnabledMessageRecipientGroupsResponse {\n\trepeated MessageRecipientGroup messageRecipientGroups = 1;\n}", "doc": "" }, + { + "name": "DeleteMessageRecipientGroupRequest", + "code": "message DeleteMessageRecipientGroupRequest {\n\tint64 messageRecipientGroupId = 1;\n}", + "doc": "删除分组" + }, + { + "name": "CreateMessageTaskRequest", + "code": "message CreateMessageTaskRequest {\n\tint64 recipientId = 1;\n\tint64 instanceId = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tbool isPrimary = 6;\n}", + "doc": "创建消息任务" + }, + { + "name": "CreateMessageTaskResponse", + "code": "message CreateMessageTaskResponse {\n\tint64 messageTaskId = 1;\n}", + "doc": "" + }, { "name": "FindSendingMessageTasksResponse", "code": "message FindSendingMessageTasksResponse {\n\trepeated MessageTask messageTasks = 1;\n}", @@ -11598,11 +11702,6 @@ "code": "message UpdateMessageTaskStatusRequest {\n\tint64 messageTaskId = 1;\n\tint32 status = 2;\n\tMessageTaskResult result = 3;\n}", "doc": "修改消息任务状态" }, - { - "name": "DeleteMessageTaskRequest", - "code": "message DeleteMessageTaskRequest {\n\tint64 messageTaskId = 1;\n}", - "doc": "删除消息任务" - }, { "name": "FindEnabledMessageTaskRequest", "code": "message FindEnabledMessageTaskRequest {\n\tint64 messageTaskId = 1;\n}", @@ -11618,19 +11717,19 @@ "code": "message ListMessageTasksWithStatusResponse {\n\trepeated MessageTask messageTasks = 1;\n}", "doc": "" }, - { - "name": "CreateMessageTaskRequest", - "code": "message CreateMessageTaskRequest {\n\tint64 recipientId = 1;\n\tint64 instanceId = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tbool isPrimary = 6;\n}", - "doc": "创建消息任务" - }, { "name": "FindSendingMessageTasksRequest", "code": "message FindSendingMessageTasksRequest {\n\tint64 size = 1;\n}", "doc": "查找要发送的消息任务" }, { - "name": "CreateMessageTaskResponse", - "code": "message CreateMessageTaskResponse {\n\tint64 messageTaskId = 1;\n}", + "name": "DeleteMessageTaskRequest", + "code": "message DeleteMessageTaskRequest {\n\tint64 messageTaskId = 1;\n}", + "doc": "删除消息任务" + }, + { + "name": "ListMessageTaskLogsResponse", + "code": "message ListMessageTaskLogsResponse {\n\trepeated MessageTaskLog messageTaskLogs = 1;\n}", "doc": "" }, { @@ -11643,46 +11742,11 @@ "code": "message ListMessageTaskLogsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出当页日志" }, - { - "name": "ListMessageTaskLogsResponse", - "code": "message ListMessageTaskLogsResponse {\n\trepeated MessageTaskLog messageTaskLogs = 1;\n}", - "doc": "" - }, - { - "name": "CreateMetricChartRequest", - "code": "message CreateMetricChartRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tint32 maxItems = 6;\n\tbool ignoreEmptyKeys = 7;\n\trepeated string ignoredKeys = 8;\n}", - "doc": "创建图表" - }, - { - "name": "CreateMetricChartResponse", - "code": "message CreateMetricChartResponse {\n\tint64 metricChartId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledMetricChartResponse", - "code": "message FindEnabledMetricChartResponse {\n\tMetricChart metricChart = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledMetricChartsRequest", - "code": "message ListEnabledMetricChartsRequest {\n\tint64 metricItemId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页图表" - }, - { - "name": "DeleteMetricChartRequest", - "code": "message DeleteMetricChartRequest {\n\tint64 metricChartId = 1;\n}", - "doc": "删除图表" - }, { "name": "UpdateMetricChartRequest", "code": "message UpdateMetricChartRequest {\n\tint64 metricChartId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tbool isOn = 6;\n\tint32 maxItems = 7;\n\tbool ignoreEmptyKeys = 8;\n\trepeated string ignoredKeys = 9;\n}", "doc": "修改图表" }, - { - "name": "FindEnabledMetricChartRequest", - "code": "message FindEnabledMetricChartRequest {\n\tint64 metricChartId = 1;\n}", - "doc": "查找单个图表" - }, { "name": "CountEnabledMetricChartsRequest", "code": "message CountEnabledMetricChartsRequest {\n\tint64 metricItemId = 1;\n}", @@ -11694,34 +11758,34 @@ "doc": "" }, { - "name": "ListEnabledMetricItemsResponse", - "code": "message ListEnabledMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", + "name": "DeleteMetricChartRequest", + "code": "message DeleteMetricChartRequest {\n\tint64 metricChartId = 1;\n}", + "doc": "删除图表" + }, + { + "name": "CreateMetricChartResponse", + "code": "message CreateMetricChartResponse {\n\tint64 metricChartId = 1;\n}", "doc": "" }, { - "name": "UpdateMetricItemRequest", - "code": "message UpdateMetricItemRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\trepeated string keys = 3;\n\tint32 period = 4;\n\tstring periodUnit = 5;\n\tint32 expiresPeriod = 9;\n\tstring value = 6;\n\tbool isOn = 7;\n\tbool isPublic = 8;\n}", - "doc": "修改指标" + "name": "FindEnabledMetricChartRequest", + "code": "message FindEnabledMetricChartRequest {\n\tint64 metricChartId = 1;\n}", + "doc": "查找单个图表" }, { - "name": "FindEnabledMetricItemResponse", - "code": "message FindEnabledMetricItemResponse {\n\tMetricItem metricItem = 1;\n}", + "name": "FindEnabledMetricChartResponse", + "code": "message FindEnabledMetricChartResponse {\n\tMetricChart metricChart = 1;\n}", "doc": "" }, { - "name": "ListEnabledMetricItemsRequest", - "code": "message ListEnabledMetricItemsRequest {\n\tstring category = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页指标" + "name": "ListEnabledMetricChartsRequest", + "code": "message ListEnabledMetricChartsRequest {\n\tint64 metricItemId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页图表" }, { - "name": "CountAllEnabledMetricItemsRequest", - "code": "message CountAllEnabledMetricItemsRequest {\n\tstring category = 1;\n}", - "doc": "计算指标数量" - }, - { - "name": "DeleteMetricItemRequest", - "code": "message DeleteMetricItemRequest {\n\tint64 metricItemId = 1;\n}", - "doc": "删除指标" + "name": "CreateMetricChartRequest", + "code": "message CreateMetricChartRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\tstring type = 3;\n\tint32 widthDiv = 4;\n\tbytes paramsJSON = 5;\n\tint32 maxItems = 6;\n\tbool ignoreEmptyKeys = 7;\n\trepeated string ignoredKeys = 8;\n}", + "doc": "创建图表" }, { "name": "CreateMetricItemRequest", @@ -11739,15 +11803,35 @@ "doc": "查找单个指标信息" }, { - "name": "ListMetricStatsRequest", - "code": "message ListMetricStatsRequest {\n\tint64 metricItemId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "读取单页指标数据" + "name": "ListEnabledMetricItemsResponse", + "code": "message ListEnabledMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", + "doc": "" }, { - "name": "ListMetricStatsResponse", - "code": "message ListMetricStatsResponse {\n\trepeated MetricStat metricStats = 1;\n}", + "name": "DeleteMetricItemRequest", + "code": "message DeleteMetricItemRequest {\n\tint64 metricItemId = 1;\n}", + "doc": "删除指标" + }, + { + "name": "UpdateMetricItemRequest", + "code": "message UpdateMetricItemRequest {\n\tint64 metricItemId = 1;\n\tstring name = 2;\n\trepeated string keys = 3;\n\tint32 period = 4;\n\tstring periodUnit = 5;\n\tint32 expiresPeriod = 9;\n\tstring value = 6;\n\tbool isOn = 7;\n\tbool isPublic = 8;\n}", + "doc": "修改指标" + }, + { + "name": "FindEnabledMetricItemResponse", + "code": "message FindEnabledMetricItemResponse {\n\tMetricItem metricItem = 1;\n}", "doc": "" }, + { + "name": "CountAllEnabledMetricItemsRequest", + "code": "message CountAllEnabledMetricItemsRequest {\n\tstring category = 1;\n}", + "doc": "计算指标数量" + }, + { + "name": "ListEnabledMetricItemsRequest", + "code": "message ListEnabledMetricItemsRequest {\n\tstring category = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页指标" + }, { "name": "UploadMetricStatsRequest", "code": "message UploadMetricStatsRequest {\n\tint64 serverId = 1;\n\tstring time = 2;\n\tint64 count = 3;\n\tfloat total = 4;\n\tint32 version = 5;\n\tint64 itemId = 6;\n\trepeated UploadingMetricStat metricStats = 7;\n}", @@ -11759,24 +11843,19 @@ "doc": "计算指标数据数量" }, { - "name": "DeleteMonitorNodeRequest", - "code": "message DeleteMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", - "doc": "删除监控节点" + "name": "ListMetricStatsRequest", + "code": "message ListMetricStatsRequest {\n\tint64 metricItemId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "读取单页指标数据" }, { - "name": "FindAllEnabledMonitorNodesRequest", - "code": "message FindAllEnabledMonitorNodesRequest {\n\n}", - "doc": "列出所有可用监控节点" - }, - { - "name": "ListEnabledMonitorNodesResponse", - "code": "message ListEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", + "name": "ListMetricStatsResponse", + "code": "message ListMetricStatsResponse {\n\trepeated MetricStat metricStats = 1;\n}", "doc": "" }, { - "name": "UpdateMonitorNodeRequest", - "code": "message UpdateMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", - "doc": "修改监控节点" + "name": "CreateMonitorNodeResponse", + "code": "message CreateMonitorNodeResponse {\n\tint64 monitorNodeId = 1;\n}", + "doc": "" }, { "name": "FindAllEnabledMonitorNodesResponse", @@ -11793,6 +11872,31 @@ "code": "message UpdateMonitorNodeStatusRequest {\n\tint64 monitorNodeId = 1;\n\tbytes statusJSON = 2;\n}", "doc": "更新监控状态" }, + { + "name": "UpdateMonitorNodeRequest", + "code": "message UpdateMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", + "doc": "修改监控节点" + }, + { + "name": "FindAllEnabledMonitorNodesRequest", + "code": "message FindAllEnabledMonitorNodesRequest {\n\n}", + "doc": "列出所有可用监控节点" + }, + { + "name": "ListEnabledMonitorNodesResponse", + "code": "message ListEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", + "doc": "" + }, + { + "name": "DeleteMonitorNodeRequest", + "code": "message DeleteMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", + "doc": "删除监控节点" + }, + { + "name": "ListEnabledMonitorNodesRequest", + "code": "message ListEnabledMonitorNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的监控节点" + }, { "name": "FindCurrentMonitorNodeResponse", "code": "message FindCurrentMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", @@ -11819,134 +11923,19 @@ "doc": "获取当前监控节点" }, { - "name": "CreateMonitorNodeResponse", - "code": "message CreateMonitorNodeResponse {\n\tint64 monitorNodeId = 1;\n}", + "name": "FindAllEnabledNodesWithNodeGrantIdRequest", + "code": "message FindAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "查找使用某个认证的所有节点" + }, + { + "name": "FindAllNotInstalledNodesWithNodeClusterIdResponse", + "code": "message FindAllNotInstalledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", "doc": "" }, { - "name": "ListEnabledMonitorNodesRequest", - "code": "message ListEnabledMonitorNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的监控节点" - }, - { - "name": "InstallNodeResponse", - "code": "message InstallNodeResponse {\n\n}", - "doc": "" - }, - { - "name": "UpgradeNodeRequest", - "code": "message UpgradeNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "升级节点" - }, - { - "name": "DownloadNodeInstallationFileResponse", - "code": "message DownloadNodeInstallationFileResponse {\n\tbytes chunkData = 1;\n\tstring sum = 2; // 文件的md5sum\n\tint64 offset = 3;\n\tstring version = 4;\n\tstring filename = 5;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesDNSWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodesDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得某个集群下的所有节点" - }, - { - "name": "NodeDNSInfo", - "code": "message NodeDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring ipAddr = 3;\n\trepeated DNSRoute routes = 4;\n\tint64 nodeClusterId = 5;\n\tint64 dnsDomainId = 6;\n\tstring dnsDomainName = 7;\n\tstring nodeClusterDNSName = 8;\n}", - "doc": "" - }, - { - "name": "UpdateNodeDNSRequest", - "code": "message UpdateNodeDNSRequest {\n\tint64 nodeId = 1;\n\tstring ipAddr = 2;\n\tint64 dnsDomainId = 3;\n\trepeated string routes = 4;\n}", - "doc": "修改节点的DNS信息" - }, - { - "name": "FindEnabledNodesWithIdsResponse", - "code": "message FindEnabledNodesWithIdsResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeDNSResponse", - "code": "message FindEnabledNodeDNSResponse {\n\tNodeDNSInfo node = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeDNSRequest", - "code": "message FindEnabledNodeDNSRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", - "doc": "查找单个节点的域名解析信息" - }, - { - "name": "UpdateNodeUpRequest", - "code": "message UpdateNodeUpRequest {\n\tint64 nodeId = 1;\n\tbool isUp = 2;\n}", - "doc": "设置节点上线状态" - }, - { - "name": "FindNodeDNSResolverRequest", - "code": "message FindNodeDNSResolverRequest{\n\tint64 nodeId = 1;\n}", - "doc": "读取节点DNS Resolver" - }, - { - "name": "FindEnabledNodeConfigInfoResponse", - "code": "message FindEnabledNodeConfigInfoResponse {\n\tbool hasDNSInfo = 1;\n\tbool hasCacheInfo = 2;\n\tbool hasThresholds = 3;\n\tbool hasSSH = 4;\n\tbool hasSystemSettings = 5;\n\tbool hasDDoSProtection = 6;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n\tbool includeSecondary = 2; // 是否检查节点的从集群,如果为false,则只检查主集群ID\n}", - "doc": "根据集群查找所有节点" - }, - { - "name": "FindEnabledBasicNodeRequest", - "code": "message FindEnabledBasicNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取单个节点基本信息" - }, - { - "name": "CheckNodeLatestVersionRequest", - "code": "message CheckNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", - "doc": "检查新版本" - }, - { - "name": "FindNodeDNSResolverResponse", - "code": "message FindNodeDNSResolverResponse {\n\tbytes dnsResolverJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentNodeConfigResponse", - "code": "message FindCurrentNodeConfigResponse {\n\tbytes nodeJSON = 1;\n\tbool isChanged = 2;\n\tbool isCompressed = 3;\n\tint64 dataSize = 4;\n\tint64 timestamp = 5;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesWithNodeGrantIdResponse", - "code": "message FindAllEnabledNodesWithNodeGrantIdResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "RegisterClusterNodeResponse", - "code": "message RegisterClusterNodeResponse {\n\tstring uniqueId = 1;\n\tstring secret = 2;\n\trepeated string endpoints = 3;\n}", - "doc": "" - }, - { - "name": "DeleteNodeFromNodeClusterRequest", - "code": "message DeleteNodeFromNodeClusterRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", - "doc": "从集群中删除节点" - }, - { - "name": "NodeStreamMessage", - "code": "message NodeStreamMessage {\n\tint64 nodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", - "doc": "节点stream" - }, - { - "name": "StopNodeRequest", - "code": "message StopNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "停止节点" - }, - { - "name": "StopNodeResponse", - "code": "message StopNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "FindAllUpgradeNodesWithNodeClusterIdRequest", - "code": "message FindAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "列出所有需要升级的节点" + "name": "FindNodeInstallStatusRequest", + "code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}", + "doc": "读取节点安装状态" }, { "name": "FindNodeInstallStatusResponse", @@ -11959,30 +11948,300 @@ "doc": "" }, { - "name": "CreateNodeRequest", - "code": "message CreateNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n\tint64 nodeGroupId = 4;\n\tint64 dnsDomainId = 5 [deprecated = true];\n\trepeated string dnsRoutes = 6;\n\tint64 nodeRegionId = 7;\n}", - "doc": "创建节点" + "name": "FindAllEnabledNodesWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n\tbool includeSecondary = 2; // 是否检查节点的从集群,如果为false,则只检查主集群ID\n}", + "doc": "根据集群查找所有节点" + }, + { + "name": "NodeStreamMessage", + "code": "message NodeStreamMessage {\n\tint64 nodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", + "doc": "节点stream" + }, + { + "name": "StartNodeRequest", + "code": "message StartNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "启动节点" + }, + { + "name": "CountAllUpgradeNodesWithNodeClusterIdRequest", + "code": "message CountAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算需要升级的节点数量" + }, + { + "name": "FindAllEnabledNodesDNSWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodesDNSWithNodeClusterIdResponse {\n\trepeated NodeDNSInfo nodes = 1;\n}", + "doc": "" + }, + { + "name": "DownloadNodeInstallationFileResponse", + "code": "message DownloadNodeInstallationFileResponse {\n\tbytes chunkData = 1;\n\tstring sum = 2; // 文件的md5sum\n\tint64 offset = 3;\n\tstring version = 4;\n\tstring filename = 5;\n}", + "doc": "" }, { "name": "FindCurrentNodeConfigRequest", "code": "message FindCurrentNodeConfigRequest {\n\t// 由于登录信息中已经包含了节点信息,所以这里不需要nodeId\n\tint64 version = 1;\n\tbool compress = 2; // 是否压缩\n\tint64 nodeTaskVersion = 3; // 通知任务版本\n}", "doc": "组合单个节点配置" }, + { + "name": "InstallNodeResponse", + "code": "message InstallNodeResponse {\n\n}", + "doc": "" + }, + { + "name": "StopNodeResponse", + "code": "message StopNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "UpdateNodeRequest", + "code": "message UpdateNodeRequest {\n\tint64 nodeId = 1;\n\tstring name = 2;\n\tint64 nodeClusterId = 3;\n\trepeated int64 secondaryNodeClusterIds = 13;\n\tbool isOn = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 10;\n\tint32 level = 14;\n}", + "doc": "修改节点" + }, + { + "name": "StartNodeResponse", + "code": "message StartNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "UpdateNodeLoginRequest", + "code": "message UpdateNodeLoginRequest {\n\tint64 nodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", + "doc": "修改节点登录信息" + }, + { + "name": "CountAllEnabledNodesWithNodeRegionIdRequest", + "code": "message CountAllEnabledNodesWithNodeRegionIdRequest {\n\tint64 nodeRegionId = 1;\n}", + "doc": "计算某个区域下的节点数量" + }, + { + "name": "FindEnabledNodesWithIdsResponse", + "code": "message FindEnabledNodesWithIdsResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeSystemRequest", + "code": "message UpdateNodeSystemRequest {\n\tint64 nodeId = 1;\n\tint32 maxCPU = 2;\n}", + "doc": "修改节点系统信息" + }, + { + "name": "RegisterClusterNodeRequest", + "code": "message RegisterClusterNodeRequest {\n\tstring name = 1;\n}", + "doc": "注册集群节点" + }, + { + "name": "StopNodeRequest", + "code": "message StopNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "停止节点" + }, + { + "name": "FindAllEnabledNodesWithNodeGrantIdResponse", + "code": "message FindAllEnabledNodesWithNodeGrantIdResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeDNSRequest", + "code": "message UpdateNodeDNSRequest {\n\tint64 nodeId = 1;\n\tstring ipAddr = 2;\n\tint64 dnsDomainId = 3;\n\trepeated string routes = 4;\n}", + "doc": "修改节点的DNS信息" + }, + { + "name": "FindEnabledNodesWithIdsRequest", + "code": "message FindEnabledNodesWithIdsRequest {\n\trepeated int64 nodeIds = 1;\n}", + "doc": "根据一组ID获取节点信息" + }, + { + "name": "FindNodeDDoSProtectionRequest", + "code": "message FindNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取节点的DDoS设置" + }, + { + "name": "CreateNodeResponse", + "code": "message CreateNodeResponse {\n\tint64 nodeId = 1;\n}", + "doc": "" + }, { "name": "CountAllEnabledNodesWithNodeGrantIdRequest", "code": "message CountAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", "doc": "计算使用某个认证的节点数量" }, { - "name": "FindAllEnabledNodesWithNodeGrantIdRequest", - "code": "message FindAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "查找使用某个认证的所有节点" + "name": "FindNodeLevelInfoResponse", + "code": "message FindNodeLevelInfoResponse {\n\tint32 level = 1;\n\tbytes parentNodesMapJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateNodeDDoSProtectionRequest", + "code": "message UpdateNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改节点的DDOS设置" }, { "name": "FindAllEnabledNodesWithNodeClusterIdResponse", "code": "message FindAllEnabledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", "doc": "" }, + { + "name": "CheckNodeLatestVersionResponse", + "code": "message CheckNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", + "doc": "" + }, + { + "name": "UpdateNodeDNSResolverRequest", + "code": "message UpdateNodeDNSResolverRequest {\n\tint64 nodeId = 1;\n\tbytes dnsResolverJSON = 2;\n}", + "doc": "修改DNS Resolver" + }, + { + "name": "FindEnabledNodeConfigInfoResponse", + "code": "message FindEnabledNodeConfigInfoResponse {\n\tbool hasDNSInfo = 1;\n\tbool hasCacheInfo = 2;\n\tbool hasThresholds = 3;\n\tbool hasSSH = 4;\n\tbool hasSystemSettings = 5;\n\tbool hasDDoSProtection = 6;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodesRequest", + "code": "message CountAllEnabledNodesRequest {\n\n}", + "doc": "所有可用的节点数量" + }, + { + "name": "CountAllNotInstalledNodesWithNodeClusterIdRequest", + "code": "message CountAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算未安装的节点数量" + }, + { + "name": "CountAllEnabledNodesWithNodeGroupIdRequest", + "code": "message CountAllEnabledNodesWithNodeGroupIdRequest {\n\tint64 nodeGroupId = 1;\n}", + "doc": "计算某个节点分组内的节点数量" + }, + { + "name": "ListEnabledNodesMatchRequest", + "code": "message ListEnabledNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nodeClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 8;\n\tint32 level = 9;\n\n\tbool cpuAsc = 20;\n\tbool cpuDesc = 21;\n\tbool memoryAsc = 22;\n\tbool memoryDesc = 23;\n\tbool trafficInAsc = 24;\n\tbool trafficInDesc = 25;\n\tbool trafficOutAsc = 26;\n\tbool trafficOutDesc = 27;\n\tbool loadAsc = 28;\n\tbool loadDesc = 29;\n}", + "doc": "列出单页节点" + }, + { + "name": "FindEnabledNodeRequest", + "code": "message FindEnabledNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取单个节点信息" + }, + { + "name": "UpdateNodeConnectedAPINodesRequest", + "code": "message UpdateNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", + "doc": "更改节点连接的API节点信息" + }, + { + "name": "FindEnabledNodeConfigInfoRequest", + "code": "message FindEnabledNodeConfigInfoRequest {\n\tint64 nodeId = 1;\n}", + "doc": "取得节点的配置概要信息" + }, + { + "name": "FindCurrentNodeConfigResponse", + "code": "message FindCurrentNodeConfigResponse {\n\tbytes nodeJSON = 1;\n\tbool isChanged = 2;\n\tbool isCompressed = 3;\n\tint64 dataSize = 4;\n\tint64 timestamp = 5;\n}", + "doc": "" + }, + { + "name": "UpdateNodeIsInstalledRequest", + "code": "message UpdateNodeIsInstalledRequest {\n\tint64 nodeId = 1;\n\tbool isInstalled = 2;\n}", + "doc": "修改节点安装状态" + }, + { + "name": "UpdateNodeUpRequest", + "code": "message UpdateNodeUpRequest {\n\tint64 nodeId = 1;\n\tbool isUp = 2;\n}", + "doc": "设置节点上线状态" + }, + { + "name": "UpdateNodeCacheRequest", + "code": "message UpdateNodeCacheRequest {\n\tint64 nodeId = 1;\n\tSizeCapacity maxCacheDiskCapacity = 2;\n\tSizeCapacity maxCacheMemoryCapacity = 3;\n\tstring cacheDiskDir = 4;\n}", + "doc": "修改节点缓存设置" + }, + { + "name": "FindNodeDNSResolverRequest", + "code": "message FindNodeDNSResolverRequest{\n\tint64 nodeId = 1;\n}", + "doc": "读取节点DNS Resolver" + }, + { + "name": "FindEnabledNodeDNSResponse", + "code": "message FindEnabledNodeDNSResponse {\n\tNodeDNSInfo node = 1;\n}", + "doc": "" + }, + { + "name": "FindNodeDDoSProtectionResponse", + "code": "message FindNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "CreateNodeRequest", + "code": "message CreateNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n\tint64 nodeGroupId = 4;\n\tint64 dnsDomainId = 5 [deprecated = true];\n\trepeated string dnsRoutes = 6;\n\tint64 nodeRegionId = 7;\n}", + "doc": "创建节点" + }, + { + "name": "DeleteNodeRequest", + "code": "message DeleteNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "删除节点" + }, + { + "name": "DeleteNodeFromNodeClusterRequest", + "code": "message DeleteNodeFromNodeClusterRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", + "doc": "从集群中删除节点" + }, + { + "name": "FindEnabledBasicNodeResponse", + "code": "message FindEnabledBasicNodeResponse {\n\tBasicNode node = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeStatusRequest", + "code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新节点状态" + }, + { + "name": "FindAllEnabledNodesDNSWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodesDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得某个集群下的所有节点" + }, + { + "name": "FindEnabledBasicNodeRequest", + "code": "message FindEnabledBasicNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取单个节点基本信息" + }, + { + "name": "CheckNodeLatestVersionRequest", + "code": "message CheckNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", + "doc": "检查新版本" + }, + { + "name": "FindEnabledNodeResponse", + "code": "message FindEnabledNodeResponse {\n\tNode node = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodesMatchRequest", + "code": "message CountAllEnabledNodesMatchRequest {\n\tint64 nodeClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\tint64 nodeGroupId = 5;\n\tint64 nodeRegionId = 6;\n\tint32 level = 7;\n}", + "doc": "计算匹配的节点数量" + }, + { + "name": "FindEnabledNodeDNSRequest", + "code": "message FindEnabledNodeDNSRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", + "doc": "查找单个节点的域名解析信息" + }, + { + "name": "RegisterClusterNodeResponse", + "code": "message RegisterClusterNodeResponse {\n\tstring uniqueId = 1;\n\tstring secret = 2;\n\trepeated string endpoints = 3;\n}", + "doc": "" + }, + { + "name": "DownloadNodeInstallationFileRequest", + "code": "message DownloadNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", + "doc": "下载最新边缘节点安装文件" + }, + { + "name": "UpgradeNodeRequest", + "code": "message UpgradeNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "升级节点" + }, + { + "name": "FindAllUpgradeNodesWithNodeClusterIdRequest", + "code": "message FindAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "列出所有需要升级的节点" + }, + { + "name": "ListEnabledNodesMatchResponse", + "code": "message ListEnabledNodesMatchResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, { "name": "InstallNodeRequest", "code": "message InstallNodeRequest {\n\tint64 nodeId = 1;\n}", @@ -11994,258 +12253,23 @@ "doc": "列出所有未安装的节点" }, { - "name": "UpdateNodeSystemRequest", - "code": "message UpdateNodeSystemRequest {\n\tint64 nodeId = 1;\n\tint32 maxCPU = 2;\n}", - "doc": "修改节点系统信息" - }, - { - "name": "RegisterClusterNodeRequest", - "code": "message RegisterClusterNodeRequest {\n\tstring name = 1;\n}", - "doc": "注册集群节点" - }, - { - "name": "CountAllEnabledNodesRequest", - "code": "message CountAllEnabledNodesRequest {\n\n}", - "doc": "所有可用的节点数量" - }, - { - "name": "FindEnabledNodesWithIdsRequest", - "code": "message FindEnabledNodesWithIdsRequest {\n\trepeated int64 nodeIds = 1;\n}", - "doc": "根据一组ID获取节点信息" - }, - { - "name": "UpdateNodeLoginRequest", - "code": "message UpdateNodeLoginRequest {\n\tint64 nodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", - "doc": "修改节点登录信息" - }, - { - "name": "UpdateNodeDDoSProtectionRequest", - "code": "message UpdateNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改节点的DDOS设置" - }, - { - "name": "ListEnabledNodesMatchResponse", - "code": "message ListEnabledNodesMatchResponse {\n\trepeated Node nodes = 1;\n}", + "name": "NodeDNSInfo", + "code": "message NodeDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring ipAddr = 3;\n\trepeated DNSRoute routes = 4;\n\tint64 nodeClusterId = 5;\n\tint64 dnsDomainId = 6;\n\tstring dnsDomainName = 7;\n\tstring nodeClusterDNSName = 8;\n}", "doc": "" }, { - "name": "UpdateNodeConnectedAPINodesRequest", - "code": "message UpdateNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", - "doc": "更改节点连接的API节点信息" - }, - { - "name": "CountAllUpgradeNodesWithNodeClusterIdRequest", - "code": "message CountAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算需要升级的节点数量" - }, - { - "name": "FindNodeInstallStatusRequest", - "code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}", - "doc": "读取节点安装状态" - }, - { - "name": "FindNodeLevelInfoResponse", - "code": "message FindNodeLevelInfoResponse {\n\tint32 level = 1;\n\tbytes parentNodesMapJSON = 2;\n}", + "name": "FindNodeDNSResolverResponse", + "code": "message FindNodeDNSResolverResponse {\n\tbytes dnsResolverJSON = 1;\n}", "doc": "" }, { - "name": "FindNodeDDoSProtectionRequest", - "code": "message FindNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取节点的DDoS设置" + "name": "CheckPortIsUsingInNodeClusterRequest", + "code": "message CheckPortIsUsingInNodeClusterRequest {\n\tint32 port = 1;\n\tint64 nodeClusterId = 2;\n\tint64 excludeServerId = 3;\n\tstring excludeProtocol = 4;\n\tstring protocolFamily = 5;\n}", + "doc": "检查端口是否已经被使用" }, { - "name": "UpdateNodeRequest", - "code": "message UpdateNodeRequest {\n\tint64 nodeId = 1;\n\tstring name = 2;\n\tint64 nodeClusterId = 3;\n\trepeated int64 secondaryNodeClusterIds = 13;\n\tbool isOn = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 10;\n\tint32 level = 14;\n}", - "doc": "修改节点" - }, - { - "name": "StartNodeRequest", - "code": "message StartNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "启动节点" - }, - { - "name": "FindEnabledNodeRequest", - "code": "message FindEnabledNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取单个节点信息" - }, - { - "name": "FindEnabledBasicNodeResponse", - "code": "message FindEnabledBasicNodeResponse {\n\tBasicNode node = 1;\n}", - "doc": "" - }, - { - "name": "CountAllNotInstalledNodesWithNodeClusterIdRequest", - "code": "message CountAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算未安装的节点数量" - }, - { - "name": "CountAllEnabledNodesWithNodeGroupIdRequest", - "code": "message CountAllEnabledNodesWithNodeGroupIdRequest {\n\tint64 nodeGroupId = 1;\n}", - "doc": "计算某个节点分组内的节点数量" - }, - { - "name": "DownloadNodeInstallationFileRequest", - "code": "message DownloadNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", - "doc": "下载最新边缘节点安装文件" - }, - { - "name": "ListEnabledNodesMatchRequest", - "code": "message ListEnabledNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nodeClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\tint64 nodeGroupId = 7;\n\tint64 nodeRegionId = 8;\n\tint32 level = 9;\n\n\tbool cpuAsc = 20;\n\tbool cpuDesc = 21;\n\tbool memoryAsc = 22;\n\tbool memoryDesc = 23;\n\tbool trafficInAsc = 24;\n\tbool trafficInDesc = 25;\n\tbool trafficOutAsc = 26;\n\tbool trafficOutDesc = 27;\n\tbool loadAsc = 28;\n\tbool loadDesc = 29;\n}", - "doc": "列出单页节点" - }, - { - "name": "DeleteNodeRequest", - "code": "message DeleteNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "删除节点" - }, - { - "name": "UpdateNodeStatusRequest", - "code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", - "doc": "更新节点状态" - }, - { - "name": "CountAllEnabledNodesMatchRequest", - "code": "message CountAllEnabledNodesMatchRequest {\n\tint64 nodeClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\tint64 nodeGroupId = 5;\n\tint64 nodeRegionId = 6;\n\tint32 level = 7;\n}", - "doc": "计算匹配的节点数量" - }, - { - "name": "StartNodeResponse", - "code": "message StartNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "FindAllNotInstalledNodesWithNodeClusterIdResponse", - "code": "message FindAllNotInstalledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesDNSWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodesDNSWithNodeClusterIdResponse {\n\trepeated NodeDNSInfo nodes = 1;\n}", - "doc": "" - }, - { - "name": "CheckNodeLatestVersionResponse", - "code": "message CheckNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", - "doc": "" - }, - { - "name": "UpdateNodeCacheRequest", - "code": "message UpdateNodeCacheRequest {\n\tint64 nodeId = 1;\n\tSizeCapacity maxCacheDiskCapacity = 2;\n\tSizeCapacity maxCacheMemoryCapacity = 3;\n\tstring cacheDiskDir = 4;\n}", - "doc": "修改节点缓存设置" - }, - { - "name": "UpdateNodeDNSResolverRequest", - "code": "message UpdateNodeDNSResolverRequest {\n\tint64 nodeId = 1;\n\tbytes dnsResolverJSON = 2;\n}", - "doc": "修改DNS Resolver" - }, - { - "name": "FindNodeDDoSProtectionResponse", - "code": "message FindNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeConfigInfoRequest", - "code": "message FindEnabledNodeConfigInfoRequest {\n\tint64 nodeId = 1;\n}", - "doc": "取得节点的配置概要信息" - }, - { - "name": "CreateNodeResponse", - "code": "message CreateNodeResponse {\n\tint64 nodeId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeResponse", - "code": "message FindEnabledNodeResponse {\n\tNode node = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeIsInstalledRequest", - "code": "message UpdateNodeIsInstalledRequest {\n\tint64 nodeId = 1;\n\tbool isInstalled = 2;\n}", - "doc": "修改节点安装状态" - }, - { - "name": "CountAllEnabledNodesWithNodeRegionIdRequest", - "code": "message CountAllEnabledNodesWithNodeRegionIdRequest {\n\tint64 nodeRegionId = 1;\n}", - "doc": "计算某个区域下的节点数量" - }, - { - "name": "UpdateNodeClusterRequest", - "code": "message UpdateNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tint64 nodeGrantId = 3;\n\tstring installDir = 4;\n\tstring timeZone = 5;\n\tint32 nodeMaxThreads = 6;\n\n\tbool autoOpenPorts = 8;\n}", - "doc": "修改集群" - }, - { - "name": "ExecuteNodeClusterHealthCheckRequest", - "code": "message ExecuteNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "执行健康检查" - }, - { - "name": "UpdateNodeClusterDNSRequest", - "code": "message UpdateNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n\tint64 dnsDomainId = 3;\n\tbool nodesAutoSync = 4;\n\tbool serversAutoSync = 5;\n\trepeated string cnameRecords = 6;\n\tint32 ttl = 7;\n\tbool cnameAsDomain = 8;\n}", - "doc": "修改集群的域名设置" - }, - { - "name": "ListEnabledNodeClustersRequest", - "code": "message ListEnabledNodeClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n}", - "doc": "列出单页集群" - }, - { - "name": "FindFreePortInNodeClusterResponse", - "code": "message FindFreePortInNodeClusterResponse {\n\tint32 port = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", - "code": "message CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "计算使用某个缓存策略的集群数量" - }, - { - "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", - "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "查找使用某个WAF策略的所有集群" - }, - { - "name": "UpdateNodeClusterHTTPCachePolicyIdRequest", - "code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}", - "doc": "修改集群的缓存策略" - }, - { - "name": "CreateNodeClusterRequest", - "code": "message CreateNodeClusterRequest {\n\tstring name = 1;\n\tint64 nodeGrantId = 2;\n\tstring installDir = 3;\n\tint64 dnsDomainId = 4;\n\tstring dnsName = 5;\n\tint64 httpCachePolicyId = 6;\n\tint64 httpFirewallPolicyId = 7;\n\tbytes systemServicesJSON = 8; // 系统服务设置\n}", - "doc": "创建集群" - }, - { - "name": "DeleteNodeClusterRequest", - "code": "message DeleteNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "删除集群" - }, - { - "name": "FindAPINodesWithNodeClusterResponse", - "code": "message FindAPINodesWithNodeClusterResponse {\n\tbool useAllAPINodes = 1;\n\trepeated APINode apiNodes = 2;\n}", - "doc": "" - }, - { - "name": "ListEnabledNodeClustersResponse", - "code": "message ListEnabledNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeClusterDNSResponse", - "code": "message FindEnabledNodeClusterDNSResponse {\n\tstring name = 1;\n\tDNSDomain domain = 2;\n\tDNSProvider provider = 3;\n\tstring defaultRoute = 6;\n\tbool nodesAutoSync = 4;\n\tbool serversAutoSync = 5;\n\trepeated string cnameRecords = 7;\n\tint32 ttl = 8;\n\tbool cnameAsDomain = 9;\n}", - "doc": "" - }, - { - "name": "CheckNodeClusterDNSChangesRequest", - "code": "message CheckNodeClusterDNSChangesRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "检查集群的DNS是否有变化" - }, - { - "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", - "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "查找使用缓存策略的所有集群" - }, - { - "name": "FindNodeClusterSystemServiceResponse", - "code": "message FindNodeClusterSystemServiceResponse {\n\tbytes paramsJSON = 1;\n}", + "name": "FindEnabledNodeClusterUAMPolicyResponse", + "code": "message FindEnabledNodeClusterUAMPolicyResponse {\n\tbytes uamPolicyJSON = 1;\n}", "doc": "" }, { @@ -12254,24 +12278,19 @@ "doc": "设置集群的UAM策略" }, { - "name": "FindAllEnabledNodeClustersWithDNSDomainIdResponse", - "code": "message FindAllEnabledNodeClustersWithDNSDomainIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "name": "FindAPINodesWithNodeClusterRequest", + "code": "message FindAPINodesWithNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的API节点信息" + }, + { + "name": "CheckNodeClusterDNSChangesResponse", + "code": "message CheckNodeClusterDNSChangesResponse {\n\tbool isChanged = 1;\n}", "doc": "" }, { - "name": "CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", - "code": "message CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "计算使用某个WAF策略的集群数量" - }, - { - "name": "CheckPortIsUsingInNodeClusterRequest", - "code": "message CheckPortIsUsingInNodeClusterRequest {\n\tint32 port = 1;\n\tint64 nodeClusterId = 2;\n\tint64 excludeServerId = 3;\n\tstring excludeProtocol = 4;\n\tstring protocolFamily = 5;\n}", - "doc": "检查端口是否已经被使用" - }, - { - "name": "UpdateNodeClusterPinnedRequest", - "code": "message UpdateNodeClusterPinnedRequest {\n\tint64 nodeClusterId = 1;\n\tbool isPinned = 2;\n}", - "doc": "设置集群是否置顶" + "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", + "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "查找使用某个WAF策略的所有集群" }, { "name": "CountAllEnabledNodeClustersRequest", @@ -12279,93 +12298,158 @@ "doc": "计算所有集群数量" }, { - "name": "UpdateNodeClusterHealthCheckRequest", - "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", - "doc": "修改集群健康检查设置" + "name": "CountAllEnabledNodeClustersWithDNSDomainIdRequest", + "code": "message CountAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "计算使用某个DNS域名的集群数量" }, { - "name": "FindAllEnabledNodeClustersWithNodeGrantIdResponse", - "code": "message FindAllEnabledNodeClustersWithNodeGrantIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "name": "FindLatestNodeClustersResponse", + "code": "message FindLatestNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", "doc": "" }, { - "name": "UpdateNodeClusterWebPPolicyRequest", - "code": "message UpdateNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes webpPolicyJSON = 2;\n}", - "doc": "设置集群WebP策略" - }, - { - "name": "FindNodeClusterSystemServiceRequest", - "code": "message FindNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n}", - "doc": "查找集群的系统服务设置" - }, - { - "name": "FindFreePortInNodeClusterRequest", - "code": "message FindFreePortInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring protocolFamily = 2;\n}", - "doc": "获取集群中可以使用的端口" - }, - { - "name": "FindEnabledNodeClusterConfigInfoRequest", - "code": "message FindEnabledNodeClusterConfigInfoRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得集群的配置概要信息" - }, - { - "name": "CreateNodeClusterResponse", - "code": "message CreateNodeClusterResponse {\n\tint64 nodeClusterId = 1;\n}", + "name": "FindNodeClusterSystemServiceResponse", + "code": "message FindNodeClusterSystemServiceResponse {\n\tbytes paramsJSON = 1;\n}", "doc": "" }, { - "name": "CheckNodeClusterDNSNameRequest", - "code": "message CheckNodeClusterDNSNameRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n}", - "doc": "检查集群域名是否已经被使用" + "name": "FindLatestNodeClustersRequest", + "code": "message FindLatestNodeClustersRequest {\n\tint64 size = 1;\n}", + "doc": "查找最近访问的集群" + }, + { + "name": "FindEnabledNodeClusterTOARequest", + "code": "message FindEnabledNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的TOA配置" }, { "name": "FindEnabledNodeClusterTOAResponse", "code": "message FindEnabledNodeClusterTOAResponse {\n\tbytes toaJSON = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse", - "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, { "name": "UpdateNodeClusterHTTPFirewallPolicyIdRequest", "code": "message UpdateNodeClusterHTTPFirewallPolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpFirewallPolicyId = 2;\n}", "doc": "修改集群的WAF策略" }, + { + "name": "FindAllEnabledNodeClustersWithDNSDomainIdRequest", + "code": "message FindAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查找使用某个域名的所有集群" + }, + { + "name": "CheckNodeClusterDNSNameResponse", + "code": "message CheckNodeClusterDNSNameResponse {\n\tbool isUsed = 1;\n}", + "doc": "" + }, { "name": "FindEnabledNodeClusterWebPPolicyResponse", "code": "message FindEnabledNodeClusterWebPPolicyResponse {\n\tbytes webpPolicyJSON = 1;\n}", "doc": "" }, + { + "name": "CheckPortIsUsingInNodeClusterResponse", + "code": "message CheckPortIsUsingInNodeClusterResponse {\n\tbool isUsing = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterWebPPolicyRequest", + "code": "message UpdateNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes webpPolicyJSON = 2;\n}", + "doc": "设置集群WebP策略" + }, + { + "name": "CountAllEnabledNodeClustersWithNodeGrantIdRequest", + "code": "message CountAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "计算使用某个认证的集群数量" + }, + { + "name": "FindAllEnabledNodeClustersWithNodeGrantIdRequest", + "code": "message FindAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "查找使用某个认证的所有集群" + }, + { + "name": "CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", + "code": "message CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "计算使用某个缓存策略的集群数量" + }, + { + "name": "ListEnabledNodeClustersResponse", + "code": "message ListEnabledNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, { "name": "FindNodeClusterHealthCheckConfigRequest", "code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "查找集群的健康检查配置" }, + { + "name": "FindAllEnabledNodeClustersWithNodeGrantIdResponse", + "code": "message FindAllEnabledNodeClustersWithNodeGrantIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "CheckNodeClusterDNSChangesRequest", + "code": "message CheckNodeClusterDNSChangesRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "检查集群的DNS是否有变化" + }, + { + "name": "FindFreePortInNodeClusterResponse", + "code": "message FindFreePortInNodeClusterResponse {\n\tint32 port = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterRequest", + "code": "message UpdateNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tint64 nodeGrantId = 3;\n\tstring installDir = 4;\n\tstring timeZone = 5;\n\tint32 nodeMaxThreads = 6;\n\n\tbool autoOpenPorts = 8;\n}", + "doc": "修改集群" + }, + { + "name": "FindEnabledNodeClusterResponse", + "code": "message FindEnabledNodeClusterResponse {\n\tNodeCluster nodeCluster = 1;\n}", + "doc": "" + }, + { + "name": "FindAPINodesWithNodeClusterResponse", + "code": "message FindAPINodesWithNodeClusterResponse {\n\tbool useAllAPINodes = 1;\n\trepeated APINode apiNodes = 2;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterDNSRequest", + "code": "message UpdateNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n\tint64 dnsDomainId = 3;\n\tbool nodesAutoSync = 4;\n\tbool serversAutoSync = 5;\n\trepeated string cnameRecords = 6;\n\tint32 ttl = 7;\n\tbool cnameAsDomain = 8;\n}", + "doc": "修改集群的域名设置" + }, + { + "name": "FindFreePortInNodeClusterRequest", + "code": "message FindFreePortInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring protocolFamily = 2;\n}", + "doc": "获取集群中可以使用的端口" + }, + { + "name": "CreateNodeClusterResponse", + "code": "message CreateNodeClusterResponse {\n\tint64 nodeClusterId = 1;\n}", + "doc": "" + }, + { + "name": "ExecuteNodeClusterHealthCheckRequest", + "code": "message ExecuteNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "执行健康检查" + }, + { + "name": "FindAllEnabledNodeClustersWithDNSDomainIdResponse", + "code": "message FindAllEnabledNodeClustersWithDNSDomainIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", + "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "查找使用缓存策略的所有集群" + }, { "name": "FindEnabledNodeClusterWebPPolicyRequest", "code": "message FindEnabledNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "读取集群WebP策略" }, { - "name": "FindEnabledNodeClusterUAMPolicyResponse", - "code": "message FindEnabledNodeClusterUAMPolicyResponse {\n\tbytes uamPolicyJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeClusterRequest", - "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找单个集群信息" - }, - { - "name": "FindEnabledNodeClusterUAMPolicyRequest", - "code": "message FindEnabledNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取集群的UAM策略" - }, - { - "name": "CheckNodeClusterDNSNameResponse", - "code": "message CheckNodeClusterDNSNameResponse {\n\tbool isUsed = 1;\n}", + "name": "ExecuteNodeClusterHealthCheckResponse", + "code": "message ExecuteNodeClusterHealthCheckResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tNode node = 1;\n\t\tstring nodeAddr = 2;\n\t\tbool isOk = 3;\n\t\tstring error = 4;\n\t\tfloat costMs = 5;\n\t}\n}", "doc": "" }, { @@ -12374,94 +12458,9 @@ "doc": "获取所有集群的信息" }, { - "name": "FindEnabledNodeClusterResponse", - "code": "message FindEnabledNodeClusterResponse {\n\tNodeCluster nodeCluster = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledNodeClustersWithNodeGrantIdRequest", - "code": "message CountAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "计算使用某个认证的集群数量" - }, - { - "name": "CountAllEnabledNodeClustersWithDNSProviderIdRequest", - "code": "message CountAllEnabledNodeClustersWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算使用某个DNS服务商的集群数量" - }, - { - "name": "FindAllEnabledNodeClustersWithDNSDomainIdRequest", - "code": "message FindAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查找使用某个域名的所有集群" - }, - { - "name": "FindAllEnabledNodeClustersWithNodeGrantIdRequest", - "code": "message FindAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "查找使用某个认证的所有集群" - }, - { - "name": "FindLatestNodeClustersRequest", - "code": "message FindLatestNodeClustersRequest {\n\tint64 size = 1;\n}", - "doc": "查找最近访问的集群" - }, - { - "name": "FindLatestNodeClustersResponse", - "code": "message FindLatestNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledNodeClustersWithDNSDomainIdRequest", - "code": "message CountAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "计算使用某个DNS域名的集群数量" - }, - { - "name": "CheckNodeClusterDNSChangesResponse", - "code": "message CheckNodeClusterDNSChangesResponse {\n\tbool isChanged = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeClusterTOARequest", - "code": "message FindEnabledNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的TOA配置" - }, - { - "name": "FindEnabledNodeClusterConfigInfoResponse", - "code": "message FindEnabledNodeClusterConfigInfoResponse {\n\tbool healthCheckIsOn = 1;\n\tbool hasFirewallActions = 2;\n\tbool hasThresholds = 3;\n\tbool hasMessageReceivers = 4;\n\tbool isTOAEnabled = 5;\n\tbool hasMetricItems = 6;\n\tbool webpIsOn = 7;\n\tbool uamIsOn = 10;\n\tbool hasSystemServices = 8;\n\tbool hasDDoSProtection = 9;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodeClustersResponse", - "code": "message FindAllEnabledNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindNodeClusterHealthCheckConfigResponse", - "code": "message FindNodeClusterHealthCheckConfigResponse {\n\tbytes healthCheckJSON = 1;\n}", - "doc": "" - }, - { - "name": "ExecuteNodeClusterHealthCheckResponse", - "code": "message ExecuteNodeClusterHealthCheckResponse {\n\trepeated Result results = 1;\n\n\n\tmessage Result {\n\t\tNode node = 1;\n\t\tstring nodeAddr = 2;\n\t\tbool isOk = 3;\n\t\tstring error = 4;\n\t\tfloat costMs = 5;\n\t}\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterSystemServiceRequest", - "code": "message UpdateNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", - "doc": "修改集群的系统服务设置" - }, - { - "name": "CheckPortIsUsingInNodeClusterResponse", - "code": "message CheckPortIsUsingInNodeClusterResponse {\n\tbool isUsing = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeClusterDNSRequest", - "code": "message FindEnabledNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的DNS配置" - }, - { - "name": "UpdateNodeClusterTOARequest", - "code": "message UpdateNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n\tbytes toaJSON = 2;\n}", - "doc": "修改集群的TOA设置" + "name": "UpdateNodeClusterHealthCheckRequest", + "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", + "doc": "修改集群健康检查设置" }, { "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse", @@ -12469,9 +12468,9 @@ "doc": "" }, { - "name": "FindAPINodesWithNodeClusterRequest", - "code": "message FindAPINodesWithNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的API节点信息" + "name": "UpdateNodeClusterPinnedRequest", + "code": "message UpdateNodeClusterPinnedRequest {\n\tint64 nodeClusterId = 1;\n\tbool isPinned = 2;\n}", + "doc": "设置集群是否置顶" }, { "name": "FindNodeClusterDDoSProtectionResponse", @@ -12479,9 +12478,9 @@ "doc": "" }, { - "name": "UpdateNodeClusterDDoSProtectionRequest", - "code": "message UpdateNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改集群的DDOS设置" + "name": "FindEnabledNodeClusterConfigInfoResponse", + "code": "message FindEnabledNodeClusterConfigInfoResponse {\n\tbool healthCheckIsOn = 1;\n\tbool hasFirewallActions = 2;\n\tbool hasThresholds = 3;\n\tbool hasMessageReceivers = 4;\n\tbool isTOAEnabled = 5;\n\tbool hasMetricItems = 6;\n\tbool webpIsOn = 7;\n\tbool uamIsOn = 10;\n\tbool hasSystemServices = 8;\n\tbool hasDDoSProtection = 9;\n}", + "doc": "" }, { "name": "FindNodeClusterDDoSProtectionRequest", @@ -12489,15 +12488,130 @@ "doc": "获取集群的DDoS设置" }, { - "name": "DeleteNodeClusterFirewallActionRequest", - "code": "message DeleteNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", - "doc": "删除动作" + "name": "CreateNodeClusterRequest", + "code": "message CreateNodeClusterRequest {\n\tstring name = 1;\n\tint64 nodeGrantId = 2;\n\tstring installDir = 3;\n\tint64 dnsDomainId = 4;\n\tstring dnsName = 5;\n\tint64 httpCachePolicyId = 6;\n\tint64 httpFirewallPolicyId = 7;\n\tbytes systemServicesJSON = 8; // 系统服务设置\n}", + "doc": "创建集群" + }, + { + "name": "CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", + "code": "message CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "计算使用某个WAF策略的集群数量" + }, + { + "name": "FindAllEnabledNodeClustersResponse", + "code": "message FindAllEnabledNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeClusterDNSResponse", + "code": "message FindEnabledNodeClusterDNSResponse {\n\tstring name = 1;\n\tDNSDomain domain = 2;\n\tDNSProvider provider = 3;\n\tstring defaultRoute = 6;\n\tbool nodesAutoSync = 4;\n\tbool serversAutoSync = 5;\n\trepeated string cnameRecords = 7;\n\tint32 ttl = 8;\n\tbool cnameAsDomain = 9;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterHTTPCachePolicyIdRequest", + "code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}", + "doc": "修改集群的缓存策略" + }, + { + "name": "FindEnabledNodeClusterDNSRequest", + "code": "message FindEnabledNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的DNS配置" + }, + { + "name": "UpdateNodeClusterSystemServiceRequest", + "code": "message UpdateNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", + "doc": "修改集群的系统服务设置" + }, + { + "name": "FindEnabledNodeClusterUAMPolicyRequest", + "code": "message FindEnabledNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "读取集群的UAM策略" + }, + { + "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse", + "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindNodeClusterSystemServiceRequest", + "code": "message FindNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n}", + "doc": "查找集群的系统服务设置" + }, + { + "name": "UpdateNodeClusterDDoSProtectionRequest", + "code": "message UpdateNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改集群的DDOS设置" + }, + { + "name": "DeleteNodeClusterRequest", + "code": "message DeleteNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "删除集群" + }, + { + "name": "ListEnabledNodeClustersRequest", + "code": "message ListEnabledNodeClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n}", + "doc": "列出单页集群" + }, + { + "name": "CountAllEnabledNodeClustersWithDNSProviderIdRequest", + "code": "message CountAllEnabledNodeClustersWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算使用某个DNS服务商的集群数量" + }, + { + "name": "UpdateNodeClusterTOARequest", + "code": "message UpdateNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n\tbytes toaJSON = 2;\n}", + "doc": "修改集群的TOA设置" + }, + { + "name": "FindEnabledNodeClusterConfigInfoRequest", + "code": "message FindEnabledNodeClusterConfigInfoRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得集群的配置概要信息" + }, + { + "name": "FindEnabledNodeClusterRequest", + "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找单个集群信息" + }, + { + "name": "FindNodeClusterHealthCheckConfigResponse", + "code": "message FindNodeClusterHealthCheckConfigResponse {\n\tbytes healthCheckJSON = 1;\n}", + "doc": "" + }, + { + "name": "CheckNodeClusterDNSNameRequest", + "code": "message CheckNodeClusterDNSNameRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n}", + "doc": "检查集群域名是否已经被使用" + }, + { + "name": "CreateNodeClusterFirewallActionRequest", + "code": "message CreateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", + "doc": "创建动作" + }, + { + "name": "UpdateNodeClusterFirewallActionRequest", + "code": "message UpdateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", + "doc": "修改动作" }, { "name": "FindAllEnabledNodeClusterFirewallActionsRequest", "code": "message FindAllEnabledNodeClusterFirewallActionsRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "查询集群的所有动作" }, + { + "name": "FindAllEnabledNodeClusterFirewallActionsResponse", + "code": "message FindAllEnabledNodeClusterFirewallActionsResponse {\n\trepeated NodeClusterFirewallAction nodeClusterFirewallActions = 1;\n}", + "doc": "" + }, + { + "name": "NodeClusterFirewallActionResponse", + "code": "message NodeClusterFirewallActionResponse {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "" + }, + { + "name": "DeleteNodeClusterFirewallActionRequest", + "code": "message DeleteNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "删除动作" + }, { "name": "FindEnabledNodeClusterFirewallActionRequest", "code": "message FindEnabledNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", @@ -12513,31 +12627,6 @@ "code": "message CountAllEnabledNodeClusterFirewallActionsRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "计算动作数量" }, - { - "name": "CreateNodeClusterFirewallActionRequest", - "code": "message CreateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", - "doc": "创建动作" - }, - { - "name": "NodeClusterFirewallActionResponse", - "code": "message NodeClusterFirewallActionResponse {\n\tint64 nodeClusterFirewallActionId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterFirewallActionRequest", - "code": "message UpdateNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n\tstring name = 2;\n\tstring eventLevel = 3;\n\tstring type = 4;\n\tbytes paramsJSON = 5;\n}", - "doc": "修改动作" - }, - { - "name": "FindAllEnabledNodeClusterFirewallActionsResponse", - "code": "message FindAllEnabledNodeClusterFirewallActionsResponse {\n\trepeated NodeClusterFirewallAction nodeClusterFirewallActions = 1;\n}", - "doc": "" - }, - { - "name": "FindAllNodeClusterMetricItemsResponse", - "code": "message FindAllNodeClusterMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", - "doc": "" - }, { "name": "ExistsNodeClusterMetricItemRequest", "code": "message ExistsNodeClusterMetricItemRequest {\n\tint64 nodeClusterId = 1;\n\tint64 metricItemId = 2;\n}", @@ -12569,8 +12658,8 @@ "doc": "查找集群中所有指标" }, { - "name": "CreateNodeGrantResponse", - "code": "message CreateNodeGrantResponse {\n\tint64 nodeGrantId = 1;\n}", + "name": "FindAllNodeClusterMetricItemsResponse", + "code": "message FindAllNodeClusterMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", "doc": "" }, { @@ -12578,25 +12667,30 @@ "code": "message DisableNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", "doc": "禁用节点认证" }, + { + "name": "ListEnabledNodeGrantsRequest", + "code": "message ListEnabledNodeGrantsRequest {\n\tstring keyword = 3;\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页认证" + }, { "name": "ListEnabledNodeGrantsResponse", "code": "message ListEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", "doc": "" }, { - "name": "FindEnabledNodeGrantRequest", - "code": "message FindEnabledNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "获取认证信息" - }, - { - "name": "DisableNodeGrantResponse", - "code": "message DisableNodeGrantResponse {\n\n}", + "name": "FindAllEnabledNodeGrantsResponse", + "code": "message FindAllEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", "doc": "" }, { - "name": "FindSuggestNodeGrantsRequest", - "code": "message FindSuggestNodeGrantsRequest {\n\tint64 nodeClusterId = 1; // 边缘节点集群\n\tint64 nsClusterId = 2; // NS节点集群\n}", - "doc": "查找集群推荐的认证" + "name": "TestNodeGrantRequest", + "code": "message TestNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n\tstring host = 2;\n\tint32 port = 3;\n}", + "doc": "测试连接" + }, + { + "name": "TestNodeGrantResponse", + "code": "message TestNodeGrantResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" }, { "name": "CreateNodeGrantRequest", @@ -12604,20 +12698,25 @@ "doc": "创建节点认证" }, { - "name": "ListEnabledNodeGrantsRequest", - "code": "message ListEnabledNodeGrantsRequest {\n\tstring keyword = 3;\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页认证" + "name": "DisableNodeGrantResponse", + "code": "message DisableNodeGrantResponse {\n\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodeGrantsRequest", + "code": "message CountAllEnabledNodeGrantsRequest {\n\tstring keyword = 1;\n}", + "doc": "计算节点认证数量" + }, + { + "name": "FindEnabledNodeGrantRequest", + "code": "message FindEnabledNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "获取认证信息" }, { "name": "FindEnabledNodeGrantResponse", "code": "message FindEnabledNodeGrantResponse {\n\tNodeGrant nodeGrant = 1;\n}", "doc": "" }, - { - "name": "TestNodeGrantResponse", - "code": "message TestNodeGrantResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, { "name": "FindSuggestNodeGrantsResponse", "code": "message FindSuggestNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", @@ -12628,40 +12727,25 @@ "code": "message UpdateNodeGrantRequest {\n\tint64 nodeGrantId = 8;\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 9;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 10;\n}", "doc": "修改节点认证" }, - { - "name": "CountAllEnabledNodeGrantsRequest", - "code": "message CountAllEnabledNodeGrantsRequest {\n\tstring keyword = 1;\n}", - "doc": "计算节点认证数量" - }, { "name": "FindAllEnabledNodeGrantsRequest", "code": "message FindAllEnabledNodeGrantsRequest {\n\n}", "doc": "获取所有认证信息" }, { - "name": "FindAllEnabledNodeGrantsResponse", - "code": "message FindAllEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "name": "FindSuggestNodeGrantsRequest", + "code": "message FindSuggestNodeGrantsRequest {\n\tint64 nodeClusterId = 1; // 边缘节点集群\n\tint64 nsClusterId = 2; // NS节点集群\n}", + "doc": "查找集群推荐的认证" + }, + { + "name": "CreateNodeGrantResponse", + "code": "message CreateNodeGrantResponse {\n\tint64 nodeGrantId = 1;\n}", "doc": "" }, { - "name": "TestNodeGrantRequest", - "code": "message TestNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n\tstring host = 2;\n\tint32 port = 3;\n}", - "doc": "测试连接" - }, - { - "name": "DeleteNodeGroupRequest", - "code": "message DeleteNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n}", - "doc": "删除分组" - }, - { - "name": "FindAllEnabledNodeGroupsWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查询所有分组" - }, - { - "name": "FindEnabledNodeGroupRequest", - "code": "message FindEnabledNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n}", - "doc": "查找单个分组信息" + "name": "UpdateNodeGroupOrdersRequest", + "code": "message UpdateNodeGroupOrdersRequest {\n\trepeated int64 nodeGroupIds = 1;\n}", + "doc": "修改分组排序" }, { "name": "CreateNodeGroupRequest", @@ -12673,89 +12757,74 @@ "code": "message CreateNodeGroupResponse {\n\tint64 nodeGroupId = 1;\n}", "doc": "" }, - { - "name": "UpdateNodeGroupOrdersRequest", - "code": "message UpdateNodeGroupOrdersRequest {\n\trepeated int64 nodeGroupIds = 1;\n}", - "doc": "修改分组排序" - }, - { - "name": "FindEnabledNodeGroupResponse", - "code": "message FindEnabledNodeGroupResponse {\n\tNodeGroup nodeGroup = 1;\n}", - "doc": "" - }, { "name": "UpdateNodeGroupRequest", "code": "message UpdateNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n\tstring name = 2;\n}", "doc": "修改分组" }, + { + "name": "FindAllEnabledNodeGroupsWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查询所有分组" + }, { "name": "FindAllEnabledNodeGroupsWithNodeClusterIdResponse", "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdResponse {\n\trepeated NodeGroup nodeGroups = 1;\n}", "doc": "" }, + { + "name": "DeleteNodeGroupRequest", + "code": "message DeleteNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n}", + "doc": "删除分组" + }, + { + "name": "FindEnabledNodeGroupRequest", + "code": "message FindEnabledNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n}", + "doc": "查找单个分组信息" + }, + { + "name": "FindEnabledNodeGroupResponse", + "code": "message FindEnabledNodeGroupResponse {\n\tNodeGroup nodeGroup = 1;\n}", + "doc": "" + }, { "name": "CreateNodeIPAddressResponse", "code": "message CreateNodeIPAddressResponse {\n\tint64 nodeIPAddressId = 1;\n}", "doc": "" }, - { - "name": "CreateNodeIPAddressesResponse", - "code": "message CreateNodeIPAddressesResponse {\n\trepeated int64 nodeIPAddressIds = 1;\n}", - "doc": "" - }, { "name": "UpdateNodeIPAddressRequest", "code": "message UpdateNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n\tstring name = 2;\n\tstring ip = 3;\n\tbool canAccess = 4;\n\tbool isOn = 5;\n\tbool isUp = 6;\n}", "doc": "修改IP地址" }, + { + "name": "FindEnabledNodeIPAddressResponse", + "code": "message FindEnabledNodeIPAddressResponse {\n\tNodeIPAddress nodeIPAddress = 1;\n}", + "doc": "" + }, + { + "name": "CreateNodeIPAddressesRequest", + "code": "message CreateNodeIPAddressesRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\trepeated string ipList = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n\tstring groupValue = 7;\n}", + "doc": "批量创建IP地址" + }, { "name": "UpdateNodeIPAddressNodeIdRequest", "code": "message UpdateNodeIPAddressNodeIdRequest {\n\tint64 nodeIPAddressId = 1;\n\tint64 nodeId = 2;\n}", "doc": "修改IP地址所属节点" }, - { - "name": "DisableNodeIPAddressResponse", - "code": "message DisableNodeIPAddressResponse {\n\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodeIPAddressesWithNodeIdRequest", - "code": "message FindAllEnabledNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n}", - "doc": "查找节点的所有地址" - }, - { - "name": "FindAllEnabledNodeIPAddressesWithNodeIdResponse", - "code": "message FindAllEnabledNodeIPAddressesWithNodeIdResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledNodeIPAddressesResponse", - "code": "message ListEnabledNodeIPAddressesResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", - "doc": "" - }, - { - "name": "RestoreNodeIPAddressBackupIPRequest", - "code": "message RestoreNodeIPAddressBackupIPRequest {\n\tint64 nodeIPAddressId = 1;\n}", - "doc": "还原备用IP状态" - }, { "name": "DisableNodeIPAddressRequest", "code": "message DisableNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", "doc": "禁用单个IP地址" }, - { - "name": "DisableAllNodeIPAddressesWithNodeIdResponse", - "code": "message DisableAllNodeIPAddressesWithNodeIdResponse {\n\n}", - "doc": "" - }, { "name": "FindEnabledNodeIPAddressRequest", "code": "message FindEnabledNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", "doc": "查找单个IP地址" }, { - "name": "FindEnabledNodeIPAddressResponse", - "code": "message FindEnabledNodeIPAddressResponse {\n\tNodeIPAddress nodeIPAddress = 1;\n}", + "name": "FindAllEnabledNodeIPAddressesWithNodeIdResponse", + "code": "message FindAllEnabledNodeIPAddressesWithNodeIdResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", "doc": "" }, { @@ -12764,14 +12833,9 @@ "doc": "计算IP地址数量" }, { - "name": "CreateNodeIPAddressRequest", - "code": "message CreateNodeIPAddressRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\tstring ip = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n}", - "doc": "创建IP地址" - }, - { - "name": "CreateNodeIPAddressesRequest", - "code": "message CreateNodeIPAddressesRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\trepeated string ipList = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n\tstring groupValue = 7;\n}", - "doc": "批量创建IP地址" + "name": "CreateNodeIPAddressesResponse", + "code": "message CreateNodeIPAddressesResponse {\n\trepeated int64 nodeIPAddressIds = 1;\n}", + "doc": "" }, { "name": "DisableAllNodeIPAddressesWithNodeIdRequest", @@ -12779,15 +12843,45 @@ "doc": "禁用节点的所有IP地址" }, { - "name": "ListEnabledNodeIPAddressesRequest", - "code": "message ListEnabledNodeIPAddressesRequest {\n\tint64 nodeClusterId = 1;\n\tstring role = 2;\n\tint32 upState = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "列出单页IP地址" + "name": "FindAllEnabledNodeIPAddressesWithNodeIdRequest", + "code": "message FindAllEnabledNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n}", + "doc": "查找节点的所有地址" + }, + { + "name": "ListEnabledNodeIPAddressesResponse", + "code": "message ListEnabledNodeIPAddressesResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", + "doc": "" }, { "name": "UpdateNodeIPAddressIsUpRequest", "code": "message UpdateNodeIPAddressIsUpRequest {\n\tint64 nodeIPAddressId = 1;\n\tbool isUp = 2;\n}", "doc": "设置上下线状态" }, + { + "name": "RestoreNodeIPAddressBackupIPRequest", + "code": "message RestoreNodeIPAddressBackupIPRequest {\n\tint64 nodeIPAddressId = 1;\n}", + "doc": "还原备用IP状态" + }, + { + "name": "CreateNodeIPAddressRequest", + "code": "message CreateNodeIPAddressRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring name = 3;\n\tstring ip = 4;\n\tbool canAccess = 5;\n\tbool isUp = 6;\n}", + "doc": "创建IP地址" + }, + { + "name": "DisableNodeIPAddressResponse", + "code": "message DisableNodeIPAddressResponse {\n\n}", + "doc": "" + }, + { + "name": "DisableAllNodeIPAddressesWithNodeIdResponse", + "code": "message DisableAllNodeIPAddressesWithNodeIdResponse {\n\n}", + "doc": "" + }, + { + "name": "ListEnabledNodeIPAddressesRequest", + "code": "message ListEnabledNodeIPAddressesRequest {\n\tint64 nodeClusterId = 1;\n\tstring role = 2;\n\tint32 upState = 3;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页IP地址" + }, { "name": "CountAllNodeIPAddressLogsRequest", "code": "message CountAllNodeIPAddressLogsRequest {\n\tint64 nodeIPAddressId = 1;\n}", @@ -12803,21 +12897,6 @@ "code": "message ListNodeIPAddressLogsResponse {\n\trepeated NodeIPAddressLog nodeIPAddressLogs = 1;\n}", "doc": "" }, - { - "name": "UpdateAllNodeIPAddressThresholdsRequest", - "code": "message UpdateAllNodeIPAddressThresholdsRequest {\n\tint64 nodeIPAddressId = 1;\n\tbytes nodeIPAddressThresholdsJSON = 2;\n}", - "doc": "批量更新阈值" - }, - { - "name": "CreateNodeIPAddressThresholdRequest", - "code": "message CreateNodeIPAddressThresholdRequest{\n\tint64 nodeIPAddressId = 1;\n\tbytes itemsJSON = 2;\n\tbytes actionsJSON = 3;\n}", - "doc": "创建阈值" - }, - { - "name": "CreateNodeIPAddressThresholdResponse", - "code": "message CreateNodeIPAddressThresholdResponse {\n\tint64 nodeIPAddressThresholdId = 1;\n}", - "doc": "" - }, { "name": "UpdateNodeIPAddressThresholdRequest", "code": "message UpdateNodeIPAddressThresholdRequest {\n\tint64 nodeIPAddressThresholdId = 1;\n\tbytes itemsJSON = 2;\n\tbytes actionsJSON = 3;\n}", @@ -12844,20 +12923,20 @@ "doc": "计算IP阈值的数量" }, { - "name": "CreateNodeLogsResponse", - "code": "message CreateNodeLogsResponse {\n\n}", + "name": "UpdateAllNodeIPAddressThresholdsRequest", + "code": "message UpdateAllNodeIPAddressThresholdsRequest {\n\tint64 nodeIPAddressId = 1;\n\tbytes nodeIPAddressThresholdsJSON = 2;\n}", + "doc": "批量更新阈值" + }, + { + "name": "CreateNodeIPAddressThresholdRequest", + "code": "message CreateNodeIPAddressThresholdRequest{\n\tint64 nodeIPAddressId = 1;\n\tbytes itemsJSON = 2;\n\tbytes actionsJSON = 3;\n}", + "doc": "创建阈值" + }, + { + "name": "CreateNodeIPAddressThresholdResponse", + "code": "message CreateNodeIPAddressThresholdResponse {\n\tint64 nodeIPAddressThresholdId = 1;\n}", "doc": "" }, - { - "name": "CountNodeLogsRequest", - "code": "message CountNodeLogsRequest {\n\tint64 nodeClusterId = 11;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring level = 6;\n\tint64 serverId = 7;\n\tint64 originId = 8;\n\tbool isUnread = 9;\n\tstring tag = 10;\n\tint32 fixedState = 12;\n\tbool allServers = 13; // 是否获取所有服务相关的日志\n}", - "doc": "查询日志数量" - }, - { - "name": "UpdateAllNodeLogsReadRequest", - "code": "message UpdateAllNodeLogsReadRequest {\n\n}", - "doc": "设置所有日志未已读" - }, { "name": "FixAllNodeLogsRequest", "code": "message FixAllNodeLogsRequest {\n\n}", @@ -12868,15 +12947,20 @@ "code": "message UpdateNodeLogsReadRequest {\n\trepeated int64 nodeLogIds = 1;\n}", "doc": "设置日志为已读" }, + { + "name": "UpdateAllNodeLogsReadRequest", + "code": "message UpdateAllNodeLogsReadRequest {\n\n}", + "doc": "设置所有日志未已读" + }, { "name": "CreateNodeLogsRequest", "code": "message CreateNodeLogsRequest {\n\trepeated NodeLog nodeLogs = 1;\n}", "doc": "创建日志" }, { - "name": "ListNodeLogsRequest", - "code": "message ListNodeLogsRequest {\n\tint64 nodeClusterId = 15;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n\n\tstring dayFrom = 5;\n\tstring dayTo = 6;\n\tstring keyword = 7;\n\tstring level = 8;\n\tint64 serverId = 9;\n\tint32 fixedState = 10;\n\tbool allServers = 11; // 是否获取所有服务相关的日志\n\tint64 originId = 12;\n\tbool isUnread = 13;\n\tstring tag = 14;\n}", - "doc": "列出单页日志" + "name": "CountNodeLogsRequest", + "code": "message CountNodeLogsRequest {\n\tint64 nodeClusterId = 11;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tstring dayFrom = 3;\n\tstring dayTo = 4;\n\tstring keyword = 5;\n\tstring level = 6;\n\tint64 serverId = 7;\n\tint64 originId = 8;\n\tbool isUnread = 9;\n\tstring tag = 10;\n\tint32 fixedState = 12;\n\tbool allServers = 13; // 是否获取所有服务相关的日志\n}", + "doc": "查询日志数量" }, { "name": "ListNodeLogsResponse", @@ -12888,6 +12972,16 @@ "code": "message FixNodeLogsRequest {\n\trepeated int64 nodeLogIds = 1;\n}", "doc": "设置日志为已修复" }, + { + "name": "CreateNodeLogsResponse", + "code": "message CreateNodeLogsResponse {\n\n}", + "doc": "" + }, + { + "name": "ListNodeLogsRequest", + "code": "message ListNodeLogsRequest {\n\tint64 nodeClusterId = 15;\n\tint64 nodeId = 1;\n\tstring role = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n\n\tstring dayFrom = 5;\n\tstring dayTo = 6;\n\tstring keyword = 7;\n\tstring level = 8;\n\tint64 serverId = 9;\n\tint32 fixedState = 10;\n\tbool allServers = 11; // 是否获取所有服务相关的日志\n\tint64 originId = 12;\n\tbool isUnread = 13;\n\tstring tag = 14;\n}", + "doc": "列出单页日志" + }, { "name": "FindNodeLoginSuggestPortsRequest", "code": "message FindNodeLoginSuggestPortsRequest {\n\tstring host = 1;\n}", @@ -12898,30 +12992,35 @@ "code": "message FindNodeLoginSuggestPortsResponse {\n\trepeated int32 ports = 1;\n\trepeated int32 availablePorts = 2;\n}", "doc": "" }, - { - "name": "DeleteNodePriceItemRequest", - "code": "message DeleteNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", - "doc": "删除区域价格" - }, { "name": "FindAllEnabledNodePriceItemsRequest", "code": "message FindAllEnabledNodePriceItemsRequest {\n\tstring type = 1;\n}", "doc": "查找所有区域价格" }, + { + "name": "FindAllEnabledNodePriceItemsResponse", + "code": "message FindAllEnabledNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodePriceItemRequest", + "code": "message FindEnabledNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", + "doc": "查找单个区域价格信息" + }, + { + "name": "CreateNodePriceItemRequest", + "code": "message CreateNodePriceItemRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tint64 bitsFrom = 3;\n\tint64 bitsTo = 4;\n}", + "doc": "创建区域价格" + }, { "name": "UpdateNodePriceItemRequest", "code": "message UpdateNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 bitsFrom = 4;\n\tint64 bitsTo = 5;\n}", "doc": "修改区域价格" }, { - "name": "CreateNodePriceItemResponse", - "code": "message CreateNodePriceItemResponse {\n\tint64 NodePriceItemId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodePriceItemsResponse", - "code": "message FindAllEnabledNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", - "doc": "" + "name": "DeleteNodePriceItemRequest", + "code": "message DeleteNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", + "doc": "删除区域价格" }, { "name": "FindAllAvailableNodePriceItemsRequest", @@ -12933,44 +13032,14 @@ "code": "message FindAllAvailableNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", "doc": "" }, - { - "name": "FindEnabledNodePriceItemRequest", - "code": "message FindEnabledNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", - "doc": "查找单个区域价格信息" - }, { "name": "FindEnabledNodePriceItemResponse", "code": "message FindEnabledNodePriceItemResponse {\n\tNodePriceItem NodePriceItem = 1;\n}", "doc": "" }, { - "name": "CreateNodePriceItemRequest", - "code": "message CreateNodePriceItemRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tint64 bitsFrom = 3;\n\tint64 bitsTo = 4;\n}", - "doc": "创建区域价格" - }, - { - "name": "CreateNodeRegionRequest", - "code": "message CreateNodeRegionRequest {\n\tstring name = 1;\n\tstring description = 2;\n}", - "doc": "创建区域" - }, - { - "name": "CreateNodeRegionResponse", - "code": "message CreateNodeRegionResponse {\n\tint64 nodeRegionId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeRegionRequest", - "code": "message UpdateNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", - "doc": "修改区域" - }, - { - "name": "FindAllEnabledNodeRegionsRequest", - "code": "message FindAllEnabledNodeRegionsRequest {\n\n}", - "doc": "查找所有区域" - }, - { - "name": "FindAllEnabledNodeRegionsResponse", - "code": "message FindAllEnabledNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", + "name": "CreateNodePriceItemResponse", + "code": "message CreateNodePriceItemResponse {\n\tint64 NodePriceItemId = 1;\n}", "doc": "" }, { @@ -12979,20 +13048,35 @@ "doc": "排序" }, { - "name": "DeleteNodeRegionRequest", - "code": "message DeleteNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", - "doc": "删除区域" + "name": "UpdateNodeRegionPriceRequest", + "code": "message UpdateNodeRegionPriceRequest {\n\tint64 nodeRegionId = 1;\n\tint64 nodeItemId = 2;\n\tfloat price = 3;\n}", + "doc": "修改价格项价格" }, { - "name": "FindAllAvailableNodeRegionsRequest", - "code": "message FindAllAvailableNodeRegionsRequest {\n\n}", - "doc": "查找所有启用的区域" + "name": "CreateNodeRegionRequest", + "code": "message CreateNodeRegionRequest {\n\tstring name = 1;\n\tstring description = 2;\n}", + "doc": "创建区域" + }, + { + "name": "FindAllEnabledNodeRegionsResponse", + "code": "message FindAllEnabledNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", + "doc": "" }, { "name": "FindAllAvailableNodeRegionsResponse", "code": "message FindAllAvailableNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", "doc": "" }, + { + "name": "FindAllEnabledNodeRegionsRequest", + "code": "message FindAllEnabledNodeRegionsRequest {\n\n}", + "doc": "查找所有区域" + }, + { + "name": "FindAllAvailableNodeRegionsRequest", + "code": "message FindAllAvailableNodeRegionsRequest {\n\n}", + "doc": "查找所有启用的区域" + }, { "name": "FindEnabledNodeRegionRequest", "code": "message FindEnabledNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", @@ -13004,24 +13088,39 @@ "doc": "" }, { - "name": "UpdateNodeRegionPriceRequest", - "code": "message UpdateNodeRegionPriceRequest {\n\tint64 nodeRegionId = 1;\n\tint64 nodeItemId = 2;\n\tfloat price = 3;\n}", - "doc": "修改价格项价格" - }, - { - "name": "ClusterTask", - "code": "message ClusterTask {\n\tint64 clusterId = 1;\n\tstring clusterName = 2;\n\trepeated NodeTask nodeTasks = 3;\n}", + "name": "CreateNodeRegionResponse", + "code": "message CreateNodeRegionResponse {\n\tint64 nodeRegionId = 1;\n}", "doc": "" }, { - "name": "CountDoingNodeTasksRequest", - "code": "message CountDoingNodeTasksRequest {\n\n}", - "doc": "计算正在执行的任务数量" + "name": "UpdateNodeRegionRequest", + "code": "message UpdateNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tbool isOn = 4;\n}", + "doc": "修改区域" }, { - "name": "DeleteNodeTasksRequest", - "code": "message DeleteNodeTasksRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", - "doc": "批量删除任务" + "name": "DeleteNodeRegionRequest", + "code": "message DeleteNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", + "doc": "删除区域" + }, + { + "name": "FindNodeClusterTasksRequest", + "code": "message FindNodeClusterTasksRequest {\n\n}", + "doc": "获取所有正在同步的集群信息" + }, + { + "name": "FindNodeClusterTasksResponse", + "code": "message FindNodeClusterTasksResponse {\n\trepeated ClusterTask clusterTasks = 1;\n}", + "doc": "" + }, + { + "name": "FindNodeTasksResponse", + "code": "message FindNodeTasksResponse {\n\trepeated NodeTask nodeTasks = 1;\n}", + "doc": "" + }, + { + "name": "ExistsNodeTasksRequest", + "code": "message ExistsNodeTasksRequest {\n\trepeated string excludeTypes = 1;\n}", + "doc": "检查是否有正在执行的任务" }, { "name": "DeleteNodeTaskRequest", @@ -13034,9 +13133,9 @@ "doc": "设置任务已通知" }, { - "name": "FindNodeTasksResponse", - "code": "message FindNodeTasksResponse {\n\trepeated NodeTask nodeTasks = 1;\n}", - "doc": "" + "name": "FindNodeTasksRequest", + "code": "message FindNodeTasksRequest {\n\n}", + "doc": "获取单节点同步任务" }, { "name": "ReportNodeTaskDoneRequest", @@ -13044,8 +13143,8 @@ "doc": "报告同步任务结果" }, { - "name": "FindNodeClusterTasksResponse", - "code": "message FindNodeClusterTasksResponse {\n\trepeated ClusterTask clusterTasks = 1;\n}", + "name": "ClusterTask", + "code": "message ClusterTask {\n\tint64 clusterId = 1;\n\tstring clusterName = 2;\n\trepeated NodeTask nodeTasks = 3;\n}", "doc": "" }, { @@ -13059,19 +13158,14 @@ "doc": "" }, { - "name": "FindNodeTasksRequest", - "code": "message FindNodeTasksRequest {\n\n}", - "doc": "获取单节点同步任务" + "name": "DeleteNodeTasksRequest", + "code": "message DeleteNodeTasksRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", + "doc": "批量删除任务" }, { - "name": "FindNodeClusterTasksRequest", - "code": "message FindNodeClusterTasksRequest {\n\n}", - "doc": "获取所有正在同步的集群信息" - }, - { - "name": "ExistsNodeTasksRequest", - "code": "message ExistsNodeTasksRequest {\n\trepeated string excludeTypes = 1;\n}", - "doc": "检查是否有正在执行的任务" + "name": "CountDoingNodeTasksRequest", + "code": "message CountDoingNodeTasksRequest {\n\n}", + "doc": "计算正在执行的任务数量" }, { "name": "FindNotifyingNodeTasksRequest", @@ -13079,20 +13173,15 @@ "doc": "查找需要通知的任务" }, { - "name": "CreateNodeThresholdResponse", - "code": "message CreateNodeThresholdResponse {\n\tint64 nodeThresholdId = 1;\n}", - "doc": "" + "name": "UpdateNodeThresholdRequest", + "code": "message UpdateNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n\tstring item = 2;\n\tstring param = 3;\n\tstring operator = 4;\n\tbytes valueJSON = 5;\n\tstring message = 6;\n\tint32 duration = 7;\n\tstring durationUnit = 8;\n\tstring sumMethod = 9;\n\tbool isOn = 10;\n\tint32 notifyDuration = 11;\n}", + "doc": "修改阈值" }, { "name": "DeleteNodeThresholdRequest", "code": "message DeleteNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n}", "doc": "删除阈值" }, - { - "name": "FindAllEnabledNodeThresholdsRequest", - "code": "message FindAllEnabledNodeThresholdsRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n}", - "doc": "查询阈值" - }, { "name": "FindAllEnabledNodeThresholdsResponse", "code": "message FindAllEnabledNodeThresholdsResponse {\n\trepeated NodeThreshold nodeThresholds = 1;\n}", @@ -13114,25 +13203,20 @@ "doc": "创建阈值" }, { - "name": "UpdateNodeThresholdRequest", - "code": "message UpdateNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n\tstring item = 2;\n\tstring param = 3;\n\tstring operator = 4;\n\tbytes valueJSON = 5;\n\tstring message = 6;\n\tint32 duration = 7;\n\tstring durationUnit = 8;\n\tstring sumMethod = 9;\n\tbool isOn = 10;\n\tint32 notifyDuration = 11;\n}", - "doc": "修改阈值" + "name": "CreateNodeThresholdResponse", + "code": "message CreateNodeThresholdResponse {\n\tint64 nodeThresholdId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodeThresholdsRequest", + "code": "message FindAllEnabledNodeThresholdsRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n}", + "doc": "查询阈值" }, { "name": "FindEnabledNodeThresholdRequest", "code": "message FindEnabledNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n}", "doc": "查询单个阈值详情" }, - { - "name": "SumAllNodeValueStatsRequest", - "code": "message SumAllNodeValueStatsRequest {\n\n}", - "doc": "读取所有节点的最新数据" - }, - { - "name": "SumAllNodeValueStatsResponse", - "code": "message SumAllNodeValueStatsResponse {\n\tint64 totalTrafficBytesPerSecond = 1;\n\tfloat avgCPUUsage = 2;\n\tfloat maxCPUUsage = 3;\n\tint32 totalCPUCores = 4;\n\tfloat avgMemoryUsage = 5;\n\tfloat maxMemoryUsage = 6;\n\tint64 totalMemoryBytes = 7;\n\tfloat avgLoad1min = 8;\n\tfloat maxLoad1min = 9;\n\tfloat avgLoad5min = 10;\n}", - "doc": "" - }, { "name": "CreateNodeValueRequest", "code": "message CreateNodeValueRequest {\n\tstring item = 1;\n\tbytes valueJSON = 2;\n\tint64 createdAt = 3;\n}", @@ -13149,8 +13233,13 @@ "doc": "" }, { - "name": "ComposeNSBoardResponse", - "code": "message ComposeNSBoardResponse {\n\tint64 countNSDomains = 1;\n\tint64 countNSRecords = 2;\n\tint64 countNSClusters = 3;\n\tint64 countNSNodes = 4;\n\tint64 countOfflineNSNodes = 5;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNSNodeStats = 32;\n\trepeated DomainStat topNSDomainStats = 33;\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nsClusterId = 1;\n\t\tint64 nsNodeId = 2;\n\t\tstring nsNodeName = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 bytes = 5;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 nsDomainId = 1;\n\t\tstring nsDomainName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", + "name": "SumAllNodeValueStatsRequest", + "code": "message SumAllNodeValueStatsRequest {\n\n}", + "doc": "读取所有节点的最新数据" + }, + { + "name": "SumAllNodeValueStatsResponse", + "code": "message SumAllNodeValueStatsResponse {\n\tint64 totalTrafficBytesPerSecond = 1;\n\tfloat avgCPUUsage = 2;\n\tfloat maxCPUUsage = 3;\n\tint32 totalCPUCores = 4;\n\tfloat avgMemoryUsage = 5;\n\tfloat maxMemoryUsage = 6;\n\tint64 totalMemoryBytes = 7;\n\tfloat avgLoad1min = 8;\n\tfloat maxLoad1min = 9;\n\tfloat avgLoad5min = 10;\n}", "doc": "" }, { @@ -13159,20 +13248,10 @@ "doc": "组合看板数据" }, { - "name": "FindNSAccessLogRequest", - "code": "message FindNSAccessLogRequest {\n\tstring requestId = 1;\n}", - "doc": "查找单个日志" - }, - { - "name": "FindNSAccessLogResponse", - "code": "message FindNSAccessLogResponse {\n\tNSAccessLog nsAccessLog = 1;\n}", + "name": "ComposeNSBoardResponse", + "code": "message ComposeNSBoardResponse {\n\tint64 countNSDomains = 1;\n\tint64 countNSRecords = 2;\n\tint64 countNSClusters = 3;\n\tint64 countNSNodes = 4;\n\tint64 countOfflineNSNodes = 5;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNSNodeStats = 32;\n\trepeated DomainStat topNSDomainStats = 33;\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 countRequests = 3;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nsClusterId = 1;\n\t\tint64 nsNodeId = 2;\n\t\tstring nsNodeName = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 bytes = 5;\n\t}\n\n\n\tmessage DomainStat {\n\t\tint64 nsDomainId = 1;\n\t\tstring nsDomainName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t}\n}", "doc": "" }, - { - "name": "CreateNSAccessLogsRequest", - "code": "message CreateNSAccessLogsRequest {\n\trepeated NSAccessLog nsAccessLogs = 1;\n}", - "doc": "创建访问日志" - }, { "name": "CreateNSAccessLogsResponse", "code": "message CreateNSAccessLogsResponse {\n\n}", @@ -13188,6 +13267,31 @@ "code": "message ListNSAccessLogsResponse {\n\trepeated NSAccessLog nsAccessLogs = 1;\n\tstring requestId = 2;\n\tbool hasMore = 3;\n}", "doc": "" }, + { + "name": "FindNSAccessLogRequest", + "code": "message FindNSAccessLogRequest {\n\tstring requestId = 1;\n}", + "doc": "查找单个日志" + }, + { + "name": "FindNSAccessLogResponse", + "code": "message FindNSAccessLogResponse {\n\tNSAccessLog nsAccessLog = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSAccessLogsRequest", + "code": "message CreateNSAccessLogsRequest {\n\trepeated NSAccessLog nsAccessLogs = 1;\n}", + "doc": "创建访问日志" + }, + { + "name": "ListNSClustersRequest", + "code": "message ListNSClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页可用集群" + }, + { + "name": "FindNSClusterTLSConfigResponse", + "code": "message FindNSClusterTLSConfigResponse {\n\tbytes tlsJSON = 1;\n}", + "doc": "" + }, { "name": "FindNSClusterUDPConfigRequest", "code": "message FindNSClusterUDPConfigRequest {\n\tint64 nsClusterId = 1;\n}", @@ -13198,96 +13302,11 @@ "code": "message CountAllNSClustersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", "doc": "计算使用某个SSL证书的集群数量" }, - { - "name": "CreateNSClusterResponse", - "code": "message CreateNSClusterResponse {\n\tint64 nsClusterId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSClusterRequest", - "code": "message UpdateNSClusterRequest {\n\tint64 nsClusterId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改集群" - }, - { - "name": "FindNSClusterAccessLogRequest", - "code": "message FindNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群访问日志配置" - }, - { - "name": "DeleteNSCluster", - "code": "message DeleteNSCluster {\n\tint64 nsClusterId = 1;\n}", - "doc": "删除集群" - }, - { - "name": "FindNSClusterResponse", - "code": "message FindNSClusterResponse {\n\tNSCluster nsCluster = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterTLSConfigRequest", - "code": "message FindNSClusterTLSConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群的TLS设置" - }, - { - "name": "FindNSClusterAccessLogResponse", - "code": "message FindNSClusterAccessLogResponse {\n\tbytes AccessLogJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSClusterAccessLogRequest", - "code": "message UpdateNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n\tbytes accessLogJSON = 2;\n}", - "doc": "修改集群访问日志配置" - }, - { - "name": "ListNSClustersRequest", - "code": "message ListNSClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页可用集群" - }, - { - "name": "FindNSClusterTCPConfigRequest", - "code": "message FindNSClusterTCPConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群的TCP设置" - }, - { - "name": "FindNSClusterTLSConfigResponse", - "code": "message FindNSClusterTLSConfigResponse {\n\tbytes tlsJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSClusterTLSRequest", - "code": "message UpdateNSClusterTLSRequest {\n\tint64 nsClusterId = 1;\n\tbytes tlsJSON = 2;\n}", - "doc": "修改集群的TLS设置" - }, { "name": "CreateNSClusterRequest", "code": "message CreateNSClusterRequest {\n\tstring name = 1;\n\tbytes accessLogJSON = 2;\n}", "doc": "创建集群" }, - { - "name": "FindNSClusterRequest", - "code": "message FindNSClusterRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找单个可用集群信息" - }, - { - "name": "FindAllNSClustersRequest", - "code": "message FindAllNSClustersRequest {\n\n}", - "doc": "查找所有可用集群" - }, - { - "name": "FindNSClusterRecursionConfigRequest", - "code": "message FindNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "读取递归DNS配置" - }, - { - "name": "FindNSClusterTCPConfigResponse", - "code": "message FindNSClusterTCPConfigResponse {\n\tbytes tcpJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterUDPConfigResponse", - "code": "message FindNSClusterUDPConfigResponse {\n\tbytes udpJSON = 1;\n}", - "doc": "" - }, { "name": "ListNSClustersResponse", "code": "message ListNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", @@ -13299,9 +13318,44 @@ "doc": "" }, { - "name": "UpdateNSClusterRecursionConfigRequest", - "code": "message UpdateNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n\tbytes recursionJSON = 2;\n}", - "doc": "设置递归DNS配置" + "name": "FindNSClusterRecursionConfigRequest", + "code": "message FindNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "读取递归DNS配置" + }, + { + "name": "FindNSClusterTLSConfigRequest", + "code": "message FindNSClusterTLSConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群的TLS设置" + }, + { + "name": "FindNSClusterUDPConfigResponse", + "code": "message FindNSClusterUDPConfigResponse {\n\tbytes udpJSON = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSClusterResponse", + "code": "message CreateNSClusterResponse {\n\tint64 nsClusterId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSClusterRequest", + "code": "message UpdateNSClusterRequest {\n\tint64 nsClusterId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改集群" + }, + { + "name": "DeleteNSCluster", + "code": "message DeleteNSCluster {\n\tint64 nsClusterId = 1;\n}", + "doc": "删除集群" + }, + { + "name": "FindNSClusterResponse", + "code": "message FindNSClusterResponse {\n\tNSCluster nsCluster = 1;\n}", + "doc": "" + }, + { + "name": "FindAllNSClustersRequest", + "code": "message FindAllNSClustersRequest {\n\n}", + "doc": "查找所有可用集群" }, { "name": "FindNSClusterRecursionConfigResponse", @@ -13309,9 +13363,14 @@ "doc": "" }, { - "name": "UpdateNSClusterTCPRequest", - "code": "message UpdateNSClusterTCPRequest {\n\tint64 nsClusterId = 1;\n\tbytes tcpJSON = 2;\n}", - "doc": "修改集群的TCP设置" + "name": "FindNSClusterTCPConfigResponse", + "code": "message FindNSClusterTCPConfigResponse {\n\tbytes tcpJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSClusterTLSRequest", + "code": "message UpdateNSClusterTLSRequest {\n\tint64 nsClusterId = 1;\n\tbytes tlsJSON = 2;\n}", + "doc": "修改集群的TLS设置" }, { "name": "UpdateNSClusterUDPRequest", @@ -13319,59 +13378,39 @@ "doc": "修改集群的UDP设置" }, { - "name": "ExistNSDomainsResponse", - "code": "message ExistNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", + "name": "FindNSClusterAccessLogRequest", + "code": "message FindNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群访问日志配置" + }, + { + "name": "FindNSClusterAccessLogResponse", + "code": "message FindNSClusterAccessLogResponse {\n\tbytes AccessLogJSON = 1;\n}", "doc": "" }, { - "name": "CreateNSDomainRequest", - "code": "message CreateNSDomainRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\tstring name = 3; // 域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", - "doc": "创建单个域名" + "name": "UpdateNSClusterAccessLogRequest", + "code": "message UpdateNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n\tbytes accessLogJSON = 2;\n}", + "doc": "修改集群访问日志配置" }, { - "name": "CreateNSDomainsRequest", - "code": "message CreateNSDomainsRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\trepeated string names = 3; // 一组域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", - "doc": "批量创建域名" + "name": "FindNSClusterRequest", + "code": "message FindNSClusterRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找单个可用集群信息" }, { - "name": "CreateNSDomainsResponse", - "code": "message CreateNSDomainsResponse {\n\trepeated int64 nsDomainIds = 1;\n}", - "doc": "" + "name": "UpdateNSClusterRecursionConfigRequest", + "code": "message UpdateNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n\tbytes recursionJSON = 2;\n}", + "doc": "设置递归DNS配置" }, { - "name": "FindNSDomainResponse", - "code": "message FindNSDomainResponse {\n\tNSDomain nsDomain = 1;\n}", - "doc": "" + "name": "FindNSClusterTCPConfigRequest", + "code": "message FindNSClusterTCPConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群的TCP设置" }, { - "name": "FindNSDomainTSIGResponse", - "code": "message FindNSDomainTSIGResponse {\n\tbytes tsigJSON = 1;\n}", - "doc": "" - }, - { - "name": "ExistNSDomainsRequest", - "code": "message ExistNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2;\n}", - "doc": "检查一组域名是否存在" - }, - { - "name": "CreateNSDomainResponse", - "code": "message CreateNSDomainResponse {\n\tint64 nsDomainId = 1;\n}", - "doc": "" - }, - { - "name": "FindNSDomainRequest", - "code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "查找单个域名" - }, - { - "name": "ListNSDomainsRequest", - "code": "message ListNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 nsDomainGroupId = 6;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页域名" - }, - { - "name": "UpdateNSDomainRequest", - "code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\trepeated int64 nsDomainGroupIds = 5; // 域名分组ID\n\tbool isOn = 4;\n}", - "doc": "修改域名\n注意:名称不能修改" + "name": "UpdateNSClusterTCPRequest", + "code": "message UpdateNSClusterTCPRequest {\n\tint64 nsClusterId = 1;\n\tbytes tcpJSON = 2;\n}", + "doc": "修改集群的TCP设置" }, { "name": "DeleteNSDomainRequest", @@ -13384,48 +13423,88 @@ "doc": "批量删除域名" }, { - "name": "CountAllNSDomainsRequest", - "code": "message CountAllNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 nsDomainGroupId = 4;\n}", - "doc": "计算域名数量" + "name": "FindNSDomainResponse", + "code": "message FindNSDomainResponse {\n\tNSDomain nsDomain = 1;\n}", + "doc": "" }, { "name": "ListNSDomainsResponse", "code": "message ListNSDomainsResponse {\n\trepeated NSDomain nsDomains = 1;\n}", "doc": "" }, - { - "name": "ListNSDomainsAfterVersionRequest", - "code": "message ListNSDomainsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组域名" - }, { "name": "ListNSDomainsAfterVersionResponse", "code": "message ListNSDomainsAfterVersionResponse {\n\trepeated NSDomain nsDomains = 1;\n}", "doc": "" }, + { + "name": "CreateNSDomainsRequest", + "code": "message CreateNSDomainsRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\trepeated string names = 3; // 一组域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", + "doc": "批量创建域名" + }, + { + "name": "UpdateNSDomainRequest", + "code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\trepeated int64 nsDomainGroupIds = 5; // 域名分组ID\n\tbool isOn = 4;\n}", + "doc": "修改域名\n注意:名称不能修改" + }, + { + "name": "ListNSDomainsRequest", + "code": "message ListNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 nsDomainGroupId = 6;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页域名" + }, { "name": "FindNSDomainTSIGRequest", "code": "message FindNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n}", "doc": "查找TSIG配置" }, + { + "name": "FindNSDomainTSIGResponse", + "code": "message FindNSDomainTSIGResponse {\n\tbytes tsigJSON = 1;\n}", + "doc": "" + }, { "name": "UpdateNSDomainTSIGRequest", "code": "message UpdateNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n\tbytes tsigJSON = 2;\n}", "doc": "修改TSIG配置" }, { - "name": "UpdateNSDomainGroupRequest", - "code": "message UpdateNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改分组" + "name": "ExistNSDomainsRequest", + "code": "message ExistNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2;\n}", + "doc": "检查一组域名是否存在" }, { - "name": "FindNSDomainGroupResponse", - "code": "message FindNSDomainGroupResponse {\n\tNSDomainGroup nsDomainGroup = 1;\n}", + "name": "CreateNSDomainResponse", + "code": "message CreateNSDomainResponse {\n\tint64 nsDomainId = 1;\n}", "doc": "" }, { - "name": "FindAllAvailableNSDomainGroupsResponse", - "code": "message FindAllAvailableNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", + "name": "CountAllNSDomainsRequest", + "code": "message CountAllNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 nsDomainGroupId = 4;\n}", + "doc": "计算域名数量" + }, + { + "name": "ListNSDomainsAfterVersionRequest", + "code": "message ListNSDomainsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组域名" + }, + { + "name": "FindNSDomainRequest", + "code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "查找单个域名" + }, + { + "name": "ExistNSDomainsResponse", + "code": "message ExistNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSDomainRequest", + "code": "message CreateNSDomainRequest {\n\tint64 nsClusterId = 1; // 所属集群\n\tint64 userId = 2; // 所属用户\n\tstring name = 3; // 域名\n\trepeated int64 nsDomainGroupIds = 4; // 域名分组ID\n}", + "doc": "创建单个域名" + }, + { + "name": "CreateNSDomainsResponse", + "code": "message CreateNSDomainsResponse {\n\trepeated int64 nsDomainIds = 1;\n}", "doc": "" }, { @@ -13433,30 +13512,20 @@ "code": "message CreateNSDomainGroupRequest {\n\tstring name = 1;\n}", "doc": "创建分组" }, - { - "name": "CreateNSDomainGroupResponse", - "code": "message CreateNSDomainGroupResponse {\n\tint64 nsDomainGroupId = 1;\n}", - "doc": "" - }, - { - "name": "DeleteNSDomainGroupRequest", - "code": "message DeleteNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", - "doc": "删除分组" - }, { "name": "FindAllNSDomainGroupsRequest", "code": "message FindAllNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", "doc": "查询所有分组" }, { - "name": "FindAllNSDomainGroupsResponse", - "code": "message FindAllNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", + "name": "FindAllAvailableNSDomainGroupsResponse", + "code": "message FindAllAvailableNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", "doc": "" }, { - "name": "CountAllAvailableNSDomainGroupsRequest", - "code": "message CountAllAvailableNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", - "doc": "查询可用分组数量" + "name": "FindNSDomainGroupResponse", + "code": "message FindNSDomainGroupResponse {\n\tNSDomainGroup nsDomainGroup = 1;\n}", + "doc": "" }, { "name": "FindAllAvailableNSDomainGroupsRequest", @@ -13468,6 +13537,36 @@ "code": "message FindNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", "doc": "查找单个分组" }, + { + "name": "CreateNSDomainGroupResponse", + "code": "message CreateNSDomainGroupResponse {\n\tint64 nsDomainGroupId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSDomainGroupRequest", + "code": "message UpdateNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改分组" + }, + { + "name": "DeleteNSDomainGroupRequest", + "code": "message DeleteNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", + "doc": "删除分组" + }, + { + "name": "FindAllNSDomainGroupsResponse", + "code": "message FindAllNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", + "doc": "" + }, + { + "name": "CountAllAvailableNSDomainGroupsRequest", + "code": "message CountAllAvailableNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", + "doc": "查询可用分组数量" + }, + { + "name": "ListNSKeysAfterVersionRequest", + "code": "message ListNSKeysAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组密钥" + }, { "name": "ListNSKeysAfterVersionResponse", "code": "message ListNSKeysAfterVersionResponse {\n\trepeated NSKey nsKeys = 1;\n}", @@ -13478,41 +13577,11 @@ "code": "message CreateNSKeyRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tstring name = 3;\n\tstring algo = 4;\n\tstring secret = 5;\n\tstring secretType = 6;\n}", "doc": "创建密钥" }, - { - "name": "CreateNSKeyResponse", - "code": "message CreateNSKeyResponse {\n\tint64 nsKeyId = 1;\n}", - "doc": "" - }, - { - "name": "CountAllNSKeysRequest", - "code": "message CountAllNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n}", - "doc": "计算密钥数量" - }, - { - "name": "ListNSKeysResponse", - "code": "message ListNSKeysResponse {\n\trepeated NSKey nsKeys = 1;\n}", - "doc": "" - }, - { - "name": "ListNSKeysRequest", - "code": "message ListNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页密钥" - }, - { - "name": "ListNSKeysAfterVersionRequest", - "code": "message ListNSKeysAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组密钥" - }, { "name": "UpdateNSKeyRequest", "code": "message UpdateNSKeyRequest {\n\tint64 nsKeyId = 1;\n\tstring name = 2;\n\tstring algo = 3;\n\tstring secret = 4;\n\tstring secretType = 5;\n\tbool isOn = 6;\n}", "doc": "修改密钥" }, - { - "name": "DeleteNSKeyRequest", - "code": "message DeleteNSKeyRequest {\n\tint64 nsKeyId = 1;\n}", - "doc": "删除密钥" - }, { "name": "FindNSKeyRequest", "code": "message FindNSKeyRequest {\n\tint64 nsKeyId = 1;\n}", @@ -13524,24 +13593,34 @@ "doc": "" }, { - "name": "StartNSNodeResponse", - "code": "message StartNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "name": "CountAllNSKeysRequest", + "code": "message CountAllNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n}", + "doc": "计算密钥数量" + }, + { + "name": "ListNSKeysRequest", + "code": "message ListNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页密钥" + }, + { + "name": "CreateNSKeyResponse", + "code": "message CreateNSKeyResponse {\n\tint64 nsKeyId = 1;\n}", "doc": "" }, { - "name": "FindAllNSNodesWithNSClusterIdRequest", - "code": "message FindAllNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "根据集群查找所有节点" + "name": "DeleteNSKeyRequest", + "code": "message DeleteNSKeyRequest {\n\tint64 nsKeyId = 1;\n}", + "doc": "删除密钥" }, { - "name": "InstallNSNodeResponse", - "code": "message InstallNSNodeResponse {\n\n}", + "name": "ListNSKeysResponse", + "code": "message ListNSKeysResponse {\n\trepeated NSKey nsKeys = 1;\n}", "doc": "" }, { - "name": "UpdateNSNodeIsInstalledRequest", - "code": "message UpdateNSNodeIsInstalledRequest {\n\tint64 nsNodeId = 1;\n\tbool isInstalled = 2;\n}", - "doc": "修改节点安装状态" + "name": "ListNSNodesMatchResponse", + "code": "message ListNSNodesMatchResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "doc": "" }, { "name": "DeleteNSNodeRequest", @@ -13549,24 +13628,9 @@ "doc": "删除节点" }, { - "name": "FindNSNodeInstallStatusResponse", - "code": "message FindNSNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSNodeStatusRequest", - "code": "message UpdateNSNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", - "doc": "更新节点状态" - }, - { - "name": "FindNSNodeResponse", - "code": "message FindNSNodeResponse {\n\tNSNode nsNode = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentNSNodeConfigRequest", - "code": "message FindCurrentNSNodeConfigRequest {\n\n}", - "doc": "获取当前节点信息" + "name": "FindNSNodeInstallStatusRequest", + "code": "message FindNSNodeInstallStatusRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "读取节点安装状态" }, { "name": "CheckNSNodeLatestVersionResponse", @@ -13574,9 +13638,34 @@ "doc": "" }, { - "name": "CreateNSNodeRequest", - "code": "message CreateNSNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n}", - "doc": "创建节点" + "name": "FindAllNSNodesWithNSClusterIdResponse", + "code": "message FindAllNSNodesWithNSClusterIdResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "doc": "" + }, + { + "name": "CountAllNSNodesRequest", + "code": "message CountAllNSNodesRequest {\n\n}", + "doc": "所有可用的节点数量" + }, + { + "name": "CountAllNSNodesMatchRequest", + "code": "message CountAllNSNodesMatchRequest {\n\tint64 nsClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\t//int64 nodeGroupId = 5;\n\t//int64 nodeRegionId = 6;\n}", + "doc": "计算匹配的节点数量" + }, + { + "name": "FindNSNodeInstallStatusResponse", + "code": "message FindNSNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNSNodeLoginRequest", + "code": "message UpdateNSNodeLoginRequest {\n\tint64 nsNodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", + "doc": "修改节点登录信息" + }, + { + "name": "FindAllNSNodesWithNSClusterIdRequest", + "code": "message FindAllNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "根据集群查找所有节点" }, { "name": "CreateNSNodeResponse", @@ -13584,23 +13673,28 @@ "doc": "" }, { - "name": "FindNSNodeRequest", - "code": "message FindNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "获取单个节点信息" + "name": "InstallNSNodeRequest", + "code": "message InstallNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "安装节点" }, { - "name": "CheckNSNodeLatestVersionRequest", - "code": "message CheckNSNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", - "doc": "检查新版本" + "name": "UpdateNSNodeIsInstalledRequest", + "code": "message UpdateNSNodeIsInstalledRequest {\n\tint64 nsNodeId = 1;\n\tbool isInstalled = 2;\n}", + "doc": "修改节点安装状态" }, { - "name": "UpdateNSNodeConnectedAPINodesRequest", - "code": "message UpdateNSNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", - "doc": "更改节点连接的API节点信息" + "name": "FindCurrentNSNodeConfigRequest", + "code": "message FindCurrentNSNodeConfigRequest {\n\n}", + "doc": "获取当前节点信息" }, { - "name": "StopNSNodeResponse", - "code": "message StopNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "name": "StartNSNodeRequest", + "code": "message StartNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "启动节点" + }, + { + "name": "InstallNSNodeResponse", + "code": "message InstallNSNodeResponse {\n\n}", "doc": "" }, { @@ -13609,24 +13703,19 @@ "doc": "列出单页节点" }, { - "name": "FindNSNodeInstallStatusRequest", - "code": "message FindNSNodeInstallStatusRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "读取节点安装状态" + "name": "UpdateNSNodeConnectedAPINodesRequest", + "code": "message UpdateNSNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", + "doc": "更改节点连接的API节点信息" }, { - "name": "FindCurrentNSNodeConfigResponse", - "code": "message FindCurrentNSNodeConfigResponse {\n\tbytes nsNodeJSON = 1;\n}", + "name": "StartNSNodeResponse", + "code": "message StartNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", "doc": "" }, { - "name": "DownloadNSNodeInstallationFileResponse", - "code": "message DownloadNSNodeInstallationFileResponse {\n\tbytes chunkData = 1;\n\tstring sum = 2; // 文件的md5sum\n\tint64 offset = 3;\n\tstring version = 4;\n\tstring filename = 5;\n}", - "doc": "" - }, - { - "name": "StartNSNodeRequest", - "code": "message StartNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "启动节点" + "name": "CheckNSNodeLatestVersionRequest", + "code": "message CheckNSNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", + "doc": "检查新版本" }, { "name": "DownloadNSNodeInstallationFileRequest", @@ -13644,28 +13733,33 @@ "doc": "停止节点" }, { - "name": "FindAllNSNodesWithNSClusterIdResponse", - "code": "message FindAllNSNodesWithNSClusterIdResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "name": "StopNSNodeResponse", + "code": "message StopNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", "doc": "" }, + { + "name": "CreateNSNodeRequest", + "code": "message CreateNSNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n}", + "doc": "创建节点" + }, { "name": "UpdateNSNodeRequest", "code": "message UpdateNSNodeRequest {\n\tint64 nsNodeId = 1;\n\tstring name = 2;\n\tint64 nsClusterId = 3;\n\tNodeLogin nodeLogin = 4;\n\tbool isOn = 6;\n}", "doc": "修改节点" }, { - "name": "InstallNSNodeRequest", - "code": "message InstallNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "安装节点" + "name": "DownloadNSNodeInstallationFileResponse", + "code": "message DownloadNSNodeInstallationFileResponse {\n\tbytes chunkData = 1;\n\tstring sum = 2; // 文件的md5sum\n\tint64 offset = 3;\n\tstring version = 4;\n\tstring filename = 5;\n}", + "doc": "" }, { - "name": "CountAllNSNodesMatchRequest", - "code": "message CountAllNSNodesMatchRequest {\n\tint64 nsClusterId = 1;\n\tint32 installState = 2;\n\tint32 activeState = 3;\n\tstring keyword = 4;\n\t//int64 nodeGroupId = 5;\n\t//int64 nodeRegionId = 6;\n}", - "doc": "计算匹配的节点数量" + "name": "UpdateNSNodeStatusRequest", + "code": "message UpdateNSNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新节点状态" }, { - "name": "ListNSNodesMatchResponse", - "code": "message ListNSNodesMatchResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "name": "FindCurrentNSNodeConfigResponse", + "code": "message FindCurrentNSNodeConfigResponse {\n\tbytes nsNodeJSON = 1;\n}", "doc": "" }, { @@ -13674,14 +13768,24 @@ "doc": "计算需要升级的节点数量" }, { - "name": "CountAllNSNodesRequest", - "code": "message CountAllNSNodesRequest {\n\n}", - "doc": "所有可用的节点数量" + "name": "FindNSNodeRequest", + "code": "message FindNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "获取单个节点信息" }, { - "name": "UpdateNSNodeLoginRequest", - "code": "message UpdateNSNodeLoginRequest {\n\tint64 nsNodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", - "doc": "修改节点登录信息" + "name": "FindNSNodeResponse", + "code": "message FindNSNodeResponse {\n\tNSNode nsNode = 1;\n}", + "doc": "" + }, + { + "name": "CreateNSQuestionOptionRequest", + "code": "message CreateNSQuestionOptionRequest {\n\tstring name = 1;\n\tbytes valuesJSON = 2;\n}", + "doc": "创建选项" + }, + { + "name": "CreateNSQuestionOptionResponse", + "code": "message CreateNSQuestionOptionResponse {\n\tint64 nsQuestionOptionId = 1;\n}", + "doc": "" }, { "name": "FindNSQuestionOptionRequest", @@ -13699,13 +13803,38 @@ "doc": "删除选项" }, { - "name": "CreateNSQuestionOptionRequest", - "code": "message CreateNSQuestionOptionRequest {\n\tstring name = 1;\n\tbytes valuesJSON = 2;\n}", - "doc": "创建选项" + "name": "CreateNSRecordRequest", + "code": "message CreateNSRecordRequest {\n\tint64 nsDomainId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\trepeated string nsRouteCodes = 8; // 路线代号\n}", + "doc": "创建记录" }, { - "name": "CreateNSQuestionOptionResponse", - "code": "message CreateNSQuestionOptionResponse {\n\tint64 nsQuestionOptionId = 1;\n}", + "name": "UpdateNSRecordRequest", + "code": "message UpdateNSRecordRequest {\n\tint64 nsRecordId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\tbool isOn = 8;\n\trepeated string nsRouteCodes = 9; // 路线代号\n}", + "doc": "修改记录" + }, + { + "name": "ListNSRecordsRequest", + "code": "message ListNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 7;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "读取单页记录" + }, + { + "name": "FindNSRecordResponse", + "code": "message FindNSRecordResponse {\n\tNSRecord nsRecord = 1;\n}", + "doc": "" + }, + { + "name": "ListNSRecordsAfterVersionResponse", + "code": "message ListNSRecordsAfterVersionResponse {\n\trepeated NSRecord nsRecords = 1;\n}", + "doc": "" + }, + { + "name": "ImportNSRecordsRequest", + "code": "message ImportNSRecordsRequest {\n\trepeated Record nsRecords = 1;\n\n\n\tmessage Record {\n\t\tstring nsDomainName = 1;\n\t\tstring name = 2;\n\t\tstring type = 3;\n\t\tstring value = 4;\n\t\tint32 ttl = 5;\n\t}\n}", + "doc": "导入域名解析" + }, + { + "name": "CreateNSRecordResponse", + "code": "message CreateNSRecordResponse {\n\tint64 nsRecordId = 1;\n}", "doc": "" }, { @@ -13719,14 +13848,29 @@ "doc": "批量删除一组域名的一组记录" }, { - "name": "UpdateNSRecordsIsOnWithDomainNamesRequest", - "code": "message UpdateNSRecordsIsOnWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tbool isOn = 6;\n}", - "doc": "批量一组域名的一组记录启用状态" + "name": "CountAllNSRecordsRequest", + "code": "message CountAllNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 5;\n\tstring keyword = 4;\n}", + "doc": "计算记录数量" }, { - "name": "UpdateNSRecordRequest", - "code": "message UpdateNSRecordRequest {\n\tint64 nsRecordId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\tbool isOn = 8;\n\trepeated string nsRouteCodes = 9; // 路线代号\n}", - "doc": "修改记录" + "name": "FindNSRecordRequest", + "code": "message FindNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", + "doc": "查询单个记录信息" + }, + { + "name": "DeleteNSRecordRequest", + "code": "message DeleteNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", + "doc": "删除记录" + }, + { + "name": "ListNSRecordsResponse", + "code": "message ListNSRecordsResponse {\n\trepeated NSRecord nsRecords = 1;\n}", + "doc": "" + }, + { + "name": "ListNSRecordsAfterVersionRequest", + "code": "message ListNSRecordsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组记录" }, { "name": "CreateNSRecordsRequest", @@ -13738,71 +13882,26 @@ "code": "message CreateNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tbytes recordsJSON = 2;\n\tbool removeOld = 3;\n\tbool removeAll = 4;\n}", "doc": "为一组域名批量创建记录" }, - { - "name": "ListNSRecordsRequest", - "code": "message ListNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 7;\n\tstring keyword = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "读取单页记录" - }, - { - "name": "ListNSRecordsResponse", - "code": "message ListNSRecordsResponse {\n\trepeated NSRecord nsRecords = 1;\n}", - "doc": "" - }, - { - "name": "ImportNSRecordsRequest", - "code": "message ImportNSRecordsRequest {\n\trepeated Record nsRecords = 1;\n\n\n\tmessage Record {\n\t\tstring nsDomainName = 1;\n\t\tstring name = 2;\n\t\tstring type = 3;\n\t\tstring value = 4;\n\t\tint32 ttl = 5;\n\t}\n}", - "doc": "导入域名解析" - }, - { - "name": "CreateNSRecordRequest", - "code": "message CreateNSRecordRequest {\n\tint64 nsDomainId = 1;\n\tstring description = 2;\n\tstring name = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated int64 nsRouteIds = 7 [deprecated = true];\n\trepeated string nsRouteCodes = 8; // 路线代号\n}", - "doc": "创建记录" - }, - { - "name": "CreateNSRecordResponse", - "code": "message CreateNSRecordResponse {\n\tint64 nsRecordId = 1;\n}", - "doc": "" - }, - { - "name": "FindNSRecordRequest", - "code": "message FindNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", - "doc": "查询单个记录信息" - }, { "name": "UpdateNSRecordsWithDomainNamesRequest", "code": "message UpdateNSRecordsWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tstring newName = 6;\n\tstring newValue = 7;\n\tstring newType = 8;\n\trepeated string newNSRouteCodes = 9;\n}", "doc": "批量修改一组域名的一组记录" }, { - "name": "DeleteNSRecordRequest", - "code": "message DeleteNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", - "doc": "删除记录" - }, - { - "name": "CountAllNSRecordsRequest", - "code": "message CountAllNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 5;\n\tstring keyword = 4;\n}", - "doc": "计算记录数量" - }, - { - "name": "FindNSRecordResponse", - "code": "message FindNSRecordResponse {\n\tNSRecord nsRecord = 1;\n}", - "doc": "" - }, - { - "name": "ListNSRecordsAfterVersionRequest", - "code": "message ListNSRecordsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", - "doc": "根据版本列出一组记录" - }, - { - "name": "ListNSRecordsAfterVersionResponse", - "code": "message ListNSRecordsAfterVersionResponse {\n\trepeated NSRecord nsRecords = 1;\n}", - "doc": "" + "name": "UpdateNSRecordsIsOnWithDomainNamesRequest", + "code": "message UpdateNSRecordsIsOnWithDomainNamesRequest {\n\trepeated string nsDomainNames = 1;\n\tstring searchName = 2;\n\tstring searchValue = 3;\n\tstring searchType = 4;\n\trepeated string searchNSRouteCodes = 5;\n\tbool isOn = 6;\n}", + "doc": "批量一组域名的一组记录启用状态" }, { "name": "UploadNSRecordHourlyStatsRequest", "code": "message UploadNSRecordHourlyStatsRequest {\n\trepeated NSRecordHourlyStat stats = 1;\n}", "doc": "上传统计" }, + { + "name": "ListNSRoutesAfterVersionResponse", + "code": "message ListNSRoutesAfterVersionResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "doc": "" + }, { "name": "CreateNSRouteRequest", "code": "message CreateNSRouteRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n\tstring name = 4;\n\tbytes rangesJSON = 5;\n}", @@ -13814,9 +13913,14 @@ "doc": "" }, { - "name": "FindNSRouteRequest", - "code": "message FindNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", - "doc": "获取单个路线信息" + "name": "UpdateNSRouteRequest", + "code": "message UpdateNSRouteRequest {\n\tint64 nsRouteId = 1;\n\tstring name = 2;\n\tbytes rangesJSON = 3;\n}", + "doc": "修改线路" + }, + { + "name": "DeleteNSRouteRequest", + "code": "message DeleteNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", + "doc": "删除线路" }, { "name": "FindAllNSRoutesRequest", @@ -13828,6 +13932,16 @@ "code": "message FindAllNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", "doc": "" }, + { + "name": "FindNSRouteRequest", + "code": "message FindNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", + "doc": "获取单个路线信息" + }, + { + "name": "FindNSRouteResponse", + "code": "message FindNSRouteResponse {\n\tNSRoute nsRoute = 1;\n}", + "doc": "" + }, { "name": "UpdateNSRouteOrdersRequest", "code": "message UpdateNSRouteOrdersRequest {\n\trepeated int64 nsRouteIds = 1;\n}", @@ -13839,23 +13953,8 @@ "doc": "根据版本列出一组线路" }, { - "name": "UpdateNSRouteRequest", - "code": "message UpdateNSRouteRequest {\n\tint64 nsRouteId = 1;\n\tstring name = 2;\n\tbytes rangesJSON = 3;\n}", - "doc": "修改线路" - }, - { - "name": "DeleteNSRouteRequest", - "code": "message DeleteNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", - "doc": "删除线路" - }, - { - "name": "FindNSRouteResponse", - "code": "message FindNSRouteResponse {\n\tNSRoute nsRoute = 1;\n}", - "doc": "" - }, - { - "name": "ListNSRoutesAfterVersionResponse", - "code": "message ListNSRoutesAfterVersionResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "name": "FindEnabledOrderMethodWithCodeResponse", + "code": "message FindEnabledOrderMethodWithCodeResponse {\n\tOrderMethod orderMethod = 1;\n}", "doc": "" }, { @@ -13873,15 +13972,35 @@ "code": "message FindAllAvailableOrderMethodsRequest {\n\n}", "doc": "查找所有已启用的支付方式" }, + { + "name": "CreateOrderMethodRequest", + "code": "message CreateOrderMethodRequest {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n\tstring url = 4;\n}", + "doc": "创建支付方式" + }, + { + "name": "FindEnabledOrderMethodRequest", + "code": "message FindEnabledOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", + "doc": "查找单个支付方式" + }, + { + "name": "FindEnabledOrderMethodWithCodeRequest", + "code": "message FindEnabledOrderMethodWithCodeRequest {\n\tstring code = 1;\n}", + "doc": "根据代号查找支付方式" + }, + { + "name": "FindEnabledOrderMethodResponse", + "code": "message FindEnabledOrderMethodResponse {\n\tOrderMethod orderMethod = 1;\n}", + "doc": "" + }, { "name": "FindAllAvailableOrderMethodsResponse", "code": "message FindAllAvailableOrderMethodsResponse {\n\trepeated OrderMethod orderMethods = 1;\n}", "doc": "" }, { - "name": "CreateOrderMethodRequest", - "code": "message CreateOrderMethodRequest {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 3;\n\tstring url = 4;\n}", - "doc": "创建支付方式" + "name": "CreateOrderMethodResponse", + "code": "message CreateOrderMethodResponse {\n\tint64 orderMethodId = 1;\n}", + "doc": "" }, { "name": "UpdateOrderMethodRequest", @@ -13893,41 +14012,6 @@ "code": "message DeleteOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", "doc": "删除支付方式" }, - { - "name": "FindEnabledOrderMethodRequest", - "code": "message FindEnabledOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", - "doc": "查找单个支付方式" - }, - { - "name": "CreateOrderMethodResponse", - "code": "message CreateOrderMethodResponse {\n\tint64 orderMethodId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledOrderMethodResponse", - "code": "message FindEnabledOrderMethodResponse {\n\tOrderMethod orderMethod = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledOrderMethodWithCodeRequest", - "code": "message FindEnabledOrderMethodWithCodeRequest {\n\tstring code = 1;\n}", - "doc": "根据代号查找支付方式" - }, - { - "name": "FindEnabledOrderMethodWithCodeResponse", - "code": "message FindEnabledOrderMethodWithCodeResponse {\n\tOrderMethod orderMethod = 1;\n}", - "doc": "" - }, - { - "name": "CreateOriginResponse", - "code": "message CreateOriginResponse {\n\tint64 originId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateOriginRequest", - "code": "message UpdateOriginRequest {\n\tint64 originId = 1;\n\tstring name = 2;\n\tNetworkAddress addr = 3;\n\tstring description = 4;\n\tint32 weight = 5;\n\tbool isOn = 6;\n\tbytes connTimeoutJSON = 7;\n\tbytes readTimeoutJSON = 8;\n\tbytes idleTimeoutJSON = 9;\n\tint32 maxConns = 10;\n\tint32 maxIdleConns = 11;\n\trepeated string domains = 12;\n\tbytes certRefJSON = 13;\n\tstring host = 14;\n\tbool followPort = 15;\n}", - "doc": "修改源站" - }, { "name": "FindEnabledOriginRequest", "code": "message FindEnabledOriginRequest {\n\tint64 originId = 1;\n}", @@ -13954,20 +14038,50 @@ "doc": "创建源站" }, { - "name": "CreatePlanRequest", - "code": "message CreatePlanRequest {\n\tstring name = 1;\n\tint64 clusterId = 2;\n\tbytes trafficLimitJSON = 3;\n\tbytes featuresJSON = 4;\n\tstring priceType = 5;\n\tbytes trafficPriceJSON = 6;\n\tbytes bandwidthPriceJSON = 10;\n\tfloat monthlyPrice = 7;\n\tfloat seasonallyPrice = 8;\n\tfloat yearlyPrice = 9;\n}", - "doc": "创建套餐" + "name": "CreateOriginResponse", + "code": "message CreateOriginResponse {\n\tint64 originId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateOriginRequest", + "code": "message UpdateOriginRequest {\n\tint64 originId = 1;\n\tstring name = 2;\n\tNetworkAddress addr = 3;\n\tstring description = 4;\n\tint32 weight = 5;\n\tbool isOn = 6;\n\tbytes connTimeoutJSON = 7;\n\tbytes readTimeoutJSON = 8;\n\tbytes idleTimeoutJSON = 9;\n\tint32 maxConns = 10;\n\tint32 maxIdleConns = 11;\n\trepeated string domains = 12;\n\tbytes certRefJSON = 13;\n\tstring host = 14;\n\tbool followPort = 15;\n}", + "doc": "修改源站" + }, + { + "name": "UpdatePlanRequest", + "code": "message UpdatePlanRequest {\n\tint64 planId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 clusterId = 4;\n\tbytes trafficLimitJSON = 5;\n\tbytes featuresJSON = 6;\n\tstring priceType = 7;\n\tbytes trafficPriceJSON = 8;\n\tbytes bandwidthPriceJSON = 12;\n\tfloat monthlyPrice = 9;\n\tfloat seasonallyPrice = 10;\n\tfloat yearlyPrice = 11;\n}", + "doc": "修改套餐" + }, + { + "name": "DeletePlanRequest", + "code": "message DeletePlanRequest {\n\tint64 planId = 1;\n}", + "doc": "删除套餐" }, { "name": "FindEnabledPlanRequest", "code": "message FindEnabledPlanRequest {\n\tint64 planId = 1;\n}", "doc": "查找单个套餐" }, + { + "name": "FindEnabledPlanResponse", + "code": "message FindEnabledPlanResponse {\n\tPlan plan = 1;\n}", + "doc": "" + }, { "name": "ListEnabledPlansRequest", "code": "message ListEnabledPlansRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页套餐" }, + { + "name": "CreatePlanRequest", + "code": "message CreatePlanRequest {\n\tstring name = 1;\n\tint64 clusterId = 2;\n\tbytes trafficLimitJSON = 3;\n\tbytes featuresJSON = 4;\n\tstring priceType = 5;\n\tbytes trafficPriceJSON = 6;\n\tbytes bandwidthPriceJSON = 10;\n\tfloat monthlyPrice = 7;\n\tfloat seasonallyPrice = 8;\n\tfloat yearlyPrice = 9;\n}", + "doc": "创建套餐" + }, + { + "name": "CreatePlanResponse", + "code": "message CreatePlanResponse {\n\tint64 planId = 1;\n}", + "doc": "" + }, { "name": "CountAllEnabledPlansRequest", "code": "message CountAllEnabledPlansRequest {\n\n}", @@ -13983,26 +14097,6 @@ "code": "message SortPlansRequest {\n\trepeated int64 planIds = 1;\n}", "doc": "对套餐进行排序" }, - { - "name": "CreatePlanResponse", - "code": "message CreatePlanResponse {\n\tint64 planId = 1;\n}", - "doc": "" - }, - { - "name": "UpdatePlanRequest", - "code": "message UpdatePlanRequest {\n\tint64 planId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 clusterId = 4;\n\tbytes trafficLimitJSON = 5;\n\tbytes featuresJSON = 6;\n\tstring priceType = 7;\n\tbytes trafficPriceJSON = 8;\n\tbytes bandwidthPriceJSON = 12;\n\tfloat monthlyPrice = 9;\n\tfloat seasonallyPrice = 10;\n\tfloat yearlyPrice = 11;\n}", - "doc": "修改套餐" - }, - { - "name": "DeletePlanRequest", - "code": "message DeletePlanRequest {\n\tint64 planId = 1;\n}", - "doc": "删除套餐" - }, - { - "name": "FindEnabledPlanResponse", - "code": "message FindEnabledPlanResponse {\n\tPlan plan = 1;\n}", - "doc": "" - }, { "name": "FindAllEnabledRegionCitiesResponse", "code": "message FindAllEnabledRegionCitiesResponse {\n\trepeated RegionCity regionCities = 1;\n}", @@ -14018,11 +14112,46 @@ "code": "message FindEnabledRegionCityResponse {\n\tRegionCity regionCity = 1;\n}", "doc": "" }, + { + "name": "FindAllRegionCitiesResponse", + "code": "message FindAllRegionCitiesResponse {\n\trepeated RegionCity regionCities = 1;\n}", + "doc": "" + }, + { + "name": "FindAllRegionCitiesWithRegionProvinceIdRequest", + "code": "message FindAllRegionCitiesWithRegionProvinceIdRequest {\n\tint64 regionProvinceId = 1;\n}", + "doc": "查找某个省份的所有城市" + }, + { + "name": "FindAllRegionCitiesWithRegionProvinceIdResponse", + "code": "message FindAllRegionCitiesWithRegionProvinceIdResponse {\n\trepeated RegionCity regionCities = 1;\n}", + "doc": "" + }, + { + "name": "FindRegionCityResponse", + "code": "message FindRegionCityResponse {\n\tRegionCity regionCity = 1;\n}", + "doc": "" + }, + { + "name": "UpdateRegionCityCustomRequest", + "code": "message UpdateRegionCityCustomRequest {\n\tint64 regionCityId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", + "doc": "修改城市定制信息" + }, { "name": "FindAllEnabledRegionCitiesRequest", "code": "message FindAllEnabledRegionCitiesRequest {\n\tbool includeRegionProvince = 1;\n}", "doc": "查找所有城市" }, + { + "name": "FindAllRegionCitiesRequest", + "code": "message FindAllRegionCitiesRequest {\n\tbool includeRegionProvince = 1;\n}", + "doc": "查找所有城市" + }, + { + "name": "FindRegionCityRequest", + "code": "message FindRegionCityRequest {\n\tint64 regionCityId = 1;\n}", + "doc": "查找单个城市信息" + }, { "name": "FindAllEnabledRegionCountriesResponse", "code": "message FindAllEnabledRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", @@ -14031,23 +14160,73 @@ { "name": "FindEnabledRegionCountryRequest", "code": "message FindEnabledRegionCountryRequest {\n\tint64 regionCountryId = 1;\n}", - "doc": "查找单个国家信息" + "doc": "查找单个国家/地区信息" }, { "name": "FindEnabledRegionCountryResponse", "code": "message FindEnabledRegionCountryResponse {\n\tRegionCountry regionCountry = 1;\n}", "doc": "" }, + { + "name": "FindAllRegionCountriesResponse", + "code": "message FindAllRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", + "doc": "" + }, + { + "name": "FindRegionCountryRequest", + "code": "message FindRegionCountryRequest {\n\tint64 regionCountryId = 1;\n}", + "doc": "查找单个国家/地区信息" + }, { "name": "FindAllEnabledRegionCountriesRequest", "code": "message FindAllEnabledRegionCountriesRequest {\n\n}", - "doc": "查找所有的国家列表" + "doc": "查找所有的国家/地区列表" + }, + { + "name": "FindAllRegionCountriesRequest", + "code": "message FindAllRegionCountriesRequest {\n\n}", + "doc": "查找所有的国家/地区列表" + }, + { + "name": "FindRegionCountryResponse", + "code": "message FindRegionCountryResponse {\n\tRegionCountry regionCountry = 1;\n}", + "doc": "" + }, + { + "name": "UpdateRegionCountryCustomRequest", + "code": "message UpdateRegionCountryCustomRequest {\n\tint64 regionCountryId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", + "doc": "修改国家/地区定制信息" + }, + { + "name": "FindAllRegionProvidersResponse", + "code": "message FindAllRegionProvidersResponse {\n\trepeated RegionProvider regionProviders = 1;\n}", + "doc": "" + }, + { + "name": "FindRegionProviderRequest", + "code": "message FindRegionProviderRequest {\n\tint64 regionProviderId = 1;\n}", + "doc": "查找单个ISP信息" }, { "name": "FindAllEnabledRegionProvidersRequest", "code": "message FindAllEnabledRegionProvidersRequest {\n\n}", "doc": "查找所有ISP" }, + { + "name": "FindEnabledRegionProviderResponse", + "code": "message FindEnabledRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", + "doc": "" + }, + { + "name": "FindAllRegionProvidersRequest", + "code": "message FindAllRegionProvidersRequest {\n\n}", + "doc": "查找所有ISP" + }, + { + "name": "UpdateRegionProviderCustomRequest", + "code": "message UpdateRegionProviderCustomRequest {\n\tint64 regionProviderId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", + "doc": "修改ISP定制信息" + }, { "name": "FindAllEnabledRegionProvidersResponse", "code": "message FindAllEnabledRegionProvidersResponse {\n\trepeated RegionProvider regionProviders = 1;\n}", @@ -14059,10 +14238,45 @@ "doc": "查找单个ISP信息" }, { - "name": "FindEnabledRegionProviderResponse", - "code": "message FindEnabledRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", + "name": "FindRegionProviderResponse", + "code": "message FindRegionProviderResponse {\n\tRegionProvider regionProvider = 1;\n}", "doc": "" }, + { + "name": "FindAllRegionProvincesWithRegionCountryIdResponse", + "code": "message FindAllRegionProvincesWithRegionCountryIdResponse {\n\trepeated RegionProvince regionProvinces = 1;\n}", + "doc": "" + }, + { + "name": "FindRegionProvinceResponse", + "code": "message FindRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledRegionProvinceResponse", + "code": "message FindEnabledRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", + "doc": "" + }, + { + "name": "FindAllRegionProvincesWithRegionCountryIdRequest", + "code": "message FindAllRegionProvincesWithRegionCountryIdRequest {\n\tint64 regionCountryId = 1;\n}", + "doc": "查找所有省份" + }, + { + "name": "FindEnabledRegionProvinceRequest", + "code": "message FindEnabledRegionProvinceRequest {\n\tint64 regionProvinceId = 1;\n}", + "doc": "查找单个省份信息" + }, + { + "name": "FindRegionProvinceRequest", + "code": "message FindRegionProvinceRequest {\n\tint64 regionProvinceId = 1;\n}", + "doc": "查找单个省份信息" + }, + { + "name": "UpdateRegionProvinceCustomRequest", + "code": "message UpdateRegionProvinceCustomRequest {\n\tint64 regionProvinceId = 1;\n\tstring customName = 2;\n\trepeated string customCodes = 3;\n}", + "doc": "修改省份定制信息" + }, { "name": "FindAllEnabledRegionProvincesWithCountryIdRequest", "code": "message FindAllEnabledRegionProvincesWithCountryIdRequest {\n\tint64 regionCountryId = 1;\n}", @@ -14074,18 +14288,18 @@ "doc": "" }, { - "name": "FindEnabledRegionProvinceRequest", - "code": "message FindEnabledRegionProvinceRequest {\n\tint64 regionProvinceId = 1;\n}", - "doc": "查找单个省份信息" - }, - { - "name": "FindEnabledRegionProvinceResponse", - "code": "message FindEnabledRegionProvinceResponse {\n\tRegionProvince regionProvince = 1;\n}", + "name": "CreateReportNodeResponse", + "code": "message CreateReportNodeResponse {\n\tint64 reportNodeId = 1;\n}", "doc": "" }, { - "name": "FindEnabledReportNodeResponse", - "code": "message FindEnabledReportNodeResponse {\n\tReportNode reportNode = 1;\n}", + "name": "FindEnabledReportNodeRequest", + "code": "message FindEnabledReportNodeRequest{\n\tint64 reportNodeId = 1;\n}", + "doc": "查找单个终端" + }, + { + "name": "FindCurrentReportNodeConfigResponse", + "code": "message FindCurrentReportNodeConfigResponse {\n\tbytes reportNodeJSON = 1;\n}", "doc": "" }, { @@ -14093,51 +14307,21 @@ "code": "message FindReportNodeTasksRequest {\n\n}", "doc": "读取任务" }, - { - "name": "FindLatestReportNodeVersionResponse", - "code": "message FindLatestReportNodeVersionResponse {\n\tstring version = 1;\n}", - "doc": "" - }, { "name": "ListReportNodeTasksRequest", "code": "message ListReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", "doc": "列出单页任务" }, { - "name": "ListReportNodeTasksResponse", - "code": "message ListReportNodeTasksResponse {\n\trepeated IPAddrReportTask ipAddrReportTasks = 1;\n}", - "doc": "" + "name": "UpdateReportNodeGlobalSetting", + "code": "message UpdateReportNodeGlobalSetting {\n\tbytes settingJSON = 1;\n}", + "doc": "修改全局设置" }, { "name": "CreateReportNodeRequest", "code": "message CreateReportNodeRequest {\n\tstring name = 1;\n\tstring location = 2;\n\tstring isp = 3;\n\trepeated string allowIPs = 4;\n\trepeated int64 reportNodeGroupIds = 5;\n}", "doc": "添加终端" }, - { - "name": "CountAllEnabledReportNodesRequest", - "code": "message CountAllEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 2;\n}", - "doc": "计算终端数量" - }, - { - "name": "ListEnabledReportNodesResponse", - "code": "message ListEnabledReportNodesResponse {\n\trepeated ReportNode reportNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentReportNodeConfigRequest", - "code": "message FindCurrentReportNodeConfigRequest {\n\n}", - "doc": "获取当前节点信息" - }, - { - "name": "FindLatestReportNodeVersionRequest", - "code": "message FindLatestReportNodeVersionRequest {\n\n}", - "doc": "取得最新的版本号" - }, - { - "name": "CountAllReportNodeTasksRequest", - "code": "message CountAllReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", - "doc": "计算任务数量" - }, { "name": "DeleteReportNodeRequest", "code": "message DeleteReportNodeRequest {\n\tint64 reportNodeId = 1;\n}", @@ -14149,59 +14333,69 @@ "doc": "修改终端" }, { - "name": "ReportNodeStreamMessage", - "code": "message ReportNodeStreamMessage {\n\tint64 reportNodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", - "doc": "终端stream" - }, - { - "name": "FindCurrentReportNodeConfigResponse", - "code": "message FindCurrentReportNodeConfigResponse {\n\tbytes reportNodeJSON = 1;\n}", + "name": "ListEnabledReportNodesResponse", + "code": "message ListEnabledReportNodesResponse {\n\trepeated ReportNode reportNodes = 1;\n}", "doc": "" }, { - "name": "FindReportNodeTasksResponse", - "code": "message FindReportNodeTasksResponse {\n\tbytes ipAddrTasksJSON = 1;\n}", - "doc": "" + "name": "UpdateReportNodeStatusRequest", + "code": "message UpdateReportNodeStatusRequest {\n\tbytes statusJSON = 1;\n}", + "doc": "更新节点状态" + }, + { + "name": "CountAllReportNodeTasksRequest", + "code": "message CountAllReportNodeTasksRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tstring type = 3;\n}", + "doc": "计算任务数量" }, { "name": "ReadReportNodeGlobalSettingResponse", "code": "message ReadReportNodeGlobalSettingResponse {\n\tbytes settingJSON = 1;\n}", "doc": "" }, - { - "name": "CreateReportNodeResponse", - "code": "message CreateReportNodeResponse {\n\tint64 reportNodeId = 1;\n}", - "doc": "" - }, { "name": "ListEnabledReportNodesRequest", "code": "message ListEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 4;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", "doc": "列出单页终端" }, { - "name": "UpdateReportNodeGlobalSetting", - "code": "message UpdateReportNodeGlobalSetting {\n\tbytes settingJSON = 1;\n}", - "doc": "修改全局设置" + "name": "FindCurrentReportNodeConfigRequest", + "code": "message FindCurrentReportNodeConfigRequest {\n\n}", + "doc": "获取当前节点信息" }, { - "name": "FindEnabledReportNodeRequest", - "code": "message FindEnabledReportNodeRequest{\n\tint64 reportNodeId = 1;\n}", - "doc": "查找单个终端" + "name": "FindLatestReportNodeVersionRequest", + "code": "message FindLatestReportNodeVersionRequest {\n\n}", + "doc": "取得最新的版本号" }, { - "name": "UpdateReportNodeStatusRequest", - "code": "message UpdateReportNodeStatusRequest {\n\tbytes statusJSON = 1;\n}", - "doc": "更新节点状态" - }, - { - "name": "FindEnabledReportNodeGroupResponse", - "code": "message FindEnabledReportNodeGroupResponse {\n\tReportNodeGroup reportNodeGroup = 1;\n}", + "name": "FindLatestReportNodeVersionResponse", + "code": "message FindLatestReportNodeVersionResponse {\n\tstring version = 1;\n}", "doc": "" }, { - "name": "CountAllEnabledReportNodeGroupsRequest", - "code": "message CountAllEnabledReportNodeGroupsRequest {\n\n}", - "doc": "计算所有分组数量" + "name": "ListReportNodeTasksResponse", + "code": "message ListReportNodeTasksResponse {\n\trepeated IPAddrReportTask ipAddrReportTasks = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledReportNodesRequest", + "code": "message CountAllEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 2;\n}", + "doc": "计算终端数量" + }, + { + "name": "FindEnabledReportNodeResponse", + "code": "message FindEnabledReportNodeResponse {\n\tReportNode reportNode = 1;\n}", + "doc": "" + }, + { + "name": "ReportNodeStreamMessage", + "code": "message ReportNodeStreamMessage {\n\tint64 reportNodeId = 1;\n\tint64 requestId = 2;\n\tint32 timeoutSeconds = 3;\n\tstring code = 4;\n\tbytes dataJSON = 5;\n\tbool isOk = 6;\n\tstring message = 7;\n}", + "doc": "终端stream" + }, + { + "name": "FindReportNodeTasksResponse", + "code": "message FindReportNodeTasksResponse {\n\tbytes ipAddrTasksJSON = 1;\n}", + "doc": "" }, { "name": "CreateReportNodeGroupRequest", @@ -14209,33 +14403,43 @@ "doc": "创建分组" }, { - "name": "CreateReportNodeGroupResponse", - "code": "message CreateReportNodeGroupResponse {\n\tint64 reportNodeGroupId = 1;\n}", - "doc": "" + "name": "DeleteReportNodeGroupRequest", + "code": "message DeleteReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", + "doc": "删除分组" }, { "name": "FindAllEnabledReportNodeGroupsRequest", "code": "message FindAllEnabledReportNodeGroupsRequest {\n\n}", "doc": "查找所有分组" }, + { + "name": "FindAllEnabledReportNodeGroupsResponse", + "code": "message FindAllEnabledReportNodeGroupsResponse {\n\trepeated ReportNodeGroup reportNodeGroups = 1;\n}", + "doc": "" + }, { "name": "FindEnabledReportNodeGroupRequest", "code": "message FindEnabledReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", "doc": "查找单个分组" }, + { + "name": "CountAllEnabledReportNodeGroupsRequest", + "code": "message CountAllEnabledReportNodeGroupsRequest {\n\n}", + "doc": "计算所有分组数量" + }, + { + "name": "CreateReportNodeGroupResponse", + "code": "message CreateReportNodeGroupResponse {\n\tint64 reportNodeGroupId = 1;\n}", + "doc": "" + }, { "name": "UpdateReportNodeGroupRequest", "code": "message UpdateReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n\tstring name = 2;\n}", "doc": "修改分组" }, { - "name": "DeleteReportNodeGroupRequest", - "code": "message DeleteReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", - "doc": "删除分组" - }, - { - "name": "FindAllEnabledReportNodeGroupsResponse", - "code": "message FindAllEnabledReportNodeGroupsResponse {\n\trepeated ReportNodeGroup reportNodeGroups = 1;\n}", + "name": "FindEnabledReportNodeGroupResponse", + "code": "message FindEnabledReportNodeGroupResponse {\n\tReportNodeGroup reportNodeGroup = 1;\n}", "doc": "" }, { @@ -14268,16 +14472,6 @@ "code": "message FindAllReportResultsResponse {\n\trepeated ReportResult reportResults = 1;\n}", "doc": "" }, - { - "name": "UpdateReverseProxyRequest", - "code": "message UpdateReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n\tint32 requestHostType = 6;\n\tstring requestHost = 2;\n\tbool requestHostExcludingPort = 15;\n\tstring requestURI = 3;\n\tstring stripPrefix = 4;\n\tbool autoFlush = 5;\n\trepeated string addHeaders = 7;\n\tbytes connTimeoutJSON = 8;\n\tbytes readTimeoutJSON = 9;\n\tbytes idleTimeoutJSON = 10;\n\tint32 maxConns = 11;\n\tint32 maxIdleConns = 12;\n\tbytes proxyProtocolJSON = 13;\n\tbool followRedirects = 14;\n}", - "doc": "修改反向代理设置" - }, - { - "name": "FindEnabledReverseProxyRequest", - "code": "message FindEnabledReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n}", - "doc": "查找反向代理" - }, { "name": "FindEnabledReverseProxyResponse", "code": "message FindEnabledReverseProxyResponse {\n\tReverseProxy reverseProxy = 1;\n}", @@ -14289,9 +14483,9 @@ "doc": "" }, { - "name": "UpdateReverseProxyPrimaryOriginsRequest", - "code": "message UpdateReverseProxyPrimaryOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", - "doc": "修改主要源站信息" + "name": "UpdateReverseProxySchedulingRequest", + "code": "message UpdateReverseProxySchedulingRequest {\n\tint64 reverseProxyId = 1;\n\tbytes schedulingJSON = 2;\n}", + "doc": "修改反向代理调度算法" }, { "name": "UpdateReverseProxyBackupOriginsRequest", @@ -14299,9 +14493,9 @@ "doc": "修改备用源站信息" }, { - "name": "CreateReverseProxyRequest", - "code": "message CreateReverseProxyRequest {\n\tbytes schedulingJSON = 1;\n\tbytes primaryOriginsJSON = 2;\n\tbytes backupOriginsJSON = 3;\n}", - "doc": "创建反向代理" + "name": "FindEnabledReverseProxyRequest", + "code": "message FindEnabledReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n}", + "doc": "查找反向代理" }, { "name": "CreateReverseProxyResponse", @@ -14314,39 +14508,24 @@ "doc": "查找反向代理配置" }, { - "name": "UpdateReverseProxySchedulingRequest", - "code": "message UpdateReverseProxySchedulingRequest {\n\tint64 reverseProxyId = 1;\n\tbytes schedulingJSON = 2;\n}", - "doc": "修改反向代理调度算法" + "name": "UpdateReverseProxyPrimaryOriginsRequest", + "code": "message UpdateReverseProxyPrimaryOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", + "doc": "修改主要源站信息" }, { - "name": "ListEnabledScriptsResponse", - "code": "message ListEnabledScriptsResponse {\n\trepeated Script scripts = 1;\n}", - "doc": "" + "name": "UpdateReverseProxyRequest", + "code": "message UpdateReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n\tint32 requestHostType = 6;\n\tstring requestHost = 2;\n\tbool requestHostExcludingPort = 15;\n\tstring requestURI = 3;\n\tstring stripPrefix = 4;\n\tbool autoFlush = 5;\n\trepeated string addHeaders = 7;\n\tbytes connTimeoutJSON = 8;\n\tbytes readTimeoutJSON = 9;\n\tbytes idleTimeoutJSON = 10;\n\tint32 maxConns = 11;\n\tint32 maxIdleConns = 12;\n\tbytes proxyProtocolJSON = 13;\n\tbool followRedirects = 14;\n}", + "doc": "修改反向代理设置" }, { - "name": "CheckScriptUpdatesResponse", - "code": "message CheckScriptUpdatesResponse {\n\tbool hasUpdates = 1;\n\tint64 version = 2;\n}", - "doc": "" + "name": "CreateReverseProxyRequest", + "code": "message CreateReverseProxyRequest {\n\tbytes schedulingJSON = 1;\n\tbytes primaryOriginsJSON = 2;\n\tbytes backupOriginsJSON = 3;\n}", + "doc": "创建反向代理" }, { - "name": "FindEnabledScriptRequest", - "code": "message FindEnabledScriptRequest {\n\tint64 scriptId = 1;\n}", - "doc": "查找单个脚本" - }, - { - "name": "DeleteScriptRequest", - "code": "message DeleteScriptRequest {\n\tint64 scriptId = 1;\n}", - "doc": "删除脚本" - }, - { - "name": "CountAllEnabledScriptsRequest", - "code": "message CountAllEnabledScriptsRequest {\n\tint64 userId = 1;\n}", - "doc": "计算脚本数量" - }, - { - "name": "PublishScriptsRequest", - "code": "message PublishScriptsRequest {\n\tint64 userId = 1;\n}", - "doc": "发布脚本" + "name": "ListEnabledScriptsRequest", + "code": "message ListEnabledScriptsRequest {\n\tint64 userId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页脚本" }, { "name": "CheckScriptUpdatesRequest", @@ -14354,8 +14533,8 @@ "doc": "检查脚本是否需要有更新" }, { - "name": "FindEnabledScriptResponse", - "code": "message FindEnabledScriptResponse {\n\tScript script = 1;\n}", + "name": "CheckScriptUpdatesResponse", + "code": "message CheckScriptUpdatesResponse {\n\tbool hasUpdates = 1;\n\tint64 version = 2;\n}", "doc": "" }, { @@ -14364,14 +14543,14 @@ "doc": "添加脚本" }, { - "name": "CreateScriptResponse", - "code": "message CreateScriptResponse {\n\tint64 scriptId = 1;\n}", - "doc": "" + "name": "DeleteScriptRequest", + "code": "message DeleteScriptRequest {\n\tint64 scriptId = 1;\n}", + "doc": "删除脚本" }, { - "name": "ListEnabledScriptsRequest", - "code": "message ListEnabledScriptsRequest {\n\tint64 userId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页脚本" + "name": "FindEnabledScriptRequest", + "code": "message FindEnabledScriptRequest {\n\tint64 scriptId = 1;\n}", + "doc": "查找单个脚本" }, { "name": "UpdateScriptRequest", @@ -14383,144 +14562,59 @@ "code": "message ComposeScriptConfigsRequest {\n\n}", "doc": "组合脚本配置" }, + { + "name": "CountAllEnabledScriptsRequest", + "code": "message CountAllEnabledScriptsRequest {\n\tint64 userId = 1;\n}", + "doc": "计算脚本数量" + }, + { + "name": "ListEnabledScriptsResponse", + "code": "message ListEnabledScriptsResponse {\n\trepeated Script scripts = 1;\n}", + "doc": "" + }, { "name": "ComposeScriptConfigsResponse", "code": "message ComposeScriptConfigsResponse {\n\tbytes scriptConfigsJSON = 1;\n}", "doc": "" }, { - "name": "FindAndInitServerWebConfigResponse", - "code": "message FindAndInitServerWebConfigResponse {\n\tbytes webJSON = 1;\n}", + "name": "CreateScriptResponse", + "code": "message CreateScriptResponse {\n\tint64 scriptId = 1;\n}", "doc": "" }, { - "name": "PurgeServerCacheRequest", - "code": "message PurgeServerCacheRequest {\n\trepeated string keys = 2;\n\trepeated string prefixes = 3;\n\tstring description = 4; // 任务描述\n}", - "doc": "清除缓存" + "name": "PublishScriptsRequest", + "code": "message PublishScriptsRequest {\n\tint64 userId = 1;\n}", + "doc": "发布脚本" }, { - "name": "FindEnabledServerUAMResponse", - "code": "message FindEnabledServerUAMResponse {\n\tbytes uamJSON = 1;\n}", + "name": "FindEnabledScriptResponse", + "code": "message FindEnabledScriptResponse {\n\tScript script = 1;\n}", "doc": "" }, + { + "name": "UpdateServerBasicRequest", + "code": "message UpdateServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 nodeClusterId = 4;\n\tbool keepOldConfigs = 7; // 是否在老节点上保留一段时间配置\n\tbool isOn = 5;\n\trepeated int64 serverGroupIds = 6;\n}", + "doc": "修改服务基本信息" + }, + { + "name": "ServerDNSInfo", + "code": "message ServerDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring dnsName = 3;\n}", + "doc": "" + }, + { + "name": "CheckServerNameDuplicationInNodeClusterRequest", + "code": "message CheckServerNameDuplicationInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\trepeated string serverNames = 2; // 可以同时检查一批域名\n\tint64 excludeServerId = 3; // 要排除的服务ID\n}", + "doc": "检查域名是否已经存在" + }, { "name": "FindServerNamesRequest", "code": "message FindServerNamesRequest {\n\tint64 serverId = 1;\n}", "doc": "查找服务的域名设置" }, { - "name": "FindEnabledServerTypeResponse", - "code": "message FindEnabledServerTypeResponse {\n\tstring type = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledServersWithSSLCertIdRequest", - "code": "message FindAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "查找使用某个SSL证书的所有服务" - }, - { - "name": "FindEnabledServerDNSResponse", - "code": "message FindEnabledServerDNSResponse {\n\tstring dnsName = 1;\n\tDNSDomain domain = 2;\n\tbool supportCNAME = 3;\n}", - "doc": "" - }, - { - "name": "FindEnabledUserServerBasicResponse", - "code": "message FindEnabledUserServerBasicResponse {\n\tServer server = 1;\n}", - "doc": "" - }, - { - "name": "UpdateEnabledUserServerBasicRequest", - "code": "message UpdateEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n}", - "doc": "修改用户服务基本信息" - }, - { - "name": "UpdateServerUserPlanRequest", - "code": "message UpdateServerUserPlanRequest {\n\tint64 serverId = 1;\n\tint64 userPlanId = 2;\n}", - "doc": "修改服务套餐" - }, - { - "name": "CountAllEnabledServersWithNodeClusterIdRequest", - "code": "message CountAllEnabledServersWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算运行在某个集群上的所有服务数量" - }, - { - "name": "FindAllEnabledServersDNSWithNodeClusterIdResponse", - "code": "message FindAllEnabledServersDNSWithNodeClusterIdResponse {\n\trepeated ServerDNSInfo servers = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerResponse", - "code": "message FindEnabledServerResponse {\n\tServer server = 1;\n}", - "doc": "" - }, - { - "name": "FindAndInitServerWebConfigRequest", - "code": "message FindAndInitServerWebConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "初始化Web设置" - }, - { - "name": "FindServerUserPlanRequest", - "code": "message FindServerUserPlanRequest {\n\tint64 serverId = 1;\n}", - "doc": "获取服务套餐信息" - }, - { - "name": "ListEnabledServersMatchRequest", - "code": "message ListEnabledServersMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 serverGroupId = 3; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 4;\n\tint64 userId = 5;\n\tint64 nodeClusterId = 6;\n\tint32 auditingFlag = 7;\n\tstring protocolFamily = 8;\n\tbool trafficOutAsc = 9;\n\tbool trafficOutDesc = 10;\n}", - "doc": "列出单页服务" - }, - { - "name": "FindEnabledServerUAMRequest", - "code": "message FindEnabledServerUAMRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务UAM设置" - }, - { - "name": "CreateServerRequest", - "code": "message CreateServerRequest {\n\tint64 userId = 1;\n\tint64 adminId = 2;\n\tstring type = 3;\n\tstring name = 4;\n\tstring description = 5;\n\n\t// 配置相关\n\tbytes serverNamesJON = 8; // @link json:server_names\n\tbytes httpJSON = 9;\n\tbytes httpsJSON = 10;\n\tbytes tcpJSON = 11;\n\tbytes tlsJSON = 12;\n\tbytes unixJSON = 13;\n\tbytes udpJSON = 14;\n\tint64 webId = 15;\n\tbytes reverseProxyJSON = 16;\n\trepeated int64 serverGroupIds = 17;\n\tint64 userPlanId = 18;\n\n\tint64 nodeClusterId = 30;\n\tbytes includeNodesJSON = 31;\n\tbytes excludeNodesJSON = 32;\n}", - "doc": "创建服务" - }, - { - "name": "UpdateServerGroupIdsRequest", - "code": "message UpdateServerGroupIdsRequest {\n\tint64 serverId = 1;\n\trepeated int64 serverGroupIds = 2;\n}", - "doc": "修改服务所在分组" - }, - { - "name": "UpdateServerDNSRequest", - "code": "message UpdateServerDNSRequest {\n\tint64 serverId = 1;\n\tbool supportCNAME = 2;\n}", - "doc": "修改服务的DNS相关设置" - }, - { - "name": "FindEnabledServerRequest", - "code": "message FindEnabledServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找单个服务" - }, - { - "name": "UpdateServerTLSRequest", - "code": "message UpdateServerTLSRequest {\n\tint64 serverId = 1;\n\tbytes tlsJSON = 2;\n}", - "doc": "" - }, - { - "name": "UpdateServerReverseProxyRequest", - "code": "message UpdateServerReverseProxyRequest {\n\tint64 serverId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改服务的反向代理设置" - }, - { - "name": "FindEnabledServerTrafficLimitResponse", - "code": "message FindEnabledServerTrafficLimitResponse {\n\tbytes trafficLimitJSON = 1;\n}", - "doc": "" - }, - { - "name": "UploadServerHTTPRequestStatRequest", - "code": "message UploadServerHTTPRequestStatRequest {\n\tstring month = 1;\n\tstring day = 2;\n\trepeated RegionCity regionCities = 3;\n\trepeated RegionProvider regionProviders = 4;\n\trepeated System systems = 5;\n\trepeated Browser browsers = 6;\n\trepeated HTTPFirewallRuleGroup httpFirewallRuleGroups = 7;\n\n\n\tmessage RegionCity {\n\t\tint64 serverId = 1;\n\t\tstring countryName = 2;\n\t\tstring provinceName = 3;\n\t\tstring cityName = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 bytes = 6;\n\t\tint64 countAttackRequests = 7;\n\t\tint64 attackBytes = 8;\n\t}\n\n\n\tmessage RegionProvider {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tint64 count = 3;\n\t}\n\n\n\tmessage System {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage Browser {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage HTTPFirewallRuleGroup {\n\t\tint64 serverId = 1;\n\t\tint64 httpFirewallRuleGroupId = 2;\n\t\tstring action = 3;\n\t\tint64 count = 4;\n\t}\n}", - "doc": "上传HTTP请求待统计数据" - }, - { - "name": "ListEnabledServersMatchResponse", - "code": "message ListEnabledServersMatchResponse {\n\trepeated Server servers = 1;\n}", - "doc": "" - }, - { - "name": "ServerDNSInfo", - "code": "message ServerDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring dnsName = 3;\n}", + "name": "FindAndInitServerReverseProxyConfigResponse", + "code": "message FindAndInitServerReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, { @@ -14528,120 +14622,20 @@ "code": "message FindEnabledServerDNSRequest {\n\tint64 serverId = 1;\n}", "doc": "查找单个服务的DNS信息" }, - { - "name": "FindEnabledServerTrafficLimitRequest", - "code": "message FindEnabledServerTrafficLimitRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找流量限制" - }, - { - "name": "ComposeServerConfigResponse", - "code": "message ComposeServerConfigResponse {\n\tbytes serverConfigJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateServerNamesAuditingRequest", - "code": "message UpdateServerNamesAuditingRequest {\n\tint64 serverId = 1;\n\tServerNameAuditingResult auditingResult = 2;\n}", - "doc": "审核服务的域名设置" - }, - { - "name": "FindAllEnabledServerNamesWithUserIdResponse", - "code": "message FindAllEnabledServerNamesWithUserIdResponse {\n\trepeated string serverNames = 1;\n}", - "doc": "" - }, - { - "name": "CheckUserServerRequest", - "code": "message CheckUserServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "检查服务是否属于某个用户" - }, - { - "name": "FindAllEnabledServerNamesWithUserIdRequest", - "code": "message FindAllEnabledServerNamesWithUserIdRequest {\n\tint64 userId = 1;\n}", - "doc": "查找一个用户下的所有域名列表" - }, - { - "name": "PurgeServerCacheResponse", - "code": "message PurgeServerCacheResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", - "doc": "" - }, - { - "name": "UpdateServerTrafficLimitRequest", - "code": "message UpdateServerTrafficLimitRequest {\n\tint64 serverId = 1;\n\tbytes trafficLimitJSON = 2;\n}", - "doc": "设置流量限制" - }, - { - "name": "FindEnabledServerTypeRequest", - "code": "message FindEnabledServerTypeRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务的服务类型" - }, - { - "name": "FindEnabledUserServerBasicRequest", - "code": "message FindEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找用户服务基本信息" - }, - { - "name": "CheckServerNameDuplicationInNodeClusterRequest", - "code": "message CheckServerNameDuplicationInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\trepeated string serverNames = 2; // 可以同时检查一批域名\n\tint64 excludeServerId = 3; // 要排除的服务ID\n}", - "doc": "检查域名是否已经存在" - }, - { - "name": "FindServerUserPlanResponse", - "code": "message FindServerUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", - "doc": "" - }, - { - "name": "FindNearbyServersResponse", - "code": "message FindNearbyServersResponse {\n\tstring scope = 1; // 范围 cluster|group\n\trepeated GroupInfo groups = 2;\n\n\n\tmessage GroupInfo {\n\t\tstring name = 1;\n\t\trepeated Server servers = 2;\n\t}\n}", - "doc": "" - }, { "name": "CreateServerResponse", "code": "message CreateServerResponse {\n\tint64 serverId = 1;\n}", "doc": "" }, { - "name": "UpdateServerIsOnRequest", - "code": "message UpdateServerIsOnRequest {\n\tint64 serverId = 1;\n\tbool isOn = 2;\n}", - "doc": "修改服务启是否启用" + "name": "UpdateServerGroupIdsRequest", + "code": "message UpdateServerGroupIdsRequest {\n\tint64 serverId = 1;\n\trepeated int64 serverGroupIds = 2;\n}", + "doc": "修改服务所在分组" }, { - "name": "FindAndInitServerReverseProxyConfigResponse", - "code": "message FindAndInitServerReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledServersWithSSLCertIdRequest", - "code": "message CountAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的服务数量" - }, - { - "name": "CountAllEnabledServersWithServerGroupIdRequest", - "code": "message CountAllEnabledServersWithServerGroupIdRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "计算使用某个分组的服务数量" - }, - { - "name": "NotifyServersChangeRequest", - "code": "message NotifyServersChangeRequest {\n\n}", - "doc": "通知更新" - }, - { - "name": "NotifyServersChangeResponse", - "code": "message NotifyServersChangeResponse {\n\n}", - "doc": "" - }, - { - "name": "UpdateServerUDPRequest", - "code": "message UpdateServerUDPRequest {\n\tint64 serverId = 1;\n\tbytes udpJSON = 2;\n}", - "doc": "" - }, - { - "name": "UpdateServerWebRequest", - "code": "message UpdateServerWebRequest {\n\tint64 serverId = 1;\n\tint64 webId = 2;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerConfigResponse", - "code": "message FindEnabledServerConfigResponse {\n\tbytes serverJSON = 1;\n}", - "doc": "" + "name": "ListEnabledServersMatchRequest", + "code": "message ListEnabledServersMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 serverGroupId = 3; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 4;\n\tint64 userId = 5;\n\tint64 nodeClusterId = 6;\n\tint32 auditingFlag = 7;\n\tstring protocolFamily = 8;\n\tbool trafficOutAsc = 9;\n\tbool trafficOutDesc = 10;\n}", + "doc": "列出单页服务" }, { "name": "FindAndInitServerReverseProxyConfigRequest", @@ -14649,64 +14643,9 @@ "doc": "查找反向代理设置" }, { - "name": "FindAllEnabledServersWithSSLCertIdResponse", - "code": "message FindAllEnabledServersWithSSLCertIdResponse {\n\trepeated Server servers = 1;\n}", - "doc": "" - }, - { - "name": "ComposeServerConfigRequest", - "code": "message ComposeServerConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "获取服务配置" - }, - { - "name": "UpdateServerBasicRequest", - "code": "message UpdateServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tint64 nodeClusterId = 4;\n\tbool keepOldConfigs = 7; // 是否在老节点上保留一段时间配置\n\tbool isOn = 5;\n\trepeated int64 serverGroupIds = 6;\n}", - "doc": "修改服务基本信息" - }, - { - "name": "UpdateServerTCPRequest", - "code": "message UpdateServerTCPRequest {\n\tint64 serverId = 1;\n\tbytes tcpJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerConfigRequest", - "code": "message FindEnabledServerConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务配置" - }, - { - "name": "FindLatestServersRequest", - "code": "message FindLatestServersRequest {\n\tint64 size = 1;\n}", - "doc": "查找最近访问的服务" - }, - { - "name": "UpdateServerUnixRequest", - "code": "message UpdateServerUnixRequest {\n\tint64 serverId = 1;\n\tbytes unixJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindServerNamesResponse", - "code": "message FindServerNamesResponse {\n\tbytes serverNamesJSON = 1;\n\tbool isAuditing = 2;\n\tint64 auditingAt = 5;\n\tbytes auditingServerNamesJSON = 3;\n\tServerNameAuditingResult auditingResult = 4;\n}", - "doc": "" - }, - { - "name": "RegenerateServerCNAMERequest", - "code": "message RegenerateServerCNAMERequest {\n\tint64 serverId = 1;\n}", - "doc": "重新生成CNAME" - }, - { - "name": "DeleteServerRequest", - "code": "message DeleteServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "禁用服务" - }, - { - "name": "UpdateServerUAMRequest", - "code": "message UpdateServerUAMRequest {\n\tint64 serverId = 1;\n\tbytes uamJSON = 2;\n}", - "doc": "修改服务UAM设置" - }, - { - "name": "FindNearbyServersRequest", - "code": "message FindNearbyServersRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找某个服务附近的服务" + "name": "CountAllEnabledServersWithServerGroupIdRequest", + "code": "message CountAllEnabledServersWithServerGroupIdRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "计算使用某个分组的服务数量" }, { "name": "UpdateServerHTTPRequest", @@ -14714,8 +14653,13 @@ "doc": "修改服务的HTTP等设置" }, { - "name": "UpdateServerHTTPSRequest", - "code": "message UpdateServerHTTPSRequest {\n\tint64 serverId = 1;\n\tbytes httpsJSON = 2;\n}", + "name": "FindEnabledServerTypeRequest", + "code": "message FindEnabledServerTypeRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务的服务类型" + }, + { + "name": "FindEnabledServerDNSResponse", + "code": "message FindEnabledServerDNSResponse {\n\tstring dnsName = 1;\n\tDNSDomain domain = 2;\n\tbool supportCNAME = 3;\n}", "doc": "" }, { @@ -14728,20 +14672,285 @@ "code": "message CountAllEnabledServersMatchRequest {\n\tint64 serverGroupId = 1; // 服务分组ID,如果为-1表示查找未分组\n\tstring keyword = 2;\n\tint64 userId = 3;\n\tint64 nodeClusterId = 4;\n\tint32 auditingFlag = 5;\n\tstring protocolFamily = 6;\n}", "doc": "计算服务数量" }, + { + "name": "FindAllEnabledServersWithSSLCertIdRequest", + "code": "message FindAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "查找使用某个SSL证书的所有服务" + }, + { + "name": "UpdateServerHTTPSRequest", + "code": "message UpdateServerHTTPSRequest {\n\tint64 serverId = 1;\n\tbytes httpsJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateServerDNSRequest", + "code": "message UpdateServerDNSRequest {\n\tint64 serverId = 1;\n\tbool supportCNAME = 2;\n}", + "doc": "修改服务的DNS相关设置" + }, + { + "name": "DeleteServerRequest", + "code": "message DeleteServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "禁用服务" + }, + { + "name": "FindEnabledServerConfigRequest", + "code": "message FindEnabledServerConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务配置" + }, + { + "name": "FindEnabledServerTypeResponse", + "code": "message FindEnabledServerTypeResponse {\n\tstring type = 1;\n}", + "doc": "" + }, + { + "name": "NotifyServersChangeResponse", + "code": "message NotifyServersChangeResponse {\n\n}", + "doc": "" + }, + { + "name": "FindEnabledUserServerBasicRequest", + "code": "message FindEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找用户服务基本信息" + }, + { + "name": "FindLatestServersResponse", + "code": "message FindLatestServersResponse {\n\trepeated Server servers = 1;\n}", + "doc": "" + }, + { + "name": "ComposeServerConfigResponse", + "code": "message ComposeServerConfigResponse {\n\tbytes serverConfigJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerUAMRequest", + "code": "message FindEnabledServerUAMRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务UAM设置" + }, + { + "name": "UpdateServerUDPRequest", + "code": "message UpdateServerUDPRequest {\n\tint64 serverId = 1;\n\tbytes udpJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindAndInitServerWebConfigResponse", + "code": "message FindAndInitServerWebConfigResponse {\n\tbytes webJSON = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledServersWithNodeClusterIdRequest", + "code": "message CountAllEnabledServersWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算运行在某个集群上的所有服务数量" + }, + { + "name": "FindEnabledServerTrafficLimitResponse", + "code": "message FindEnabledServerTrafficLimitResponse {\n\tbytes trafficLimitJSON = 1;\n}", + "doc": "" + }, + { + "name": "UploadServerHTTPRequestStatRequest", + "code": "message UploadServerHTTPRequestStatRequest {\n\tstring month = 1;\n\tstring day = 2;\n\trepeated RegionCity regionCities = 3;\n\trepeated RegionProvider regionProviders = 4;\n\trepeated System systems = 5;\n\trepeated Browser browsers = 6;\n\trepeated HTTPFirewallRuleGroup httpFirewallRuleGroups = 7;\n\n\n\tmessage RegionCity {\n\t\tint64 serverId = 1;\n\t\tstring countryName = 2;\n\t\tstring provinceName = 3;\n\t\tstring cityName = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 bytes = 6;\n\t\tint64 countAttackRequests = 7;\n\t\tint64 attackBytes = 8;\n\t}\n\n\n\tmessage RegionProvider {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tint64 count = 3;\n\t}\n\n\n\tmessage System {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage Browser {\n\t\tint64 serverId = 1;\n\t\tstring name = 2;\n\t\tstring version = 3;\n\t\tint64 count = 4;\n\t}\n\n\n\tmessage HTTPFirewallRuleGroup {\n\t\tint64 serverId = 1;\n\t\tint64 httpFirewallRuleGroupId = 2;\n\t\tstring action = 3;\n\t\tint64 count = 4;\n\t}\n}", + "doc": "上传HTTP请求待统计数据" + }, + { + "name": "UpdateServerIsOnRequest", + "code": "message UpdateServerIsOnRequest {\n\tint64 serverId = 1;\n\tbool isOn = 2;\n}", + "doc": "修改服务启是否启用" + }, + { + "name": "FindAndInitServerWebConfigRequest", + "code": "message FindAndInitServerWebConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "初始化Web设置" + }, + { + "name": "PurgeServerCacheRequest", + "code": "message PurgeServerCacheRequest {\n\trepeated string keys = 2;\n\trepeated string prefixes = 3;\n\tstring description = 4; // 任务描述\n}", + "doc": "清除缓存" + }, + { + "name": "FindEnabledServerTrafficLimitRequest", + "code": "message FindEnabledServerTrafficLimitRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找流量限制" + }, + { + "name": "UpdateServerUAMRequest", + "code": "message UpdateServerUAMRequest {\n\tint64 serverId = 1;\n\tbytes uamJSON = 2;\n}", + "doc": "修改服务UAM设置" + }, + { + "name": "CreateServerRequest", + "code": "message CreateServerRequest {\n\tint64 userId = 1;\n\tint64 adminId = 2;\n\tstring type = 3;\n\tstring name = 4;\n\tstring description = 5;\n\n\t// 配置相关\n\tbytes serverNamesJON = 8; // @link json:server_names\n\tbytes httpJSON = 9;\n\tbytes httpsJSON = 10;\n\tbytes tcpJSON = 11;\n\tbytes tlsJSON = 12;\n\tbytes unixJSON = 13;\n\tbytes udpJSON = 14;\n\tint64 webId = 15;\n\tbytes reverseProxyJSON = 16;\n\trepeated int64 serverGroupIds = 17;\n\tint64 userPlanId = 18;\n\n\tint64 nodeClusterId = 30;\n\tbytes includeNodesJSON = 31;\n\tbytes excludeNodesJSON = 32;\n}", + "doc": "创建服务" + }, + { + "name": "CheckUserServerRequest", + "code": "message CheckUserServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "检查服务是否属于某个用户" + }, + { + "name": "FindLatestServersRequest", + "code": "message FindLatestServersRequest {\n\tint64 size = 1;\n}", + "doc": "查找最近访问的服务" + }, + { + "name": "UpdateServerTrafficLimitRequest", + "code": "message UpdateServerTrafficLimitRequest {\n\tint64 serverId = 1;\n\tbytes trafficLimitJSON = 2;\n}", + "doc": "设置流量限制" + }, + { + "name": "UpdateServerTLSRequest", + "code": "message UpdateServerTLSRequest {\n\tint64 serverId = 1;\n\tbytes tlsJSON = 2;\n}", + "doc": "" + }, + { + "name": "ListEnabledServersMatchResponse", + "code": "message ListEnabledServersMatchResponse {\n\trepeated Server servers = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerRequest", + "code": "message FindEnabledServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找单个服务" + }, + { + "name": "ComposeServerConfigRequest", + "code": "message ComposeServerConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "获取服务配置" + }, + { + "name": "FindNearbyServersResponse", + "code": "message FindNearbyServersResponse {\n\tstring scope = 1; // 范围 cluster|group\n\trepeated GroupInfo groups = 2;\n\n\n\tmessage GroupInfo {\n\t\tstring name = 1;\n\t\trepeated Server servers = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "UpdateServerUnixRequest", + "code": "message UpdateServerUnixRequest {\n\tint64 serverId = 1;\n\tbytes unixJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateServerWebRequest", + "code": "message UpdateServerWebRequest {\n\tint64 serverId = 1;\n\tint64 webId = 2;\n}", + "doc": "" + }, + { + "name": "FindServerNamesResponse", + "code": "message FindServerNamesResponse {\n\tbytes serverNamesJSON = 1;\n\tbool isAuditing = 2;\n\tint64 auditingAt = 5;\n\tbytes auditingServerNamesJSON = 3;\n\tServerNameAuditingResult auditingResult = 4;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerResponse", + "code": "message FindEnabledServerResponse {\n\tServer server = 1;\n}", + "doc": "" + }, + { + "name": "FindServerUserPlanRequest", + "code": "message FindServerUserPlanRequest {\n\tint64 serverId = 1;\n}", + "doc": "获取服务套餐信息" + }, + { + "name": "FindServerUserPlanResponse", + "code": "message FindServerUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerUAMResponse", + "code": "message FindEnabledServerUAMResponse {\n\tbytes uamJSON = 1;\n}", + "doc": "" + }, + { + "name": "PurgeServerCacheResponse", + "code": "message PurgeServerCacheResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", + "doc": "" + }, + { + "name": "RegenerateServerCNAMERequest", + "code": "message RegenerateServerCNAMERequest {\n\tint64 serverId = 1;\n}", + "doc": "重新生成CNAME" + }, + { + "name": "FindEnabledServerConfigResponse", + "code": "message FindEnabledServerConfigResponse {\n\tbytes serverJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledServersWithSSLCertIdResponse", + "code": "message FindAllEnabledServersWithSSLCertIdResponse {\n\trepeated Server servers = 1;\n}", + "doc": "" + }, + { + "name": "NotifyServersChangeRequest", + "code": "message NotifyServersChangeRequest {\n\n}", + "doc": "通知更新" + }, { "name": "FindAllEnabledServersDNSWithNodeClusterIdRequest", "code": "message FindAllEnabledServersDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "取得某个集群下的所有服务相关的DNS" }, + { + "name": "UpdateEnabledUserServerBasicRequest", + "code": "message UpdateEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n}", + "doc": "修改用户服务基本信息" + }, + { + "name": "UpdateServerTCPRequest", + "code": "message UpdateServerTCPRequest {\n\tint64 serverId = 1;\n\tbytes tcpJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateServerReverseProxyRequest", + "code": "message UpdateServerReverseProxyRequest {\n\tint64 serverId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改服务的反向代理设置" + }, + { + "name": "FindAllEnabledServersDNSWithNodeClusterIdResponse", + "code": "message FindAllEnabledServersDNSWithNodeClusterIdResponse {\n\trepeated ServerDNSInfo servers = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledServerNamesWithUserIdResponse", + "code": "message FindAllEnabledServerNamesWithUserIdResponse {\n\trepeated string serverNames = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserServerBasicResponse", + "code": "message FindEnabledUserServerBasicResponse {\n\tServer server = 1;\n}", + "doc": "" + }, + { + "name": "UpdateServerUserPlanRequest", + "code": "message UpdateServerUserPlanRequest {\n\tint64 serverId = 1;\n\tint64 userPlanId = 2;\n}", + "doc": "修改服务套餐" + }, + { + "name": "UpdateServerNamesAuditingRequest", + "code": "message UpdateServerNamesAuditingRequest {\n\tint64 serverId = 1;\n\tServerNameAuditingResult auditingResult = 2;\n}", + "doc": "审核服务的域名设置" + }, + { + "name": "CountAllEnabledServersWithSSLCertIdRequest", + "code": "message CountAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的服务数量" + }, + { + "name": "FindAllEnabledServerNamesWithUserIdRequest", + "code": "message FindAllEnabledServerNamesWithUserIdRequest {\n\tint64 userId = 1;\n}", + "doc": "查找一个用户下的所有域名列表" + }, { "name": "CheckServerNameDuplicationInNodeClusterResponse", "code": "message CheckServerNameDuplicationInNodeClusterResponse {\n\trepeated string duplicatedServerNames = 1;\n}", "doc": "" }, { - "name": "FindLatestServersResponse", - "code": "message FindLatestServersResponse {\n\trepeated Server servers = 1;\n}", - "doc": "" + "name": "FindNearbyServersRequest", + "code": "message FindNearbyServersRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找某个服务附近的服务" + }, + { + "name": "FindServerBandwidthStatsRequest", + "code": "message FindServerBandwidthStatsRequest {\n\tint64 serverId = 1; // 服务ID\n\tstring month = 2; // YYYYMM,month和day二选一\n\tstring day = 3; // YYYYMMDD\n}", + "doc": "获取服务的峰值带宽" }, { "name": "FindServerBandwidthStatsResponse", @@ -14753,11 +14962,6 @@ "code": "message UploadServerBandwidthStatsRequest {\n\trepeated ServerBandwidthStat serverBandwidthStats = 1;\n}", "doc": "上传带宽统计" }, - { - "name": "FindServerBandwidthStatsRequest", - "code": "message FindServerBandwidthStatsRequest {\n\tint64 serverId = 1; // 服务ID\n\tstring month = 2; // YYYYMM,month和day二选一\n\tstring day = 3; // YYYYMMDD\n}", - "doc": "获取服务的峰值带宽" - }, { "name": "CountAllServerBillsRequest", "code": "message CountAllServerBillsRequest {\n\tint64 userId = 1;\n\tstring month = 2;\n}", @@ -14794,59 +14998,24 @@ "doc": "" }, { - "name": "SumServerDailyStatsRequest", - "code": "message SumServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tstring day = 2; // YYYYMMDD\n}", - "doc": "计算单个服务的日统计" - }, - { - "name": "SumServerDailyStatsResponse", - "code": "message SumServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", - "doc": "" - }, - { - "name": "UploadServerDailyStatsRequest", - "code": "message UploadServerDailyStatsRequest {\n\trepeated ServerDailyStat stats = 1;\n\trepeated DomainStat domainStats = 2;\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 bytes = 3;\n\t\tint64 cachedBytes = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 countCachedRequests = 6;\n\t\tint64 countAttackRequests = 8;\n\t\tint64 attackBytes = 9;\n\t\tint64 createdAt = 7;\n\t}\n}", - "doc": "上传统计" + "name": "FindLatestServerHourlyStatsRequest", + "code": "message FindLatestServerHourlyStatsRequest {\n\tint64 serverId = 1;\n\tint32 hours = 2;\n}", + "doc": "按小时读取统计数据" }, { "name": "FindLatestServerMinutelyStatsRequest", "code": "message FindLatestServerMinutelyStatsRequest {\n\tint64 serverId = 1;\n\tint32 minutes = 2;\n}", "doc": "按分钟读取统计数据" }, - { - "name": "FindLatestServerDailyStatsRequest", - "code": "message FindLatestServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tint32 days = 2;\n}", - "doc": "按日读取统计数据" - }, - { - "name": "SumCurrentServerDailyStatsRequest", - "code": "message SumCurrentServerDailyStatsRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找单个服务当前时刻(N分钟内)统计数据" - }, - { - "name": "SumCurrentServerDailyStatsResponse", - "code": "message SumCurrentServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", - "doc": "" - }, - { - "name": "FindLatestServerHourlyStatsResponse", - "code": "message FindLatestServerHourlyStatsResponse {\n\trepeated HourlyStat stats = 1;\n\n\n\tmessage HourlyStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", - "doc": "" - }, - { - "name": "FindLatestServerHourlyStatsRequest", - "code": "message FindLatestServerHourlyStatsRequest {\n\tint64 serverId = 1;\n\tint32 hours = 2;\n}", - "doc": "按小时读取统计数据" - }, { "name": "FindLatestServerMinutelyStatsResponse", "code": "message FindLatestServerMinutelyStatsResponse {\n\trepeated MinutelyStat stats = 1;\n\n\n\tmessage MinutelyStat {\n\t\tstring minute = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", "doc": "" }, { - "name": "FindLatestServerDailyStatsResponse", - "code": "message FindLatestServerDailyStatsResponse {\n\trepeated DailyStat stats = 1;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", - "doc": "" + "name": "SumCurrentServerDailyStatsRequest", + "code": "message SumCurrentServerDailyStatsRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找单个服务当前时刻(N分钟内)统计数据" }, { "name": "SumServerMonthlyStatsRequest", @@ -14858,6 +15027,41 @@ "code": "message SumServerMonthlyStatsResponse {\n\tServerDailyStat serverMonthlyStat = 1;\n}", "doc": "" }, + { + "name": "FindLatestServerHourlyStatsResponse", + "code": "message FindLatestServerHourlyStatsResponse {\n\trepeated HourlyStat stats = 1;\n\n\n\tmessage HourlyStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", + "doc": "" + }, + { + "name": "UploadServerDailyStatsRequest", + "code": "message UploadServerDailyStatsRequest {\n\trepeated ServerDailyStat stats = 1;\n\trepeated DomainStat domainStats = 2;\n\n\n\tmessage DomainStat {\n\t\tint64 serverId = 1;\n\t\tstring domain = 2;\n\t\tint64 bytes = 3;\n\t\tint64 cachedBytes = 4;\n\t\tint64 countRequests = 5;\n\t\tint64 countCachedRequests = 6;\n\t\tint64 countAttackRequests = 8;\n\t\tint64 attackBytes = 9;\n\t\tint64 createdAt = 7;\n\t}\n}", + "doc": "上传统计" + }, + { + "name": "FindLatestServerDailyStatsResponse", + "code": "message FindLatestServerDailyStatsResponse {\n\trepeated DailyStat stats = 1;\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t}\n}", + "doc": "" + }, + { + "name": "FindLatestServerDailyStatsRequest", + "code": "message FindLatestServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tint32 days = 2;\n}", + "doc": "按日读取统计数据" + }, + { + "name": "SumCurrentServerDailyStatsResponse", + "code": "message SumCurrentServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", + "doc": "" + }, + { + "name": "SumServerDailyStatsRequest", + "code": "message SumServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tstring day = 2; // YYYYMMDD\n}", + "doc": "计算单个服务的日统计" + }, + { + "name": "SumServerDailyStatsResponse", + "code": "message SumServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", + "doc": "" + }, { "name": "ListTopServerDomainStatsWithServerIdRequest", "code": "message ListTopServerDomainStatsWithServerIdRequest{\n\tint64 nodeClusterId = 1;\n\tint64 nodeId = 2;\n\tint64 serverId = 3;\n\tstring hourFrom = 4;\n\tstring hourTo = 5;\n\tint64 size = 6;\n}", @@ -14868,6 +15072,51 @@ "code": "message ListTopServerDomainStatsWithServerIdResponse {\n\trepeated ServerDomainHourlyStat domainStats = 1;\n}", "doc": "" }, + { + "name": "UpdateServerGroupOrdersRequest", + "code": "message UpdateServerGroupOrdersRequest {\n\trepeated int64 serverGroupIds = 1;\n}", + "doc": "修改分组排序" + }, + { + "name": "FindAndInitServerGroupTCPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupTCPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, + { + "name": "CreateServerGroupResponse", + "code": "message CreateServerGroupResponse {\n\tint64 serverGroupId = 1;\n}", + "doc": "" + }, + { + "name": "FindAndInitServerGroupUDPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupUDPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateServerGroupTCPReverseProxyRequest", + "code": "message UpdateServerGroupTCPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改分组的TCP反向代理设置" + }, + { + "name": "UpdateServerGroupUDPReverseProxyRequest", + "code": "message UpdateServerGroupUDPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改分组的UDP反向代理设置" + }, + { + "name": "FindAndInitServerGroupUDPReverseProxyConfigRequest", + "code": "message FindAndInitServerGroupUDPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找UDP反向代理设置" + }, + { + "name": "FindEnabledServerGroupConfigInfoResponse", + "code": "message FindEnabledServerGroupConfigInfoResponse {\n\tbool hasHTTPReverseProxy = 1;\n\tbool hasTCPReverseProxy = 2;\n\tbool hasUDPReverseProxy = 3;\n\tint64 serverGroupId = 4;\n\tbool hasRootConfig = 5;\n\tbool hasWAFConfig = 6;\n\tbool hasCacheConfig = 7;\n\tbool hasCharsetConfig = 8;\n\tbool hasStatConfig = 9;\n\tbool hasCompressionConfig = 10;\n\tbool hasRequestHeadersConfig = 11;\n\tbool hasResponseHeadersConfig = 12;\n\tbool hasWebsocketConfig = 13;\n\tbool hasWebPConfig = 14;\n\tbool hasAccessLogConfig = 15;\n\tbool hasRemoteAddrConfig = 16;\n\tbool hasPagesConfig = 17;\n\tbool hasRequestLimitConfig = 18;\n\tbool hasRequestScriptsConfig = 19;\n}", + "doc": "" + }, + { + "name": "CreateServerGroupRequest", + "code": "message CreateServerGroupRequest {\n\tstring name = 1;\n}", + "doc": "创建分组" + }, { "name": "FindAllEnabledServerGroupsResponse", "code": "message FindAllEnabledServerGroupsResponse {\n\trepeated ServerGroup serverGroups = 1;\n}", @@ -14878,56 +15127,31 @@ "code": "message FindEnabledServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", "doc": "查找单个分组信息" }, - { - "name": "FindAndInitServerGroupWebConfigRequest", - "code": "message FindAndInitServerGroupWebConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "初始化Web设置" - }, { "name": "FindEnabledServerGroupResponse", "code": "message FindEnabledServerGroupResponse {\n\tServerGroup serverGroup = 1;\n}", "doc": "" }, - { - "name": "FindAndInitServerGroupHTTPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupHTTPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找HTTP反向代理设置" - }, { "name": "FindAndInitServerGroupHTTPReverseProxyConfigResponse", "code": "message FindAndInitServerGroupHTTPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, - { - "name": "FindAndInitServerGroupUDPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupUDPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" - }, - { - "name": "UpdateServerGroupHTTPReverseProxyRequest", - "code": "message UpdateServerGroupHTTPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改分组的HTTP反向代理设置" - }, - { - "name": "FindEnabledServerGroupConfigInfoResponse", - "code": "message FindEnabledServerGroupConfigInfoResponse {\n\tbool hasHTTPReverseProxy = 1;\n\tbool hasTCPReverseProxy = 2;\n\tbool hasUDPReverseProxy = 3;\n\tint64 serverGroupId = 4;\n\tbool hasRootConfig = 5;\n\tbool hasWAFConfig = 6;\n\tbool hasCacheConfig = 7;\n\tbool hasCharsetConfig = 8;\n\tbool hasStatConfig = 9;\n\tbool hasCompressionConfig = 10;\n\tbool hasRequestHeadersConfig = 11;\n\tbool hasResponseHeadersConfig = 12;\n\tbool hasWebsocketConfig = 13;\n\tbool hasWebPConfig = 14;\n\tbool hasAccessLogConfig = 15;\n\tbool hasRemoteAddrConfig = 16;\n\tbool hasPagesConfig = 17;\n\tbool hasRequestLimitConfig = 18;\n\tbool hasRequestScriptsConfig = 19;\n}", - "doc": "" - }, { "name": "FindEnabledServerGroupConfigInfoRequest", "code": "message FindEnabledServerGroupConfigInfoRequest {\n\tint64 serverGroupId = 1;\n\tint64 serverId = 2;\n}", "doc": "取得分组的配置概要信息" }, + { + "name": "FindAndInitServerGroupWebConfigRequest", + "code": "message FindAndInitServerGroupWebConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "初始化Web设置" + }, { "name": "FindAndInitServerGroupWebConfigResponse", "code": "message FindAndInitServerGroupWebConfigResponse {\n\tbytes webJSON = 1;\n}", "doc": "" }, - { - "name": "CreateServerGroupRequest", - "code": "message CreateServerGroupRequest {\n\tstring name = 1;\n}", - "doc": "创建分组" - }, { "name": "UpdateServerGroupRequest", "code": "message UpdateServerGroupRequest {\n\tint64 serverGroupId = 1;\n\tstring name = 2;\n}", @@ -14939,29 +15163,9 @@ "doc": "删除分组" }, { - "name": "FindAndInitServerGroupTCPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupTCPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindAndInitServerGroupUDPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupUDPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找UDP反向代理设置" - }, - { - "name": "UpdateServerGroupTCPReverseProxyRequest", - "code": "message UpdateServerGroupTCPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改分组的TCP反向代理设置" - }, - { - "name": "CreateServerGroupResponse", - "code": "message CreateServerGroupResponse {\n\tint64 serverGroupId = 1;\n}", - "doc": "" - }, - { - "name": "UpdateServerGroupOrdersRequest", - "code": "message UpdateServerGroupOrdersRequest {\n\trepeated int64 serverGroupIds = 1;\n}", - "doc": "修改分组排序" + "name": "FindAndInitServerGroupHTTPReverseProxyConfigRequest", + "code": "message FindAndInitServerGroupHTTPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找HTTP反向代理设置" }, { "name": "FindAndInitServerGroupTCPReverseProxyConfigRequest", @@ -14969,20 +15173,20 @@ "doc": "查找TCP反向代理设置" }, { - "name": "UpdateServerGroupUDPReverseProxyRequest", - "code": "message UpdateServerGroupUDPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", - "doc": "修改分组的UDP反向代理设置" - }, - { - "name": "ComposeServerHTTPFirewallDashboardRequest", - "code": "message ComposeServerHTTPFirewallDashboardRequest {\n\tstring day = 1;\n\tint64 userId = 2;\n\tint64 serverId = 3;\n}", - "doc": "组合服务的Dashboard" + "name": "UpdateServerGroupHTTPReverseProxyRequest", + "code": "message UpdateServerGroupHTTPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改分组的HTTP反向代理设置" }, { "name": "ComposeServerHTTPFirewallDashboardResponse", "code": "message ComposeServerHTTPFirewallDashboardResponse {\n\tint64 countDailyLog = 1;\n\tint64 countDailyBlock = 2;\n\tint64 countDailyCaptcha = 3;\n\tint64 countWeeklyBlock = 4;\n\tint64 countMonthlyBlock = 5;\n\n\trepeated HTTPFirewallRuleGroupStat httpFirewallRuleGroups = 30;\n\trepeated DailyStat logDailyStats = 31;\n\trepeated DailyStat blockDailyStats = 32;\n\trepeated DailyStat captchaDailyStats = 33;\n\n\n\tmessage HTTPFirewallRuleGroupStat {\n\t\tHTTPFirewallRuleGroup httpFirewallRuleGroup = 1;\n\t\tint64 count = 2;\n\t}\n\n\n\tmessage DailyStat {\n\t\tstring day = 1;\n\t\tint64 count = 2;\n\t}\n}", "doc": "" }, + { + "name": "ComposeServerHTTPFirewallDashboardRequest", + "code": "message ComposeServerHTTPFirewallDashboardRequest {\n\tstring day = 1;\n\tint64 userId = 2;\n\tint64 serverId = 3;\n}", + "doc": "组合服务的Dashboard" + }, { "name": "FindTopServerRegionCityMonthlyStatsRequest", "code": "message FindTopServerRegionCityMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 countryId = 3;\n\tint64 provinceId = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", @@ -15013,24 +15217,24 @@ "code": "message FindTopServerRegionProviderMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionProvider regionProvider = 1;\n\t\tint64 count = 2;\n\t}\n}", "doc": "" }, - { - "name": "FindTopServerRegionProvinceMonthlyStatsRequest", - "code": "message FindTopServerRegionProvinceMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 countryId = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "查找前N个城市" - }, { "name": "FindTopServerRegionProvinceMonthlyStatsResponse", "code": "message FindTopServerRegionProvinceMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionCountry regionCountry = 1;\n\t\tRegionProvince regionProvince = 2;\n\t\tint64 count = 3;\n\t}\n}", "doc": "" }, + { + "name": "FindTopServerRegionProvinceMonthlyStatsRequest", + "code": "message FindTopServerRegionProvinceMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 countryId = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "查找前N个城市" + }, { "name": "FindAllEnabledServerStatBoardsRequest", "code": "message FindAllEnabledServerStatBoardsRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "读取所有看板" }, { - "name": "ComposeServerStatNodeClusterBoardResponse", - "code": "message ComposeServerStatNodeClusterBoardResponse {\n\tint64 countActiveNodes = 1;\n\tint64 countInactiveNodes = 2;\n\tint64 countServers = 3;\n\tint64 countUsers = 4;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNodeStats = 32;\n\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\n\trepeated MetricDataChart metricDataCharts = 37;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", + "name": "FindAllEnabledServerStatBoardsResponse", + "code": "message FindAllEnabledServerStatBoardsResponse {\n\trepeated ServerStatBoard serverStatBoards = 1;\n}", "doc": "" }, { @@ -15038,6 +15242,11 @@ "code": "message ComposeServerStatNodeBoardResponse {\n\tbool isActive = 1;\n\tint64 trafficInBytes = 2;\n\tint64 trafficOutBytes = 3;\n\tint64 countRequests = 4;\n\tint64 countAttackRequests = 5;\n\tint64 countConnections = 6;\n\tint64 cacheDiskSize = 7;\n\tint64 cacheMemorySize = 8;\n\tfloat cpuUsage = 9;\n\tfloat memoryUsage = 10;\n\tint64 memoryTotalSize = 11;\n\tfloat load = 12;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 31;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 32;\n\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\trepeated NodeValue cacheDirsValues = 38;\n\n\trepeated MetricDataChart metricDataCharts = 37;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", "doc": "" }, + { + "name": "ComposeServerStatBoardRequest", + "code": "message ComposeServerStatBoardRequest {\n\tint64 serverId = 1;\n}", + "doc": "组合服务看板数据" + }, { "name": "MetricDataChart", "code": "message MetricDataChart {\n\tMetricChart metricChart = 1;\n\trepeated MetricStat metricStats = 2;\n}", @@ -15049,13 +15258,8 @@ "doc": "组合集群看板数据" }, { - "name": "ComposeServerStatNodeBoardRequest", - "code": "message ComposeServerStatNodeBoardRequest {\n\tint64 nodeId = 1;\n}", - "doc": "组合节点看板数据" - }, - { - "name": "FindAllEnabledServerStatBoardsResponse", - "code": "message FindAllEnabledServerStatBoardsResponse {\n\trepeated ServerStatBoard serverStatBoards = 1;\n}", + "name": "ComposeServerStatNodeClusterBoardResponse", + "code": "message ComposeServerStatNodeClusterBoardResponse {\n\tint64 countActiveNodes = 1;\n\tint64 countInactiveNodes = 2;\n\tint64 countServers = 3;\n\tint64 countUsers = 4;\n\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNodeStats = 32;\n\n\trepeated NodeValue cpuNodeValues = 34;\n\trepeated NodeValue memoryNodeValues = 35;\n\trepeated NodeValue loadNodeValues = 36;\n\n\trepeated MetricDataChart metricDataCharts = 37;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage HourlyTrafficStat {\n\t\tstring hour = 1;\n\t\tint64 bytes = 2;\n\t\tint64 cachedBytes = 3;\n\t\tint64 countRequests = 4;\n\t\tint64 countCachedRequests = 5;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n\n\n\tmessage NodeStat {\n\t\tint64 nodeId = 1;\n\t\tstring nodeName = 2;\n\t\tint64 countRequests = 3;\n\t\tint64 bytes = 4;\n\t\tint64 countAttackRequests = 6;\n\t\tint64 attackBytes = 7;\n\t}\n}", "doc": "" }, { @@ -15064,9 +15268,9 @@ "doc": "" }, { - "name": "ComposeServerStatBoardRequest", - "code": "message ComposeServerStatBoardRequest {\n\tint64 serverId = 1;\n}", - "doc": "组合服务看板数据" + "name": "ComposeServerStatNodeBoardRequest", + "code": "message ComposeServerStatNodeBoardRequest {\n\tint64 nodeId = 1;\n}", + "doc": "组合节点看板数据" }, { "name": "EnableServerStatBoardChartRequest", @@ -15089,24 +15293,14 @@ "doc": "" }, { - "name": "DeleteSSLCertRequest", - "code": "message DeleteSSLCertRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "删除证书" + "name": "FindEnabledSSLCertConfigRequest", + "code": "message FindEnabledSSLCertConfigRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "查找证书配置" }, { - "name": "ResetAllSSLCertsWithOCSPErrorRequest", - "code": "message ResetAllSSLCertsWithOCSPErrorRequest {\n\n}", - "doc": "重置所有证书OCSP错误状态" - }, - { - "name": "ListUpdatedSSLCertOCSPRequest", - "code": "message ListUpdatedSSLCertOCSPRequest {\n\tint64 version = 1;\n\tint32 size = 2;\n}", - "doc": "读取证书的OCSP" - }, - { - "name": "ListUpdatedSSLCertOCSPResponse", - "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": "ResetSSLCertsWithOCSPErrorRequest", + "code": "message ResetSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", + "doc": "重置一组证书OCSP错误状态" }, { "name": "UpdateSSLCertRequest", @@ -15114,15 +15308,20 @@ "doc": "修改Cert" }, { - "name": "CountSSLCertRequest", - "code": "message CountSSLCertRequest {\n\tbool isCA = 1;\n\tbool isAvailable = 2;\n\tbool isExpired = 3;\n\tint32 expiringDays = 4;\n\tstring keyword = 5;\n\tint64 userId = 6;\n}", - "doc": "计算匹配的Cert数量" + "name": "DeleteSSLCertRequest", + "code": "message DeleteSSLCertRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "删除证书" }, { "name": "ListSSLCertsRequest", "code": "message ListSSLCertsRequest {\n\tbool isCA = 1;\n\tbool isAvailable = 2;\n\tbool isExpired = 3;\n\tint32 expiringDays = 4;\n\tstring keyword = 5;\n\tint64 offset = 6;\n\tint64 size = 7;\n\tint64 userId = 8;\n}", "doc": "列出单页匹配的Cert" }, + { + "name": "CountAllSSLCertsWithOCSPErrorRequest", + "code": "message CountAllSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n}", + "doc": "计算有OCSP错误的证书数量" + }, { "name": "ListSSLCertsWithOCSPErrorRequest", "code": "message ListSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", @@ -15134,9 +15333,19 @@ "doc": "" }, { - "name": "ResetSSLCertsWithOCSPErrorRequest", - "code": "message ResetSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", - "doc": "重置一组证书OCSP错误状态" + "name": "IgnoreSSLCertsWithOCSPErrorRequest", + "code": "message IgnoreSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", + "doc": "忽略一组OCSP证书错误" + }, + { + "name": "ListUpdatedSSLCertOCSPResponse", + "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": "CreateSSLCertRequest", + "code": "message CreateSSLCertRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring serverName = 4;\n\tbool isCA = 5;\n\tbytes certData = 6;\n\tbytes keyData = 7;\n\tint64 timeBeginAt = 8;\n\tint64 timeEndAt = 9;\n\trepeated string dnsNames = 10;\n\trepeated string commonNames = 11;\n}", + "doc": "创建Cert" }, { "name": "CreateSSLCertResponse", @@ -15149,14 +15358,14 @@ "doc": "" }, { - "name": "CreateSSLCertRequest", - "code": "message CreateSSLCertRequest {\n\tbool isOn = 1;\n\tstring name = 2;\n\tstring description = 3;\n\tstring serverName = 4;\n\tbool isCA = 5;\n\tbytes certData = 6;\n\tbytes keyData = 7;\n\tint64 timeBeginAt = 8;\n\tint64 timeEndAt = 9;\n\trepeated string dnsNames = 10;\n\trepeated string commonNames = 11;\n}", - "doc": "创建Cert" + "name": "ListUpdatedSSLCertOCSPRequest", + "code": "message ListUpdatedSSLCertOCSPRequest {\n\tint64 version = 1;\n\tint32 size = 2;\n}", + "doc": "读取证书的OCSP" }, { - "name": "FindEnabledSSLCertConfigRequest", - "code": "message FindEnabledSSLCertConfigRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "查找证书配置" + "name": "CountSSLCertRequest", + "code": "message CountSSLCertRequest {\n\tbool isCA = 1;\n\tbool isAvailable = 2;\n\tbool isExpired = 3;\n\tint32 expiringDays = 4;\n\tstring keyword = 5;\n\tint64 userId = 6;\n}", + "doc": "计算匹配的Cert数量" }, { "name": "ListSSLCertsResponse", @@ -15164,24 +15373,9 @@ "doc": "" }, { - "name": "CountAllSSLCertsWithOCSPErrorRequest", - "code": "message CountAllSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n}", - "doc": "计算有OCSP错误的证书数量" - }, - { - "name": "IgnoreSSLCertsWithOCSPErrorRequest", - "code": "message IgnoreSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", - "doc": "忽略一组OCSP证书错误" - }, - { - "name": "FindEnabledSSLPolicyConfigRequest", - "code": "message FindEnabledSSLPolicyConfigRequest {\n\tint64 sslPolicyId = 1;\n}", - "doc": "查找Policy" - }, - { - "name": "FindEnabledSSLPolicyConfigResponse", - "code": "message FindEnabledSSLPolicyConfigResponse {\n\tbytes sslPolicyJSON = 1;\n}", - "doc": "" + "name": "ResetAllSSLCertsWithOCSPErrorRequest", + "code": "message ResetAllSSLCertsWithOCSPErrorRequest {\n\n}", + "doc": "重置所有证书OCSP错误状态" }, { "name": "CreateSSLPolicyRequest", @@ -15198,6 +15392,16 @@ "code": "message UpdateSSLPolicyRequest {\n\tint64 sslPolicyId = 1;\n\tbool http2Enabled = 2;\n\tstring minVersion = 3;\n\tbytes sslCertsJSON = 4;\n\tbytes hstsJSON = 5;\n\tint32 clientAuthType = 6;\n\tbytes clientCACertsJSON = 7;\n\trepeated string cipherSuites = 8;\n\tbool cipherSuitesIsOn = 9;\n\tbool ocspIsOn = 10;\n}", "doc": "修改Policy" }, + { + "name": "FindEnabledSSLPolicyConfigRequest", + "code": "message FindEnabledSSLPolicyConfigRequest {\n\tint64 sslPolicyId = 1;\n}", + "doc": "查找Policy" + }, + { + "name": "FindEnabledSSLPolicyConfigResponse", + "code": "message FindEnabledSSLPolicyConfigResponse {\n\tbytes sslPolicyJSON = 1;\n}", + "doc": "" + }, { "name": "SysLockerLockRequest", "code": "message SysLockerLockRequest {\n\tstring key = 1;\n\tint64 timeoutSeconds = 2;\n}", @@ -15238,21 +15442,121 @@ "code": "message FindTrafficDailyStatWithDayResponse {\n\tTrafficDailyStat trafficDailyStat = 1;\n}", "doc": "" }, + { + "name": "DeleteUserRequest", + "code": "message DeleteUserRequest {\n\tint64 userId = 1;\n}", + "doc": "删除用户" + }, + { + "name": "FindEnabledUserRequest", + "code": "message FindEnabledUserRequest {\n\tint64 userId = 1;\n}", + "doc": "查询单个用户信息" + }, + { + "name": "CheckUserUsernameRequest", + "code": "message CheckUserUsernameRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n}", + "doc": "检查用户名是否存在" + }, + { + "name": "UpdateUserInfoRequest", + "code": "message UpdateUserInfoRequest {\n\tint64 userId = 1;\n\tstring fullname = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n}", + "doc": "修改用户基本信息" + }, + { + "name": "ComposeUserDashboardResponse", + "code": "message ComposeUserDashboardResponse {\n\tint64 countServers = 1;\n\tint64 monthlyTrafficBytes = 2;\n\tint64 monthlyPeekBandwidthBytes = 3;\n\tint64 dailyTrafficBytes = 4;\n\tint64 dailyPeekBandwidthBytes = 5;\n\trepeated DailyTrafficStat dailyTrafficStats = 6;\n\trepeated DailyPeekBandwidthStat dailyPeekBandwidthStats = 7;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n\n\n\tmessage DailyPeekBandwidthStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n}", + "doc": "" + }, + { + "name": "FindAllUserFeatureDefinitionsRequest", + "code": "message FindAllUserFeatureDefinitionsRequest {\n\n}", + "doc": "获取所有的功能定义" + }, + { + "name": "LoginUserResponse", + "code": "message LoginUserResponse {\n\tint64 userId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", + "doc": "" + }, { "name": "FindUserFeaturesRequest", "code": "message FindUserFeaturesRequest {\n\tint64 userId = 1;\n}", "doc": "获取用户所有的功能列表" }, + { + "name": "CheckUserOTPWithUsernameRequest", + "code": "message CheckUserOTPWithUsernameRequest {\n\tstring username = 1;\n}", + "doc": "根据用户名检查是否需要输入OTP" + }, + { + "name": "ListEnabledUsersResponse", + "code": "message ListEnabledUsersResponse {\n\trepeated User users = 1;\n}", + "doc": "" + }, + { + "name": "CheckUserUsernameResponse", + "code": "message CheckUserUsernameResponse {\n\tbool exists = 1;\n}", + "doc": "" + }, + { + "name": "FindUserFeaturesResponse", + "code": "message FindUserFeaturesResponse {\n\trepeated UserFeature features = 1;\n}", + "doc": "" + }, + { + "name": "VerifyUserRequest", + "code": "message VerifyUserRequest {\n\tint64 userId = 1;\n\tbool isRejected = 2;\n\tstring rejectReason = 3;\n}", + "doc": "审核用户" + }, { "name": "CheckUserOTPWithUsernameResponse", "code": "message CheckUserOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", "doc": "" }, + { + "name": "CreateUserRequest", + "code": "message CreateUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring fullname = 3;\n\tstring mobile = 4;\n\tstring tel = 5;\n\tstring email = 6;\n\tstring remark = 7;\n\tstring source = 8;\n\tint64 nodeClusterId = 9;\n}", + "doc": "创建用户" + }, + { + "name": "FindUserNodeClusterIdRequest", + "code": "message FindUserNodeClusterIdRequest {\n\tint64 userId = 1;\n}", + "doc": "获取用户所在的集群ID" + }, + { + "name": "UpdateUserFeaturesRequest", + "code": "message UpdateUserFeaturesRequest {\n\tint64 userId = 1;\n\trepeated string featureCodes = 2;\n}", + "doc": "设置用户能使用的功能" + }, + { + "name": "ComposeUserGlobalBoardRequest", + "code": "message ComposeUserGlobalBoardRequest {\n\n}", + "doc": "组合看板数据" + }, + { + "name": "FindUserNodeClusterIdResponse", + "code": "message FindUserNodeClusterIdResponse {\n\tint64 nodeClusterId = 1;\n}", + "doc": "" + }, + { + "name": "ComposeUserGlobalBoardResponse", + "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": "FindAllUserFeatureDefinitionsResponse", + "code": "message FindAllUserFeatureDefinitionsResponse {\n\trepeated UserFeature features = 1;\n}", + "doc": "" + }, { "name": "RegisterUserRequest", "code": "message RegisterUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n\tstring fullname = 5;\n\tstring ip = 6;\n\tstring source = 7;\n}", "doc": "注册用户" }, + { + "name": "CountAllEnabledUsersRequest", + "code": "message CountAllEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 2;\n}", + "doc": "计算用户数量" + }, { "name": "ListEnabledUsersRequest", "code": "message ListEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 4;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", @@ -15263,145 +15567,30 @@ "code": "message FindEnabledUserResponse {\n\tUser user = 1;\n}", "doc": "" }, - { - "name": "UpdateUserInfoRequest", - "code": "message UpdateUserInfoRequest {\n\tint64 userId = 1;\n\tstring fullname = 2;\n\tstring mobile = 3;\n\tstring email = 4;\n}", - "doc": "修改用户基本信息" - }, - { - "name": "FindUserNodeClusterIdRequest", - "code": "message FindUserNodeClusterIdRequest {\n\tint64 userId = 1;\n}", - "doc": "获取用户所在的集群ID" - }, - { - "name": "ComposeUserGlobalBoardRequest", - "code": "message ComposeUserGlobalBoardRequest {\n\n}", - "doc": "组合看板数据" - }, - { - "name": "UpdateUserRequest", - "code": "message UpdateUserRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tstring mobile = 5;\n\tstring tel = 6;\n\tstring email = 7;\n\tstring remark = 8;\n\tbool isOn = 9;\n\tint64 nodeClusterId = 10;\n}", - "doc": "修改用户" - }, - { - "name": "ListEnabledUsersResponse", - "code": "message ListEnabledUsersResponse {\n\trepeated User users = 1;\n}", - "doc": "" - }, - { - "name": "CheckUserUsernameRequest", - "code": "message CheckUserUsernameRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n}", - "doc": "检查用户名是否存在" - }, - { - "name": "ComposeUserDashboardResponse", - "code": "message ComposeUserDashboardResponse {\n\tint64 countServers = 1;\n\tint64 monthlyTrafficBytes = 2;\n\tint64 monthlyPeekBandwidthBytes = 3;\n\tint64 dailyTrafficBytes = 4;\n\tint64 dailyPeekBandwidthBytes = 5;\n\trepeated DailyTrafficStat dailyTrafficStats = 6;\n\trepeated DailyPeekBandwidthStat dailyPeekBandwidthStats = 7;\n\n\n\tmessage DailyTrafficStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n\n\n\tmessage DailyPeekBandwidthStat {\n\t\tstring day = 1;\n\t\tint64 bytes = 2;\n\t}\n}", - "doc": "" - }, - { - "name": "CreateUserRequest", - "code": "message CreateUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n\tstring fullname = 3;\n\tstring mobile = 4;\n\tstring tel = 5;\n\tstring email = 6;\n\tstring remark = 7;\n\tstring source = 8;\n\tint64 nodeClusterId = 9;\n}", - "doc": "创建用户" - }, - { - "name": "FindUserFeaturesResponse", - "code": "message FindUserFeaturesResponse {\n\trepeated UserFeature features = 1;\n}", - "doc": "" - }, - { - "name": "FindUserNodeClusterIdResponse", - "code": "message FindUserNodeClusterIdResponse {\n\tint64 nodeClusterId = 1;\n}", - "doc": "" - }, - { - "name": "CheckUserUsernameResponse", - "code": "message CheckUserUsernameResponse {\n\tbool exists = 1;\n}", - "doc": "" - }, - { - "name": "ComposeUserDashboardRequest", - "code": "message ComposeUserDashboardRequest {\n\tint64 userId = 1;\n}", - "doc": "取得用户Dashboard数据" - }, - { - "name": "UpdateUserFeaturesRequest", - "code": "message UpdateUserFeaturesRequest {\n\tint64 userId = 1;\n\trepeated string featureCodes = 2;\n}", - "doc": "设置用户能使用的功能" - }, - { - "name": "CheckUserOTPWithUsernameRequest", - "code": "message CheckUserOTPWithUsernameRequest {\n\tstring username = 1;\n}", - "doc": "根据用户名检查是否需要输入OTP" - }, - { - "name": "CountAllEnabledUsersRequest", - "code": "message CountAllEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 2;\n}", - "doc": "计算用户数量" - }, - { - "name": "FindEnabledUserRequest", - "code": "message FindEnabledUserRequest {\n\tint64 userId = 1;\n}", - "doc": "查询单个用户信息" - }, - { - "name": "DeleteUserRequest", - "code": "message DeleteUserRequest {\n\tint64 userId = 1;\n}", - "doc": "删除用户" - }, { "name": "LoginUserRequest", "code": "message LoginUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", "doc": "登录" }, - { - "name": "LoginUserResponse", - "code": "message LoginUserResponse {\n\tint64 userId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", - "doc": "" - }, - { - "name": "FindAllUserFeatureDefinitionsRequest", - "code": "message FindAllUserFeatureDefinitionsRequest {\n\n}", - "doc": "获取所有的功能定义" - }, - { - "name": "ComposeUserGlobalBoardResponse", - "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": "CreateUserResponse", - "code": "message CreateUserResponse {\n\tint64 userId = 1;\n}", - "doc": "" - }, - { - "name": "VerifyUserRequest", - "code": "message VerifyUserRequest {\n\tint64 userId = 1;\n\tbool isRejected = 2;\n\tstring rejectReason = 3;\n}", - "doc": "审核用户" - }, { "name": "UpdateUserLoginRequest", "code": "message UpdateUserLoginRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", "doc": "修改用户登录信息" }, { - "name": "FindAllUserFeatureDefinitionsResponse", - "code": "message FindAllUserFeatureDefinitionsResponse {\n\trepeated UserFeature features = 1;\n}", + "name": "ComposeUserDashboardRequest", + "code": "message ComposeUserDashboardRequest {\n\tint64 userId = 1;\n}", + "doc": "取得用户Dashboard数据" + }, + { + "name": "CreateUserResponse", + "code": "message CreateUserResponse {\n\tint64 userId = 1;\n}", "doc": "" }, { - "name": "DeleteUserAccessKeyRequest", - "code": "message DeleteUserAccessKeyRequest {\n\tint64 userAccessKeyId = 1;\n}", - "doc": "删除AccessKey" - }, - { - "name": "UpdateUserAccessKeyIsOnRequest", - "code": "message UpdateUserAccessKeyIsOnRequest {\n\tint64 userAccessKeyId = 1;\n\tbool isOn = 2;\n}", - "doc": "设置是否启用AccessKey" - }, - { - "name": "CountAllEnabledUserAccessKeysRequest", - "code": "message CountAllEnabledUserAccessKeysRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", - "doc": "计算AccessKey数量" + "name": "UpdateUserRequest", + "code": "message UpdateUserRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n\tstring fullname = 4;\n\tstring mobile = 5;\n\tstring tel = 6;\n\tstring email = 7;\n\tstring remark = 8;\n\tbool isOn = 9;\n\tint64 nodeClusterId = 10;\n}", + "doc": "修改用户" }, { "name": "CreateUserAccessKeyRequest", @@ -15424,19 +15613,19 @@ "doc": "" }, { - "name": "CountUserAccountsRequest", - "code": "message CountUserAccountsRequest {\n\tstring keyword = 1;\n}", - "doc": "计算账户数量" + "name": "DeleteUserAccessKeyRequest", + "code": "message DeleteUserAccessKeyRequest {\n\tint64 userAccessKeyId = 1;\n}", + "doc": "删除AccessKey" }, { - "name": "ListUserAccountsRequest", - "code": "message ListUserAccountsRequest {\n\tstring keyword = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页账户" + "name": "UpdateUserAccessKeyIsOnRequest", + "code": "message UpdateUserAccessKeyIsOnRequest {\n\tint64 userAccessKeyId = 1;\n\tbool isOn = 2;\n}", + "doc": "设置是否启用AccessKey" }, { - "name": "ListUserAccountsResponse", - "code": "message ListUserAccountsResponse {\n\trepeated UserAccount userAccounts = 1;\n}", - "doc": "" + "name": "CountAllEnabledUserAccessKeysRequest", + "code": "message CountAllEnabledUserAccessKeysRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", + "doc": "计算AccessKey数量" }, { "name": "FindEnabledUserAccountWithUserIdRequest", @@ -15463,6 +15652,26 @@ "code": "message UpdateUserAccountRequest {\n\tint64 userAccountId = 1;\n\tfloat delta = 2;\n\tstring eventType = 3;\n\tstring description = 4;\n\tbytes paramsJSON = 5;\n}", "doc": "修改用户账户" }, + { + "name": "CountUserAccountsRequest", + "code": "message CountUserAccountsRequest {\n\tstring keyword = 1;\n}", + "doc": "计算账户数量" + }, + { + "name": "ListUserAccountsRequest", + "code": "message ListUserAccountsRequest {\n\tstring keyword = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页账户" + }, + { + "name": "ListUserAccountsResponse", + "code": "message ListUserAccountsResponse {\n\trepeated UserAccount userAccounts = 1;\n}", + "doc": "" + }, + { + "name": "ListUserAccountDailyStatsRequest", + "code": "message ListUserAccountDailyStatsRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n}", + "doc": "列出按天统计" + }, { "name": "ListUserAccountDailyStatsResponse", "code": "message ListUserAccountDailyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tstring day = 1; // YYYYMMDD\n\t\tfloat income = 2;\n\t\tfloat expense = 3;\n\t}\n}", @@ -15478,16 +15687,6 @@ "code": "message ListUserAccountMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tstring month = 1; // YYYYMM\n\t\tfloat income = 2;\n\t\tfloat expense = 3;\n\t}\n}", "doc": "" }, - { - "name": "ListUserAccountDailyStatsRequest", - "code": "message ListUserAccountDailyStatsRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n}", - "doc": "列出按天统计" - }, - { - "name": "CountUserAccountLogsRequest", - "code": "message CountUserAccountLogsRequest {\n\tint64 userAccountId = 1;\n\tstring keyword = 2;\n\tstring eventType = 3;\n}", - "doc": "计算日志数量" - }, { "name": "ListUserAccountLogsRequest", "code": "message ListUserAccountLogsRequest {\n\tint64 userAccountId = 1;\n\tstring keyword = 2;\n\tstring eventType = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", @@ -15498,16 +15697,36 @@ "code": "message ListUserAccountLogsResponse {\n\trepeated UserAccountLog userAccountLogs = 1;\n}", "doc": "" }, + { + "name": "CountUserAccountLogsRequest", + "code": "message CountUserAccountLogsRequest {\n\tint64 userAccountId = 1;\n\tstring keyword = 2;\n\tstring eventType = 3;\n}", + "doc": "计算日志数量" + }, { "name": "GenerateAllUserBillsRequest", "code": "message GenerateAllUserBillsRequest {\n\tstring month = 1;\n}", "doc": "手工生成账单" }, + { + "name": "PayUserBillRequest", + "code": "message PayUserBillRequest {\n\tint64 userBillId = 1;\n}", + "doc": "支付账单" + }, + { + "name": "SumUserUnpaidBillsResponse", + "code": "message SumUserUnpaidBillsResponse {\n\tfloat amount = 1;\n}", + "doc": "" + }, { "name": "CountAllUserBillsRequest", "code": "message CountAllUserBillsRequest {\n\tint32 paidFlag = 1; // 0|1|-1\n\tint64 userId = 2;\n\tstring month = 3;\n}", "doc": "计算所有账单数量" }, + { + "name": "ListUserBillsRequest", + "code": "message ListUserBillsRequest {\n\tint32 paidFlag = 1;\n\tint64 userId = 2;\n\tstring month = 5;\n\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页账单" + }, { "name": "ListUserBillsResponse", "code": "message ListUserBillsResponse {\n\trepeated UserBill userBills = 1;\n}", @@ -15523,60 +15742,35 @@ "code": "message FindUserBillResponse {\n\tUserBill userBill = 1;\n}", "doc": "" }, - { - "name": "SumUserUnpaidBillsResponse", - "code": "message SumUserUnpaidBillsResponse {\n\tfloat amount = 1;\n}", - "doc": "" - }, - { - "name": "ListUserBillsRequest", - "code": "message ListUserBillsRequest {\n\tint32 paidFlag = 1;\n\tint64 userId = 2;\n\tstring month = 5;\n\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "列出单页账单" - }, - { - "name": "PayUserBillRequest", - "code": "message PayUserBillRequest {\n\tint64 userBillId = 1;\n}", - "doc": "支付账单" - }, { "name": "SumUserUnpaidBillsRequest", "code": "message SumUserUnpaidBillsRequest {\n\tint64 userId = 1;\n}", "doc": "计算用户所有未支付账单总额" }, - { - "name": "CreateUserIdentityResponse", - "code": "message CreateUserIdentityResponse {\n\tint64 userIdentityId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledUserIdentityResponse", - "code": "message FindEnabledUserIdentityResponse {\n\tUserIdentity userIdentity = 1;\n}", - "doc": "" - }, - { - "name": "RejectUserIdentityRequest", - "code": "message RejectUserIdentityRequest {\n\tint64 userIdentityId = 1;\n\tstring reason = 2;\n}", - "doc": "拒绝用户实名认证信息" - }, - { - "name": "CheckUserIdentityIsSubmittedResponse", - "code": "message CheckUserIdentityIsSubmittedResponse {\n\tbool isSubmitted = 1;\n}", - "doc": "" - }, { "name": "UpdateUserIdentityRequest", "code": "message UpdateUserIdentityRequest {\n\tint64 userIdentityId = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", "doc": "修改实名认证信息" }, { - "name": "ResetUserIdentityRequest", - "code": "message ResetUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "重置用户实名认证信息" + "name": "CancelUserIdentityRequest", + "code": "message CancelUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "取消提交身份审核认证信息" }, { - "name": "VerifyUserIdentityRequest", - "code": "message VerifyUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "通过用户实名认证信息" + "name": "FindEnabledUserIdentityResponse", + "code": "message FindEnabledUserIdentityResponse {\n\tUserIdentity userIdentity = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserIdentityWithOrgTypeResponse", + "code": "message FindEnabledUserIdentityWithOrgTypeResponse {\n\tUserIdentity userIdentity = 1;\n}", + "doc": "" + }, + { + "name": "SubmitUserIdentityRequest", + "code": "message SubmitUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "提交审核实名认证信息" }, { "name": "CreateUserIdentityRequest", @@ -15589,19 +15783,29 @@ "doc": "查看某个类型的实名认证信息" }, { - "name": "CheckUserIdentityIsSubmittedRequest", - "code": "message CheckUserIdentityIsSubmittedRequest {\n\tint64 userId = 1;\n}", - "doc": "检查是否正在审核中" + "name": "CheckUserIdentityIsSubmittedResponse", + "code": "message CheckUserIdentityIsSubmittedResponse {\n\tbool isSubmitted = 1;\n}", + "doc": "" }, { - "name": "SubmitUserIdentityRequest", - "code": "message SubmitUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "提交审核实名认证信息" + "name": "ResetUserIdentityRequest", + "code": "message ResetUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "重置用户实名认证信息" }, { - "name": "CancelUserIdentityRequest", - "code": "message CancelUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", - "doc": "取消提交身份审核认证信息" + "name": "RejectUserIdentityRequest", + "code": "message RejectUserIdentityRequest {\n\tint64 userIdentityId = 1;\n\tstring reason = 2;\n}", + "doc": "拒绝用户实名认证信息" + }, + { + "name": "VerifyUserIdentityRequest", + "code": "message VerifyUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "通过用户实名认证信息" + }, + { + "name": "CreateUserIdentityResponse", + "code": "message CreateUserIdentityResponse {\n\tint64 userIdentityId = 1;\n}", + "doc": "" }, { "name": "FindEnabledUserIdentityRequest", @@ -15609,54 +15813,29 @@ "doc": "查找单个实名认证信息" }, { - "name": "FindEnabledUserIdentityWithOrgTypeResponse", - "code": "message FindEnabledUserIdentityWithOrgTypeResponse {\n\tUserIdentity userIdentity = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentUserNodeResponse", - "code": "message FindCurrentUserNodeResponse {\n\tUserNode userNode = 1;\n}", - "doc": "" - }, - { - "name": "CreateUserNodeResponse", - "code": "message CreateUserNodeResponse {\n\tint64 userNodeId = 1;\n}", - "doc": "" - }, - { - "name": "DeleteUserNodeRequest", - "code": "message DeleteUserNodeRequest {\n\tint64 userNodeId = 1;\n}", - "doc": "删除用户节点" + "name": "CheckUserIdentityIsSubmittedRequest", + "code": "message CheckUserIdentityIsSubmittedRequest {\n\tint64 userId = 1;\n}", + "doc": "检查是否正在审核中" }, { "name": "FindCurrentUserNodeRequest", "code": "message FindCurrentUserNodeRequest {\n\n}", "doc": "获取当前用户节点" }, - { - "name": "UpdateUserNodeRequest", - "code": "message UpdateUserNodeRequest {\n\tint64 userNodeId = 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}", - "doc": "修改用户节点" - }, - { - "name": "FindAllEnabledUserNodesRequest", - "code": "message FindAllEnabledUserNodesRequest {\n\n}", - "doc": "列出所有可用用户节点" - }, { "name": "CountAllEnabledUserNodesWithSSLCertIdRequest", "code": "message CountAllEnabledUserNodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", "doc": "计算使用某个SSL证书的用户节点数量" }, { - "name": "ListEnabledUserNodesResponse", - "code": "message ListEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", - "doc": "" + "name": "CreateUserNodeRequest", + "code": "message CreateUserNodeRequest {\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}", + "doc": "创建用户节点" }, { - "name": "FindEnabledUserNodeRequest", - "code": "message FindEnabledUserNodeRequest {\n\tint64 userNodeId = 1;\n}", - "doc": "根据ID查找节点" + "name": "DeleteUserNodeRequest", + "code": "message DeleteUserNodeRequest {\n\tint64 userNodeId = 1;\n}", + "doc": "删除用户节点" }, { "name": "FindEnabledUserNodeResponse", @@ -15669,34 +15848,49 @@ "doc": "更新节点状态" }, { - "name": "CreateUserNodeRequest", - "code": "message CreateUserNodeRequest {\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}", - "doc": "创建用户节点" - }, - { - "name": "FindAllEnabledUserNodesResponse", - "code": "message FindAllEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", + "name": "CreateUserNodeResponse", + "code": "message CreateUserNodeResponse {\n\tint64 userNodeId = 1;\n}", "doc": "" }, - { - "name": "CountAllEnabledUserNodesRequest", - "code": "message CountAllEnabledUserNodesRequest {\n\n}", - "doc": "计算用户节点数量" - }, { "name": "ListEnabledUserNodesRequest", "code": "message ListEnabledUserNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页的用户节点" }, { - "name": "FinishUserOrderRequest", - "code": "message FinishUserOrderRequest {\n\tstring code = 1;\n}", - "doc": "完成订单" + "name": "FindCurrentUserNodeResponse", + "code": "message FindCurrentUserNodeResponse {\n\tUserNode userNode = 1;\n}", + "doc": "" }, { - "name": "ListEnabledUserOrdersRequest", - "code": "message ListEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页订单" + "name": "UpdateUserNodeRequest", + "code": "message UpdateUserNodeRequest {\n\tint64 userNodeId = 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}", + "doc": "修改用户节点" + }, + { + "name": "FindAllEnabledUserNodesResponse", + "code": "message FindAllEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserNodeRequest", + "code": "message FindEnabledUserNodeRequest {\n\tint64 userNodeId = 1;\n}", + "doc": "根据ID查找节点" + }, + { + "name": "FindAllEnabledUserNodesRequest", + "code": "message FindAllEnabledUserNodesRequest {\n\n}", + "doc": "列出所有可用用户节点" + }, + { + "name": "CountAllEnabledUserNodesRequest", + "code": "message CountAllEnabledUserNodesRequest {\n\n}", + "doc": "计算用户节点数量" + }, + { + "name": "ListEnabledUserNodesResponse", + "code": "message ListEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", + "doc": "" }, { "name": "ListEnabledUserOrdersResponse", @@ -15708,20 +15902,20 @@ "code": "message CreateUserOrderResponse {\n\tstring code = 1;\n\tstring payURL = 2;\n}", "doc": "" }, - { - "name": "CancelUserOrderRequest", - "code": "message CancelUserOrderRequest {\n\tstring code = 1;\n}", - "doc": "取消订单" - }, { "name": "FindEnabledUserOrderResponse", "code": "message FindEnabledUserOrderResponse {\n\tUserOrder userOrder = 1;\n}", "doc": "" }, { - "name": "CountEnabledUserOrdersRequest", - "code": "message CountEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n}", - "doc": "计算订单数量" + "name": "CancelUserOrderRequest", + "code": "message CancelUserOrderRequest {\n\tstring code = 1;\n}", + "doc": "取消订单" + }, + { + "name": "ListEnabledUserOrdersRequest", + "code": "message ListEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页订单" }, { "name": "CreateUserOrderRequest", @@ -15733,11 +15927,46 @@ "code": "message FindEnabledUserOrderRequest {\n\tstring code = 1;\n}", "doc": "查看订单" }, + { + "name": "FinishUserOrderRequest", + "code": "message FinishUserOrderRequest {\n\tstring code = 1;\n}", + "doc": "完成订单" + }, + { + "name": "CountEnabledUserOrdersRequest", + "code": "message CountEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\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}", "doc": "添加已购套餐" }, + { + "name": "RenewUserPlanRequest", + "code": "message RenewUserPlanRequest {\n\tint64 userPlanId = 1;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n}", + "doc": "续费套餐" + }, + { + "name": "ListEnabledUserPlansRequest", + "code": "message ListEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", + "doc": "列出单页已购套餐" + }, + { + "name": "ListEnabledUserPlansResponse", + "code": "message ListEnabledUserPlansResponse {\n\trepeated UserPlan userPlans = 1;\n}", + "doc": "" + }, + { + "name": "BuyUserPlanResponse", + "code": "message BuyUserPlanResponse {\n\tint64 userPlanId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserPlanRequest", + "code": "message FindEnabledUserPlanRequest {\n\tint64 userPlanId = 1;\n}", + "doc": "查找单个已购套餐信息" + }, { "name": "FindEnabledUserPlanResponse", "code": "message FindEnabledUserPlanResponse {\n\tUserPlan userPlan = 1;\n}", @@ -15748,16 +15977,16 @@ "code": "message UpdateUserPlanRequest {\n\tint64 userPlanId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tbool isOn = 4;\n\tstring name = 5;\n}", "doc": "修改已购套餐" }, + { + "name": "DeleteUserPlanRequest", + "code": "message DeleteUserPlanRequest {\n\tint64 userPlanId = 1;\n}", + "doc": "删除已购套餐" + }, { "name": "CountAllEnabledUserPlansRequest", "code": "message CountAllEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n}", "doc": "计算已购套餐数" }, - { - "name": "ListEnabledUserPlansResponse", - "code": "message ListEnabledUserPlansResponse {\n\trepeated UserPlan userPlans = 1;\n}", - "doc": "" - }, { "name": "FindAllEnabledUserPlansForServerRequest", "code": "message FindAllEnabledUserPlansForServerRequest {\n\tint64 userId = 1;\n\tint64 serverId = 2;\n}", @@ -15768,31 +15997,6 @@ "code": "message FindAllEnabledUserPlansForServerResponse {\n\trepeated UserPlan userPlans = 1;\n}", "doc": "" }, - { - "name": "BuyUserPlanResponse", - "code": "message BuyUserPlanResponse {\n\tint64 userPlanId = 1;\n}", - "doc": "" - }, - { - "name": "RenewUserPlanRequest", - "code": "message RenewUserPlanRequest {\n\tint64 userPlanId = 1;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n}", - "doc": "续费套餐" - }, - { - "name": "FindEnabledUserPlanRequest", - "code": "message FindEnabledUserPlanRequest {\n\tint64 userPlanId = 1;\n}", - "doc": "查找单个已购套餐信息" - }, - { - "name": "DeleteUserPlanRequest", - "code": "message DeleteUserPlanRequest {\n\tint64 userPlanId = 1;\n}", - "doc": "删除已购套餐" - }, - { - "name": "ListEnabledUserPlansRequest", - "code": "message ListEnabledUserPlansRequest {\n\tbool isAvailable = 1;\n\tbool isExpired = 2;\n\tint32 expiringDays = 3;\n\tint64 userId = 4;\n\tint64 offset = 5;\n\tint64 size = 6;\n}", - "doc": "列出单页已购套餐" - }, { "name": "CreateUserTicketRequest", "code": "message CreateUserTicketRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring subject = 2;\n\tstring body = 3;\n}", @@ -15803,16 +16007,16 @@ "code": "message DeleteUserTicketRequest {\n\tint64 userTicketId = 1;\n}", "doc": "删除工单" }, - { - "name": "CountUserTicketsRequest", - "code": "message CountUserTicketsRequest {\n\tint64 userId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring status = 3;\n}", - "doc": "计算工单数量" - }, { "name": "ListUserTicketsRequest", "code": "message ListUserTicketsRequest {\n\tint64 userId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring status = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", "doc": "列出单页工单" }, + { + "name": "ListUserTicketsResponse", + "code": "message ListUserTicketsResponse {\n\trepeated UserTicket userTickets = 1;\n}", + "doc": "" + }, { "name": "FindUserTicketResponse", "code": "message FindUserTicketResponse {\n\tUserTicket userTicket = 1;\n}", @@ -15829,55 +16033,25 @@ "doc": "修改工单" }, { - "name": "ListUserTicketsResponse", - "code": "message ListUserTicketsResponse {\n\trepeated UserTicket userTickets = 1;\n}", - "doc": "" + "name": "CountUserTicketsRequest", + "code": "message CountUserTicketsRequest {\n\tint64 userId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring status = 3;\n}", + "doc": "计算工单数量" }, { "name": "FindUserTicketRequest", "code": "message FindUserTicketRequest {\n\tint64 userTicketId = 1;\n}", "doc": "查找单个工单" }, - { - "name": "UpdateUserTicketCategoryRequest", - "code": "message UpdateUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改分类" - }, { "name": "DeleteUserTicketCategoryRequest", "code": "message DeleteUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", "doc": "删除分类" }, - { - "name": "FindAllAvailableUserTicketCategoriesRequest", - "code": "message FindAllAvailableUserTicketCategoriesRequest {\n\n}", - "doc": "查找所有启用中的分类" - }, - { - "name": "FindAllAvailableUserTicketCategoriesResponse", - "code": "message FindAllAvailableUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", - "doc": "" - }, - { - "name": "CreateUserTicketCategoryResponse", - "code": "message CreateUserTicketCategoryResponse {\n\tint64 userTicketCategoryId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllUserTicketCategoriesRequest", - "code": "message FindAllUserTicketCategoriesRequest {\n\n}", - "doc": "查找所有分类" - }, { "name": "FindAllUserTicketCategoriesResponse", "code": "message FindAllUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", "doc": "" }, - { - "name": "FindUserTicketCategoryRequest", - "code": "message FindUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", - "doc": "查询单个分类" - }, { "name": "FindUserTicketCategoryResponse", "code": "message FindUserTicketCategoryResponse {\n\tUserTicketCategory userTicketCategory = 1;\n}", @@ -15889,14 +16063,34 @@ "doc": "创建分类" }, { - "name": "CountUserTicketLogsRequest", - "code": "message CountUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n}", - "doc": "查询日志数量" + "name": "CreateUserTicketCategoryResponse", + "code": "message CreateUserTicketCategoryResponse {\n\tint64 userTicketCategoryId = 1;\n}", + "doc": "" }, { - "name": "ListUserTicketLogsRequest", - "code": "message ListUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页日志" + "name": "FindAllAvailableUserTicketCategoriesRequest", + "code": "message FindAllAvailableUserTicketCategoriesRequest {\n\n}", + "doc": "查找所有启用中的分类" + }, + { + "name": "FindAllAvailableUserTicketCategoriesResponse", + "code": "message FindAllAvailableUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", + "doc": "" + }, + { + "name": "FindUserTicketCategoryRequest", + "code": "message FindUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", + "doc": "查询单个分类" + }, + { + "name": "UpdateUserTicketCategoryRequest", + "code": "message UpdateUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改分类" + }, + { + "name": "FindAllUserTicketCategoriesRequest", + "code": "message FindAllUserTicketCategoriesRequest {\n\n}", + "doc": "查找所有分类" }, { "name": "ListUserTicketLogsResponse", @@ -15918,6 +16112,16 @@ "code": "message DeleteUserTicketLogRequest {\n\tint64 userTicketLogId = 1;\n}", "doc": "删除日志" }, + { + "name": "CountUserTicketLogsRequest", + "code": "message CountUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n}", + "doc": "查询日志数量" + }, + { + "name": "ListUserTicketLogsRequest", + "code": "message ListUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页日志" + }, { "name": "ACMEProvider", "code": "message ACMEProvider {\n\tstring name = 1;\n\tstring code = 2;\n\tstring description = 4;\n\tstring apiURL = 5;\n\tbool requireEAB = 6;\n\tstring eabDescription = 7;\n}", @@ -16123,6 +16327,11 @@ "code": "message IPLibrary {\n\tint64 id = 1;\n\tstring type = 2;\n\tint64 createdAt = 3;\n\n\tFile file = 30;\n}", "doc": "" }, + { + "name": "IPLibraryFile", + "code": "message IPLibraryFile {\n\tint64 id = 1;\n\tint64 fileId = 2;\n\tbool isFinished = 3;\n\tint64 createdAt = 4;\n\trepeated string countryNames = 5;\n\trepeated Province provinces = 6;\n\trepeated City cities = 7;\n\trepeated Town towns = 8;\n\trepeated string providerNames = 9;\n\n\n\tmessage Province {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t}\n\n\n\tmessage City {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t}\n\n\n\tmessage Town {\n\t\tstring countryName = 1;\n\t\tstring provinceName = 2;\n\t\tstring cityName = 3;\n\t\tstring townName = 4;\n\t}\n}", + "doc": "" + }, { "name": "IPList", "code": "message IPList {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring type = 3;\n\tstring name = 4;\n\tstring code = 5;\n\tbytes timeoutJSON = 6;\n\tbool isPublic = 7;\n\tstring description = 8;\n\tbool isGlobal = 9;\n}", @@ -16169,13 +16378,13 @@ "doc": "" }, { - "name": "MessageTaskResult", - "code": "message MessageTaskResult {\n\tbool isOk = 1;\n\tstring error = 2;\n\tstring response = 3;\n}", + "name": "MessageTask", + "code": "message MessageTask {\n\tint64 id = 1;\n\tMessageRecipient messageRecipient = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tint64 createdAt = 6;\n\tint32 status = 7;\n\tint64 sentAt = 8;\n\tMessageTaskResult result = 9;\n\tMessageMediaInstance messageMediaInstance = 10;\n}", "doc": "" }, { - "name": "MessageTask", - "code": "message MessageTask {\n\tint64 id = 1;\n\tMessageRecipient messageRecipient = 2;\n\tstring user = 3;\n\tstring subject = 4;\n\tstring body = 5;\n\tint64 createdAt = 6;\n\tint32 status = 7;\n\tint64 sentAt = 8;\n\tMessageTaskResult result = 9;\n\tMessageMediaInstance messageMediaInstance = 10;\n}", + "name": "MessageTaskResult", + "code": "message MessageTaskResult {\n\tbool isOk = 1;\n\tstring error = 2;\n\tstring response = 3;\n}", "doc": "" }, { @@ -16193,16 +16402,16 @@ "code": "message MetricItem {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring code = 3;\n\tstring category = 4;\n\tstring name = 5;\n\trepeated string keys = 6;\n\tint32 period = 7;\n\tstring periodUnit = 8;\n\tint32 expiresPeriod = 12;\n\tstring value = 10;\n\tbool isPublic = 11;\n}", "doc": "指标定义" }, - { - "name": "UploadingMetricStat", - "code": "message UploadingMetricStat {\n\tint64 id = 1;\n\tstring hash = 2;\n\trepeated string keys = 3;\n\tfloat value = 4;\n}", - "doc": "需要上传的统计数据" - }, { "name": "MetricStat", "code": "message MetricStat {\n\tint64 id = 1;\n\tstring hash = 2;\n\tint64 serverId = 3;\n\tint64 itemId = 4;\n\trepeated string keys = 5;\n\tfloat value = 6;\n\tstring time = 7;\n\tint32 version = 8;\n\n\tNodeCluster nodeCluster = 30;\n\tNode node = 31;\n\tServer server = 32;\n\n\tint64 sumCount = 40;\n\tfloat sumTotal = 41;\n}", "doc": "统计数据" }, + { + "name": "UploadingMetricStat", + "code": "message UploadingMetricStat {\n\tint64 id = 1;\n\tstring hash = 2;\n\trepeated string keys = 3;\n\tfloat value = 4;\n}", + "doc": "需要上传的统计数据" + }, { "name": "MonitorNode", "code": "message MonitorNode {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring uniqueId = 3;\n\tstring secret = 4;\n\tstring name = 5;\n\tstring description = 6;\n\tbytes statusJSON = 7;\n}", @@ -16370,22 +16579,22 @@ }, { "name": "RegionCity", - "code": "message RegionCity {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n\tint64 regionProvinceId = 4;\n\n\tRegionProvince regionProvince = 30;\n}", + "code": "message RegionCity {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n\tint64 regionProvinceId = 4;\n\tstring customName = 5;\n\trepeated string customCodes = 6;\n\tstring displayName = 7;\n\n\tRegionProvince regionProvince = 30;\n}", "doc": "" }, { "name": "RegionCountry", - "code": "message RegionCountry {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n\trepeated string pinyin = 4;\n}", + "code": "message RegionCountry {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n\trepeated string pinyin = 4;\n\tstring customName = 5;\n\trepeated string customCodes = 6;\n\tstring displayName = 7;\n}", "doc": "" }, { "name": "RegionProvider", - "code": "message RegionProvider {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n}", + "code": "message RegionProvider {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n\tstring customName = 4;\n\trepeated string customCodes = 5;\n\tstring displayName = 6;\n}", "doc": "" }, { "name": "RegionProvince", - "code": "message RegionProvince {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n}", + "code": "message RegionProvince {\n\tint64 id = 1;\n\tstring name = 2;\n\trepeated string codes = 3;\n\tint64 regionCountryId = 4;\n\tstring customName = 5;\n\trepeated string customCodes = 6;\n\tstring displayName = 7;\n}", "doc": "" }, { @@ -16548,11 +16757,6 @@ "code": "message UserTicketLog {\n\tint64 id = 1;\n\tint64 adminId = 2;\n\tint64 userId = 3;\n\tint64 ticketId = 4;\n\tstring status = 5;\n\tstring comment = 6;\n\tint64 createdAt = 7;\n\tbool isReadonly = 8;\n\n\tAdmin admin = 30;\n\tUser user = 31;\n}", "doc": "工单日志" }, - { - "name": "RPCSuccess", - "code": "message RPCSuccess {\n\n}", - "doc": "操作成功" - }, { "name": "RPCCountResponse", "code": "message RPCCountResponse {\n\tint64 count = 1;\n}", @@ -16563,6 +16767,11 @@ "code": "message RPCExists {\n\tbool exists = 1;\n}", "doc": "是否存在" }, + { + "name": "RPCSuccess", + "code": "message RPCSuccess {\n\n}", + "doc": "操作成功" + }, { "name": "ServerDomainHourlyStat", "code": "message ServerDomainHourlyStat {\n\tint64 serverId = 1;\n\tstring domain = 2;\n\tint64 countRequests = 3;\n\tint64 bytes = 4;\n\tint64 countAttackRequests = 6;\n\tint64 attackBytes = 7;\n}", diff --git a/pkg/iplibrary/.gitignore b/pkg/iplibrary/.gitignore new file mode 100644 index 0000000..893b37f --- /dev/null +++ b/pkg/iplibrary/.gitignore @@ -0,0 +1 @@ + ip.db \ No newline at end of file diff --git a/pkg/iplibrary/ip.db b/pkg/iplibrary/ip.db new file mode 100644 index 0000000..9dd733c Binary files /dev/null and b/pkg/iplibrary/ip.db differ diff --git a/pkg/iplibrary/ip_item.go b/pkg/iplibrary/ip_item.go new file mode 100644 index 0000000..9aa999d --- /dev/null +++ b/pkg/iplibrary/ip_item.go @@ -0,0 +1,13 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +type ipItem struct { + ipFrom uint64 + ipTo uint64 + countryId int64 + provinceId int64 + cityId int64 + townId int64 + providerId int64 +} diff --git a/pkg/iplibrary/meta.go b/pkg/iplibrary/meta.go new file mode 100644 index 0000000..1dd94be --- /dev/null +++ b/pkg/iplibrary/meta.go @@ -0,0 +1,39 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +type Meta struct { + Version int `json:"version"` // IP库版本 + Author string `json:"author"` + Countries []*Country `json:"countries"` + Provinces []*Province `json:"provinces"` + Cities []*City `json:"cities"` + Towns []*Town `json:"towns"` + Providers []*Provider `json:"providers"` + CreatedAt int64 `json:"createdAt"` +} + +type Provider struct { + Name string `json:"name"` + Codes []string `json:"codes"` +} + +type Country struct { + Name string `json:"name"` + Codes []string `json:"codes"` +} + +type Province struct { + Name string `json:"name"` + Codes []string `json:"codes"` +} + +type City struct { + Name string `json:"name"` + Codes []string `json:"codes"` +} + +type Town struct { + Name string `json:"name"` + Codes []string `json:"codes"` +} diff --git a/pkg/iplibrary/parser.go b/pkg/iplibrary/parser.go new file mode 100644 index 0000000..4fbb0ac --- /dev/null +++ b/pkg/iplibrary/parser.go @@ -0,0 +1,64 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "bytes" + "errors" +) + +type Parser struct { + config *ParserConfig + + data []byte +} + +func NewParser(config *ParserConfig) (*Parser, error) { + if config == nil { + config = &ParserConfig{} + } + + if config.Template == nil { + return nil, errors.New("template must not be nil") + } + + return &Parser{ + config: config, + }, nil +} + +func (this *Parser) Write(data []byte) { + this.data = append(this.data, data...) +} + +func (this *Parser) Parse() error { + if len(this.data) == 0 { + return nil + } + for { + var index = bytes.IndexByte(this.data, '\n') + if index >= 0 { + var line = this.data[:index+1] + values, found := this.config.Template.Extract(string(line), this.config.EmptyValues) + if found { + if this.config.Iterator != nil { + err := this.config.Iterator(values) + if err != nil { + return err + } + } + } else { + // 防止错误信息太长 + if len(line) > 256 { + line = line[:256] + } + return errors.New("invalid line '" + string(line) + "'") + } + + this.data = this.data[index+1:] + } else { + break + } + } + return nil +} diff --git a/pkg/iplibrary/parser_config.go b/pkg/iplibrary/parser_config.go new file mode 100644 index 0000000..dbd3c37 --- /dev/null +++ b/pkg/iplibrary/parser_config.go @@ -0,0 +1,9 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +type ParserConfig struct { + Template *Template + EmptyValues []string + Iterator func(values map[string]string) error +} diff --git a/pkg/iplibrary/parser_reader.go b/pkg/iplibrary/parser_reader.go new file mode 100644 index 0000000..604a1fd --- /dev/null +++ b/pkg/iplibrary/parser_reader.go @@ -0,0 +1,54 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "errors" + "io" +) + +type ReaderParser struct { + reader io.Reader + rawParser *Parser +} + +func NewReaderParser(reader io.Reader, config *ParserConfig) (*ReaderParser, error) { + if config == nil { + config = &ParserConfig{} + } + + if config.Template == nil { + return nil, errors.New("template must not be nil") + } + + parser, err := NewParser(config) + if err != nil { + return nil, err + } + + return &ReaderParser{ + reader: reader, + rawParser: parser, + }, nil +} + +func (this *ReaderParser) Parse() error { + var buf = make([]byte, 1024) + for { + n, err := this.reader.Read(buf) + if n > 0 { + this.rawParser.Write(buf[:n]) + parseErr := this.rawParser.Parse() + if parseErr != nil { + return parseErr + } + } + if err != nil { + if err != io.EOF { + return err + } + break + } + } + return nil +} diff --git a/pkg/iplibrary/parser_reader_test.go b/pkg/iplibrary/parser_reader_test.go new file mode 100644 index 0000000..832887f --- /dev/null +++ b/pkg/iplibrary/parser_reader_test.go @@ -0,0 +1,62 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "bytes" + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "testing" +) + +func TestNewReaderParser(t *testing.T) { + template, err := iplibrary.NewTemplate("${ipFrom}|${ipTo}|${country}|${any}|${province}|${city}|${provider}") + if err != nil { + t.Fatal(err) + } + + var buf = &bytes.Buffer{} + buf.WriteString(`8.45.160.0|8.45.161.255|美国|0|华盛顿|西雅图|Level3 +8.45.162.0|8.45.162.255|美国|0|马萨诸塞|0|Level3 +8.45.163.0|8.45.164.255|美国|0|俄勒冈|0|Level3 +8.45.165.0|8.45.165.255|美国|0|华盛顿|0|Level3 +8.45.166.0|8.45.167.255|美国|0|华盛顿|西雅图|Level3 +8.45.168.0|8.127.255.255|美国|0|0|0|Level3 +8.128.0.0|8.128.3.255|中国|0|上海|上海市|阿里巴巴 +8.128.4.0|8.128.255.255|中国|0|0|0|阿里巴巴 +8.129.0.0|8.129.255.255|中国|0|广东省|深圳市|阿里云 +8.130.0.0|8.130.55.255|中国|0|北京|北京市|阿里云 +8.130.56.0|8.131.255.255|中国|0|北京|北京市|阿里巴巴 +8.132.0.0|8.133.255.255|中国|0|上海|上海市|阿里巴巴 +8.134.0.0|8.134.20.63|中国|0|0|0|阿里云 +8.134.20.64|8.134.79.255|中国|0|广东省|深圳市|阿里云 +8.134.80.0|8.191.255.255|中国|0|0|0|阿里巴巴 +8.192.0.0|8.192.0.255|美国|0|0|0|Level3 +8.192.1.0|8.192.1.255|美国|0|马萨诸塞|波士顿|Level3 +8.192.2.0|8.207.255.255|美国|0|0|0|Level3 +8.208.0.0|8.208.127.255|英国|0|伦敦|伦敦|阿里云 +8.208.128.0|8.208.255.255|英国|0|伦敦|伦敦|阿里巴巴 +8.209.0.0|8.209.15.255|俄罗斯|0|莫斯科|莫斯科|阿里云 +8.209.16.0|8.209.31.255|俄罗斯|0|莫斯科|莫斯科|阿里巴巴 +8.209.32.0|8.209.32.15|中国|0|台湾省|台北|阿里云 +8.209.32.16|8.209.32.255|中国|0|台湾省|台北|阿里巴巴 +8.209.33.0|8.209.34.255|中国|0|台湾省|台北|阿里云 +8.209.35.0|8.209.35.255|中国|0|台湾省|台北|阿里巴巴`) + + var count int + parser, err := iplibrary.NewReaderParser(buf, &iplibrary.ParserConfig{ + Template: template, + EmptyValues: []string{"0"}, + Iterator: func(values map[string]string) error { + count++ + t.Log(count, values) + return nil + }, + }) + if err != nil { + t.Fatal(err) + } + err = parser.Parse() + if err != nil { + t.Fatal(err) + } +} diff --git a/pkg/iplibrary/parser_test.go b/pkg/iplibrary/parser_test.go new file mode 100644 index 0000000..dcde1c3 --- /dev/null +++ b/pkg/iplibrary/parser_test.go @@ -0,0 +1,44 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "testing" +) + +func TestNewParser(t *testing.T) { + template, err := iplibrary.NewTemplate("${ipFrom}|${ipTo}|${country}|${any}|${province}|${city}|${provider}") + if err != nil { + t.Fatal(err) + } + + parser, err := iplibrary.NewParser(&iplibrary.ParserConfig{ + Template: template, + EmptyValues: []string{"0"}, + Iterator: func(values map[string]string) error { + t.Log(values) + return nil + }, + }) + if err != nil { + t.Fatal(err) + } + + parser.Write([]byte(`0.0.0.0|0.255.255.255|0|0|0|内网IP|内网IP +1.0.0.0|1.0.0.255|澳大利亚|0|0|0|0 +1.0.1.0|1.0.3.255|中国|0|福建省|福州市|电信 +1.0.4.0|1.0.7.255|澳大利亚|0|维多利亚|墨尔本|0 +1.0.8.0|1.0.15.255|中国|0|广东省|广州市|电信 +1.0.16.0|1.0.31.255|日本|0|0|0|0 +1.0.32.0|1.0.63.255|中国|0|广东省|广州市|电信 +1.0.64.0|1.0.79.255|日本|0|广岛县|0|0 +1.0.80.0|1.0.127.255|日本|0|冈山县|0|0 +1.0.128.0|1.0.128.255|泰国|0|清莱府|0|TOT +1.0.129.0|1.0.132.191|泰国|0|曼谷|曼谷|TOT`)) + + err = parser.Parse() + if err != nil { + t.Fatal(err) + } +} diff --git a/pkg/iplibrary/reader.go b/pkg/iplibrary/reader.go new file mode 100644 index 0000000..b1bf460 --- /dev/null +++ b/pkg/iplibrary/reader.go @@ -0,0 +1,211 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "bytes" + "encoding/json" + "errors" + "github.com/TeaOSLab/EdgeCommon/pkg/configutils" + "github.com/iwind/TeaGo/types" + "io" + "net" + "sort" + "strings" +) + +type Reader struct { + meta *Meta + + ipV4Items []*ipItem + ipV6Items []*ipItem +} + +func NewReader(reader io.Reader) (*Reader, error) { + var libReader = &Reader{} + err := libReader.load(reader) + if err != nil { + return nil, err + } + return libReader, nil +} + +func (this *Reader) load(reader io.Reader) error { + var buf = make([]byte, 1024) + var metaLine = []byte{} + var metaLineFound = false + var dataBuf = []byte{} + for { + n, err := reader.Read(buf) + if n > 0 { + var data = buf[:n] + dataBuf = append(dataBuf, data...) + if metaLineFound { + left, err := this.parse(dataBuf) + if err != nil { + return err + } + dataBuf = left + } else { + var index = bytes.IndexByte(dataBuf, '\n') + if index > 0 { + metaLine = dataBuf[:index] + dataBuf = dataBuf[index+1:] + metaLineFound = true + var meta = &Meta{} + err = json.Unmarshal(metaLine, &meta) + if err != nil { + return err + } + this.meta = meta + + left, err := this.parse(dataBuf) + if err != nil { + return err + } + dataBuf = left + } + } + } + if err != nil { + if err != io.EOF { + return err + } + break + } + } + + sort.Slice(this.ipV4Items, func(i, j int) bool { + var from0 = this.ipV4Items[i].ipFrom + var to0 = this.ipV4Items[i].ipTo + var from1 = this.ipV4Items[j].ipFrom + var to1 = this.ipV4Items[j].ipTo + if from0 == from1 { + return to0 < to1 + } + return from0 < from1 + }) + + sort.Slice(this.ipV6Items, func(i, j int) bool { + var from0 = this.ipV6Items[i].ipFrom + var to0 = this.ipV6Items[i].ipTo + var from1 = this.ipV6Items[j].ipFrom + var to1 = this.ipV6Items[j].ipTo + if from0 == from1 { + return to0 < to1 + } + return from0 < from1 + }) + + return nil +} + +func (this *Reader) Lookup(ip net.IP) *QueryResult { + var ipLong = configutils.IP2Long(ip) + var isV4 = configutils.IsIPv4(ip) + var resultItem *ipItem + if isV4 { + sort.Search(len(this.ipV4Items), func(i int) bool { + var item = this.ipV4Items[i] + if item.ipFrom <= ipLong { + if item.ipTo >= ipLong { + resultItem = item + return false + } + return false + } + return true + }) + } else { + sort.Search(len(this.ipV6Items), func(i int) bool { + var item = this.ipV6Items[i] + if item.ipFrom <= ipLong { + if item.ipTo >= ipLong { + resultItem = item + return false + } + return false + } + return true + }) + } + + return &QueryResult{ + item: resultItem, + } +} + +func (this *Reader) Meta() *Meta { + return this.meta +} + +func (this *Reader) IPv4Items() []*ipItem { + return this.ipV4Items +} + +func (this *Reader) IPv6Items() []*ipItem { + return this.ipV6Items +} + +func (this *Reader) parse(data []byte) (left []byte, err error) { + if len(data) == 0 { + return + } + for { + var index = bytes.IndexByte(data, '\n') + if index >= 0 { + var line = data[:index] + var pieces = strings.Split(string(line), "|") + if len(pieces) != 8 { + return nil, errors.New("invalid ip definition '" + string(line) + "'") + } + + var version = pieces[0] + if len(version) == 0 { + version = "4" + } + + if version != "4" && version != "6" { + return nil, errors.New("invalid ip version '" + string(line) + "'") + } + + if len(pieces[2]) == 0 { + pieces[2] = pieces[1] + } + + var ipFrom = types.Uint64(pieces[1]) + var ipTo = types.Uint64(pieces[2]) + if ipFrom > ipTo { + ipFrom, ipTo = ipTo, ipFrom + } + + if version == "4" { + this.ipV4Items = append(this.ipV4Items, &ipItem{ + ipFrom: ipFrom, + ipTo: ipTo, + countryId: types.Int64(pieces[3]), + provinceId: types.Int64(pieces[4]), + cityId: types.Int64(pieces[5]), + townId: types.Int64(pieces[6]), + providerId: types.Int64(pieces[7]), + }) + } else { + this.ipV6Items = append(this.ipV6Items, &ipItem{ + ipFrom: ipFrom, + ipTo: ipTo, + countryId: types.Int64(pieces[3]), + provinceId: types.Int64(pieces[4]), + cityId: types.Int64(pieces[5]), + townId: types.Int64(pieces[6]), + providerId: types.Int64(pieces[7]), + }) + } + + data = data[index+1:] + } else { + left = data + break + } + } + return +} diff --git a/pkg/iplibrary/reader_file.go b/pkg/iplibrary/reader_file.go new file mode 100644 index 0000000..5230009 --- /dev/null +++ b/pkg/iplibrary/reader_file.go @@ -0,0 +1,41 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "compress/gzip" + "net" + "os" +) + +type FileReader struct { + rawReader *Reader +} + +func NewFileReader(path string) (*FileReader, error) { + fp, err := os.Open(path) + if err != nil { + return nil, err + } + defer func() { + _ = fp.Close() + }() + + gzReader, err := gzip.NewReader(fp) + if err != nil { + return nil, err + } + + reader, err := NewReader(gzReader) + if err != nil { + return nil, err + } + + return &FileReader{ + rawReader: reader, + }, nil +} + +func (this *FileReader) Lookup(ip net.IP) *QueryResult { + return this.rawReader.Lookup(ip) +} diff --git a/pkg/iplibrary/reader_file_test.go b/pkg/iplibrary/reader_file_test.go new file mode 100644 index 0000000..a86b564 --- /dev/null +++ b/pkg/iplibrary/reader_file_test.go @@ -0,0 +1,37 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "net" + "testing" +) + +func TestNewFileReader(t *testing.T) { + reader, err := iplibrary.NewFileReader("./ip.db") + if err != nil { + t.Fatal(err) + } + + for _, ip := range []string{ + "127.0.0.1", + "192.168.0.1", + "192.168.0.150", + "192.168.1.100", + "192.168.2.100", + "192.168.3.50", + "192.168.0.150", + "192.168.4.80", + "8.8.8.8", + "111.197.165.199", + "175.178.206.125", + } { + var result = reader.Lookup(net.ParseIP(ip)) + if result.IsOk() { + t.Log(ip+":", "countryId:", result.CountryId(), "provinceId:", result.ProvinceId(), "cityId:", result.CityId(), "provider:", result.ProviderId()) + } else { + t.Log(ip+":", "not found") + } + } +} diff --git a/pkg/iplibrary/reader_result.go b/pkg/iplibrary/reader_result.go new file mode 100644 index 0000000..9a1690e --- /dev/null +++ b/pkg/iplibrary/reader_result.go @@ -0,0 +1,46 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +type QueryResult struct { + item *ipItem +} + +func (this *QueryResult) IsOk() bool { + return this.item != nil +} + +func (this *QueryResult) CountryId() int64 { + if this.item != nil { + return this.item.countryId + } + return 0 +} + +func (this *QueryResult) ProvinceId() int64 { + if this.item != nil { + return this.item.provinceId + } + return 0 +} + +func (this *QueryResult) CityId() int64 { + if this.item != nil { + return this.item.cityId + } + return 0 +} + +func (this *QueryResult) TownId() int64 { + if this.item != nil { + return this.item.townId + } + return 0 +} + +func (this *QueryResult) ProviderId() int64 { + if this.item != nil { + return this.item.providerId + } + return 0 +} diff --git a/pkg/iplibrary/reader_test.go b/pkg/iplibrary/reader_test.go new file mode 100644 index 0000000..dbad3d7 --- /dev/null +++ b/pkg/iplibrary/reader_test.go @@ -0,0 +1,149 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "bytes" + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "github.com/iwind/TeaGo/rands" + "github.com/iwind/TeaGo/types" + timeutil "github.com/iwind/TeaGo/utils/time" + "net" + "runtime" + "testing" + "time" +) + +func TestNewReader(t *testing.T) { + var buf = &bytes.Buffer{} + var writer = iplibrary.NewWriter(buf, &iplibrary.Meta{ + Author: "GoEdge ", + }) + + err := writer.WriteMeta() + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.1.100", "192.168.1.100", 1, 200, 300, 400, 500) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.2.100", "192.168.3.100", 2, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.3.101", "192.168.3.101", 3, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.0.101", "192.168.0.200", 4, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("::1", "::5", 5, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + /**var n = func() string { + return types.String(rands.Int(0, 255)) + } + + for i := 0; i < 1_000_000; i++ { + err = writer.Write(n()+"."+n()+"."+n()+"."+n(), n()+"."+n()+"."+n()+"."+n(), int64(i)+100, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + }**/ + + var stat = &runtime.MemStats{} + runtime.ReadMemStats(stat) + reader, err := iplibrary.NewReader(buf) + + var stat2 = &runtime.MemStats{} + runtime.ReadMemStats(stat2) + t.Log((stat2.Alloc-stat.Alloc)/1024/1024, "M") + + if err != nil { + t.Fatal(err) + } + t.Log("version:", reader.Meta().Version, "author:", reader.Meta().Author, "createdTime:", timeutil.FormatTime("Y-m-d H:i:s", reader.Meta().CreatedAt)) + + if len(reader.IPv4Items()) < 10 { + t.Log("===") + for _, item := range reader.IPv4Items() { + t.Logf("%+v", item) + } + t.Log("===") + } + if len(reader.IPv6Items()) < 10 { + t.Log("===") + for _, item := range reader.IPv6Items() { + t.Logf("%+v", item) + } + t.Log("===") + } + + var before = time.Now() + for _, ip := range []string{ + "192.168.0.1", + "192.168.0.150", + "192.168.1.100", + "192.168.2.100", + "192.168.3.50", + "192.168.0.150", + "192.168.4.80", + "::3", + "::8", + } { + var result = reader.Lookup(net.ParseIP(ip)) + if result.IsOk() { + t.Log(ip+":", "countryId:", result.CountryId()) + } else { + t.Log(ip+":", "not found") + } + } + t.Log(time.Since(before).Seconds()*1000, "ms") +} + +func BenchmarkNewReader(b *testing.B) { + runtime.GOMAXPROCS(1) + + var buf = &bytes.Buffer{} + var writer = iplibrary.NewWriter(buf, &iplibrary.Meta{ + Author: "GoEdge ", + }) + + err := writer.WriteMeta() + if err != nil { + b.Fatal(err) + } + + var n = func() string { + return types.String(rands.Int(0, 255)) + } + + for i := 0; i < 1_000_000; i++ { + err = writer.Write(n()+"."+n()+"."+n()+"."+n(), n()+"."+n()+"."+n()+"."+n(), int64(i)+100, 201, 301, 401, 501) + if err != nil { + b.Fatal(err) + } + } + + reader, err := iplibrary.NewReader(buf) + if err != nil { + b.Fatal(err) + } + + b.ResetTimer() + + for i := 0; i < b.N; i++ { + var ip = "192.168.1.100" + reader.Lookup(net.ParseIP(ip)) + } +} diff --git a/pkg/iplibrary/template.go b/pkg/iplibrary/template.go new file mode 100644 index 0000000..954d3e0 --- /dev/null +++ b/pkg/iplibrary/template.go @@ -0,0 +1,75 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "github.com/iwind/TeaGo/lists" + "regexp" +) + +type Template struct { + templateString string + reg *regexp.Regexp +} + +func NewTemplate(templateString string) (*Template, error) { + var t = &Template{ + templateString: templateString, + } + err := t.init() + if err != nil { + return nil, err + } + return t, nil +} + +func (this *Template) init() error { + var template = regexp.QuoteMeta(this.templateString) + var keywordReg = regexp.MustCompile(`\\\$\\{(\w+)\\}`) + template = keywordReg.ReplaceAllStringFunc(template, func(keyword string) string { + var matches = keywordReg.FindStringSubmatch(keyword) + if len(matches) > 1 { + switch matches[1] { + case "ipFrom", "ipTo", "country", "province", "city", "town", "provider": + return "(?P<" + matches[1] + ">.*)" + } + return ".*" + } + + return keyword + }) + reg, err := regexp.Compile(template) + if err != nil { + return err + } + this.reg = reg + return nil +} + +func (this *Template) Extract(text string, emptyValues []string) (values map[string]string, ok bool) { + var matches = this.reg.FindStringSubmatch(text) + if len(matches) == 0 { + return + } + values = map[string]string{} + for index, name := range this.reg.SubexpNames() { + if len(name) == 0 { + continue + } + var v = matches[index] + if name != "ipFrom" && name != "ipTo" && (v == "0" || v == "无" || lists.ContainsString(emptyValues, v)) { + v = "" + } + values[name] = v + } + + for _, keyword := range []string{"ipFrom", "ipTo", "country", "province", "city", "town", "provider"} { + _, hasKeyword := values[keyword] + if !hasKeyword { + values[keyword] = "" + } + } + + ok = true + return +} diff --git a/pkg/iplibrary/template_test.go b/pkg/iplibrary/template_test.go new file mode 100644 index 0000000..61212c1 --- /dev/null +++ b/pkg/iplibrary/template_test.go @@ -0,0 +1,25 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "testing" +) + +func TestNewTemplate(t *testing.T) { + template, err := iplibrary.NewTemplate("${ipFrom}|${ipTo}|${country}|${any}|${province}|${city}|${provider}") + if err != nil { + t.Fatal(err) + } + for _, s := range []string{ + "42.0.32.0|42.0.63.255|中国|0|广东省|广州市|电信", + "42.0.32.0|42.0.63.255|中国|0|广东省|广州市|电信\n123", + "42.0.32.0|42.0.63.255|中国||广东省|广州市|电信", + "42.0.32.0|42.0.63.255|中国|0||广州市|电信", + "42.0.32.0|42.0.63.255|中国|0|广东省|广州市", + } { + values, _ := template.Extract(s, []string{}) + t.Log(s, "=>\n", values) + } +} diff --git a/pkg/iplibrary/version.go b/pkg/iplibrary/version.go new file mode 100644 index 0000000..1460020 --- /dev/null +++ b/pkg/iplibrary/version.go @@ -0,0 +1,9 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +type Version = int + +const ( + Version1 Version = 1 +) diff --git a/pkg/iplibrary/writer.go b/pkg/iplibrary/writer.go new file mode 100644 index 0000000..9748b17 --- /dev/null +++ b/pkg/iplibrary/writer.go @@ -0,0 +1,154 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "crypto/md5" + "encoding/json" + "errors" + "fmt" + "github.com/TeaOSLab/EdgeCommon/pkg/configutils" + "github.com/iwind/TeaGo/types" + "hash" + "io" + "net" + "strings" + "time" +) + +type hashWriter struct { + rawWriter io.Writer + hash hash.Hash +} + +func newHashWriter(writer io.Writer) *hashWriter { + return &hashWriter{ + rawWriter: writer, + hash: md5.New(), + } +} + +func (this *hashWriter) Write(p []byte) (n int, err error) { + n, err = this.rawWriter.Write(p) + this.hash.Write(p) + return +} + +func (this *hashWriter) Sum() string { + return fmt.Sprintf("%x", this.hash.Sum(nil)) +} + +type Writer struct { + writer *hashWriter + meta *Meta +} + +func NewWriter(writer io.Writer, meta *Meta) *Writer { + if meta == nil { + meta = &Meta{} + } + meta.Version = Version1 + meta.CreatedAt = time.Now().Unix() + + var libWriter = &Writer{ + writer: newHashWriter(writer), + meta: meta, + } + return libWriter +} + +func (this *Writer) WriteMeta() error { + metaJSON, err := json.Marshal(this.meta) + if err != nil { + return err + } + _, err = this.writer.Write(metaJSON) + if err != nil { + return err + } + _, err = this.writer.Write([]byte("\n")) + return err +} + +func (this *Writer) Write(ipFrom string, ipTo string, countryId int64, provinceId int64, cityId int64, townId int64, providerId int64) error { + // validate IP + var fromIP = net.ParseIP(ipFrom) + if fromIP == nil { + return errors.New("invalid 'ipFrom': '" + ipFrom + "'") + } + var fromIsIPv4 = configutils.IsIPv4(fromIP) + var toIP = net.ParseIP(ipTo) + if toIP == nil { + return errors.New("invalid 'ipTo': " + ipTo) + } + var toIsIPv4 = configutils.IsIPv4(toIP) + if fromIsIPv4 != toIsIPv4 { + return errors.New("'ipFrom(" + ipFrom + ")' and 'ipTo(" + ipTo + ")' should have the same IP version") + } + + var pieces = []string{} + + // 0 + if fromIsIPv4 { + pieces = append(pieces, "") + } else { + pieces = append(pieces, "6") + } + + // 1 + pieces = append(pieces, types.String(configutils.IP2Long(fromIP))) + if ipFrom == ipTo { + // 2 + pieces = append(pieces, "") + } else { + // 2 + pieces = append(pieces, types.String(configutils.IP2Long(toIP))) + } + + // 3 + if countryId > 0 { + pieces = append(pieces, types.String(countryId)) + } else { + pieces = append(pieces, "") + } + + // 4 + if provinceId > 0 { + pieces = append(pieces, types.String(provinceId)) + } else { + pieces = append(pieces, "") + } + + // 5 + if cityId > 0 { + pieces = append(pieces, types.String(cityId)) + } else { + pieces = append(pieces, "") + } + + // 6 + if townId > 0 { + pieces = append(pieces, types.String(townId)) + } else { + pieces = append(pieces, "") + } + + // 7 + if providerId > 0 { + pieces = append(pieces, types.String(providerId)) + } else { + pieces = append(pieces, "") + } + + _, err := this.writer.Write([]byte(strings.Join(pieces, "|"))) + if err != nil { + return err + } + + _, err = this.writer.Write([]byte("\n")) + return err +} + +func (this *Writer) Sum() string { + return this.writer.Sum() +} diff --git a/pkg/iplibrary/writer_file.go b/pkg/iplibrary/writer_file.go new file mode 100644 index 0000000..2bcb094 --- /dev/null +++ b/pkg/iplibrary/writer_file.go @@ -0,0 +1,58 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary + +import ( + "compress/gzip" + "os" +) + +type FileWriter struct { + fp *os.File + gzWriter *gzip.Writer + + rawWriter *Writer +} + +func NewFileWriter(path string, meta *Meta) (*FileWriter, error) { + fp, err := os.OpenFile(path, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666) + if err != nil { + return nil, err + } + + gzWriter, err := gzip.NewWriterLevel(fp, gzip.BestCompression) + if err != nil { + return nil, err + } + + var writer = &FileWriter{ + fp: fp, + gzWriter: gzWriter, + rawWriter: NewWriter(gzWriter, meta), + } + return writer, nil +} + +func (this *FileWriter) WriteMeta() error { + return this.rawWriter.WriteMeta() +} + +func (this *FileWriter) Write(ipFrom string, ipTo string, countryId int64, provinceId int64, cityId int64, townId int64, providerId int64) error { + return this.rawWriter.Write(ipFrom, ipTo, countryId, provinceId, cityId, townId, providerId) +} + +func (this *FileWriter) Sum() string { + return this.rawWriter.Sum() +} + +func (this *FileWriter) Close() error { + err1 := this.gzWriter.Close() + err2 := this.fp.Close() + if err1 != nil { + return err1 + } + if err2 != nil { + return err2 + } + return nil +} diff --git a/pkg/iplibrary/writer_file_test.go b/pkg/iplibrary/writer_file_test.go new file mode 100644 index 0000000..b1ab4d0 --- /dev/null +++ b/pkg/iplibrary/writer_file_test.go @@ -0,0 +1,56 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "github.com/iwind/TeaGo/rands" + "github.com/iwind/TeaGo/types" + "testing" +) + +func TestNewFileWriter(t *testing.T) { + writer, err := iplibrary.NewFileWriter("./ip.db", &iplibrary.Meta{ + Author: "GoEdge", + }) + if err != nil { + t.Fatal(err) + } + + err = writer.WriteMeta() + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.1.100", "192.168.1.100", 100, 200, 300, 400, 500) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.2.100", "192.168.3.100", 101, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.3.101", "192.168.3.101", 101, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + var n = func() string { + return types.String(rands.Int(0, 255)) + } + + for i := 0; i < 1_000_000; i++ { + err = writer.Write(n()+"."+n()+"."+n()+"."+n(), n()+"."+n()+"."+n()+"."+n(), int64(i)+100, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + } + + err = writer.Close() + if err != nil { + t.Fatal(err) + } + t.Log("ok", writer.Sum()) +} diff --git a/pkg/iplibrary/writer_test.go b/pkg/iplibrary/writer_test.go new file mode 100644 index 0000000..34f8642 --- /dev/null +++ b/pkg/iplibrary/writer_test.go @@ -0,0 +1,44 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package iplibrary_test + +import ( + "bytes" + "github.com/TeaOSLab/EdgeCommon/pkg/iplibrary" + "testing" +) + +func TestNewWriter(t *testing.T) { + var buf = &bytes.Buffer{} + var writer = iplibrary.NewWriter(buf, &iplibrary.Meta{ + Author: "GoEdge ", + }) + + err := writer.WriteMeta() + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.1.100", "192.168.1.100", 100, 200, 300, 400, 500) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.2.100", "192.168.3.100", 101, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("192.168.3.101", "192.168.3.101", 101, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + err = writer.Write("::1", "::2", 101, 201, 301, 401, 501) + if err != nil { + t.Fatal(err) + } + + t.Log(buf.String()) + t.Log("sum:", writer.Sum()) +} diff --git a/pkg/rpc/pb/model_ip_library_file.pb.go b/pkg/rpc/pb/model_ip_library_file.pb.go new file mode 100644 index 0000000..7c09a7e --- /dev/null +++ b/pkg/rpc/pb/model_ip_library_file.pb.go @@ -0,0 +1,482 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ip_library_file.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 IPLibraryFile struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + FileId int64 `protobuf:"varint,2,opt,name=fileId,proto3" json:"fileId,omitempty"` + IsFinished bool `protobuf:"varint,3,opt,name=isFinished,proto3" json:"isFinished,omitempty"` + CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + CountryNames []string `protobuf:"bytes,5,rep,name=countryNames,proto3" json:"countryNames,omitempty"` + Provinces []*IPLibraryFile_Province `protobuf:"bytes,6,rep,name=provinces,proto3" json:"provinces,omitempty"` + Cities []*IPLibraryFile_City `protobuf:"bytes,7,rep,name=cities,proto3" json:"cities,omitempty"` + Towns []*IPLibraryFile_Town `protobuf:"bytes,8,rep,name=towns,proto3" json:"towns,omitempty"` + ProviderNames []string `protobuf:"bytes,9,rep,name=providerNames,proto3" json:"providerNames,omitempty"` +} + +func (x *IPLibraryFile) Reset() { + *x = IPLibraryFile{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ip_library_file_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IPLibraryFile) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPLibraryFile) ProtoMessage() {} + +func (x *IPLibraryFile) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ip_library_file_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 IPLibraryFile.ProtoReflect.Descriptor instead. +func (*IPLibraryFile) Descriptor() ([]byte, []int) { + return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0} +} + +func (x *IPLibraryFile) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *IPLibraryFile) GetFileId() int64 { + if x != nil { + return x.FileId + } + return 0 +} + +func (x *IPLibraryFile) GetIsFinished() bool { + if x != nil { + return x.IsFinished + } + return false +} + +func (x *IPLibraryFile) GetCreatedAt() int64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *IPLibraryFile) GetCountryNames() []string { + if x != nil { + return x.CountryNames + } + return nil +} + +func (x *IPLibraryFile) GetProvinces() []*IPLibraryFile_Province { + if x != nil { + return x.Provinces + } + return nil +} + +func (x *IPLibraryFile) GetCities() []*IPLibraryFile_City { + if x != nil { + return x.Cities + } + return nil +} + +func (x *IPLibraryFile) GetTowns() []*IPLibraryFile_Town { + if x != nil { + return x.Towns + } + return nil +} + +func (x *IPLibraryFile) GetProviderNames() []string { + if x != nil { + return x.ProviderNames + } + return nil +} + +type IPLibraryFile_Province struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"` + ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"` +} + +func (x *IPLibraryFile_Province) Reset() { + *x = IPLibraryFile_Province{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ip_library_file_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IPLibraryFile_Province) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPLibraryFile_Province) ProtoMessage() {} + +func (x *IPLibraryFile_Province) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ip_library_file_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 IPLibraryFile_Province.ProtoReflect.Descriptor instead. +func (*IPLibraryFile_Province) Descriptor() ([]byte, []int) { + return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0, 0} +} + +func (x *IPLibraryFile_Province) GetCountryName() string { + if x != nil { + return x.CountryName + } + return "" +} + +func (x *IPLibraryFile_Province) GetProvinceName() string { + if x != nil { + return x.ProvinceName + } + return "" +} + +type IPLibraryFile_City struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"` + ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"` + CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty"` +} + +func (x *IPLibraryFile_City) Reset() { + *x = IPLibraryFile_City{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ip_library_file_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IPLibraryFile_City) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPLibraryFile_City) ProtoMessage() {} + +func (x *IPLibraryFile_City) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ip_library_file_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 IPLibraryFile_City.ProtoReflect.Descriptor instead. +func (*IPLibraryFile_City) Descriptor() ([]byte, []int) { + return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0, 1} +} + +func (x *IPLibraryFile_City) GetCountryName() string { + if x != nil { + return x.CountryName + } + return "" +} + +func (x *IPLibraryFile_City) GetProvinceName() string { + if x != nil { + return x.ProvinceName + } + return "" +} + +func (x *IPLibraryFile_City) GetCityName() string { + if x != nil { + return x.CityName + } + return "" +} + +type IPLibraryFile_Town struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"` + ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"` + CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty"` + TownName string `protobuf:"bytes,4,opt,name=townName,proto3" json:"townName,omitempty"` +} + +func (x *IPLibraryFile_Town) Reset() { + *x = IPLibraryFile_Town{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ip_library_file_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *IPLibraryFile_Town) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IPLibraryFile_Town) ProtoMessage() {} + +func (x *IPLibraryFile_Town) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ip_library_file_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 IPLibraryFile_Town.ProtoReflect.Descriptor instead. +func (*IPLibraryFile_Town) Descriptor() ([]byte, []int) { + return file_models_model_ip_library_file_proto_rawDescGZIP(), []int{0, 2} +} + +func (x *IPLibraryFile_Town) GetCountryName() string { + if x != nil { + return x.CountryName + } + return "" +} + +func (x *IPLibraryFile_Town) GetProvinceName() string { + if x != nil { + return x.ProvinceName + } + return "" +} + +func (x *IPLibraryFile_Town) GetCityName() string { + if x != nil { + return x.CityName + } + return "" +} + +func (x *IPLibraryFile_Town) GetTownName() string { + if x != nil { + return x.TownName + } + return "" +} + +var File_models_model_ip_library_file_proto protoreflect.FileDescriptor + +var file_models_model_ip_library_file_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, + 0x70, 0x5f, 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x9a, 0x05, 0x0a, 0x0d, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, + 0x6c, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, + 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2e, + 0x0a, 0x06, 0x63, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x2e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x06, 0x63, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x2c, + 0x0a, 0x05, 0x74, 0x6f, 0x77, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, + 0x2e, 0x54, 0x6f, 0x77, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x77, 0x6e, 0x73, 0x12, 0x24, 0x0a, 0x0d, + 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x09, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x1a, 0x50, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x20, + 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x68, 0x0a, 0x04, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, + 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x84, + 0x01, 0x0a, 0x04, 0x54, 0x6f, 0x77, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x6f, 0x77, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x6f, 0x77, + 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ip_library_file_proto_rawDescOnce sync.Once + file_models_model_ip_library_file_proto_rawDescData = file_models_model_ip_library_file_proto_rawDesc +) + +func file_models_model_ip_library_file_proto_rawDescGZIP() []byte { + file_models_model_ip_library_file_proto_rawDescOnce.Do(func() { + file_models_model_ip_library_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ip_library_file_proto_rawDescData) + }) + return file_models_model_ip_library_file_proto_rawDescData +} + +var file_models_model_ip_library_file_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_models_model_ip_library_file_proto_goTypes = []interface{}{ + (*IPLibraryFile)(nil), // 0: pb.IPLibraryFile + (*IPLibraryFile_Province)(nil), // 1: pb.IPLibraryFile.Province + (*IPLibraryFile_City)(nil), // 2: pb.IPLibraryFile.City + (*IPLibraryFile_Town)(nil), // 3: pb.IPLibraryFile.Town +} +var file_models_model_ip_library_file_proto_depIdxs = []int32{ + 1, // 0: pb.IPLibraryFile.provinces:type_name -> pb.IPLibraryFile.Province + 2, // 1: pb.IPLibraryFile.cities:type_name -> pb.IPLibraryFile.City + 3, // 2: pb.IPLibraryFile.towns:type_name -> pb.IPLibraryFile.Town + 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_ip_library_file_proto_init() } +func file_models_model_ip_library_file_proto_init() { + if File_models_model_ip_library_file_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_ip_library_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPLibraryFile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_models_model_ip_library_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPLibraryFile_Province); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_models_model_ip_library_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPLibraryFile_City); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_models_model_ip_library_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*IPLibraryFile_Town); 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_ip_library_file_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ip_library_file_proto_goTypes, + DependencyIndexes: file_models_model_ip_library_file_proto_depIdxs, + MessageInfos: file_models_model_ip_library_file_proto_msgTypes, + }.Build() + File_models_model_ip_library_file_proto = out.File + file_models_model_ip_library_file_proto_rawDesc = nil + file_models_model_ip_library_file_proto_goTypes = nil + file_models_model_ip_library_file_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_region_city.pb.go b/pkg/rpc/pb/model_region_city.pb.go index e14e45b..3c82b5c 100644 --- a/pkg/rpc/pb/model_region_city.pb.go +++ b/pkg/rpc/pb/model_region_city.pb.go @@ -34,6 +34,9 @@ type RegionCity struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` RegionProvinceId int64 `protobuf:"varint,4,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"` + CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"` + DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"` RegionProvince *RegionProvince `protobuf:"bytes,30,opt,name=regionProvince,proto3" json:"regionProvince,omitempty"` } @@ -97,6 +100,27 @@ func (x *RegionCity) GetRegionProvinceId() int64 { return 0 } +func (x *RegionCity) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *RegionCity) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + +func (x *RegionCity) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + func (x *RegionCity) GetRegionProvince() *RegionProvince { if x != nil { return x.RegionProvince @@ -111,19 +135,25 @@ var file_models_model_region_city_proto_rawDesc = []byte{ 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xae, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x67, + 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x02, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x3a, 0x0a, - 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, - 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, - 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, + 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x42, 0x06, 0x5a, + 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/rpc/pb/model_region_country.pb.go b/pkg/rpc/pb/model_region_country.pb.go index 62fd890..e68c145 100644 --- a/pkg/rpc/pb/model_region_country.pb.go +++ b/pkg/rpc/pb/model_region_country.pb.go @@ -30,10 +30,13 @@ type RegionCountry struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` - Pinyin []string `protobuf:"bytes,4,rep,name=pinyin,proto3" json:"pinyin,omitempty"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` + Pinyin []string `protobuf:"bytes,4,rep,name=pinyin,proto3" json:"pinyin,omitempty"` + CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"` + DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"` } func (x *RegionCountry) Reset() { @@ -96,19 +99,46 @@ func (x *RegionCountry) GetPinyin() []string { return nil } +func (x *RegionCountry) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *RegionCountry) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + +func (x *RegionCountry) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + var File_models_model_region_country_proto protoreflect.FileDescriptor var file_models_model_region_country_proto_rawDesc = []byte{ 0x0a, 0x21, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x61, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, 0x64, - 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xc5, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, 0x6f, + 0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x06, 0x70, 0x69, 0x6e, 0x79, 0x69, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, + 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/rpc/pb/model_region_provider.pb.go b/pkg/rpc/pb/model_region_provider.pb.go index ed13833..515f725 100644 --- a/pkg/rpc/pb/model_region_provider.pb.go +++ b/pkg/rpc/pb/model_region_provider.pb.go @@ -30,9 +30,12 @@ type RegionProvider struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` + CustomName string `protobuf:"bytes,4,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,5,rep,name=customCodes,proto3" json:"customCodes,omitempty"` + DisplayName string `protobuf:"bytes,6,opt,name=displayName,proto3" json:"displayName,omitempty"` } func (x *RegionProvider) Reset() { @@ -88,18 +91,45 @@ func (x *RegionProvider) GetCodes() []string { return nil } +func (x *RegionProvider) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *RegionProvider) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + +func (x *RegionProvider) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + var File_models_model_region_provider_proto protoreflect.FileDescriptor var file_models_model_region_provider_proto_rawDesc = []byte{ 0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x4a, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, - 0x6f, 0x64, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xae, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, + 0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, + 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, + 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, + 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/rpc/pb/model_region_province.pb.go b/pkg/rpc/pb/model_region_province.pb.go index 50587ea..de95664 100644 --- a/pkg/rpc/pb/model_region_province.pb.go +++ b/pkg/rpc/pb/model_region_province.pb.go @@ -30,9 +30,13 @@ type RegionProvince struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Codes []string `protobuf:"bytes,3,rep,name=codes,proto3" json:"codes,omitempty"` + RegionCountryId int64 `protobuf:"varint,4,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"` + CustomName string `protobuf:"bytes,5,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,6,rep,name=customCodes,proto3" json:"customCodes,omitempty"` + DisplayName string `protobuf:"bytes,7,opt,name=displayName,proto3" json:"displayName,omitempty"` } func (x *RegionProvince) Reset() { @@ -88,18 +92,55 @@ func (x *RegionProvince) GetCodes() []string { return nil } +func (x *RegionProvince) GetRegionCountryId() int64 { + if x != nil { + return x.RegionCountryId + } + return 0 +} + +func (x *RegionProvince) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *RegionProvince) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + +func (x *RegionProvince) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + var File_models_model_region_province_proto protoreflect.FileDescriptor var file_models_model_region_province_proto_rawDesc = []byte{ 0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x4a, 0x0a, 0x0e, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x63, - 0x6f, 0x64, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xd8, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, + 0x63, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, + 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, + 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, + 0x61, 0x6d, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/rpc/pb/service_ip_library_file.pb.go b/pkg/rpc/pb/service_ip_library_file.pb.go new file mode 100644 index 0000000..182c365 --- /dev/null +++ b/pkg/rpc/pb/service_ip_library_file.pb.go @@ -0,0 +1,1935 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ip_library_file.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 + +// 查找所有未完成的IP库文件 +type FindAllUnfinishedIPLibraryFilesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllUnfinishedIPLibraryFilesRequest) Reset() { + *x = FindAllUnfinishedIPLibraryFilesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllUnfinishedIPLibraryFilesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllUnfinishedIPLibraryFilesRequest) ProtoMessage() {} + +func (x *FindAllUnfinishedIPLibraryFilesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 FindAllUnfinishedIPLibraryFilesRequest.ProtoReflect.Descriptor instead. +func (*FindAllUnfinishedIPLibraryFilesRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{0} +} + +type FindAllUnfinishedIPLibraryFilesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFiles []*IPLibraryFile `protobuf:"bytes,1,rep,name=ipLibraryFiles,proto3" json:"ipLibraryFiles,omitempty"` +} + +func (x *FindAllUnfinishedIPLibraryFilesResponse) Reset() { + *x = FindAllUnfinishedIPLibraryFilesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllUnfinishedIPLibraryFilesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllUnfinishedIPLibraryFilesResponse) ProtoMessage() {} + +func (x *FindAllUnfinishedIPLibraryFilesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 FindAllUnfinishedIPLibraryFilesResponse.ProtoReflect.Descriptor instead. +func (*FindAllUnfinishedIPLibraryFilesResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{1} +} + +func (x *FindAllUnfinishedIPLibraryFilesResponse) GetIpLibraryFiles() []*IPLibraryFile { + if x != nil { + return x.IpLibraryFiles + } + return nil +} + +// 查找单个IP库文件 +type FindIPLibraryFileRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *FindIPLibraryFileRequest) Reset() { + *x = FindIPLibraryFileRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindIPLibraryFileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindIPLibraryFileRequest) ProtoMessage() {} + +func (x *FindIPLibraryFileRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 FindIPLibraryFileRequest.ProtoReflect.Descriptor instead. +func (*FindIPLibraryFileRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{2} +} + +func (x *FindIPLibraryFileRequest) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +type FindIPLibraryFileResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFile *IPLibraryFile `protobuf:"bytes,1,opt,name=ipLibraryFile,proto3" json:"ipLibraryFile,omitempty"` +} + +func (x *FindIPLibraryFileResponse) Reset() { + *x = FindIPLibraryFileResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindIPLibraryFileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindIPLibraryFileResponse) ProtoMessage() {} + +func (x *FindIPLibraryFileResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 FindIPLibraryFileResponse.ProtoReflect.Descriptor instead. +func (*FindIPLibraryFileResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{3} +} + +func (x *FindIPLibraryFileResponse) GetIpLibraryFile() *IPLibraryFile { + if x != nil { + return x.IpLibraryFile + } + return nil +} + +// 创建IP库文件 +type CreateIPLibraryFileRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` + EmptyValues []string `protobuf:"bytes,2,rep,name=emptyValues,proto3" json:"emptyValues,omitempty"` + FileId int64 `protobuf:"varint,3,opt,name=fileId,proto3" json:"fileId,omitempty"` + CountriesJSON []byte `protobuf:"bytes,4,opt,name=countriesJSON,proto3" json:"countriesJSON,omitempty"` + ProvincesJSON []byte `protobuf:"bytes,5,opt,name=provincesJSON,proto3" json:"provincesJSON,omitempty"` + CitiesJSON []byte `protobuf:"bytes,6,opt,name=citiesJSON,proto3" json:"citiesJSON,omitempty"` + TownsJSON []byte `protobuf:"bytes,7,opt,name=townsJSON,proto3" json:"townsJSON,omitempty"` + ProvidersJSON []byte `protobuf:"bytes,8,opt,name=providersJSON,proto3" json:"providersJSON,omitempty"` +} + +func (x *CreateIPLibraryFileRequest) Reset() { + *x = CreateIPLibraryFileRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateIPLibraryFileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateIPLibraryFileRequest) ProtoMessage() {} + +func (x *CreateIPLibraryFileRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CreateIPLibraryFileRequest.ProtoReflect.Descriptor instead. +func (*CreateIPLibraryFileRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{4} +} + +func (x *CreateIPLibraryFileRequest) GetTemplate() string { + if x != nil { + return x.Template + } + return "" +} + +func (x *CreateIPLibraryFileRequest) GetEmptyValues() []string { + if x != nil { + return x.EmptyValues + } + return nil +} + +func (x *CreateIPLibraryFileRequest) GetFileId() int64 { + if x != nil { + return x.FileId + } + return 0 +} + +func (x *CreateIPLibraryFileRequest) GetCountriesJSON() []byte { + if x != nil { + return x.CountriesJSON + } + return nil +} + +func (x *CreateIPLibraryFileRequest) GetProvincesJSON() []byte { + if x != nil { + return x.ProvincesJSON + } + return nil +} + +func (x *CreateIPLibraryFileRequest) GetCitiesJSON() []byte { + if x != nil { + return x.CitiesJSON + } + return nil +} + +func (x *CreateIPLibraryFileRequest) GetTownsJSON() []byte { + if x != nil { + return x.TownsJSON + } + return nil +} + +func (x *CreateIPLibraryFileRequest) GetProvidersJSON() []byte { + if x != nil { + return x.ProvidersJSON + } + return nil +} + +type CreateIPLibraryFileResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *CreateIPLibraryFileResponse) Reset() { + *x = CreateIPLibraryFileResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateIPLibraryFileResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateIPLibraryFileResponse) ProtoMessage() {} + +func (x *CreateIPLibraryFileResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CreateIPLibraryFileResponse.ProtoReflect.Descriptor instead. +func (*CreateIPLibraryFileResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{5} +} + +func (x *CreateIPLibraryFileResponse) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +// 检查国家/地区 +type CheckCountriesWithIPLibraryFileIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *CheckCountriesWithIPLibraryFileIdRequest) Reset() { + *x = CheckCountriesWithIPLibraryFileIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckCountriesWithIPLibraryFileIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckCountriesWithIPLibraryFileIdRequest) ProtoMessage() {} + +func (x *CheckCountriesWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CheckCountriesWithIPLibraryFileIdRequest.ProtoReflect.Descriptor instead. +func (*CheckCountriesWithIPLibraryFileIdRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{6} +} + +func (x *CheckCountriesWithIPLibraryFileIdRequest) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +type CheckCountriesWithIPLibraryFileIdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MissingCountries []*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry `protobuf:"bytes,1,rep,name=missingCountries,proto3" json:"missingCountries,omitempty"` +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse) Reset() { + *x = CheckCountriesWithIPLibraryFileIdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckCountriesWithIPLibraryFileIdResponse) ProtoMessage() {} + +func (x *CheckCountriesWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CheckCountriesWithIPLibraryFileIdResponse.ProtoReflect.Descriptor instead. +func (*CheckCountriesWithIPLibraryFileIdResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{7} +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse) GetMissingCountries() []*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry { + if x != nil { + return x.MissingCountries + } + return nil +} + +// 检查省份/州 +type CheckProvincesWithIPLibraryFileIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *CheckProvincesWithIPLibraryFileIdRequest) Reset() { + *x = CheckProvincesWithIPLibraryFileIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckProvincesWithIPLibraryFileIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckProvincesWithIPLibraryFileIdRequest) ProtoMessage() {} + +func (x *CheckProvincesWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CheckProvincesWithIPLibraryFileIdRequest.ProtoReflect.Descriptor instead. +func (*CheckProvincesWithIPLibraryFileIdRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{8} +} + +func (x *CheckProvincesWithIPLibraryFileIdRequest) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +type CheckProvincesWithIPLibraryFileIdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MissingProvinces []*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince `protobuf:"bytes,1,rep,name=missingProvinces,proto3" json:"missingProvinces,omitempty"` +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse) Reset() { + *x = CheckProvincesWithIPLibraryFileIdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckProvincesWithIPLibraryFileIdResponse) ProtoMessage() {} + +func (x *CheckProvincesWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CheckProvincesWithIPLibraryFileIdResponse.ProtoReflect.Descriptor instead. +func (*CheckProvincesWithIPLibraryFileIdResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{9} +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse) GetMissingProvinces() []*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince { + if x != nil { + return x.MissingProvinces + } + return nil +} + +// 检查城市/市 +type CheckCitiesWithIPLibraryFileIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *CheckCitiesWithIPLibraryFileIdRequest) Reset() { + *x = CheckCitiesWithIPLibraryFileIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckCitiesWithIPLibraryFileIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckCitiesWithIPLibraryFileIdRequest) ProtoMessage() {} + +func (x *CheckCitiesWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CheckCitiesWithIPLibraryFileIdRequest.ProtoReflect.Descriptor instead. +func (*CheckCitiesWithIPLibraryFileIdRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{10} +} + +func (x *CheckCitiesWithIPLibraryFileIdRequest) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +type CheckCitiesWithIPLibraryFileIdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MissingCities []*CheckCitiesWithIPLibraryFileIdResponse_MissingCity `protobuf:"bytes,1,rep,name=missingCities,proto3" json:"missingCities,omitempty"` +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse) Reset() { + *x = CheckCitiesWithIPLibraryFileIdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckCitiesWithIPLibraryFileIdResponse) ProtoMessage() {} + +func (x *CheckCitiesWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_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 CheckCitiesWithIPLibraryFileIdResponse.ProtoReflect.Descriptor instead. +func (*CheckCitiesWithIPLibraryFileIdResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{11} +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse) GetMissingCities() []*CheckCitiesWithIPLibraryFileIdResponse_MissingCity { + if x != nil { + return x.MissingCities + } + return nil +} + +// 检查ISP运营商 +type CheckProvidersWithIPLibraryFileIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *CheckProvidersWithIPLibraryFileIdRequest) Reset() { + *x = CheckProvidersWithIPLibraryFileIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckProvidersWithIPLibraryFileIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckProvidersWithIPLibraryFileIdRequest) ProtoMessage() {} + +func (x *CheckProvidersWithIPLibraryFileIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[12] + 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 CheckProvidersWithIPLibraryFileIdRequest.ProtoReflect.Descriptor instead. +func (*CheckProvidersWithIPLibraryFileIdRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{12} +} + +func (x *CheckProvidersWithIPLibraryFileIdRequest) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +type CheckProvidersWithIPLibraryFileIdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MissingProviders []*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider `protobuf:"bytes,1,rep,name=missingProviders,proto3" json:"missingProviders,omitempty"` +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse) Reset() { + *x = CheckProvidersWithIPLibraryFileIdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckProvidersWithIPLibraryFileIdResponse) ProtoMessage() {} + +func (x *CheckProvidersWithIPLibraryFileIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[13] + 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 CheckProvidersWithIPLibraryFileIdResponse.ProtoReflect.Descriptor instead. +func (*CheckProvidersWithIPLibraryFileIdResponse) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{13} +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse) GetMissingProviders() []*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider { + if x != nil { + return x.MissingProviders + } + return nil +} + +// 生成IP库文件 +type GenerateIPLibraryFileRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IpLibraryFileId int64 `protobuf:"varint,1,opt,name=ipLibraryFileId,proto3" json:"ipLibraryFileId,omitempty"` +} + +func (x *GenerateIPLibraryFileRequest) Reset() { + *x = GenerateIPLibraryFileRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenerateIPLibraryFileRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenerateIPLibraryFileRequest) ProtoMessage() {} + +func (x *GenerateIPLibraryFileRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[14] + 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 GenerateIPLibraryFileRequest.ProtoReflect.Descriptor instead. +func (*GenerateIPLibraryFileRequest) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{14} +} + +func (x *GenerateIPLibraryFileRequest) GetIpLibraryFileId() int64 { + if x != nil { + return x.IpLibraryFileId + } + return 0 +} + +type CheckCountriesWithIPLibraryFileIdResponse_MissingCountry struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"` + SimilarCountries []*RegionCountry `protobuf:"bytes,2,rep,name=similarCountries,proto3" json:"similarCountries,omitempty"` +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) Reset() { + *x = CheckCountriesWithIPLibraryFileIdResponse_MissingCountry{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) ProtoMessage() {} + +func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[15] + 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 CheckCountriesWithIPLibraryFileIdResponse_MissingCountry.ProtoReflect.Descriptor instead. +func (*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) GetCountryName() string { + if x != nil { + return x.CountryName + } + return "" +} + +func (x *CheckCountriesWithIPLibraryFileIdResponse_MissingCountry) GetSimilarCountries() []*RegionCountry { + if x != nil { + return x.SimilarCountries + } + return nil +} + +type CheckProvincesWithIPLibraryFileIdResponse_MissingProvince struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"` + ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"` + SimilarProvinces []*RegionProvince `protobuf:"bytes,3,rep,name=similarProvinces,proto3" json:"similarProvinces,omitempty"` +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) Reset() { + *x = CheckProvincesWithIPLibraryFileIdResponse_MissingProvince{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) ProtoMessage() {} + +func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[16] + 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 CheckProvincesWithIPLibraryFileIdResponse_MissingProvince.ProtoReflect.Descriptor instead. +func (*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{9, 0} +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) GetCountryName() string { + if x != nil { + return x.CountryName + } + return "" +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) GetProvinceName() string { + if x != nil { + return x.ProvinceName + } + return "" +} + +func (x *CheckProvincesWithIPLibraryFileIdResponse_MissingProvince) GetSimilarProvinces() []*RegionProvince { + if x != nil { + return x.SimilarProvinces + } + return nil +} + +type CheckCitiesWithIPLibraryFileIdResponse_MissingCity struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"` + ProvinceName string `protobuf:"bytes,2,opt,name=provinceName,proto3" json:"provinceName,omitempty"` + CityName string `protobuf:"bytes,3,opt,name=cityName,proto3" json:"cityName,omitempty"` + SimilarCities []*RegionCity `protobuf:"bytes,4,rep,name=similarCities,proto3" json:"similarCities,omitempty"` +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) Reset() { + *x = CheckCitiesWithIPLibraryFileIdResponse_MissingCity{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckCitiesWithIPLibraryFileIdResponse_MissingCity) ProtoMessage() {} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[17] + 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 CheckCitiesWithIPLibraryFileIdResponse_MissingCity.ProtoReflect.Descriptor instead. +func (*CheckCitiesWithIPLibraryFileIdResponse_MissingCity) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{11, 0} +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) GetCountryName() string { + if x != nil { + return x.CountryName + } + return "" +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) GetProvinceName() string { + if x != nil { + return x.ProvinceName + } + return "" +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) GetCityName() string { + if x != nil { + return x.CityName + } + return "" +} + +func (x *CheckCitiesWithIPLibraryFileIdResponse_MissingCity) GetSimilarCities() []*RegionCity { + if x != nil { + return x.SimilarCities + } + return nil +} + +type CheckProvidersWithIPLibraryFileIdResponse_MissingProvider struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ProviderName string `protobuf:"bytes,1,opt,name=providerName,proto3" json:"providerName,omitempty"` + SimilarProviders []*RegionProvider `protobuf:"bytes,2,rep,name=similarProviders,proto3" json:"similarProviders,omitempty"` +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) Reset() { + *x = CheckProvidersWithIPLibraryFileIdResponse_MissingProvider{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ip_library_file_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) ProtoMessage() {} + +func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) ProtoReflect() protoreflect.Message { + mi := &file_service_ip_library_file_proto_msgTypes[18] + 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 CheckProvidersWithIPLibraryFileIdResponse_MissingProvider.ProtoReflect.Descriptor instead. +func (*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) Descriptor() ([]byte, []int) { + return file_service_ip_library_file_proto_rawDescGZIP(), []int{13, 0} +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) GetProviderName() string { + if x != nil { + return x.ProviderName + } + return "" +} + +func (x *CheckProvidersWithIPLibraryFileIdResponse_MissingProvider) GetSimilarProviders() []*RegionProvider { + if x != nil { + return x.SimilarProviders + } + return nil +} + +var File_service_ip_library_file_proto protoreflect.FileDescriptor + +var file_service_ip_library_file_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x02, 0x70, 0x62, 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, 0x1a, 0x22, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x69, 0x70, 0x5f, + 0x6c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x21, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x28, 0x0a, + 0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, + 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a, 0x27, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, + 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, + 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x0e, 0x69, + 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x44, 0x0a, + 0x18, 0x46, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, + 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x37, 0x0a, 0x0d, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x0d, 0x69, 0x70, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x22, 0xa2, 0x02, 0x0a, 0x1a, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, + 0x6c, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6d, 0x70, 0x74, 0x79, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x24, + 0x0a, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, + 0x63, 0x69, 0x74, 0x69, 0x65, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x6f, + 0x77, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x74, + 0x6f, 0x77, 0x6e, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x24, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x0d, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x47, + 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, + 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x28, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, + 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x88, 0x02, + 0x0a, 0x29, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x10, 0x6d, + 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x10, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x71, 0x0a, 0x0e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x10, 0x73, 0x69, 0x6d, + 0x69, 0x6c, 0x61, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x28, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, + 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0xb0, + 0x02, 0x0a, 0x29, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, + 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x10, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x10, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x1a, 0x97, 0x01, 0x0a, 0x0f, 0x4d, 0x69, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, + 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, + 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x73, 0x22, 0x51, 0x0a, 0x25, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, + 0x6c, 0x65, 0x49, 0x64, 0x22, 0xae, 0x02, 0x0a, 0x26, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x69, + 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5c, 0x0a, 0x0d, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0d, + 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x1a, 0xa5, 0x01, + 0x0a, 0x0b, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x69, 0x74, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x34, 0x0a, 0x0d, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x73, 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x43, + 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x28, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, + 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x8d, 0x02, 0x0a, 0x29, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, + 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x69, 0x0a, 0x10, 0x6d, 0x69, 0x73, + 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x52, 0x10, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x1a, 0x75, 0x0a, 0x0f, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x10, 0x73, + 0x69, 0x6d, 0x69, 0x6c, 0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x10, 0x73, 0x69, 0x6d, 0x69, 0x6c, + 0x61, 0x72, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x48, 0x0a, 0x1c, 0x47, + 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, + 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x69, + 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x69, 0x70, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, + 0x69, 0x6c, 0x65, 0x49, 0x64, 0x32, 0x89, 0x07, 0x0a, 0x14, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7a, + 0x0a, 0x1f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, 0x73, + 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, + 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, + 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, + 0x79, 0x46, 0x69, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x6e, 0x66, 0x69, 0x6e, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, + 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, + 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, + 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, + 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, + 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, + 0x69, 0x6c, 0x65, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, + 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, + 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, + 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, + 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, + 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, + 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, + 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, + 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, + 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x63, 0x68, + 0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x29, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, + 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x49, + 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x15, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x49, 0x50, 0x4c, 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 0x65, 0x12, + 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x49, 0x50, 0x4c, + 0x69, 0x62, 0x72, 0x61, 0x72, 0x79, 0x46, 0x69, 0x6c, 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_ip_library_file_proto_rawDescOnce sync.Once + file_service_ip_library_file_proto_rawDescData = file_service_ip_library_file_proto_rawDesc +) + +func file_service_ip_library_file_proto_rawDescGZIP() []byte { + file_service_ip_library_file_proto_rawDescOnce.Do(func() { + file_service_ip_library_file_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ip_library_file_proto_rawDescData) + }) + return file_service_ip_library_file_proto_rawDescData +} + +var file_service_ip_library_file_proto_msgTypes = make([]protoimpl.MessageInfo, 19) +var file_service_ip_library_file_proto_goTypes = []interface{}{ + (*FindAllUnfinishedIPLibraryFilesRequest)(nil), // 0: pb.FindAllUnfinishedIPLibraryFilesRequest + (*FindAllUnfinishedIPLibraryFilesResponse)(nil), // 1: pb.FindAllUnfinishedIPLibraryFilesResponse + (*FindIPLibraryFileRequest)(nil), // 2: pb.FindIPLibraryFileRequest + (*FindIPLibraryFileResponse)(nil), // 3: pb.FindIPLibraryFileResponse + (*CreateIPLibraryFileRequest)(nil), // 4: pb.CreateIPLibraryFileRequest + (*CreateIPLibraryFileResponse)(nil), // 5: pb.CreateIPLibraryFileResponse + (*CheckCountriesWithIPLibraryFileIdRequest)(nil), // 6: pb.CheckCountriesWithIPLibraryFileIdRequest + (*CheckCountriesWithIPLibraryFileIdResponse)(nil), // 7: pb.CheckCountriesWithIPLibraryFileIdResponse + (*CheckProvincesWithIPLibraryFileIdRequest)(nil), // 8: pb.CheckProvincesWithIPLibraryFileIdRequest + (*CheckProvincesWithIPLibraryFileIdResponse)(nil), // 9: pb.CheckProvincesWithIPLibraryFileIdResponse + (*CheckCitiesWithIPLibraryFileIdRequest)(nil), // 10: pb.CheckCitiesWithIPLibraryFileIdRequest + (*CheckCitiesWithIPLibraryFileIdResponse)(nil), // 11: pb.CheckCitiesWithIPLibraryFileIdResponse + (*CheckProvidersWithIPLibraryFileIdRequest)(nil), // 12: pb.CheckProvidersWithIPLibraryFileIdRequest + (*CheckProvidersWithIPLibraryFileIdResponse)(nil), // 13: pb.CheckProvidersWithIPLibraryFileIdResponse + (*GenerateIPLibraryFileRequest)(nil), // 14: pb.GenerateIPLibraryFileRequest + (*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry)(nil), // 15: pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry + (*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince)(nil), // 16: pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince + (*CheckCitiesWithIPLibraryFileIdResponse_MissingCity)(nil), // 17: pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity + (*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider)(nil), // 18: pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider + (*IPLibraryFile)(nil), // 19: pb.IPLibraryFile + (*RegionCountry)(nil), // 20: pb.RegionCountry + (*RegionProvince)(nil), // 21: pb.RegionProvince + (*RegionCity)(nil), // 22: pb.RegionCity + (*RegionProvider)(nil), // 23: pb.RegionProvider + (*RPCSuccess)(nil), // 24: pb.RPCSuccess +} +var file_service_ip_library_file_proto_depIdxs = []int32{ + 19, // 0: pb.FindAllUnfinishedIPLibraryFilesResponse.ipLibraryFiles:type_name -> pb.IPLibraryFile + 19, // 1: pb.FindIPLibraryFileResponse.ipLibraryFile:type_name -> pb.IPLibraryFile + 15, // 2: pb.CheckCountriesWithIPLibraryFileIdResponse.missingCountries:type_name -> pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry + 16, // 3: pb.CheckProvincesWithIPLibraryFileIdResponse.missingProvinces:type_name -> pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince + 17, // 4: pb.CheckCitiesWithIPLibraryFileIdResponse.missingCities:type_name -> pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity + 18, // 5: pb.CheckProvidersWithIPLibraryFileIdResponse.missingProviders:type_name -> pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider + 20, // 6: pb.CheckCountriesWithIPLibraryFileIdResponse.MissingCountry.similarCountries:type_name -> pb.RegionCountry + 21, // 7: pb.CheckProvincesWithIPLibraryFileIdResponse.MissingProvince.similarProvinces:type_name -> pb.RegionProvince + 22, // 8: pb.CheckCitiesWithIPLibraryFileIdResponse.MissingCity.similarCities:type_name -> pb.RegionCity + 23, // 9: pb.CheckProvidersWithIPLibraryFileIdResponse.MissingProvider.similarProviders:type_name -> pb.RegionProvider + 0, // 10: pb.IPLibraryFileService.findAllUnfinishedIPLibraryFiles:input_type -> pb.FindAllUnfinishedIPLibraryFilesRequest + 2, // 11: pb.IPLibraryFileService.findIPLibraryFile:input_type -> pb.FindIPLibraryFileRequest + 4, // 12: pb.IPLibraryFileService.createIPLibraryFile:input_type -> pb.CreateIPLibraryFileRequest + 6, // 13: pb.IPLibraryFileService.checkCountriesWithIPLibraryFileId:input_type -> pb.CheckCountriesWithIPLibraryFileIdRequest + 8, // 14: pb.IPLibraryFileService.checkProvincesWithIPLibraryFileId:input_type -> pb.CheckProvincesWithIPLibraryFileIdRequest + 10, // 15: pb.IPLibraryFileService.checkCitiesWithIPLibraryFileId:input_type -> pb.CheckCitiesWithIPLibraryFileIdRequest + 12, // 16: pb.IPLibraryFileService.checkProvidersWithIPLibraryFileId:input_type -> pb.CheckProvidersWithIPLibraryFileIdRequest + 14, // 17: pb.IPLibraryFileService.generateIPLibraryFile:input_type -> pb.GenerateIPLibraryFileRequest + 1, // 18: pb.IPLibraryFileService.findAllUnfinishedIPLibraryFiles:output_type -> pb.FindAllUnfinishedIPLibraryFilesResponse + 3, // 19: pb.IPLibraryFileService.findIPLibraryFile:output_type -> pb.FindIPLibraryFileResponse + 5, // 20: pb.IPLibraryFileService.createIPLibraryFile:output_type -> pb.CreateIPLibraryFileResponse + 7, // 21: pb.IPLibraryFileService.checkCountriesWithIPLibraryFileId:output_type -> pb.CheckCountriesWithIPLibraryFileIdResponse + 9, // 22: pb.IPLibraryFileService.checkProvincesWithIPLibraryFileId:output_type -> pb.CheckProvincesWithIPLibraryFileIdResponse + 11, // 23: pb.IPLibraryFileService.checkCitiesWithIPLibraryFileId:output_type -> pb.CheckCitiesWithIPLibraryFileIdResponse + 13, // 24: pb.IPLibraryFileService.checkProvidersWithIPLibraryFileId:output_type -> pb.CheckProvidersWithIPLibraryFileIdResponse + 24, // 25: pb.IPLibraryFileService.generateIPLibraryFile:output_type -> pb.RPCSuccess + 18, // [18:26] is the sub-list for method output_type + 10, // [10:18] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name +} + +func init() { file_service_ip_library_file_proto_init() } +func file_service_ip_library_file_proto_init() { + if File_service_ip_library_file_proto != nil { + return + } + file_models_rpc_messages_proto_init() + file_models_model_ip_library_file_proto_init() + file_models_model_region_country_proto_init() + file_models_model_region_province_proto_init() + file_models_model_region_city_proto_init() + file_models_model_region_provider_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ip_library_file_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllUnfinishedIPLibraryFilesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllUnfinishedIPLibraryFilesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindIPLibraryFileRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindIPLibraryFileResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateIPLibraryFileRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateIPLibraryFileResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckCountriesWithIPLibraryFileIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckCountriesWithIPLibraryFileIdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckProvincesWithIPLibraryFileIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckProvincesWithIPLibraryFileIdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckCitiesWithIPLibraryFileIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckCitiesWithIPLibraryFileIdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckProvidersWithIPLibraryFileIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckProvidersWithIPLibraryFileIdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenerateIPLibraryFileRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckCountriesWithIPLibraryFileIdResponse_MissingCountry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckProvincesWithIPLibraryFileIdResponse_MissingProvince); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckCitiesWithIPLibraryFileIdResponse_MissingCity); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ip_library_file_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CheckProvidersWithIPLibraryFileIdResponse_MissingProvider); 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_ip_library_file_proto_rawDesc, + NumEnums: 0, + NumMessages: 19, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ip_library_file_proto_goTypes, + DependencyIndexes: file_service_ip_library_file_proto_depIdxs, + MessageInfos: file_service_ip_library_file_proto_msgTypes, + }.Build() + File_service_ip_library_file_proto = out.File + file_service_ip_library_file_proto_rawDesc = nil + file_service_ip_library_file_proto_goTypes = nil + file_service_ip_library_file_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 + +// IPLibraryFileServiceClient is the client API for IPLibraryFileService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type IPLibraryFileServiceClient interface { + // 查找所有未完成的IP库文件 + FindAllUnfinishedIPLibraryFiles(ctx context.Context, in *FindAllUnfinishedIPLibraryFilesRequest, opts ...grpc.CallOption) (*FindAllUnfinishedIPLibraryFilesResponse, error) + // 查找单个IP库文件 + FindIPLibraryFile(ctx context.Context, in *FindIPLibraryFileRequest, opts ...grpc.CallOption) (*FindIPLibraryFileResponse, error) + // 创建IP库文件 + CreateIPLibraryFile(ctx context.Context, in *CreateIPLibraryFileRequest, opts ...grpc.CallOption) (*CreateIPLibraryFileResponse, error) + // 检查国家/地区 + CheckCountriesWithIPLibraryFileId(ctx context.Context, in *CheckCountriesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckCountriesWithIPLibraryFileIdResponse, error) + // 检查省份/州 + CheckProvincesWithIPLibraryFileId(ctx context.Context, in *CheckProvincesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvincesWithIPLibraryFileIdResponse, error) + // 检查城市/市 + CheckCitiesWithIPLibraryFileId(ctx context.Context, in *CheckCitiesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckCitiesWithIPLibraryFileIdResponse, error) + // 检查ISP运营商 + CheckProvidersWithIPLibraryFileId(ctx context.Context, in *CheckProvidersWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvidersWithIPLibraryFileIdResponse, error) + // 生成IP库文件 + GenerateIPLibraryFile(ctx context.Context, in *GenerateIPLibraryFileRequest, opts ...grpc.CallOption) (*RPCSuccess, error) +} + +type iPLibraryFileServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewIPLibraryFileServiceClient(cc grpc.ClientConnInterface) IPLibraryFileServiceClient { + return &iPLibraryFileServiceClient{cc} +} + +func (c *iPLibraryFileServiceClient) FindAllUnfinishedIPLibraryFiles(ctx context.Context, in *FindAllUnfinishedIPLibraryFilesRequest, opts ...grpc.CallOption) (*FindAllUnfinishedIPLibraryFilesResponse, error) { + out := new(FindAllUnfinishedIPLibraryFilesResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/findAllUnfinishedIPLibraryFiles", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) FindIPLibraryFile(ctx context.Context, in *FindIPLibraryFileRequest, opts ...grpc.CallOption) (*FindIPLibraryFileResponse, error) { + out := new(FindIPLibraryFileResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/findIPLibraryFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) CreateIPLibraryFile(ctx context.Context, in *CreateIPLibraryFileRequest, opts ...grpc.CallOption) (*CreateIPLibraryFileResponse, error) { + out := new(CreateIPLibraryFileResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/createIPLibraryFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) CheckCountriesWithIPLibraryFileId(ctx context.Context, in *CheckCountriesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckCountriesWithIPLibraryFileIdResponse, error) { + out := new(CheckCountriesWithIPLibraryFileIdResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/checkCountriesWithIPLibraryFileId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) CheckProvincesWithIPLibraryFileId(ctx context.Context, in *CheckProvincesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvincesWithIPLibraryFileIdResponse, error) { + out := new(CheckProvincesWithIPLibraryFileIdResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/checkProvincesWithIPLibraryFileId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) CheckCitiesWithIPLibraryFileId(ctx context.Context, in *CheckCitiesWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckCitiesWithIPLibraryFileIdResponse, error) { + out := new(CheckCitiesWithIPLibraryFileIdResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/checkCitiesWithIPLibraryFileId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) CheckProvidersWithIPLibraryFileId(ctx context.Context, in *CheckProvidersWithIPLibraryFileIdRequest, opts ...grpc.CallOption) (*CheckProvidersWithIPLibraryFileIdResponse, error) { + out := new(CheckProvidersWithIPLibraryFileIdResponse) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/checkProvidersWithIPLibraryFileId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *iPLibraryFileServiceClient) GenerateIPLibraryFile(ctx context.Context, in *GenerateIPLibraryFileRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.IPLibraryFileService/generateIPLibraryFile", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// IPLibraryFileServiceServer is the server API for IPLibraryFileService service. +type IPLibraryFileServiceServer interface { + // 查找所有未完成的IP库文件 + FindAllUnfinishedIPLibraryFiles(context.Context, *FindAllUnfinishedIPLibraryFilesRequest) (*FindAllUnfinishedIPLibraryFilesResponse, error) + // 查找单个IP库文件 + FindIPLibraryFile(context.Context, *FindIPLibraryFileRequest) (*FindIPLibraryFileResponse, error) + // 创建IP库文件 + CreateIPLibraryFile(context.Context, *CreateIPLibraryFileRequest) (*CreateIPLibraryFileResponse, error) + // 检查国家/地区 + CheckCountriesWithIPLibraryFileId(context.Context, *CheckCountriesWithIPLibraryFileIdRequest) (*CheckCountriesWithIPLibraryFileIdResponse, error) + // 检查省份/州 + CheckProvincesWithIPLibraryFileId(context.Context, *CheckProvincesWithIPLibraryFileIdRequest) (*CheckProvincesWithIPLibraryFileIdResponse, error) + // 检查城市/市 + CheckCitiesWithIPLibraryFileId(context.Context, *CheckCitiesWithIPLibraryFileIdRequest) (*CheckCitiesWithIPLibraryFileIdResponse, error) + // 检查ISP运营商 + CheckProvidersWithIPLibraryFileId(context.Context, *CheckProvidersWithIPLibraryFileIdRequest) (*CheckProvidersWithIPLibraryFileIdResponse, error) + // 生成IP库文件 + GenerateIPLibraryFile(context.Context, *GenerateIPLibraryFileRequest) (*RPCSuccess, error) +} + +// UnimplementedIPLibraryFileServiceServer can be embedded to have forward compatible implementations. +type UnimplementedIPLibraryFileServiceServer struct { +} + +func (*UnimplementedIPLibraryFileServiceServer) FindAllUnfinishedIPLibraryFiles(context.Context, *FindAllUnfinishedIPLibraryFilesRequest) (*FindAllUnfinishedIPLibraryFilesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllUnfinishedIPLibraryFiles not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) FindIPLibraryFile(context.Context, *FindIPLibraryFileRequest) (*FindIPLibraryFileResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindIPLibraryFile not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) CreateIPLibraryFile(context.Context, *CreateIPLibraryFileRequest) (*CreateIPLibraryFileResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateIPLibraryFile not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) CheckCountriesWithIPLibraryFileId(context.Context, *CheckCountriesWithIPLibraryFileIdRequest) (*CheckCountriesWithIPLibraryFileIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckCountriesWithIPLibraryFileId not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) CheckProvincesWithIPLibraryFileId(context.Context, *CheckProvincesWithIPLibraryFileIdRequest) (*CheckProvincesWithIPLibraryFileIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckProvincesWithIPLibraryFileId not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) CheckCitiesWithIPLibraryFileId(context.Context, *CheckCitiesWithIPLibraryFileIdRequest) (*CheckCitiesWithIPLibraryFileIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckCitiesWithIPLibraryFileId not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) CheckProvidersWithIPLibraryFileId(context.Context, *CheckProvidersWithIPLibraryFileIdRequest) (*CheckProvidersWithIPLibraryFileIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckProvidersWithIPLibraryFileId not implemented") +} +func (*UnimplementedIPLibraryFileServiceServer) GenerateIPLibraryFile(context.Context, *GenerateIPLibraryFileRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method GenerateIPLibraryFile not implemented") +} + +func RegisterIPLibraryFileServiceServer(s *grpc.Server, srv IPLibraryFileServiceServer) { + s.RegisterService(&_IPLibraryFileService_serviceDesc, srv) +} + +func _IPLibraryFileService_FindAllUnfinishedIPLibraryFiles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllUnfinishedIPLibraryFilesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).FindAllUnfinishedIPLibraryFiles(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/FindAllUnfinishedIPLibraryFiles", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).FindAllUnfinishedIPLibraryFiles(ctx, req.(*FindAllUnfinishedIPLibraryFilesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_FindIPLibraryFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindIPLibraryFileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).FindIPLibraryFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/FindIPLibraryFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).FindIPLibraryFile(ctx, req.(*FindIPLibraryFileRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_CreateIPLibraryFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateIPLibraryFileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).CreateIPLibraryFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/CreateIPLibraryFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).CreateIPLibraryFile(ctx, req.(*CreateIPLibraryFileRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_CheckCountriesWithIPLibraryFileId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckCountriesWithIPLibraryFileIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).CheckCountriesWithIPLibraryFileId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/CheckCountriesWithIPLibraryFileId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).CheckCountriesWithIPLibraryFileId(ctx, req.(*CheckCountriesWithIPLibraryFileIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_CheckProvincesWithIPLibraryFileId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckProvincesWithIPLibraryFileIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).CheckProvincesWithIPLibraryFileId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/CheckProvincesWithIPLibraryFileId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).CheckProvincesWithIPLibraryFileId(ctx, req.(*CheckProvincesWithIPLibraryFileIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_CheckCitiesWithIPLibraryFileId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckCitiesWithIPLibraryFileIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).CheckCitiesWithIPLibraryFileId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/CheckCitiesWithIPLibraryFileId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).CheckCitiesWithIPLibraryFileId(ctx, req.(*CheckCitiesWithIPLibraryFileIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_CheckProvidersWithIPLibraryFileId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CheckProvidersWithIPLibraryFileIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).CheckProvidersWithIPLibraryFileId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/CheckProvidersWithIPLibraryFileId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).CheckProvidersWithIPLibraryFileId(ctx, req.(*CheckProvidersWithIPLibraryFileIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _IPLibraryFileService_GenerateIPLibraryFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GenerateIPLibraryFileRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(IPLibraryFileServiceServer).GenerateIPLibraryFile(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.IPLibraryFileService/GenerateIPLibraryFile", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(IPLibraryFileServiceServer).GenerateIPLibraryFile(ctx, req.(*GenerateIPLibraryFileRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _IPLibraryFileService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.IPLibraryFileService", + HandlerType: (*IPLibraryFileServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "findAllUnfinishedIPLibraryFiles", + Handler: _IPLibraryFileService_FindAllUnfinishedIPLibraryFiles_Handler, + }, + { + MethodName: "findIPLibraryFile", + Handler: _IPLibraryFileService_FindIPLibraryFile_Handler, + }, + { + MethodName: "createIPLibraryFile", + Handler: _IPLibraryFileService_CreateIPLibraryFile_Handler, + }, + { + MethodName: "checkCountriesWithIPLibraryFileId", + Handler: _IPLibraryFileService_CheckCountriesWithIPLibraryFileId_Handler, + }, + { + MethodName: "checkProvincesWithIPLibraryFileId", + Handler: _IPLibraryFileService_CheckProvincesWithIPLibraryFileId_Handler, + }, + { + MethodName: "checkCitiesWithIPLibraryFileId", + Handler: _IPLibraryFileService_CheckCitiesWithIPLibraryFileId_Handler, + }, + { + MethodName: "checkProvidersWithIPLibraryFileId", + Handler: _IPLibraryFileService_CheckProvidersWithIPLibraryFileId_Handler, + }, + { + MethodName: "generateIPLibraryFile", + Handler: _IPLibraryFileService_GenerateIPLibraryFile_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ip_library_file.proto", +} diff --git a/pkg/rpc/pb/service_region_city.pb.go b/pkg/rpc/pb/service_region_city.pb.go index b384351..a89a9d1 100644 --- a/pkg/rpc/pb/service_region_city.pb.go +++ b/pkg/rpc/pb/service_region_city.pb.go @@ -219,49 +219,464 @@ func (x *FindEnabledRegionCityResponse) GetRegionCity() *RegionCity { return nil } +// 查找所有城市 +type FindAllRegionCitiesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + IncludeRegionProvince bool `protobuf:"varint,1,opt,name=includeRegionProvince,proto3" json:"includeRegionProvince,omitempty"` +} + +func (x *FindAllRegionCitiesRequest) Reset() { + *x = FindAllRegionCitiesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionCitiesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionCitiesRequest) ProtoMessage() {} + +func (x *FindAllRegionCitiesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 FindAllRegionCitiesRequest.ProtoReflect.Descriptor instead. +func (*FindAllRegionCitiesRequest) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{4} +} + +func (x *FindAllRegionCitiesRequest) GetIncludeRegionProvince() bool { + if x != nil { + return x.IncludeRegionProvince + } + return false +} + +type FindAllRegionCitiesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCities []*RegionCity `protobuf:"bytes,1,rep,name=regionCities,proto3" json:"regionCities,omitempty"` +} + +func (x *FindAllRegionCitiesResponse) Reset() { + *x = FindAllRegionCitiesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionCitiesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionCitiesResponse) ProtoMessage() {} + +func (x *FindAllRegionCitiesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 FindAllRegionCitiesResponse.ProtoReflect.Descriptor instead. +func (*FindAllRegionCitiesResponse) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllRegionCitiesResponse) GetRegionCities() []*RegionCity { + if x != nil { + return x.RegionCities + } + return nil +} + +// 查找某个省份的所有城市 +type FindAllRegionCitiesWithRegionProvinceIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProvinceId int64 `protobuf:"varint,1,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"` +} + +func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) Reset() { + *x = FindAllRegionCitiesWithRegionProvinceIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionCitiesWithRegionProvinceIdRequest) ProtoMessage() {} + +func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 FindAllRegionCitiesWithRegionProvinceIdRequest.ProtoReflect.Descriptor instead. +func (*FindAllRegionCitiesWithRegionProvinceIdRequest) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{6} +} + +func (x *FindAllRegionCitiesWithRegionProvinceIdRequest) GetRegionProvinceId() int64 { + if x != nil { + return x.RegionProvinceId + } + return 0 +} + +type FindAllRegionCitiesWithRegionProvinceIdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCities []*RegionCity `protobuf:"bytes,1,rep,name=regionCities,proto3" json:"regionCities,omitempty"` +} + +func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) Reset() { + *x = FindAllRegionCitiesWithRegionProvinceIdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionCitiesWithRegionProvinceIdResponse) ProtoMessage() {} + +func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 FindAllRegionCitiesWithRegionProvinceIdResponse.ProtoReflect.Descriptor instead. +func (*FindAllRegionCitiesWithRegionProvinceIdResponse) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{7} +} + +func (x *FindAllRegionCitiesWithRegionProvinceIdResponse) GetRegionCities() []*RegionCity { + if x != nil { + return x.RegionCities + } + return nil +} + +// 查找单个城市信息 +type FindRegionCityRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCityId int64 `protobuf:"varint,1,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"` +} + +func (x *FindRegionCityRequest) Reset() { + *x = FindRegionCityRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionCityRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionCityRequest) ProtoMessage() {} + +func (x *FindRegionCityRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 FindRegionCityRequest.ProtoReflect.Descriptor instead. +func (*FindRegionCityRequest) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{8} +} + +func (x *FindRegionCityRequest) GetRegionCityId() int64 { + if x != nil { + return x.RegionCityId + } + return 0 +} + +type FindRegionCityResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCity *RegionCity `protobuf:"bytes,1,opt,name=regionCity,proto3" json:"regionCity,omitempty"` +} + +func (x *FindRegionCityResponse) Reset() { + *x = FindRegionCityResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionCityResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionCityResponse) ProtoMessage() {} + +func (x *FindRegionCityResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 FindRegionCityResponse.ProtoReflect.Descriptor instead. +func (*FindRegionCityResponse) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{9} +} + +func (x *FindRegionCityResponse) GetRegionCity() *RegionCity { + if x != nil { + return x.RegionCity + } + return nil +} + +// 修改城市定制信息 +type UpdateRegionCityCustomRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCityId int64 `protobuf:"varint,1,opt,name=regionCityId,proto3" json:"regionCityId,omitempty"` + CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"` +} + +func (x *UpdateRegionCityCustomRequest) Reset() { + *x = UpdateRegionCityCustomRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_city_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateRegionCityCustomRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRegionCityCustomRequest) ProtoMessage() {} + +func (x *UpdateRegionCityCustomRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_city_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 UpdateRegionCityCustomRequest.ProtoReflect.Descriptor instead. +func (*UpdateRegionCityCustomRequest) Descriptor() ([]byte, []int) { + return file_service_region_city_proto_rawDescGZIP(), []int{10} +} + +func (x *UpdateRegionCityCustomRequest) GetRegionCityId() int64 { + if x != nil { + return x.RegionCityId + } + return 0 +} + +func (x *UpdateRegionCityCustomRequest) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *UpdateRegionCityCustomRequest) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + var File_service_region_city_proto protoreflect.FileDescriptor var file_service_region_city_proto_rawDesc = []byte{ 0x0a, 0x19, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x59, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x58, 0x0a, 0x22, 0x46, 0x69, + 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x69, 0x74, 0x79, 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, 0x59, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x32, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x22, 0x42, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, - 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, + 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x34, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, + 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x58, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, - 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x32, 0xde, 0x01, 0x0a, 0x11, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x25, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, - 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x43, 0x69, 0x74, 0x79, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0c, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, + 0x79, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, + 0x42, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, + 0x79, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, + 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x43, 0x69, 0x74, 0x79, 0x22, 0x52, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x34, 0x0a, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x15, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x51, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x5c, 0x0a, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, + 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, + 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x2f, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x0c, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, + 0x74, 0x79, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, + 0x22, 0x3b, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, + 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x22, 0x48, 0x0a, + 0x16, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x43, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x0a, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x22, 0x85, 0x01, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1e, 0x0a, + 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, + 0xeb, 0x04, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x70, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x61, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, - 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, + 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x27, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x69, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x66, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x43, 0x69, 0x74, 0x79, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x69, 0x74, 0x79, + 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 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 ( @@ -276,26 +691,45 @@ func file_service_region_city_proto_rawDescGZIP() []byte { return file_service_region_city_proto_rawDescData } -var file_service_region_city_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_service_region_city_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_service_region_city_proto_goTypes = []interface{}{ - (*FindAllEnabledRegionCitiesRequest)(nil), // 0: pb.FindAllEnabledRegionCitiesRequest - (*FindAllEnabledRegionCitiesResponse)(nil), // 1: pb.FindAllEnabledRegionCitiesResponse - (*FindEnabledRegionCityRequest)(nil), // 2: pb.FindEnabledRegionCityRequest - (*FindEnabledRegionCityResponse)(nil), // 3: pb.FindEnabledRegionCityResponse - (*RegionCity)(nil), // 4: pb.RegionCity + (*FindAllEnabledRegionCitiesRequest)(nil), // 0: pb.FindAllEnabledRegionCitiesRequest + (*FindAllEnabledRegionCitiesResponse)(nil), // 1: pb.FindAllEnabledRegionCitiesResponse + (*FindEnabledRegionCityRequest)(nil), // 2: pb.FindEnabledRegionCityRequest + (*FindEnabledRegionCityResponse)(nil), // 3: pb.FindEnabledRegionCityResponse + (*FindAllRegionCitiesRequest)(nil), // 4: pb.FindAllRegionCitiesRequest + (*FindAllRegionCitiesResponse)(nil), // 5: pb.FindAllRegionCitiesResponse + (*FindAllRegionCitiesWithRegionProvinceIdRequest)(nil), // 6: pb.FindAllRegionCitiesWithRegionProvinceIdRequest + (*FindAllRegionCitiesWithRegionProvinceIdResponse)(nil), // 7: pb.FindAllRegionCitiesWithRegionProvinceIdResponse + (*FindRegionCityRequest)(nil), // 8: pb.FindRegionCityRequest + (*FindRegionCityResponse)(nil), // 9: pb.FindRegionCityResponse + (*UpdateRegionCityCustomRequest)(nil), // 10: pb.UpdateRegionCityCustomRequest + (*RegionCity)(nil), // 11: pb.RegionCity + (*RPCSuccess)(nil), // 12: pb.RPCSuccess } var file_service_region_city_proto_depIdxs = []int32{ - 4, // 0: pb.FindAllEnabledRegionCitiesResponse.regionCities:type_name -> pb.RegionCity - 4, // 1: pb.FindEnabledRegionCityResponse.regionCity:type_name -> pb.RegionCity - 0, // 2: pb.RegionCityService.findAllEnabledRegionCities:input_type -> pb.FindAllEnabledRegionCitiesRequest - 2, // 3: pb.RegionCityService.findEnabledRegionCity:input_type -> pb.FindEnabledRegionCityRequest - 1, // 4: pb.RegionCityService.findAllEnabledRegionCities:output_type -> pb.FindAllEnabledRegionCitiesResponse - 3, // 5: pb.RegionCityService.findEnabledRegionCity:output_type -> pb.FindEnabledRegionCityResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] 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 + 11, // 0: pb.FindAllEnabledRegionCitiesResponse.regionCities:type_name -> pb.RegionCity + 11, // 1: pb.FindEnabledRegionCityResponse.regionCity:type_name -> pb.RegionCity + 11, // 2: pb.FindAllRegionCitiesResponse.regionCities:type_name -> pb.RegionCity + 11, // 3: pb.FindAllRegionCitiesWithRegionProvinceIdResponse.regionCities:type_name -> pb.RegionCity + 11, // 4: pb.FindRegionCityResponse.regionCity:type_name -> pb.RegionCity + 0, // 5: pb.RegionCityService.findAllEnabledRegionCities:input_type -> pb.FindAllEnabledRegionCitiesRequest + 2, // 6: pb.RegionCityService.findEnabledRegionCity:input_type -> pb.FindEnabledRegionCityRequest + 4, // 7: pb.RegionCityService.findAllRegionCities:input_type -> pb.FindAllRegionCitiesRequest + 6, // 8: pb.RegionCityService.findAllRegionCitiesWithRegionProvinceId:input_type -> pb.FindAllRegionCitiesWithRegionProvinceIdRequest + 8, // 9: pb.RegionCityService.findRegionCity:input_type -> pb.FindRegionCityRequest + 10, // 10: pb.RegionCityService.updateRegionCityCustom:input_type -> pb.UpdateRegionCityCustomRequest + 1, // 11: pb.RegionCityService.findAllEnabledRegionCities:output_type -> pb.FindAllEnabledRegionCitiesResponse + 3, // 12: pb.RegionCityService.findEnabledRegionCity:output_type -> pb.FindEnabledRegionCityResponse + 5, // 13: pb.RegionCityService.findAllRegionCities:output_type -> pb.FindAllRegionCitiesResponse + 7, // 14: pb.RegionCityService.findAllRegionCitiesWithRegionProvinceId:output_type -> pb.FindAllRegionCitiesWithRegionProvinceIdResponse + 9, // 15: pb.RegionCityService.findRegionCity:output_type -> pb.FindRegionCityResponse + 12, // 16: pb.RegionCityService.updateRegionCityCustom:output_type -> pb.RPCSuccess + 11, // [11:17] is the sub-list for method output_type + 5, // [5:11] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name } func init() { file_service_region_city_proto_init() } @@ -304,6 +738,7 @@ func file_service_region_city_proto_init() { return } file_models_model_region_city_proto_init() + file_models_rpc_messages_proto_init() if !protoimpl.UnsafeEnabled { file_service_region_city_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAllEnabledRegionCitiesRequest); i { @@ -353,6 +788,90 @@ func file_service_region_city_proto_init() { return nil } } + file_service_region_city_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionCitiesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_city_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionCitiesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_city_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionCitiesWithRegionProvinceIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_city_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionCitiesWithRegionProvinceIdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_city_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionCityRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_city_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionCityResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_city_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRegionCityCustomRequest); 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{ @@ -360,7 +879,7 @@ func file_service_region_city_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_region_city_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 11, NumExtensions: 0, NumServices: 1, }, @@ -386,10 +905,20 @@ const _ = grpc.SupportPackageIsVersion6 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type RegionCityServiceClient interface { + // Deprecated: Do not use. // 查找所有城市 FindAllEnabledRegionCities(ctx context.Context, in *FindAllEnabledRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCitiesResponse, error) + // Deprecated: Do not use. // 查找单个城市信息 FindEnabledRegionCity(ctx context.Context, in *FindEnabledRegionCityRequest, opts ...grpc.CallOption) (*FindEnabledRegionCityResponse, error) + // 查找所有城市 + FindAllRegionCities(ctx context.Context, in *FindAllRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesResponse, error) + // 查找某个省份的所有城市 + FindAllRegionCitiesWithRegionProvinceId(ctx context.Context, in *FindAllRegionCitiesWithRegionProvinceIdRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error) + // 查找单个城市信息 + FindRegionCity(ctx context.Context, in *FindRegionCityRequest, opts ...grpc.CallOption) (*FindRegionCityResponse, error) + // 修改城市定制信息 + UpdateRegionCityCustom(ctx context.Context, in *UpdateRegionCityCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) } type regionCityServiceClient struct { @@ -400,6 +929,7 @@ func NewRegionCityServiceClient(cc grpc.ClientConnInterface) RegionCityServiceCl return ®ionCityServiceClient{cc} } +// Deprecated: Do not use. func (c *regionCityServiceClient) FindAllEnabledRegionCities(ctx context.Context, in *FindAllEnabledRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCitiesResponse, error) { out := new(FindAllEnabledRegionCitiesResponse) err := c.cc.Invoke(ctx, "/pb.RegionCityService/findAllEnabledRegionCities", in, out, opts...) @@ -409,6 +939,7 @@ func (c *regionCityServiceClient) FindAllEnabledRegionCities(ctx context.Context return out, nil } +// Deprecated: Do not use. func (c *regionCityServiceClient) FindEnabledRegionCity(ctx context.Context, in *FindEnabledRegionCityRequest, opts ...grpc.CallOption) (*FindEnabledRegionCityResponse, error) { out := new(FindEnabledRegionCityResponse) err := c.cc.Invoke(ctx, "/pb.RegionCityService/findEnabledRegionCity", in, out, opts...) @@ -418,12 +949,58 @@ func (c *regionCityServiceClient) FindEnabledRegionCity(ctx context.Context, in return out, nil } +func (c *regionCityServiceClient) FindAllRegionCities(ctx context.Context, in *FindAllRegionCitiesRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesResponse, error) { + out := new(FindAllRegionCitiesResponse) + err := c.cc.Invoke(ctx, "/pb.RegionCityService/findAllRegionCities", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionCityServiceClient) FindAllRegionCitiesWithRegionProvinceId(ctx context.Context, in *FindAllRegionCitiesWithRegionProvinceIdRequest, opts ...grpc.CallOption) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error) { + out := new(FindAllRegionCitiesWithRegionProvinceIdResponse) + err := c.cc.Invoke(ctx, "/pb.RegionCityService/findAllRegionCitiesWithRegionProvinceId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionCityServiceClient) FindRegionCity(ctx context.Context, in *FindRegionCityRequest, opts ...grpc.CallOption) (*FindRegionCityResponse, error) { + out := new(FindRegionCityResponse) + err := c.cc.Invoke(ctx, "/pb.RegionCityService/findRegionCity", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionCityServiceClient) UpdateRegionCityCustom(ctx context.Context, in *UpdateRegionCityCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.RegionCityService/updateRegionCityCustom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // RegionCityServiceServer is the server API for RegionCityService service. type RegionCityServiceServer interface { + // Deprecated: Do not use. // 查找所有城市 FindAllEnabledRegionCities(context.Context, *FindAllEnabledRegionCitiesRequest) (*FindAllEnabledRegionCitiesResponse, error) + // Deprecated: Do not use. // 查找单个城市信息 FindEnabledRegionCity(context.Context, *FindEnabledRegionCityRequest) (*FindEnabledRegionCityResponse, error) + // 查找所有城市 + FindAllRegionCities(context.Context, *FindAllRegionCitiesRequest) (*FindAllRegionCitiesResponse, error) + // 查找某个省份的所有城市 + FindAllRegionCitiesWithRegionProvinceId(context.Context, *FindAllRegionCitiesWithRegionProvinceIdRequest) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error) + // 查找单个城市信息 + FindRegionCity(context.Context, *FindRegionCityRequest) (*FindRegionCityResponse, error) + // 修改城市定制信息 + UpdateRegionCityCustom(context.Context, *UpdateRegionCityCustomRequest) (*RPCSuccess, error) } // UnimplementedRegionCityServiceServer can be embedded to have forward compatible implementations. @@ -436,6 +1013,18 @@ func (*UnimplementedRegionCityServiceServer) FindAllEnabledRegionCities(context. func (*UnimplementedRegionCityServiceServer) FindEnabledRegionCity(context.Context, *FindEnabledRegionCityRequest) (*FindEnabledRegionCityResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionCity not implemented") } +func (*UnimplementedRegionCityServiceServer) FindAllRegionCities(context.Context, *FindAllRegionCitiesRequest) (*FindAllRegionCitiesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionCities not implemented") +} +func (*UnimplementedRegionCityServiceServer) FindAllRegionCitiesWithRegionProvinceId(context.Context, *FindAllRegionCitiesWithRegionProvinceIdRequest) (*FindAllRegionCitiesWithRegionProvinceIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionCitiesWithRegionProvinceId not implemented") +} +func (*UnimplementedRegionCityServiceServer) FindRegionCity(context.Context, *FindRegionCityRequest) (*FindRegionCityResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRegionCity not implemented") +} +func (*UnimplementedRegionCityServiceServer) UpdateRegionCityCustom(context.Context, *UpdateRegionCityCustomRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionCityCustom not implemented") +} func RegisterRegionCityServiceServer(s *grpc.Server, srv RegionCityServiceServer) { s.RegisterService(&_RegionCityService_serviceDesc, srv) @@ -477,6 +1066,78 @@ func _RegionCityService_FindEnabledRegionCity_Handler(srv interface{}, ctx conte return interceptor(ctx, in, info, handler) } +func _RegionCityService_FindAllRegionCities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllRegionCitiesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCityServiceServer).FindAllRegionCities(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCityService/FindAllRegionCities", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCityServiceServer).FindAllRegionCities(ctx, req.(*FindAllRegionCitiesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionCityService_FindAllRegionCitiesWithRegionProvinceId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllRegionCitiesWithRegionProvinceIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCityServiceServer).FindAllRegionCitiesWithRegionProvinceId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCityService/FindAllRegionCitiesWithRegionProvinceId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCityServiceServer).FindAllRegionCitiesWithRegionProvinceId(ctx, req.(*FindAllRegionCitiesWithRegionProvinceIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionCityService_FindRegionCity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRegionCityRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCityServiceServer).FindRegionCity(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCityService/FindRegionCity", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCityServiceServer).FindRegionCity(ctx, req.(*FindRegionCityRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionCityService_UpdateRegionCityCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateRegionCityCustomRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCityServiceServer).UpdateRegionCityCustom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCityService/UpdateRegionCityCustom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCityServiceServer).UpdateRegionCityCustom(ctx, req.(*UpdateRegionCityCustomRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _RegionCityService_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.RegionCityService", HandlerType: (*RegionCityServiceServer)(nil), @@ -489,6 +1150,22 @@ var _RegionCityService_serviceDesc = grpc.ServiceDesc{ MethodName: "findEnabledRegionCity", Handler: _RegionCityService_FindEnabledRegionCity_Handler, }, + { + MethodName: "findAllRegionCities", + Handler: _RegionCityService_FindAllRegionCities_Handler, + }, + { + MethodName: "findAllRegionCitiesWithRegionProvinceId", + Handler: _RegionCityService_FindAllRegionCitiesWithRegionProvinceId_Handler, + }, + { + MethodName: "findRegionCity", + Handler: _RegionCityService_FindRegionCity_Handler, + }, + { + MethodName: "updateRegionCityCustom", + Handler: _RegionCityService_UpdateRegionCityCustom_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_region_city.proto", diff --git a/pkg/rpc/pb/service_region_country.pb.go b/pkg/rpc/pb/service_region_country.pb.go index b39b03e..c241a96 100644 --- a/pkg/rpc/pb/service_region_country.pb.go +++ b/pkg/rpc/pb/service_region_country.pb.go @@ -29,7 +29,7 @@ const ( // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 -// 查找所有的国家列表 +// 查找所有的国家/地区列表 type FindAllEnabledRegionCountriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -115,7 +115,7 @@ func (x *FindAllEnabledRegionCountriesResponse) GetRegionCountries() []*RegionCo return nil } -// 查找单个国家信息 +// 查找单个国家/地区信息 type FindEnabledRegionCountryRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -210,6 +210,251 @@ func (x *FindEnabledRegionCountryResponse) GetRegionCountry() *RegionCountry { return nil } +// 查找所有的国家/地区列表 +type FindAllRegionCountriesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllRegionCountriesRequest) Reset() { + *x = FindAllRegionCountriesRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_country_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionCountriesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionCountriesRequest) ProtoMessage() {} + +func (x *FindAllRegionCountriesRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_country_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 FindAllRegionCountriesRequest.ProtoReflect.Descriptor instead. +func (*FindAllRegionCountriesRequest) Descriptor() ([]byte, []int) { + return file_service_region_country_proto_rawDescGZIP(), []int{4} +} + +type FindAllRegionCountriesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCountries []*RegionCountry `protobuf:"bytes,1,rep,name=regionCountries,proto3" json:"regionCountries,omitempty"` +} + +func (x *FindAllRegionCountriesResponse) Reset() { + *x = FindAllRegionCountriesResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_country_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionCountriesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionCountriesResponse) ProtoMessage() {} + +func (x *FindAllRegionCountriesResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_country_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 FindAllRegionCountriesResponse.ProtoReflect.Descriptor instead. +func (*FindAllRegionCountriesResponse) Descriptor() ([]byte, []int) { + return file_service_region_country_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllRegionCountriesResponse) GetRegionCountries() []*RegionCountry { + if x != nil { + return x.RegionCountries + } + return nil +} + +// 查找单个国家/地区信息 +type FindRegionCountryRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"` +} + +func (x *FindRegionCountryRequest) Reset() { + *x = FindRegionCountryRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_country_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionCountryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionCountryRequest) ProtoMessage() {} + +func (x *FindRegionCountryRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_country_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 FindRegionCountryRequest.ProtoReflect.Descriptor instead. +func (*FindRegionCountryRequest) Descriptor() ([]byte, []int) { + return file_service_region_country_proto_rawDescGZIP(), []int{6} +} + +func (x *FindRegionCountryRequest) GetRegionCountryId() int64 { + if x != nil { + return x.RegionCountryId + } + return 0 +} + +type FindRegionCountryResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCountry *RegionCountry `protobuf:"bytes,1,opt,name=regionCountry,proto3" json:"regionCountry,omitempty"` +} + +func (x *FindRegionCountryResponse) Reset() { + *x = FindRegionCountryResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_country_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionCountryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionCountryResponse) ProtoMessage() {} + +func (x *FindRegionCountryResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_country_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 FindRegionCountryResponse.ProtoReflect.Descriptor instead. +func (*FindRegionCountryResponse) Descriptor() ([]byte, []int) { + return file_service_region_country_proto_rawDescGZIP(), []int{7} +} + +func (x *FindRegionCountryResponse) GetRegionCountry() *RegionCountry { + if x != nil { + return x.RegionCountry + } + return nil +} + +// 修改国家/地区定制信息 +type UpdateRegionCountryCustomRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"` + CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"` +} + +func (x *UpdateRegionCountryCustomRequest) Reset() { + *x = UpdateRegionCountryCustomRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_country_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateRegionCountryCustomRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRegionCountryCustomRequest) ProtoMessage() {} + +func (x *UpdateRegionCountryCustomRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_country_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 UpdateRegionCountryCustomRequest.ProtoReflect.Descriptor instead. +func (*UpdateRegionCountryCustomRequest) Descriptor() ([]byte, []int) { + return file_service_region_country_proto_rawDescGZIP(), []int{8} +} + +func (x *UpdateRegionCountryCustomRequest) GetRegionCountryId() int64 { + if x != nil { + return x.RegionCountryId + } + return 0 +} + +func (x *UpdateRegionCountryCustomRequest) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *UpdateRegionCountryCustomRequest) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + var File_service_region_country_proto protoreflect.FileDescriptor var file_service_region_country_proto_rawDesc = []byte{ @@ -217,43 +462,88 @@ var file_service_region_country_proto_rawDesc = []byte{ 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x21, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a, - 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, + 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, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x64, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x4b, + 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, 0x46, + 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x37, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x22, 0x1f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5d, 0x0a, 0x1e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x22, 0x44, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0x54, + 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x72, 0x79, 0x22, 0x8e, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, + 0x79, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0x83, 0x04, 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x79, + 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x6a, 0x0a, 0x18, 0x66, 0x69, 0x6e, + 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, + 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, - 0x69, 0x65, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, - 0x22, 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, - 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x32, 0xf3, 0x01, - 0x0a, 0x14, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, - 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1c, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 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 ( @@ -268,26 +558,40 @@ func file_service_region_country_proto_rawDescGZIP() []byte { return file_service_region_country_proto_rawDescData } -var file_service_region_country_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_service_region_country_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_service_region_country_proto_goTypes = []interface{}{ (*FindAllEnabledRegionCountriesRequest)(nil), // 0: pb.FindAllEnabledRegionCountriesRequest (*FindAllEnabledRegionCountriesResponse)(nil), // 1: pb.FindAllEnabledRegionCountriesResponse (*FindEnabledRegionCountryRequest)(nil), // 2: pb.FindEnabledRegionCountryRequest (*FindEnabledRegionCountryResponse)(nil), // 3: pb.FindEnabledRegionCountryResponse - (*RegionCountry)(nil), // 4: pb.RegionCountry + (*FindAllRegionCountriesRequest)(nil), // 4: pb.FindAllRegionCountriesRequest + (*FindAllRegionCountriesResponse)(nil), // 5: pb.FindAllRegionCountriesResponse + (*FindRegionCountryRequest)(nil), // 6: pb.FindRegionCountryRequest + (*FindRegionCountryResponse)(nil), // 7: pb.FindRegionCountryResponse + (*UpdateRegionCountryCustomRequest)(nil), // 8: pb.UpdateRegionCountryCustomRequest + (*RegionCountry)(nil), // 9: pb.RegionCountry + (*RPCSuccess)(nil), // 10: pb.RPCSuccess } var file_service_region_country_proto_depIdxs = []int32{ - 4, // 0: pb.FindAllEnabledRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry - 4, // 1: pb.FindEnabledRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry - 0, // 2: pb.RegionCountryService.findAllEnabledRegionCountries:input_type -> pb.FindAllEnabledRegionCountriesRequest - 2, // 3: pb.RegionCountryService.findEnabledRegionCountry:input_type -> pb.FindEnabledRegionCountryRequest - 1, // 4: pb.RegionCountryService.findAllEnabledRegionCountries:output_type -> pb.FindAllEnabledRegionCountriesResponse - 3, // 5: pb.RegionCountryService.findEnabledRegionCountry:output_type -> pb.FindEnabledRegionCountryResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] 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 + 9, // 0: pb.FindAllEnabledRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry + 9, // 1: pb.FindEnabledRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry + 9, // 2: pb.FindAllRegionCountriesResponse.regionCountries:type_name -> pb.RegionCountry + 9, // 3: pb.FindRegionCountryResponse.regionCountry:type_name -> pb.RegionCountry + 0, // 4: pb.RegionCountryService.findAllEnabledRegionCountries:input_type -> pb.FindAllEnabledRegionCountriesRequest + 2, // 5: pb.RegionCountryService.findEnabledRegionCountry:input_type -> pb.FindEnabledRegionCountryRequest + 4, // 6: pb.RegionCountryService.findAllRegionCountries:input_type -> pb.FindAllRegionCountriesRequest + 6, // 7: pb.RegionCountryService.findRegionCountry:input_type -> pb.FindRegionCountryRequest + 8, // 8: pb.RegionCountryService.updateRegionCountryCustom:input_type -> pb.UpdateRegionCountryCustomRequest + 1, // 9: pb.RegionCountryService.findAllEnabledRegionCountries:output_type -> pb.FindAllEnabledRegionCountriesResponse + 3, // 10: pb.RegionCountryService.findEnabledRegionCountry:output_type -> pb.FindEnabledRegionCountryResponse + 5, // 11: pb.RegionCountryService.findAllRegionCountries:output_type -> pb.FindAllRegionCountriesResponse + 7, // 12: pb.RegionCountryService.findRegionCountry:output_type -> pb.FindRegionCountryResponse + 10, // 13: pb.RegionCountryService.updateRegionCountryCustom:output_type -> pb.RPCSuccess + 9, // [9:14] is the sub-list for method output_type + 4, // [4:9] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_service_region_country_proto_init() } @@ -296,6 +600,7 @@ func file_service_region_country_proto_init() { return } file_models_model_region_country_proto_init() + file_models_rpc_messages_proto_init() if !protoimpl.UnsafeEnabled { file_service_region_country_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAllEnabledRegionCountriesRequest); i { @@ -345,6 +650,66 @@ func file_service_region_country_proto_init() { return nil } } + file_service_region_country_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionCountriesRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_country_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionCountriesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_country_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionCountryRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_country_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionCountryResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_country_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRegionCountryCustomRequest); 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{ @@ -352,7 +717,7 @@ func file_service_region_country_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_region_country_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 9, NumExtensions: 0, NumServices: 1, }, @@ -378,10 +743,18 @@ const _ = grpc.SupportPackageIsVersion6 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type RegionCountryServiceClient interface { - // 查找所有的国家列表 + // Deprecated: Do not use. + // 查找所有的国家/地区列表 FindAllEnabledRegionCountries(ctx context.Context, in *FindAllEnabledRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCountriesResponse, error) - // 查找单个国家信息 + // Deprecated: Do not use. + // 查找单个国家/地区信息 FindEnabledRegionCountry(ctx context.Context, in *FindEnabledRegionCountryRequest, opts ...grpc.CallOption) (*FindEnabledRegionCountryResponse, error) + // 查找所有的国家/地区列表 + FindAllRegionCountries(ctx context.Context, in *FindAllRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllRegionCountriesResponse, error) + // 查找单个国家/地区信息 + FindRegionCountry(ctx context.Context, in *FindRegionCountryRequest, opts ...grpc.CallOption) (*FindRegionCountryResponse, error) + // 修改国家/地区定制信息 + UpdateRegionCountryCustom(ctx context.Context, in *UpdateRegionCountryCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) } type regionCountryServiceClient struct { @@ -392,6 +765,7 @@ func NewRegionCountryServiceClient(cc grpc.ClientConnInterface) RegionCountrySer return ®ionCountryServiceClient{cc} } +// Deprecated: Do not use. func (c *regionCountryServiceClient) FindAllEnabledRegionCountries(ctx context.Context, in *FindAllEnabledRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionCountriesResponse, error) { out := new(FindAllEnabledRegionCountriesResponse) err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findAllEnabledRegionCountries", in, out, opts...) @@ -401,6 +775,7 @@ func (c *regionCountryServiceClient) FindAllEnabledRegionCountries(ctx context.C return out, nil } +// Deprecated: Do not use. func (c *regionCountryServiceClient) FindEnabledRegionCountry(ctx context.Context, in *FindEnabledRegionCountryRequest, opts ...grpc.CallOption) (*FindEnabledRegionCountryResponse, error) { out := new(FindEnabledRegionCountryResponse) err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findEnabledRegionCountry", in, out, opts...) @@ -410,12 +785,47 @@ func (c *regionCountryServiceClient) FindEnabledRegionCountry(ctx context.Contex return out, nil } +func (c *regionCountryServiceClient) FindAllRegionCountries(ctx context.Context, in *FindAllRegionCountriesRequest, opts ...grpc.CallOption) (*FindAllRegionCountriesResponse, error) { + out := new(FindAllRegionCountriesResponse) + err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findAllRegionCountries", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionCountryServiceClient) FindRegionCountry(ctx context.Context, in *FindRegionCountryRequest, opts ...grpc.CallOption) (*FindRegionCountryResponse, error) { + out := new(FindRegionCountryResponse) + err := c.cc.Invoke(ctx, "/pb.RegionCountryService/findRegionCountry", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionCountryServiceClient) UpdateRegionCountryCustom(ctx context.Context, in *UpdateRegionCountryCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.RegionCountryService/updateRegionCountryCustom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // RegionCountryServiceServer is the server API for RegionCountryService service. type RegionCountryServiceServer interface { - // 查找所有的国家列表 + // Deprecated: Do not use. + // 查找所有的国家/地区列表 FindAllEnabledRegionCountries(context.Context, *FindAllEnabledRegionCountriesRequest) (*FindAllEnabledRegionCountriesResponse, error) - // 查找单个国家信息 + // Deprecated: Do not use. + // 查找单个国家/地区信息 FindEnabledRegionCountry(context.Context, *FindEnabledRegionCountryRequest) (*FindEnabledRegionCountryResponse, error) + // 查找所有的国家/地区列表 + FindAllRegionCountries(context.Context, *FindAllRegionCountriesRequest) (*FindAllRegionCountriesResponse, error) + // 查找单个国家/地区信息 + FindRegionCountry(context.Context, *FindRegionCountryRequest) (*FindRegionCountryResponse, error) + // 修改国家/地区定制信息 + UpdateRegionCountryCustom(context.Context, *UpdateRegionCountryCustomRequest) (*RPCSuccess, error) } // UnimplementedRegionCountryServiceServer can be embedded to have forward compatible implementations. @@ -428,6 +838,15 @@ func (*UnimplementedRegionCountryServiceServer) FindAllEnabledRegionCountries(co func (*UnimplementedRegionCountryServiceServer) FindEnabledRegionCountry(context.Context, *FindEnabledRegionCountryRequest) (*FindEnabledRegionCountryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionCountry not implemented") } +func (*UnimplementedRegionCountryServiceServer) FindAllRegionCountries(context.Context, *FindAllRegionCountriesRequest) (*FindAllRegionCountriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionCountries not implemented") +} +func (*UnimplementedRegionCountryServiceServer) FindRegionCountry(context.Context, *FindRegionCountryRequest) (*FindRegionCountryResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRegionCountry not implemented") +} +func (*UnimplementedRegionCountryServiceServer) UpdateRegionCountryCustom(context.Context, *UpdateRegionCountryCustomRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionCountryCustom not implemented") +} func RegisterRegionCountryServiceServer(s *grpc.Server, srv RegionCountryServiceServer) { s.RegisterService(&_RegionCountryService_serviceDesc, srv) @@ -469,6 +888,60 @@ func _RegionCountryService_FindEnabledRegionCountry_Handler(srv interface{}, ctx return interceptor(ctx, in, info, handler) } +func _RegionCountryService_FindAllRegionCountries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllRegionCountriesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCountryServiceServer).FindAllRegionCountries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCountryService/FindAllRegionCountries", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCountryServiceServer).FindAllRegionCountries(ctx, req.(*FindAllRegionCountriesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionCountryService_FindRegionCountry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRegionCountryRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCountryServiceServer).FindRegionCountry(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCountryService/FindRegionCountry", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCountryServiceServer).FindRegionCountry(ctx, req.(*FindRegionCountryRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionCountryService_UpdateRegionCountryCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateRegionCountryCustomRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionCountryServiceServer).UpdateRegionCountryCustom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionCountryService/UpdateRegionCountryCustom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionCountryServiceServer).UpdateRegionCountryCustom(ctx, req.(*UpdateRegionCountryCustomRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _RegionCountryService_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.RegionCountryService", HandlerType: (*RegionCountryServiceServer)(nil), @@ -481,6 +954,18 @@ var _RegionCountryService_serviceDesc = grpc.ServiceDesc{ MethodName: "findEnabledRegionCountry", Handler: _RegionCountryService_FindEnabledRegionCountry_Handler, }, + { + MethodName: "findAllRegionCountries", + Handler: _RegionCountryService_FindAllRegionCountries_Handler, + }, + { + MethodName: "findRegionCountry", + Handler: _RegionCountryService_FindRegionCountry_Handler, + }, + { + MethodName: "updateRegionCountryCustom", + Handler: _RegionCountryService_UpdateRegionCountryCustom_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_region_country.proto", diff --git a/pkg/rpc/pb/service_region_provider.pb.go b/pkg/rpc/pb/service_region_provider.pb.go index 35b1411..9a5ad81 100644 --- a/pkg/rpc/pb/service_region_provider.pb.go +++ b/pkg/rpc/pb/service_region_provider.pb.go @@ -210,6 +210,251 @@ func (x *FindEnabledRegionProviderResponse) GetRegionProvider() *RegionProvider return nil } +// 查找所有ISP +type FindAllRegionProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllRegionProvidersRequest) Reset() { + *x = FindAllRegionProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_provider_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionProvidersRequest) ProtoMessage() {} + +func (x *FindAllRegionProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_provider_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 FindAllRegionProvidersRequest.ProtoReflect.Descriptor instead. +func (*FindAllRegionProvidersRequest) Descriptor() ([]byte, []int) { + return file_service_region_provider_proto_rawDescGZIP(), []int{4} +} + +type FindAllRegionProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProviders []*RegionProvider `protobuf:"bytes,1,rep,name=regionProviders,proto3" json:"regionProviders,omitempty"` +} + +func (x *FindAllRegionProvidersResponse) Reset() { + *x = FindAllRegionProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_provider_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionProvidersResponse) ProtoMessage() {} + +func (x *FindAllRegionProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_provider_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 FindAllRegionProvidersResponse.ProtoReflect.Descriptor instead. +func (*FindAllRegionProvidersResponse) Descriptor() ([]byte, []int) { + return file_service_region_provider_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllRegionProvidersResponse) GetRegionProviders() []*RegionProvider { + if x != nil { + return x.RegionProviders + } + return nil +} + +// 查找单个ISP信息 +type FindRegionProviderRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProviderId int64 `protobuf:"varint,1,opt,name=regionProviderId,proto3" json:"regionProviderId,omitempty"` +} + +func (x *FindRegionProviderRequest) Reset() { + *x = FindRegionProviderRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_provider_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionProviderRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionProviderRequest) ProtoMessage() {} + +func (x *FindRegionProviderRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_provider_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 FindRegionProviderRequest.ProtoReflect.Descriptor instead. +func (*FindRegionProviderRequest) Descriptor() ([]byte, []int) { + return file_service_region_provider_proto_rawDescGZIP(), []int{6} +} + +func (x *FindRegionProviderRequest) GetRegionProviderId() int64 { + if x != nil { + return x.RegionProviderId + } + return 0 +} + +type FindRegionProviderResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProvider *RegionProvider `protobuf:"bytes,1,opt,name=regionProvider,proto3" json:"regionProvider,omitempty"` +} + +func (x *FindRegionProviderResponse) Reset() { + *x = FindRegionProviderResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_provider_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionProviderResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionProviderResponse) ProtoMessage() {} + +func (x *FindRegionProviderResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_provider_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 FindRegionProviderResponse.ProtoReflect.Descriptor instead. +func (*FindRegionProviderResponse) Descriptor() ([]byte, []int) { + return file_service_region_provider_proto_rawDescGZIP(), []int{7} +} + +func (x *FindRegionProviderResponse) GetRegionProvider() *RegionProvider { + if x != nil { + return x.RegionProvider + } + return nil +} + +// 修改ISP定制信息 +type UpdateRegionProviderCustomRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProviderId int64 `protobuf:"varint,1,opt,name=regionProviderId,proto3" json:"regionProviderId,omitempty"` + CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"` +} + +func (x *UpdateRegionProviderCustomRequest) Reset() { + *x = UpdateRegionProviderCustomRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_provider_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateRegionProviderCustomRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRegionProviderCustomRequest) ProtoMessage() {} + +func (x *UpdateRegionProviderCustomRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_provider_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 UpdateRegionProviderCustomRequest.ProtoReflect.Descriptor instead. +func (*UpdateRegionProviderCustomRequest) Descriptor() ([]byte, []int) { + return file_service_region_provider_proto_rawDescGZIP(), []int{8} +} + +func (x *UpdateRegionProviderCustomRequest) GetRegionProviderId() int64 { + if x != nil { + return x.RegionProviderId + } + return 0 +} + +func (x *UpdateRegionProviderCustomRequest) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *UpdateRegionProviderCustomRequest) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + var File_service_region_provider_proto protoreflect.FileDescriptor var file_service_region_provider_proto_rawDesc = []byte{ @@ -217,44 +462,90 @@ var file_service_region_provider_proto_rawDesc = []byte{ 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x72, 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, 0x26, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x65, 0x0a, 0x25, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, + 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x22, 0x1f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x22, 0x47, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x58, 0x0a, 0x1a, + 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x22, 0x91, 0x01, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0x8c, 0x04, 0x0a, 0x15, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x79, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x65, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x32, 0xf7, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, - 0x72, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, - 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, - 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, + 0x6d, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x24, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x5f, + 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 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 ( @@ -269,26 +560,40 @@ func file_service_region_provider_proto_rawDescGZIP() []byte { return file_service_region_provider_proto_rawDescData } -var file_service_region_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_service_region_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_service_region_provider_proto_goTypes = []interface{}{ (*FindAllEnabledRegionProvidersRequest)(nil), // 0: pb.FindAllEnabledRegionProvidersRequest (*FindAllEnabledRegionProvidersResponse)(nil), // 1: pb.FindAllEnabledRegionProvidersResponse (*FindEnabledRegionProviderRequest)(nil), // 2: pb.FindEnabledRegionProviderRequest (*FindEnabledRegionProviderResponse)(nil), // 3: pb.FindEnabledRegionProviderResponse - (*RegionProvider)(nil), // 4: pb.RegionProvider + (*FindAllRegionProvidersRequest)(nil), // 4: pb.FindAllRegionProvidersRequest + (*FindAllRegionProvidersResponse)(nil), // 5: pb.FindAllRegionProvidersResponse + (*FindRegionProviderRequest)(nil), // 6: pb.FindRegionProviderRequest + (*FindRegionProviderResponse)(nil), // 7: pb.FindRegionProviderResponse + (*UpdateRegionProviderCustomRequest)(nil), // 8: pb.UpdateRegionProviderCustomRequest + (*RegionProvider)(nil), // 9: pb.RegionProvider + (*RPCSuccess)(nil), // 10: pb.RPCSuccess } var file_service_region_provider_proto_depIdxs = []int32{ - 4, // 0: pb.FindAllEnabledRegionProvidersResponse.regionProviders:type_name -> pb.RegionProvider - 4, // 1: pb.FindEnabledRegionProviderResponse.regionProvider:type_name -> pb.RegionProvider - 0, // 2: pb.RegionProviderService.findAllEnabledRegionProviders:input_type -> pb.FindAllEnabledRegionProvidersRequest - 2, // 3: pb.RegionProviderService.findEnabledRegionProvider:input_type -> pb.FindEnabledRegionProviderRequest - 1, // 4: pb.RegionProviderService.findAllEnabledRegionProviders:output_type -> pb.FindAllEnabledRegionProvidersResponse - 3, // 5: pb.RegionProviderService.findEnabledRegionProvider:output_type -> pb.FindEnabledRegionProviderResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] 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 + 9, // 0: pb.FindAllEnabledRegionProvidersResponse.regionProviders:type_name -> pb.RegionProvider + 9, // 1: pb.FindEnabledRegionProviderResponse.regionProvider:type_name -> pb.RegionProvider + 9, // 2: pb.FindAllRegionProvidersResponse.regionProviders:type_name -> pb.RegionProvider + 9, // 3: pb.FindRegionProviderResponse.regionProvider:type_name -> pb.RegionProvider + 0, // 4: pb.RegionProviderService.findAllEnabledRegionProviders:input_type -> pb.FindAllEnabledRegionProvidersRequest + 2, // 5: pb.RegionProviderService.findEnabledRegionProvider:input_type -> pb.FindEnabledRegionProviderRequest + 4, // 6: pb.RegionProviderService.findAllRegionProviders:input_type -> pb.FindAllRegionProvidersRequest + 6, // 7: pb.RegionProviderService.findRegionProvider:input_type -> pb.FindRegionProviderRequest + 8, // 8: pb.RegionProviderService.updateRegionProviderCustom:input_type -> pb.UpdateRegionProviderCustomRequest + 1, // 9: pb.RegionProviderService.findAllEnabledRegionProviders:output_type -> pb.FindAllEnabledRegionProvidersResponse + 3, // 10: pb.RegionProviderService.findEnabledRegionProvider:output_type -> pb.FindEnabledRegionProviderResponse + 5, // 11: pb.RegionProviderService.findAllRegionProviders:output_type -> pb.FindAllRegionProvidersResponse + 7, // 12: pb.RegionProviderService.findRegionProvider:output_type -> pb.FindRegionProviderResponse + 10, // 13: pb.RegionProviderService.updateRegionProviderCustom:output_type -> pb.RPCSuccess + 9, // [9:14] is the sub-list for method output_type + 4, // [4:9] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_service_region_provider_proto_init() } @@ -297,6 +602,7 @@ func file_service_region_provider_proto_init() { return } file_models_model_region_provider_proto_init() + file_models_rpc_messages_proto_init() if !protoimpl.UnsafeEnabled { file_service_region_provider_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAllEnabledRegionProvidersRequest); i { @@ -346,6 +652,66 @@ func file_service_region_provider_proto_init() { return nil } } + file_service_region_provider_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_provider_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionProvidersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_provider_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionProviderRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_provider_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionProviderResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_provider_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRegionProviderCustomRequest); 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{ @@ -353,7 +719,7 @@ func file_service_region_provider_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_region_provider_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 9, NumExtensions: 0, NumServices: 1, }, @@ -379,10 +745,18 @@ const _ = grpc.SupportPackageIsVersion6 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type RegionProviderServiceClient interface { + // Deprecated: Do not use. // 查找所有ISP FindAllEnabledRegionProviders(ctx context.Context, in *FindAllEnabledRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvidersResponse, error) + // Deprecated: Do not use. // 查找单个ISP信息 FindEnabledRegionProvider(ctx context.Context, in *FindEnabledRegionProviderRequest, opts ...grpc.CallOption) (*FindEnabledRegionProviderResponse, error) + // 查找所有ISP + FindAllRegionProviders(ctx context.Context, in *FindAllRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllRegionProvidersResponse, error) + // 查找单个ISP信息 + FindRegionProvider(ctx context.Context, in *FindRegionProviderRequest, opts ...grpc.CallOption) (*FindRegionProviderResponse, error) + // 修改ISP定制信息 + UpdateRegionProviderCustom(ctx context.Context, in *UpdateRegionProviderCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) } type regionProviderServiceClient struct { @@ -393,6 +767,7 @@ func NewRegionProviderServiceClient(cc grpc.ClientConnInterface) RegionProviderS return ®ionProviderServiceClient{cc} } +// Deprecated: Do not use. func (c *regionProviderServiceClient) FindAllEnabledRegionProviders(ctx context.Context, in *FindAllEnabledRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvidersResponse, error) { out := new(FindAllEnabledRegionProvidersResponse) err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findAllEnabledRegionProviders", in, out, opts...) @@ -402,6 +777,7 @@ func (c *regionProviderServiceClient) FindAllEnabledRegionProviders(ctx context. return out, nil } +// Deprecated: Do not use. func (c *regionProviderServiceClient) FindEnabledRegionProvider(ctx context.Context, in *FindEnabledRegionProviderRequest, opts ...grpc.CallOption) (*FindEnabledRegionProviderResponse, error) { out := new(FindEnabledRegionProviderResponse) err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findEnabledRegionProvider", in, out, opts...) @@ -411,12 +787,47 @@ func (c *regionProviderServiceClient) FindEnabledRegionProvider(ctx context.Cont return out, nil } +func (c *regionProviderServiceClient) FindAllRegionProviders(ctx context.Context, in *FindAllRegionProvidersRequest, opts ...grpc.CallOption) (*FindAllRegionProvidersResponse, error) { + out := new(FindAllRegionProvidersResponse) + err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findAllRegionProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionProviderServiceClient) FindRegionProvider(ctx context.Context, in *FindRegionProviderRequest, opts ...grpc.CallOption) (*FindRegionProviderResponse, error) { + out := new(FindRegionProviderResponse) + err := c.cc.Invoke(ctx, "/pb.RegionProviderService/findRegionProvider", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionProviderServiceClient) UpdateRegionProviderCustom(ctx context.Context, in *UpdateRegionProviderCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.RegionProviderService/updateRegionProviderCustom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // RegionProviderServiceServer is the server API for RegionProviderService service. type RegionProviderServiceServer interface { + // Deprecated: Do not use. // 查找所有ISP FindAllEnabledRegionProviders(context.Context, *FindAllEnabledRegionProvidersRequest) (*FindAllEnabledRegionProvidersResponse, error) + // Deprecated: Do not use. // 查找单个ISP信息 FindEnabledRegionProvider(context.Context, *FindEnabledRegionProviderRequest) (*FindEnabledRegionProviderResponse, error) + // 查找所有ISP + FindAllRegionProviders(context.Context, *FindAllRegionProvidersRequest) (*FindAllRegionProvidersResponse, error) + // 查找单个ISP信息 + FindRegionProvider(context.Context, *FindRegionProviderRequest) (*FindRegionProviderResponse, error) + // 修改ISP定制信息 + UpdateRegionProviderCustom(context.Context, *UpdateRegionProviderCustomRequest) (*RPCSuccess, error) } // UnimplementedRegionProviderServiceServer can be embedded to have forward compatible implementations. @@ -429,6 +840,15 @@ func (*UnimplementedRegionProviderServiceServer) FindAllEnabledRegionProviders(c func (*UnimplementedRegionProviderServiceServer) FindEnabledRegionProvider(context.Context, *FindEnabledRegionProviderRequest) (*FindEnabledRegionProviderResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionProvider not implemented") } +func (*UnimplementedRegionProviderServiceServer) FindAllRegionProviders(context.Context, *FindAllRegionProvidersRequest) (*FindAllRegionProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionProviders not implemented") +} +func (*UnimplementedRegionProviderServiceServer) FindRegionProvider(context.Context, *FindRegionProviderRequest) (*FindRegionProviderResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRegionProvider not implemented") +} +func (*UnimplementedRegionProviderServiceServer) UpdateRegionProviderCustom(context.Context, *UpdateRegionProviderCustomRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionProviderCustom not implemented") +} func RegisterRegionProviderServiceServer(s *grpc.Server, srv RegionProviderServiceServer) { s.RegisterService(&_RegionProviderService_serviceDesc, srv) @@ -470,6 +890,60 @@ func _RegionProviderService_FindEnabledRegionProvider_Handler(srv interface{}, c return interceptor(ctx, in, info, handler) } +func _RegionProviderService_FindAllRegionProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllRegionProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionProviderServiceServer).FindAllRegionProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionProviderService/FindAllRegionProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionProviderServiceServer).FindAllRegionProviders(ctx, req.(*FindAllRegionProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionProviderService_FindRegionProvider_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRegionProviderRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionProviderServiceServer).FindRegionProvider(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionProviderService/FindRegionProvider", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionProviderServiceServer).FindRegionProvider(ctx, req.(*FindRegionProviderRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionProviderService_UpdateRegionProviderCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateRegionProviderCustomRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionProviderServiceServer).UpdateRegionProviderCustom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionProviderService/UpdateRegionProviderCustom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionProviderServiceServer).UpdateRegionProviderCustom(ctx, req.(*UpdateRegionProviderCustomRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _RegionProviderService_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.RegionProviderService", HandlerType: (*RegionProviderServiceServer)(nil), @@ -482,6 +956,18 @@ var _RegionProviderService_serviceDesc = grpc.ServiceDesc{ MethodName: "findEnabledRegionProvider", Handler: _RegionProviderService_FindEnabledRegionProvider_Handler, }, + { + MethodName: "findAllRegionProviders", + Handler: _RegionProviderService_FindAllRegionProviders_Handler, + }, + { + MethodName: "findRegionProvider", + Handler: _RegionProviderService_FindRegionProvider_Handler, + }, + { + MethodName: "updateRegionProviderCustom", + Handler: _RegionProviderService_UpdateRegionProviderCustom_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_region_provider.proto", diff --git a/pkg/rpc/pb/service_region_province.pb.go b/pkg/rpc/pb/service_region_province.pb.go index 60d10fe..c4d4153 100644 --- a/pkg/rpc/pb/service_region_province.pb.go +++ b/pkg/rpc/pb/service_region_province.pb.go @@ -219,6 +219,260 @@ func (x *FindEnabledRegionProvinceResponse) GetRegionProvince() *RegionProvince return nil } +// 查找所有省份 +type FindAllRegionProvincesWithRegionCountryIdRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionCountryId int64 `protobuf:"varint,1,opt,name=regionCountryId,proto3" json:"regionCountryId,omitempty"` +} + +func (x *FindAllRegionProvincesWithRegionCountryIdRequest) Reset() { + *x = FindAllRegionProvincesWithRegionCountryIdRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_province_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionProvincesWithRegionCountryIdRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionProvincesWithRegionCountryIdRequest) ProtoMessage() {} + +func (x *FindAllRegionProvincesWithRegionCountryIdRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_province_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 FindAllRegionProvincesWithRegionCountryIdRequest.ProtoReflect.Descriptor instead. +func (*FindAllRegionProvincesWithRegionCountryIdRequest) Descriptor() ([]byte, []int) { + return file_service_region_province_proto_rawDescGZIP(), []int{4} +} + +func (x *FindAllRegionProvincesWithRegionCountryIdRequest) GetRegionCountryId() int64 { + if x != nil { + return x.RegionCountryId + } + return 0 +} + +type FindAllRegionProvincesWithRegionCountryIdResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProvinces []*RegionProvince `protobuf:"bytes,1,rep,name=regionProvinces,proto3" json:"regionProvinces,omitempty"` +} + +func (x *FindAllRegionProvincesWithRegionCountryIdResponse) Reset() { + *x = FindAllRegionProvincesWithRegionCountryIdResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_province_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllRegionProvincesWithRegionCountryIdResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllRegionProvincesWithRegionCountryIdResponse) ProtoMessage() {} + +func (x *FindAllRegionProvincesWithRegionCountryIdResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_province_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 FindAllRegionProvincesWithRegionCountryIdResponse.ProtoReflect.Descriptor instead. +func (*FindAllRegionProvincesWithRegionCountryIdResponse) Descriptor() ([]byte, []int) { + return file_service_region_province_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllRegionProvincesWithRegionCountryIdResponse) GetRegionProvinces() []*RegionProvince { + if x != nil { + return x.RegionProvinces + } + return nil +} + +// 查找单个省份信息 +type FindRegionProvinceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProvinceId int64 `protobuf:"varint,1,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"` +} + +func (x *FindRegionProvinceRequest) Reset() { + *x = FindRegionProvinceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_province_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionProvinceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionProvinceRequest) ProtoMessage() {} + +func (x *FindRegionProvinceRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_province_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 FindRegionProvinceRequest.ProtoReflect.Descriptor instead. +func (*FindRegionProvinceRequest) Descriptor() ([]byte, []int) { + return file_service_region_province_proto_rawDescGZIP(), []int{6} +} + +func (x *FindRegionProvinceRequest) GetRegionProvinceId() int64 { + if x != nil { + return x.RegionProvinceId + } + return 0 +} + +type FindRegionProvinceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProvince *RegionProvince `protobuf:"bytes,1,opt,name=regionProvince,proto3" json:"regionProvince,omitempty"` +} + +func (x *FindRegionProvinceResponse) Reset() { + *x = FindRegionProvinceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_province_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindRegionProvinceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindRegionProvinceResponse) ProtoMessage() {} + +func (x *FindRegionProvinceResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_region_province_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 FindRegionProvinceResponse.ProtoReflect.Descriptor instead. +func (*FindRegionProvinceResponse) Descriptor() ([]byte, []int) { + return file_service_region_province_proto_rawDescGZIP(), []int{7} +} + +func (x *FindRegionProvinceResponse) GetRegionProvince() *RegionProvince { + if x != nil { + return x.RegionProvince + } + return nil +} + +// 修改省份定制信息 +type UpdateRegionProvinceCustomRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RegionProvinceId int64 `protobuf:"varint,1,opt,name=regionProvinceId,proto3" json:"regionProvinceId,omitempty"` + CustomName string `protobuf:"bytes,2,opt,name=customName,proto3" json:"customName,omitempty"` + CustomCodes []string `protobuf:"bytes,3,rep,name=customCodes,proto3" json:"customCodes,omitempty"` +} + +func (x *UpdateRegionProvinceCustomRequest) Reset() { + *x = UpdateRegionProvinceCustomRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_region_province_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateRegionProvinceCustomRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateRegionProvinceCustomRequest) ProtoMessage() {} + +func (x *UpdateRegionProvinceCustomRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_region_province_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 UpdateRegionProvinceCustomRequest.ProtoReflect.Descriptor instead. +func (*UpdateRegionProvinceCustomRequest) Descriptor() ([]byte, []int) { + return file_service_region_province_proto_rawDescGZIP(), []int{8} +} + +func (x *UpdateRegionProvinceCustomRequest) GetRegionProvinceId() int64 { + if x != nil { + return x.RegionProvinceId + } + return 0 +} + +func (x *UpdateRegionProvinceCustomRequest) GetCustomName() string { + if x != nil { + return x.CustomName + } + return "" +} + +func (x *UpdateRegionProvinceCustomRequest) GetCustomCodes() []string { + if x != nil { + return x.CustomCodes + } + return nil +} + var File_service_region_province_proto protoreflect.FileDescriptor var file_service_region_province_proto_rawDesc = []byte{ @@ -226,50 +480,105 @@ var file_service_region_province_proto_rawDesc = []byte{ 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x22, 0x72, 0x0a, 0x32, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, - 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, - 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, - 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, - 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3a, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x32, 0x9f, 0x02, 0x0a, 0x15, - 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x9b, 0x01, 0x0a, 0x2a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x79, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x70, 0x62, - 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, + 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, 0x5d, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, + 0x64, 0x22, 0x72, 0x0a, 0x32, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, + 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x4e, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x49, 0x64, 0x22, 0x5f, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x5c, 0x0a, 0x30, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, + 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x72, 0x79, 0x49, 0x64, 0x22, 0x71, 0x0a, 0x31, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, - 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x0f, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x47, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, + 0x22, 0x58, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, + 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x0e, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x21, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x32, 0xee, + 0x04, 0x0a, 0x15, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x2a, 0x66, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, - 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, - 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, - 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x6d, 0x0a, 0x19, 0x66, + 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x03, 0x88, 0x02, 0x01, 0x12, 0x98, 0x01, 0x0a, 0x29, 0x66, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x12, 0x34, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x49, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x6e, + 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 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 ( @@ -284,26 +593,40 @@ func file_service_region_province_proto_rawDescGZIP() []byte { return file_service_region_province_proto_rawDescData } -var file_service_region_province_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_service_region_province_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_service_region_province_proto_goTypes = []interface{}{ (*FindAllEnabledRegionProvincesWithCountryIdRequest)(nil), // 0: pb.FindAllEnabledRegionProvincesWithCountryIdRequest (*FindAllEnabledRegionProvincesWithCountryIdResponse)(nil), // 1: pb.FindAllEnabledRegionProvincesWithCountryIdResponse (*FindEnabledRegionProvinceRequest)(nil), // 2: pb.FindEnabledRegionProvinceRequest (*FindEnabledRegionProvinceResponse)(nil), // 3: pb.FindEnabledRegionProvinceResponse - (*RegionProvince)(nil), // 4: pb.RegionProvince + (*FindAllRegionProvincesWithRegionCountryIdRequest)(nil), // 4: pb.FindAllRegionProvincesWithRegionCountryIdRequest + (*FindAllRegionProvincesWithRegionCountryIdResponse)(nil), // 5: pb.FindAllRegionProvincesWithRegionCountryIdResponse + (*FindRegionProvinceRequest)(nil), // 6: pb.FindRegionProvinceRequest + (*FindRegionProvinceResponse)(nil), // 7: pb.FindRegionProvinceResponse + (*UpdateRegionProvinceCustomRequest)(nil), // 8: pb.UpdateRegionProvinceCustomRequest + (*RegionProvince)(nil), // 9: pb.RegionProvince + (*RPCSuccess)(nil), // 10: pb.RPCSuccess } var file_service_region_province_proto_depIdxs = []int32{ - 4, // 0: pb.FindAllEnabledRegionProvincesWithCountryIdResponse.regionProvinces:type_name -> pb.RegionProvince - 4, // 1: pb.FindEnabledRegionProvinceResponse.regionProvince:type_name -> pb.RegionProvince - 0, // 2: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:input_type -> pb.FindAllEnabledRegionProvincesWithCountryIdRequest - 2, // 3: pb.RegionProvinceService.findEnabledRegionProvince:input_type -> pb.FindEnabledRegionProvinceRequest - 1, // 4: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:output_type -> pb.FindAllEnabledRegionProvincesWithCountryIdResponse - 3, // 5: pb.RegionProvinceService.findEnabledRegionProvince:output_type -> pb.FindEnabledRegionProvinceResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] 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 + 9, // 0: pb.FindAllEnabledRegionProvincesWithCountryIdResponse.regionProvinces:type_name -> pb.RegionProvince + 9, // 1: pb.FindEnabledRegionProvinceResponse.regionProvince:type_name -> pb.RegionProvince + 9, // 2: pb.FindAllRegionProvincesWithRegionCountryIdResponse.regionProvinces:type_name -> pb.RegionProvince + 9, // 3: pb.FindRegionProvinceResponse.regionProvince:type_name -> pb.RegionProvince + 0, // 4: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:input_type -> pb.FindAllEnabledRegionProvincesWithCountryIdRequest + 2, // 5: pb.RegionProvinceService.findEnabledRegionProvince:input_type -> pb.FindEnabledRegionProvinceRequest + 4, // 6: pb.RegionProvinceService.findAllRegionProvincesWithRegionCountryId:input_type -> pb.FindAllRegionProvincesWithRegionCountryIdRequest + 6, // 7: pb.RegionProvinceService.findRegionProvince:input_type -> pb.FindRegionProvinceRequest + 8, // 8: pb.RegionProvinceService.updateRegionProvinceCustom:input_type -> pb.UpdateRegionProvinceCustomRequest + 1, // 9: pb.RegionProvinceService.findAllEnabledRegionProvincesWithCountryId:output_type -> pb.FindAllEnabledRegionProvincesWithCountryIdResponse + 3, // 10: pb.RegionProvinceService.findEnabledRegionProvince:output_type -> pb.FindEnabledRegionProvinceResponse + 5, // 11: pb.RegionProvinceService.findAllRegionProvincesWithRegionCountryId:output_type -> pb.FindAllRegionProvincesWithRegionCountryIdResponse + 7, // 12: pb.RegionProvinceService.findRegionProvince:output_type -> pb.FindRegionProvinceResponse + 10, // 13: pb.RegionProvinceService.updateRegionProvinceCustom:output_type -> pb.RPCSuccess + 9, // [9:14] is the sub-list for method output_type + 4, // [4:9] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name } func init() { file_service_region_province_proto_init() } @@ -312,6 +635,7 @@ func file_service_region_province_proto_init() { return } file_models_model_region_province_proto_init() + file_models_rpc_messages_proto_init() if !protoimpl.UnsafeEnabled { file_service_region_province_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindAllEnabledRegionProvincesWithCountryIdRequest); i { @@ -361,6 +685,66 @@ func file_service_region_province_proto_init() { return nil } } + file_service_region_province_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionProvincesWithRegionCountryIdRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_province_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllRegionProvincesWithRegionCountryIdResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_province_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionProvinceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_province_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindRegionProvinceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_region_province_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateRegionProvinceCustomRequest); 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{ @@ -368,7 +752,7 @@ func file_service_region_province_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_region_province_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 9, NumExtensions: 0, NumServices: 1, }, @@ -394,10 +778,18 @@ const _ = grpc.SupportPackageIsVersion6 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type RegionProvinceServiceClient interface { + // Deprecated: Do not use. // 查找所有省份 FindAllEnabledRegionProvincesWithCountryId(ctx context.Context, in *FindAllEnabledRegionProvincesWithCountryIdRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvincesWithCountryIdResponse, error) + // Deprecated: Do not use. // 查找单个省份信息 FindEnabledRegionProvince(ctx context.Context, in *FindEnabledRegionProvinceRequest, opts ...grpc.CallOption) (*FindEnabledRegionProvinceResponse, error) + // 查找所有省份 + FindAllRegionProvincesWithRegionCountryId(ctx context.Context, in *FindAllRegionProvincesWithRegionCountryIdRequest, opts ...grpc.CallOption) (*FindAllRegionProvincesWithRegionCountryIdResponse, error) + // 查找单个省份信息 + FindRegionProvince(ctx context.Context, in *FindRegionProvinceRequest, opts ...grpc.CallOption) (*FindRegionProvinceResponse, error) + // 修改国家/地区定制信息 + UpdateRegionProvinceCustom(ctx context.Context, in *UpdateRegionProvinceCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) } type regionProvinceServiceClient struct { @@ -408,6 +800,7 @@ func NewRegionProvinceServiceClient(cc grpc.ClientConnInterface) RegionProvinceS return ®ionProvinceServiceClient{cc} } +// Deprecated: Do not use. func (c *regionProvinceServiceClient) FindAllEnabledRegionProvincesWithCountryId(ctx context.Context, in *FindAllEnabledRegionProvincesWithCountryIdRequest, opts ...grpc.CallOption) (*FindAllEnabledRegionProvincesWithCountryIdResponse, error) { out := new(FindAllEnabledRegionProvincesWithCountryIdResponse) err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findAllEnabledRegionProvincesWithCountryId", in, out, opts...) @@ -417,6 +810,7 @@ func (c *regionProvinceServiceClient) FindAllEnabledRegionProvincesWithCountryId return out, nil } +// Deprecated: Do not use. func (c *regionProvinceServiceClient) FindEnabledRegionProvince(ctx context.Context, in *FindEnabledRegionProvinceRequest, opts ...grpc.CallOption) (*FindEnabledRegionProvinceResponse, error) { out := new(FindEnabledRegionProvinceResponse) err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findEnabledRegionProvince", in, out, opts...) @@ -426,12 +820,47 @@ func (c *regionProvinceServiceClient) FindEnabledRegionProvince(ctx context.Cont return out, nil } +func (c *regionProvinceServiceClient) FindAllRegionProvincesWithRegionCountryId(ctx context.Context, in *FindAllRegionProvincesWithRegionCountryIdRequest, opts ...grpc.CallOption) (*FindAllRegionProvincesWithRegionCountryIdResponse, error) { + out := new(FindAllRegionProvincesWithRegionCountryIdResponse) + err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findAllRegionProvincesWithRegionCountryId", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionProvinceServiceClient) FindRegionProvince(ctx context.Context, in *FindRegionProvinceRequest, opts ...grpc.CallOption) (*FindRegionProvinceResponse, error) { + out := new(FindRegionProvinceResponse) + err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/findRegionProvince", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *regionProvinceServiceClient) UpdateRegionProvinceCustom(ctx context.Context, in *UpdateRegionProvinceCustomRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.RegionProvinceService/updateRegionProvinceCustom", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // RegionProvinceServiceServer is the server API for RegionProvinceService service. type RegionProvinceServiceServer interface { + // Deprecated: Do not use. // 查找所有省份 FindAllEnabledRegionProvincesWithCountryId(context.Context, *FindAllEnabledRegionProvincesWithCountryIdRequest) (*FindAllEnabledRegionProvincesWithCountryIdResponse, error) + // Deprecated: Do not use. // 查找单个省份信息 FindEnabledRegionProvince(context.Context, *FindEnabledRegionProvinceRequest) (*FindEnabledRegionProvinceResponse, error) + // 查找所有省份 + FindAllRegionProvincesWithRegionCountryId(context.Context, *FindAllRegionProvincesWithRegionCountryIdRequest) (*FindAllRegionProvincesWithRegionCountryIdResponse, error) + // 查找单个省份信息 + FindRegionProvince(context.Context, *FindRegionProvinceRequest) (*FindRegionProvinceResponse, error) + // 修改国家/地区定制信息 + UpdateRegionProvinceCustom(context.Context, *UpdateRegionProvinceCustomRequest) (*RPCSuccess, error) } // UnimplementedRegionProvinceServiceServer can be embedded to have forward compatible implementations. @@ -444,6 +873,15 @@ func (*UnimplementedRegionProvinceServiceServer) FindAllEnabledRegionProvincesWi func (*UnimplementedRegionProvinceServiceServer) FindEnabledRegionProvince(context.Context, *FindEnabledRegionProvinceRequest) (*FindEnabledRegionProvinceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindEnabledRegionProvince not implemented") } +func (*UnimplementedRegionProvinceServiceServer) FindAllRegionProvincesWithRegionCountryId(context.Context, *FindAllRegionProvincesWithRegionCountryIdRequest) (*FindAllRegionProvincesWithRegionCountryIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllRegionProvincesWithRegionCountryId not implemented") +} +func (*UnimplementedRegionProvinceServiceServer) FindRegionProvince(context.Context, *FindRegionProvinceRequest) (*FindRegionProvinceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindRegionProvince not implemented") +} +func (*UnimplementedRegionProvinceServiceServer) UpdateRegionProvinceCustom(context.Context, *UpdateRegionProvinceCustomRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRegionProvinceCustom not implemented") +} func RegisterRegionProvinceServiceServer(s *grpc.Server, srv RegionProvinceServiceServer) { s.RegisterService(&_RegionProvinceService_serviceDesc, srv) @@ -485,6 +923,60 @@ func _RegionProvinceService_FindEnabledRegionProvince_Handler(srv interface{}, c return interceptor(ctx, in, info, handler) } +func _RegionProvinceService_FindAllRegionProvincesWithRegionCountryId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllRegionProvincesWithRegionCountryIdRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionProvinceServiceServer).FindAllRegionProvincesWithRegionCountryId(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionProvinceService/FindAllRegionProvincesWithRegionCountryId", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionProvinceServiceServer).FindAllRegionProvincesWithRegionCountryId(ctx, req.(*FindAllRegionProvincesWithRegionCountryIdRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionProvinceService_FindRegionProvince_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindRegionProvinceRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionProvinceServiceServer).FindRegionProvince(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionProvinceService/FindRegionProvince", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionProvinceServiceServer).FindRegionProvince(ctx, req.(*FindRegionProvinceRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _RegionProvinceService_UpdateRegionProvinceCustom_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateRegionProvinceCustomRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(RegionProvinceServiceServer).UpdateRegionProvinceCustom(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.RegionProvinceService/UpdateRegionProvinceCustom", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(RegionProvinceServiceServer).UpdateRegionProvinceCustom(ctx, req.(*UpdateRegionProvinceCustomRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _RegionProvinceService_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.RegionProvinceService", HandlerType: (*RegionProvinceServiceServer)(nil), @@ -497,6 +989,18 @@ var _RegionProvinceService_serviceDesc = grpc.ServiceDesc{ MethodName: "findEnabledRegionProvince", Handler: _RegionProvinceService_FindEnabledRegionProvince_Handler, }, + { + MethodName: "findAllRegionProvincesWithRegionCountryId", + Handler: _RegionProvinceService_FindAllRegionProvincesWithRegionCountryId_Handler, + }, + { + MethodName: "findRegionProvince", + Handler: _RegionProvinceService_FindRegionProvince_Handler, + }, + { + MethodName: "updateRegionProvinceCustom", + Handler: _RegionProvinceService_UpdateRegionProvinceCustom_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_region_province.proto", diff --git a/pkg/rpc/protos/models/model_ip_library_file.proto b/pkg/rpc/protos/models/model_ip_library_file.proto new file mode 100644 index 0000000..93cbe9a --- /dev/null +++ b/pkg/rpc/protos/models/model_ip_library_file.proto @@ -0,0 +1,34 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +message IPLibraryFile { + int64 id = 1; + int64 fileId = 2; + bool isFinished = 3; + int64 createdAt = 4; + repeated string countryNames = 5; + repeated Province provinces = 6; + repeated City cities = 7; + repeated Town towns = 8; + repeated string providerNames = 9; + + message Province { + string countryName = 1; + string provinceName = 2; + } + + message City { + string countryName = 1; + string provinceName = 2; + string cityName = 3; + } + + message Town { + string countryName = 1; + string provinceName = 2; + string cityName = 3; + string townName = 4; + } +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_region_city.proto b/pkg/rpc/protos/models/model_region_city.proto index ee36eee..e26b8f0 100644 --- a/pkg/rpc/protos/models/model_region_city.proto +++ b/pkg/rpc/protos/models/model_region_city.proto @@ -10,6 +10,9 @@ message RegionCity { string name = 2; repeated string codes = 3; int64 regionProvinceId = 4; + string customName = 5; + repeated string customCodes = 6; + string displayName = 7; RegionProvince regionProvince = 30; } diff --git a/pkg/rpc/protos/models/model_region_country.proto b/pkg/rpc/protos/models/model_region_country.proto index 16d02c3..a0f41d8 100644 --- a/pkg/rpc/protos/models/model_region_country.proto +++ b/pkg/rpc/protos/models/model_region_country.proto @@ -8,4 +8,7 @@ message RegionCountry { string name = 2; repeated string codes = 3; repeated string pinyin = 4; + string customName = 5; + repeated string customCodes = 6; + string displayName = 7; } \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_region_provider.proto b/pkg/rpc/protos/models/model_region_provider.proto index 4a2c82f..a94449f 100644 --- a/pkg/rpc/protos/models/model_region_provider.proto +++ b/pkg/rpc/protos/models/model_region_provider.proto @@ -7,4 +7,7 @@ message RegionProvider { int64 id = 1; string name = 2; repeated string codes = 3; + string customName = 4; + repeated string customCodes = 5; + string displayName = 6; } diff --git a/pkg/rpc/protos/models/model_region_province.proto b/pkg/rpc/protos/models/model_region_province.proto index 0e5f099..8741c32 100644 --- a/pkg/rpc/protos/models/model_region_province.proto +++ b/pkg/rpc/protos/models/model_region_province.proto @@ -7,4 +7,8 @@ message RegionProvince { int64 id = 1; string name = 2; repeated string codes = 3; + int64 regionCountryId = 4; + string customName = 5; + repeated string customCodes = 6; + string displayName = 7; } diff --git a/pkg/rpc/protos/service_ip_library_file.proto b/pkg/rpc/protos/service_ip_library_file.proto new file mode 100644 index 0000000..1e5b282 --- /dev/null +++ b/pkg/rpc/protos/service_ip_library_file.proto @@ -0,0 +1,138 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/rpc_messages.proto"; +import "models/model_ip_library_file.proto"; +import "models/model_region_country.proto"; +import "models/model_region_province.proto"; +import "models/model_region_city.proto"; +import "models/model_region_provider.proto"; + + +// IP库文件管理 +service IPLibraryFileService { + // 查找所有未完成的IP库文件 + rpc findAllUnfinishedIPLibraryFiles(FindAllUnfinishedIPLibraryFilesRequest) returns (FindAllUnfinishedIPLibraryFilesResponse); + + // 查找单个IP库文件 + rpc findIPLibraryFile(FindIPLibraryFileRequest) returns (FindIPLibraryFileResponse); + + // 创建IP库文件 + rpc createIPLibraryFile(CreateIPLibraryFileRequest) returns (CreateIPLibraryFileResponse); + + // 检查国家/地区 + rpc checkCountriesWithIPLibraryFileId(CheckCountriesWithIPLibraryFileIdRequest) returns (CheckCountriesWithIPLibraryFileIdResponse); + + // 检查省份/州 + rpc checkProvincesWithIPLibraryFileId(CheckProvincesWithIPLibraryFileIdRequest) returns (CheckProvincesWithIPLibraryFileIdResponse); + + // 检查城市/市 + rpc checkCitiesWithIPLibraryFileId(CheckCitiesWithIPLibraryFileIdRequest) returns (CheckCitiesWithIPLibraryFileIdResponse); + + // 检查ISP运营商 + rpc checkProvidersWithIPLibraryFileId(CheckProvidersWithIPLibraryFileIdRequest) returns (CheckProvidersWithIPLibraryFileIdResponse); + + // 生成IP库文件 + rpc generateIPLibraryFile(GenerateIPLibraryFileRequest) returns (RPCSuccess); +} + +// 查找所有未完成的IP库文件 +message FindAllUnfinishedIPLibraryFilesRequest { + +} + +message FindAllUnfinishedIPLibraryFilesResponse { + repeated IPLibraryFile ipLibraryFiles = 1; +} + +// 查找单个IP库文件 +message FindIPLibraryFileRequest { + int64 ipLibraryFileId = 1; +} + +message FindIPLibraryFileResponse { + IPLibraryFile ipLibraryFile = 1; +} + +// 创建IP库文件 +message CreateIPLibraryFileRequest { + string template = 1; + repeated string emptyValues = 2; + int64 fileId = 3; + bytes countriesJSON = 4; + bytes provincesJSON = 5; + bytes citiesJSON = 6; + bytes townsJSON = 7; + bytes providersJSON = 8; +} + +message CreateIPLibraryFileResponse { + int64 ipLibraryFileId = 1; +} + +// 检查国家/地区 +message CheckCountriesWithIPLibraryFileIdRequest { + int64 ipLibraryFileId = 1; +} + +message CheckCountriesWithIPLibraryFileIdResponse { + repeated MissingCountry missingCountries = 1; + + message MissingCountry { + string countryName = 1; + repeated RegionCountry similarCountries = 2; + } +} + +// 检查省份/州 +message CheckProvincesWithIPLibraryFileIdRequest{ + int64 ipLibraryFileId = 1; +} + +message CheckProvincesWithIPLibraryFileIdResponse { + repeated MissingProvince missingProvinces = 1; + + message MissingProvince { + string countryName = 1; + string provinceName = 2; + repeated RegionProvince similarProvinces = 3; + } +} + + +// 检查城市/市 +message CheckCitiesWithIPLibraryFileIdRequest{ + int64 ipLibraryFileId = 1; +} + +message CheckCitiesWithIPLibraryFileIdResponse { + repeated MissingCity missingCities = 1; + + message MissingCity { + string countryName = 1; + string provinceName = 2; + string cityName = 3; + repeated RegionCity similarCities = 4; + } +} + +// 检查ISP运营商 +message CheckProvidersWithIPLibraryFileIdRequest{ + int64 ipLibraryFileId = 1; +} + +message CheckProvidersWithIPLibraryFileIdResponse { + repeated MissingProvider missingProviders = 1; + + message MissingProvider { + string providerName = 1; + repeated RegionProvider similarProviders = 2; + } +} + +// 生成IP库文件 +message GenerateIPLibraryFileRequest { + int64 ipLibraryFileId = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_region_city.proto b/pkg/rpc/protos/service_region_city.proto index 2caa1b1..3cca288 100644 --- a/pkg/rpc/protos/service_region_city.proto +++ b/pkg/rpc/protos/service_region_city.proto @@ -4,14 +4,31 @@ option go_package = "./pb"; package pb; import "models/model_region_city.proto"; +import "models/rpc_messages.proto"; // 城市相关服务 service RegionCityService { // 查找所有城市 - rpc findAllEnabledRegionCities (FindAllEnabledRegionCitiesRequest) returns (FindAllEnabledRegionCitiesResponse); + rpc findAllEnabledRegionCities (FindAllEnabledRegionCitiesRequest) returns (FindAllEnabledRegionCitiesResponse) { + option deprecated = true; + }; // 查找单个城市信息 - rpc findEnabledRegionCity (FindEnabledRegionCityRequest) returns (FindEnabledRegionCityResponse); + rpc findEnabledRegionCity (FindEnabledRegionCityRequest) returns (FindEnabledRegionCityResponse) { + option deprecated = true; + }; + + // 查找所有城市 + rpc findAllRegionCities (FindAllRegionCitiesRequest) returns (FindAllRegionCitiesResponse); + + // 查找某个省份的所有城市 + rpc findAllRegionCitiesWithRegionProvinceId(FindAllRegionCitiesWithRegionProvinceIdRequest) returns (FindAllRegionCitiesWithRegionProvinceIdResponse); + + // 查找单个城市信息 + rpc findRegionCity (FindRegionCityRequest) returns (FindRegionCityResponse); + + // 修改城市定制信息 + rpc updateRegionCityCustom(UpdateRegionCityCustomRequest) returns (RPCSuccess); } // 查找所有城市 @@ -31,3 +48,37 @@ message FindEnabledRegionCityRequest { message FindEnabledRegionCityResponse { RegionCity regionCity = 1; } + +// 查找所有城市 +message FindAllRegionCitiesRequest { + bool includeRegionProvince = 1; +} + +message FindAllRegionCitiesResponse { + repeated RegionCity regionCities = 1; +} + +// 查找某个省份的所有城市 +message FindAllRegionCitiesWithRegionProvinceIdRequest { + int64 regionProvinceId = 1; +} + +message FindAllRegionCitiesWithRegionProvinceIdResponse { + repeated RegionCity regionCities = 1; +} + +// 查找单个城市信息 +message FindRegionCityRequest { + int64 regionCityId = 1; +} + +message FindRegionCityResponse { + RegionCity regionCity = 1; +} + +// 修改城市定制信息 +message UpdateRegionCityCustomRequest { + int64 regionCityId = 1; + string customName = 2; + repeated string customCodes = 3; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_region_country.proto b/pkg/rpc/protos/service_region_country.proto index 4b3e52b..1ee5f9e 100644 --- a/pkg/rpc/protos/service_region_country.proto +++ b/pkg/rpc/protos/service_region_country.proto @@ -4,17 +4,31 @@ option go_package = "./pb"; package pb; import "models/model_region_country.proto"; +import "models/rpc_messages.proto"; // 国家相关服务 service RegionCountryService { - // 查找所有的国家列表 - rpc findAllEnabledRegionCountries (FindAllEnabledRegionCountriesRequest) returns (FindAllEnabledRegionCountriesResponse); + // 查找所有的国家/地区列表 + rpc findAllEnabledRegionCountries (FindAllEnabledRegionCountriesRequest) returns (FindAllEnabledRegionCountriesResponse) { + option deprecated = true; + }; - // 查找单个国家信息 - rpc findEnabledRegionCountry (FindEnabledRegionCountryRequest) returns (FindEnabledRegionCountryResponse); + // 查找单个国家/地区信息 + rpc findEnabledRegionCountry (FindEnabledRegionCountryRequest) returns (FindEnabledRegionCountryResponse) { + option deprecated = true; + }; + + // 查找所有的国家/地区列表 + rpc findAllRegionCountries (FindAllRegionCountriesRequest) returns (FindAllRegionCountriesResponse); + + // 查找单个国家/地区信息 + rpc findRegionCountry (FindRegionCountryRequest) returns (FindRegionCountryResponse); + + // 修改国家/地区定制信息 + rpc updateRegionCountryCustom(UpdateRegionCountryCustomRequest) returns (RPCSuccess); } -// 查找所有的国家列表 +// 查找所有的国家/地区列表 message FindAllEnabledRegionCountriesRequest { } @@ -23,11 +37,36 @@ message FindAllEnabledRegionCountriesResponse { repeated RegionCountry regionCountries = 1; } -// 查找单个国家信息 +// 查找单个国家/地区信息 message FindEnabledRegionCountryRequest { int64 regionCountryId = 1; } message FindEnabledRegionCountryResponse { RegionCountry regionCountry = 1; +} + +// 查找所有的国家/地区列表 +message FindAllRegionCountriesRequest { + +} + +message FindAllRegionCountriesResponse { + repeated RegionCountry regionCountries = 1; +} + +// 查找单个国家/地区信息 +message FindRegionCountryRequest { + int64 regionCountryId = 1; +} + +message FindRegionCountryResponse { + RegionCountry regionCountry = 1; +} + +// 修改国家/地区定制信息 +message UpdateRegionCountryCustomRequest { + int64 regionCountryId = 1; + string customName = 2; + repeated string customCodes = 3; } \ No newline at end of file diff --git a/pkg/rpc/protos/service_region_provider.proto b/pkg/rpc/protos/service_region_provider.proto index 862e73a..0c46317 100644 --- a/pkg/rpc/protos/service_region_provider.proto +++ b/pkg/rpc/protos/service_region_provider.proto @@ -4,14 +4,28 @@ option go_package = "./pb"; package pb; import "models/model_region_provider.proto"; +import "models/rpc_messages.proto"; // ISP相关服务 service RegionProviderService { // 查找所有ISP - rpc findAllEnabledRegionProviders (FindAllEnabledRegionProvidersRequest) returns (FindAllEnabledRegionProvidersResponse); + rpc findAllEnabledRegionProviders (FindAllEnabledRegionProvidersRequest) returns (FindAllEnabledRegionProvidersResponse) { + option deprecated = true; + }; // 查找单个ISP信息 - rpc findEnabledRegionProvider (FindEnabledRegionProviderRequest) returns (FindEnabledRegionProviderResponse); + rpc findEnabledRegionProvider (FindEnabledRegionProviderRequest) returns (FindEnabledRegionProviderResponse) { + option deprecated = true; + }; + + // 查找所有ISP + rpc findAllRegionProviders (FindAllRegionProvidersRequest) returns (FindAllRegionProvidersResponse); + + // 查找单个ISP信息 + rpc findRegionProvider (FindRegionProviderRequest) returns (FindRegionProviderResponse); + + // 修改ISP定制信息 + rpc updateRegionProviderCustom(UpdateRegionProviderCustomRequest) returns (RPCSuccess); } // 查找所有ISP @@ -31,3 +45,28 @@ message FindEnabledRegionProviderRequest { message FindEnabledRegionProviderResponse { RegionProvider regionProvider = 1; } + +// 查找所有ISP +message FindAllRegionProvidersRequest { + +} + +message FindAllRegionProvidersResponse { + repeated RegionProvider regionProviders = 1; +} + +// 查找单个ISP信息 +message FindRegionProviderRequest { + int64 regionProviderId = 1; +} + +message FindRegionProviderResponse { + RegionProvider regionProvider = 1; +} + +// 修改ISP定制信息 +message UpdateRegionProviderCustomRequest { + int64 regionProviderId = 1; + string customName = 2; + repeated string customCodes = 3; +} diff --git a/pkg/rpc/protos/service_region_province.proto b/pkg/rpc/protos/service_region_province.proto index 4d813e7..77bd14a 100644 --- a/pkg/rpc/protos/service_region_province.proto +++ b/pkg/rpc/protos/service_region_province.proto @@ -4,14 +4,28 @@ option go_package = "./pb"; package pb; import "models/model_region_province.proto"; +import "models/rpc_messages.proto"; // 省份相关服务 service RegionProvinceService { // 查找所有省份 - rpc findAllEnabledRegionProvincesWithCountryId (FindAllEnabledRegionProvincesWithCountryIdRequest) returns (FindAllEnabledRegionProvincesWithCountryIdResponse); + rpc findAllEnabledRegionProvincesWithCountryId (FindAllEnabledRegionProvincesWithCountryIdRequest) returns (FindAllEnabledRegionProvincesWithCountryIdResponse) { + option deprecated = true; + }; // 查找单个省份信息 - rpc findEnabledRegionProvince (FindEnabledRegionProvinceRequest) returns (FindEnabledRegionProvinceResponse); + rpc findEnabledRegionProvince (FindEnabledRegionProvinceRequest) returns (FindEnabledRegionProvinceResponse) { + option deprecated = true; + }; + + // 查找所有省份 + rpc findAllRegionProvincesWithRegionCountryId (FindAllRegionProvincesWithRegionCountryIdRequest) returns (FindAllRegionProvincesWithRegionCountryIdResponse); + + // 查找单个省份信息 + rpc findRegionProvince (FindRegionProvinceRequest) returns (FindRegionProvinceResponse); + + // 修改国家/地区定制信息 + rpc updateRegionProvinceCustom(UpdateRegionProvinceCustomRequest) returns (RPCSuccess); } // 查找所有省份 @@ -31,3 +45,28 @@ message FindEnabledRegionProvinceRequest { message FindEnabledRegionProvinceResponse { RegionProvince regionProvince = 1; } + +// 查找所有省份 +message FindAllRegionProvincesWithRegionCountryIdRequest { + int64 regionCountryId = 1; +} + +message FindAllRegionProvincesWithRegionCountryIdResponse { + repeated RegionProvince regionProvinces = 1; +} + +// 查找单个省份信息 +message FindRegionProvinceRequest { + int64 regionProvinceId = 1; +} + +message FindRegionProvinceResponse { + RegionProvince regionProvince = 1; +} + +// 修改省份定制信息 +message UpdateRegionProvinceCustomRequest { + int64 regionProvinceId = 1; + string customName = 2; + repeated string customCodes = 3; +}