diff --git a/build/rpc.json b/build/rpc.json index 3685825..1096e76 100644 --- a/build/rpc.json +++ b/build/rpc.json @@ -395,7 +395,9 @@ "responseMessageName": "CreateOrUpdateAdminResponse", "code": "rpc createOrUpdateAdmin (CreateOrUpdateAdminRequest) returns (CreateOrUpdateAdminResponse);", "doc": "创建或修改管理员", - "roles": [] + "roles": [ + "admin" + ] }, { "name": "updateAdminInfo", @@ -403,7 +405,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateAdminInfo (UpdateAdminInfoRequest) returns (RPCSuccess);", "doc": "修改管理员信息", - "roles": [] + "roles": [ + "admin" + ] }, { "name": "updateAdminLogin", @@ -411,7 +415,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateAdminLogin (UpdateAdminLoginRequest) returns (RPCSuccess);", "doc": "修改管理员登录信息", - "roles": [] + "roles": [ + "admin" + ] }, { "name": "findAllAdminModules", @@ -561,7 +567,9 @@ "responseMessageName": "FindAllEnabledAPINodesResponse", "code": "rpc findAllEnabledAPINodes (FindAllEnabledAPINodesRequest) returns (FindAllEnabledAPINodesResponse);", "doc": "列出所有可用API节点", - "roles": [] + "roles": [ + "dns" + ] }, { "name": "countAllEnabledAPINodes", @@ -1172,7 +1180,9 @@ "responseMessageName": "FindAllFileChunkIdsResponse", "code": "rpc findAllFileChunkIds (FindAllFileChunkIdsRequest) returns (FindAllFileChunkIdsResponse);", "doc": "获取的一个文件的所有片段IDs", - "roles": [] + "roles": [ + "user" + ] }, { "name": "downloadFileChunk", @@ -1180,7 +1190,9 @@ "responseMessageName": "DownloadFileChunkResponse", "code": "rpc downloadFileChunk (DownloadFileChunkRequest) returns (DownloadFileChunkResponse);", "doc": "下载文件片段", - "roles": [] + "roles": [ + "user" + ] } ], "filename": "service_file_chunk.proto", @@ -1232,7 +1244,9 @@ "responseMessageName": "CreateHTTPAccessLogsResponse", "code": "rpc createHTTPAccessLogs (CreateHTTPAccessLogsRequest) returns (CreateHTTPAccessLogsResponse);", "doc": "创建访问日志", - "roles": [] + "roles": [ + "node" + ] }, { "name": "listHTTPAccessLogs", @@ -2615,7 +2629,9 @@ "responseMessageName": "CreateIPItemResponse", "code": "rpc createIPItem (CreateIPItemRequest) returns (CreateIPItemResponse);", "doc": "创建IP", - "roles": [] + "roles": [ + "dns" + ] }, { "name": "updateIPItem", @@ -2688,7 +2704,9 @@ "responseMessageName": "ListIPItemsAfterVersionResponse", "code": "rpc listIPItemsAfterVersion (ListIPItemsAfterVersionRequest) returns (ListIPItemsAfterVersionResponse);", "doc": "根据版本列出一组IP", - "roles": [] + "roles": [ + "node" + ] }, { "name": "checkIPItemStatus", @@ -2753,7 +2771,9 @@ "responseMessageName": "CreateIPLibraryResponse", "code": "rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse);", "doc": "创建IP库", - "roles": [] + "roles": [ + "admin" + ] }, { "name": "findLatestIPLibraryWithType", @@ -2761,7 +2781,9 @@ "responseMessageName": "FindLatestIPLibraryWithTypeResponse", "code": "rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse);", "doc": "查找最新的IP库", - "roles": [] + "roles": [ + "node" + ] }, { "name": "findEnabledIPLibrary", @@ -2769,7 +2791,9 @@ "responseMessageName": "FindEnabledIPLibraryResponse", "code": "rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse);", "doc": "查找单个IP库", - "roles": [] + "roles": [ + "admin" + ] }, { "name": "findAllEnabledIPLibrariesWithType", @@ -2777,7 +2801,9 @@ "responseMessageName": "FindAllEnabledIPLibrariesWithTypeResponse", "code": "rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse);", "doc": "列出某个类型的所有IP库", - "roles": [] + "roles": [ + "admin" + ] }, { "name": "deleteIPLibrary", @@ -2930,7 +2956,9 @@ "responseMessageName": "CreateLogResponse", "code": "rpc createLog (CreateLogRequest) returns (CreateLogResponse);", "doc": "创建日志", - "roles": [] + "roles": [ + "user" + ] }, { "name": "countLogs", @@ -3716,7 +3744,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateMonitorNodeStatus (UpdateMonitorNodeStatusRequest) returns (RPCSuccess);", "doc": "更新节点状态", - "roles": [] + "roles": [ + "monitor" + ] } ], "filename": "service_monitor_node.proto", @@ -3741,7 +3771,9 @@ "responseMessageName": "RegisterClusterNodeResponse", "code": "rpc registerClusterNode (RegisterClusterNodeRequest) returns (RegisterClusterNodeResponse);", "doc": "注册集群节点", - "roles": [] + "roles": [ + "cluster" + ] }, { "name": "countAllEnabledNodes", @@ -3840,7 +3872,9 @@ "responseMessageName": "FindCurrentNodeConfigResponse", "code": "rpc findCurrentNodeConfig (FindCurrentNodeConfigRequest) returns (FindCurrentNodeConfigResponse);", "doc": "获取当前节点配置", - "roles": [] + "roles": [ + "node" + ] }, { "name": "sendCommandToNode", @@ -3918,7 +3952,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateNodeConnectedAPINodes (UpdateNodeConnectedAPINodesRequest) returns (RPCSuccess);", "doc": "更改节点连接的API节点信息", - "roles": [] + "roles": [ + "node" + ] }, { "name": "countAllEnabledNodesWithNodeGrantId", @@ -5252,10 +5288,10 @@ ] }, { - "name": "findAllEnabledAndOnNodePriceItems", - "requestMessageName": "FindAllEnabledAndOnNodePriceItemsRequest", - "responseMessageName": "FindAllEnabledAndOnNodePriceItemsResponse", - "code": "rpc findAllEnabledAndOnNodePriceItems (FindAllEnabledAndOnNodePriceItemsRequest) returns (FindAllEnabledAndOnNodePriceItemsResponse);", + "name": "findAllAvailableNodePriceItems", + "requestMessageName": "FindAllAvailableNodePriceItemsRequest", + "responseMessageName": "FindAllAvailableNodePriceItemsResponse", + "code": "rpc findAllAvailableNodePriceItems (FindAllAvailableNodePriceItemsRequest) returns (FindAllAvailableNodePriceItemsResponse);", "doc": "查找所有启用的区域价格", "roles": [ "admin" @@ -5319,10 +5355,10 @@ ] }, { - "name": "findAllEnabledAndOnNodeRegions", - "requestMessageName": "FindAllEnabledAndOnNodeRegionsRequest", - "responseMessageName": "FindAllEnabledAndOnNodeRegionsResponse", - "code": "rpc findAllEnabledAndOnNodeRegions (FindAllEnabledAndOnNodeRegionsRequest) returns (FindAllEnabledAndOnNodeRegionsResponse);", + "name": "findAllAvailableNodeRegions", + "requestMessageName": "FindAllAvailableNodeRegionsRequest", + "responseMessageName": "FindAllAvailableNodeRegionsResponse", + "code": "rpc findAllAvailableNodeRegions (FindAllAvailableNodeRegionsRequest) returns (FindAllAvailableNodeRegionsResponse);", "doc": "查找所有启用的区域", "roles": [ "admin" @@ -5371,7 +5407,9 @@ "responseMessageName": "FindNodeTasksResponse", "code": "rpc findNodeTasks (FindNodeTasksRequest) returns (FindNodeTasksResponse);", "doc": "获取单节点同步任务", - "roles": [] + "roles": [ + "dns" + ] }, { "name": "reportNodeTaskDone", @@ -5379,7 +5417,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc reportNodeTaskDone (ReportNodeTaskDoneRequest) returns (RPCSuccess);", "doc": "报告同步任务结果", - "roles": [] + "roles": [ + "dns" + ] }, { "name": "findNodeClusterTasks", @@ -5531,7 +5571,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc createNodeValue (CreateNodeValueRequest) returns (RPCSuccess);", "doc": "记录数据", - "roles": [] + "roles": [ + "dns" + ] }, { "name": "listNodeValues", @@ -5647,34 +5689,34 @@ "roles": [] }, { - "name": "findEnabledNSCluster", - "requestMessageName": "FindEnabledNSClusterRequest", - "responseMessageName": "FindEnabledNSClusterResponse", - "code": "rpc findEnabledNSCluster (FindEnabledNSClusterRequest) returns (FindEnabledNSClusterResponse);", + "name": "findNSCluster", + "requestMessageName": "FindNSClusterRequest", + "responseMessageName": "FindNSClusterResponse", + "code": "rpc findNSCluster (FindNSClusterRequest) returns (FindNSClusterResponse);", "doc": "查找单个可用集群信息", "roles": [] }, { - "name": "countAllEnabledNSClusters", - "requestMessageName": "CountAllEnabledNSClustersRequest", + "name": "countAllNSClusters", + "requestMessageName": "CountAllNSClustersRequest", "responseMessageName": "RPCCountResponse", - "code": "rpc countAllEnabledNSClusters (CountAllEnabledNSClustersRequest) returns (RPCCountResponse);", + "code": "rpc countAllNSClusters (CountAllNSClustersRequest) returns (RPCCountResponse);", "doc": "计算所有可用集群的数量", "roles": [] }, { - "name": "listEnabledNSClusters", - "requestMessageName": "ListEnabledNSClustersRequest", - "responseMessageName": "ListEnabledNSClustersResponse", - "code": "rpc listEnabledNSClusters (ListEnabledNSClustersRequest) returns (ListEnabledNSClustersResponse);", + "name": "listNSClusters", + "requestMessageName": "ListNSClustersRequest", + "responseMessageName": "ListNSClustersResponse", + "code": "rpc listNSClusters (ListNSClustersRequest) returns (ListNSClustersResponse);", "doc": "列出单页可用集群", "roles": [] }, { - "name": "findAllEnabledNSClusters", - "requestMessageName": "FindAllEnabledNSClustersRequest", - "responseMessageName": "FindAllEnabledNSClustersResponse", - "code": "rpc findAllEnabledNSClusters (FindAllEnabledNSClustersRequest) returns (FindAllEnabledNSClustersResponse);", + "name": "findAllNSClusters", + "requestMessageName": "FindAllNSClustersRequest", + "responseMessageName": "FindAllNSClustersResponse", + "code": "rpc findAllNSClusters (FindAllNSClustersRequest) returns (FindAllNSClustersResponse);", "doc": "查找所有可用集群", "roles": [] }, @@ -5762,7 +5804,15 @@ "requestMessageName": "CreateNSDomainRequest", "responseMessageName": "CreateNSDomainResponse", "code": "rpc createNSDomain (CreateNSDomainRequest) returns (CreateNSDomainResponse);", - "doc": "创建域名", + "doc": "创建单个域名", + "roles": [] + }, + { + "name": "createNSDomains", + "requestMessageName": "CreateNSDomainsRequest", + "responseMessageName": "CreateNSDomainsResponse", + "code": "rpc createNSDomains(CreateNSDomainsRequest) returns (CreateNSDomainsResponse);", + "doc": "批量创建域名", "roles": [] }, { @@ -5782,26 +5832,26 @@ "roles": [] }, { - "name": "findEnabledNSDomain", - "requestMessageName": "FindEnabledNSDomainRequest", - "responseMessageName": "FindEnabledNSDomainResponse", - "code": "rpc findEnabledNSDomain (FindEnabledNSDomainRequest) returns (FindEnabledNSDomainResponse);", + "name": "findNSDomain", + "requestMessageName": "FindNSDomainRequest", + "responseMessageName": "FindNSDomainResponse", + "code": "rpc findNSDomain (FindNSDomainRequest) returns (FindNSDomainResponse);", "doc": "查找单个域名", "roles": [] }, { - "name": "countAllEnabledNSDomains", - "requestMessageName": "CountAllEnabledNSDomainsRequest", + "name": "countAllNSDomains", + "requestMessageName": "CountAllNSDomainsRequest", "responseMessageName": "RPCCountResponse", - "code": "rpc countAllEnabledNSDomains (CountAllEnabledNSDomainsRequest) returns (RPCCountResponse);", + "code": "rpc countAllNSDomains (CountAllNSDomainsRequest) returns (RPCCountResponse);", "doc": "计算域名数量", "roles": [] }, { - "name": "listEnabledNSDomains", - "requestMessageName": "ListEnabledNSDomainsRequest", - "responseMessageName": "ListEnabledNSDomainsResponse", - "code": "rpc listEnabledNSDomains (ListEnabledNSDomainsRequest) returns (ListEnabledNSDomainsResponse);", + "name": "listNSDomains", + "requestMessageName": "ListNSDomainsRequest", + "responseMessageName": "ListNSDomainsResponse", + "code": "rpc listNSDomains (ListNSDomainsRequest) returns (ListNSDomainsResponse);", "doc": "列出单页域名", "roles": [] }, @@ -5814,10 +5864,10 @@ "roles": [] }, { - "name": "findEnabledNSDomainTSIG", - "requestMessageName": "FindEnabledNSDomainTSIGRequest", - "responseMessageName": "FindEnabledNSDomainTSIGResponse", - "code": "rpc findEnabledNSDomainTSIG (FindEnabledNSDomainTSIGRequest) returns (FindEnabledNSDomainTSIGResponse);", + "name": "findNSDomainTSIG", + "requestMessageName": "FindNSDomainTSIGRequest", + "responseMessageName": "FindNSDomainTSIGResponse", + "code": "rpc findNSDomainTSIG (FindNSDomainTSIGRequest) returns (FindNSDomainTSIGResponse);", "doc": "查找TSIG配置", "roles": [] }, @@ -5828,11 +5878,82 @@ "code": "rpc updateNSDomainTSIG (UpdateNSDomainTSIGRequest) returns (RPCSuccess);", "doc": "修改TSIG配置", "roles": [] + }, + { + "name": "existNSDomains", + "requestMessageName": "ExistNSDomainsRequest", + "responseMessageName": "ExistNSDomainsResponse", + "code": "rpc existNSDomains(ExistNSDomainsRequest) returns (ExistNSDomainsResponse);", + "doc": "检查一组域名是否存在", + "roles": [] } ], "filename": "service_ns_domain.proto", "doc": "域名相关服务" }, + { + "name": "NSDomainGroupService", + "methods": [ + { + "name": "createNSDomainGroup", + "requestMessageName": "CreateNSDomainGroupRequest", + "responseMessageName": "CreateNSDomainGroupResponse", + "code": "rpc createNSDomainGroup(CreateNSDomainGroupRequest) returns (CreateNSDomainGroupResponse);", + "doc": "创建分组", + "roles": [] + }, + { + "name": "updateNSDomainGroup", + "requestMessageName": "UpdateNSDomainGroupRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc updateNSDomainGroup(UpdateNSDomainGroupRequest) returns (RPCSuccess);", + "doc": "修改分组", + "roles": [] + }, + { + "name": "deleteNSDomainGroup", + "requestMessageName": "DeleteNSDomainGroupRequest", + "responseMessageName": "RPCSuccess", + "code": "rpc deleteNSDomainGroup(DeleteNSDomainGroupRequest) returns (RPCSuccess);", + "doc": "删除分组", + "roles": [] + }, + { + "name": "findAllNSDomainGroups", + "requestMessageName": "FindAllNSDomainGroupsRequest", + "responseMessageName": "FindAllNSDomainGroupsResponse", + "code": "rpc findAllNSDomainGroups(FindAllNSDomainGroupsRequest) returns (FindAllNSDomainGroupsResponse);", + "doc": "查询所有分组", + "roles": [] + }, + { + "name": "countAllAvailableNSDomainGroups", + "requestMessageName": "CountAllAvailableNSDomainGroupsRequest", + "responseMessageName": "RPCCountResponse", + "code": "rpc countAllAvailableNSDomainGroups(CountAllAvailableNSDomainGroupsRequest) returns (RPCCountResponse);", + "doc": "查询可用分组数量", + "roles": [] + }, + { + "name": "findAllAvailableNSDomainGroups", + "requestMessageName": "FindAllAvailableNSDomainGroupsRequest", + "responseMessageName": "FindAllAvailableNSDomainGroupsResponse", + "code": "rpc findAllAvailableNSDomainGroups(FindAllAvailableNSDomainGroupsRequest) returns (FindAllAvailableNSDomainGroupsResponse);", + "doc": "查询所有启用分组", + "roles": [] + }, + { + "name": "findNSDomainGroup", + "requestMessageName": "FindNSDomainGroupRequest", + "responseMessageName": "FindNSDomainGroupResponse", + "code": "rpc findNSDomainGroup(FindNSDomainGroupRequest) returns (FindNSDomainGroupResponse);", + "doc": "查找单个分组", + "roles": [] + } + ], + "filename": "service_ns_domain_group.proto", + "doc": "域名分组服务" + }, { "name": "NSKeyService", "methods": [ @@ -5861,26 +5982,26 @@ "roles": [] }, { - "name": "findEnabledNSKey", - "requestMessageName": "FindEnabledNSKeyRequest", - "responseMessageName": "FindEnabledNSKeyResponse", - "code": "rpc findEnabledNSKey (FindEnabledNSKeyRequest) returns (FindEnabledNSKeyResponse);", + "name": "findNSKey", + "requestMessageName": "FindNSKeyRequest", + "responseMessageName": "FindNSKeyResponse", + "code": "rpc findNSKey (FindNSKeyRequest) returns (FindNSKeyResponse);", "doc": "查找单个密钥", "roles": [] }, { - "name": "countAllEnabledNSKeys", - "requestMessageName": "CountAllEnabledNSKeysRequest", + "name": "countAllNSKeys", + "requestMessageName": "CountAllNSKeysRequest", "responseMessageName": "RPCCountResponse", - "code": "rpc countAllEnabledNSKeys (CountAllEnabledNSKeysRequest) returns (RPCCountResponse);", + "code": "rpc countAllNSKeys (CountAllNSKeysRequest) returns (RPCCountResponse);", "doc": "计算密钥数量", "roles": [] }, { - "name": "listEnabledNSKeys", - "requestMessageName": "ListEnabledNSKeysRequest", - "responseMessageName": "ListEnabledNSKeysResponse", - "code": "rpc listEnabledNSKeys (ListEnabledNSKeysRequest) returns (ListEnabledNSKeysResponse);", + "name": "listNSKeys", + "requestMessageName": "ListNSKeysRequest", + "responseMessageName": "ListNSKeysResponse", + "code": "rpc listNSKeys (ListNSKeysRequest) returns (ListNSKeysResponse);", "doc": "列出单页密钥", "roles": [] }, @@ -5900,34 +6021,34 @@ "name": "NSNodeService", "methods": [ { - "name": "findAllEnabledNSNodesWithNSClusterId", - "requestMessageName": "FindAllEnabledNSNodesWithNSClusterIdRequest", - "responseMessageName": "FindAllEnabledNSNodesWithNSClusterIdResponse", - "code": "rpc findAllEnabledNSNodesWithNSClusterId (FindAllEnabledNSNodesWithNSClusterIdRequest) returns (FindAllEnabledNSNodesWithNSClusterIdResponse);", + "name": "findAllNSNodesWithNSClusterId", + "requestMessageName": "FindAllNSNodesWithNSClusterIdRequest", + "responseMessageName": "FindAllNSNodesWithNSClusterIdResponse", + "code": "rpc findAllNSNodesWithNSClusterId (FindAllNSNodesWithNSClusterIdRequest) returns (FindAllNSNodesWithNSClusterIdResponse);", "doc": "根据集群查找所有节点", "roles": [] }, { - "name": "countAllEnabledNSNodes", - "requestMessageName": "CountAllEnabledNSNodesRequest", + "name": "countAllNSNodes", + "requestMessageName": "CountAllNSNodesRequest", "responseMessageName": "RPCCountResponse", - "code": "rpc countAllEnabledNSNodes (CountAllEnabledNSNodesRequest) returns (RPCCountResponse);", + "code": "rpc countAllNSNodes (CountAllNSNodesRequest) returns (RPCCountResponse);", "doc": "所有可用的节点数量", "roles": [] }, { - "name": "countAllEnabledNSNodesMatch", - "requestMessageName": "CountAllEnabledNSNodesMatchRequest", + "name": "countAllNSNodesMatch", + "requestMessageName": "CountAllNSNodesMatchRequest", "responseMessageName": "RPCCountResponse", - "code": "rpc countAllEnabledNSNodesMatch (CountAllEnabledNSNodesMatchRequest) returns (RPCCountResponse);", + "code": "rpc countAllNSNodesMatch (CountAllNSNodesMatchRequest) returns (RPCCountResponse);", "doc": "计算匹配的节点数量", "roles": [] }, { - "name": "listEnabledNSNodesMatch", - "requestMessageName": "ListEnabledNSNodesMatchRequest", - "responseMessageName": "ListEnabledNSNodesMatchResponse", - "code": "rpc listEnabledNSNodesMatch (ListEnabledNSNodesMatchRequest) returns (ListEnabledNSNodesMatchResponse);", + "name": "listNSNodesMatch", + "requestMessageName": "ListNSNodesMatchRequest", + "responseMessageName": "ListNSNodesMatchResponse", + "code": "rpc listNSNodesMatch (ListNSNodesMatchRequest) returns (ListNSNodesMatchResponse);", "doc": "列出单页节点", "roles": [] }, @@ -5956,10 +6077,10 @@ "roles": [] }, { - "name": "findEnabledNSNode", - "requestMessageName": "FindEnabledNSNodeRequest", - "responseMessageName": "FindEnabledNSNodeResponse", - "code": "rpc findEnabledNSNode (FindEnabledNSNodeRequest) returns (FindEnabledNSNodeResponse);", + "name": "findNSNode", + "requestMessageName": "FindNSNodeRequest", + "responseMessageName": "FindNSNodeResponse", + "code": "rpc findNSNode (FindNSNodeRequest) returns (FindNSNodeResponse);", "doc": "获取单个节点信息", "roles": [] }, @@ -6113,6 +6234,14 @@ "doc": "创建记录", "roles": [] }, + { + "name": "createNSRecords", + "requestMessageName": "CreateNSRecordsRequest", + "responseMessageName": "CreateNSRecordsResponse", + "code": "rpc createNSRecords(CreateNSRecordsRequest) returns (CreateNSRecordsResponse);", + "doc": "批量创建记录", + "roles": [] + }, { "name": "updateNSRecord", "requestMessageName": "UpdateNSRecordRequest", @@ -6130,26 +6259,26 @@ "roles": [] }, { - "name": "countAllEnabledNSRecords", - "requestMessageName": "CountAllEnabledNSRecordsRequest", + "name": "countAllNSRecords", + "requestMessageName": "CountAllNSRecordsRequest", "responseMessageName": "RPCCountResponse", - "code": "rpc countAllEnabledNSRecords (CountAllEnabledNSRecordsRequest) returns (RPCCountResponse);", + "code": "rpc countAllNSRecords (CountAllNSRecordsRequest) returns (RPCCountResponse);", "doc": "计算记录数量", "roles": [] }, { - "name": "listEnabledNSRecords", - "requestMessageName": "ListEnabledNSRecordsRequest", - "responseMessageName": "ListEnabledNSRecordsResponse", - "code": "rpc listEnabledNSRecords (ListEnabledNSRecordsRequest) returns (ListEnabledNSRecordsResponse);", + "name": "listNSRecords", + "requestMessageName": "ListNSRecordsRequest", + "responseMessageName": "ListNSRecordsResponse", + "code": "rpc listNSRecords (ListNSRecordsRequest) returns (ListNSRecordsResponse);", "doc": "读取单页记录", "roles": [] }, { - "name": "findEnabledNSRecord", - "requestMessageName": "FindEnabledNSRecordRequest", - "responseMessageName": "FindEnabledNSRecordResponse", - "code": "rpc findEnabledNSRecord (FindEnabledNSRecordRequest) returns (FindEnabledNSRecordResponse);", + "name": "findNSRecord", + "requestMessageName": "FindNSRecordRequest", + "responseMessageName": "FindNSRecordResponse", + "code": "rpc findNSRecord (FindNSRecordRequest) returns (FindNSRecordResponse);", "doc": "查询单个记录信息", "roles": [] }, @@ -6208,18 +6337,18 @@ "roles": [] }, { - "name": "findEnabledNSRoute", - "requestMessageName": "FindEnabledNSRouteRequest", - "responseMessageName": "FindEnabledNSRouteResponse", - "code": "rpc findEnabledNSRoute (FindEnabledNSRouteRequest) returns (FindEnabledNSRouteResponse);", + "name": "findNSRoute", + "requestMessageName": "FindNSRouteRequest", + "responseMessageName": "FindNSRouteResponse", + "code": "rpc findNSRoute (FindNSRouteRequest) returns (FindNSRouteResponse);", "doc": "获取单个路线信息", "roles": [] }, { - "name": "findAllEnabledNSRoutes", - "requestMessageName": "FindAllEnabledNSRoutesRequest", - "responseMessageName": "FindAllEnabledNSRoutesResponse", - "code": "rpc findAllEnabledNSRoutes (FindAllEnabledNSRoutesRequest) returns (FindAllEnabledNSRoutesResponse);", + "name": "findAllNSRoutes", + "requestMessageName": "FindAllNSRoutesRequest", + "responseMessageName": "FindAllNSRoutesResponse", + "code": "rpc findAllNSRoutes (FindAllNSRoutesRequest) returns (FindAllNSRoutesResponse);", "doc": "读取所有线路", "roles": [] }, @@ -6295,10 +6424,10 @@ "roles": [] }, { - "name": "findAllEnabledAndOnOrderMethods", - "requestMessageName": "FindAllEnabledAndOnOrderMethodsRequest", - "responseMessageName": "FindAllEnabledAndOnOrderMethodsResponse", - "code": "rpc findAllEnabledAndOnOrderMethods(FindAllEnabledAndOnOrderMethodsRequest) returns (FindAllEnabledAndOnOrderMethodsResponse);", + "name": "findAllAvailableOrderMethods", + "requestMessageName": "FindAllAvailableOrderMethodsRequest", + "responseMessageName": "FindAllAvailableOrderMethodsResponse", + "code": "rpc findAllAvailableOrderMethods(FindAllAvailableOrderMethodsRequest) returns (FindAllAvailableOrderMethodsResponse);", "doc": "查找所有已启用的支付方式", "roles": [] } @@ -7551,7 +7680,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc uploadServerDailyStats (UploadServerDailyStatsRequest) returns (RPCSuccess);", "doc": "上传统计", - "roles": [] + "roles": [ + "dns" + ] }, { "name": "findLatestServerHourlyStats", @@ -8129,7 +8260,9 @@ "responseMessageName": "FindEnabledSSLPolicyConfigResponse", "code": "rpc findEnabledSSLPolicyConfig (FindEnabledSSLPolicyConfigRequest) returns (FindEnabledSSLPolicyConfigResponse);", "doc": "查找Policy", - "roles": [] + "roles": [ + "user" + ] } ], "filename": "service_ssl_policy.proto", @@ -8173,7 +8306,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateSysSetting (UpdateSysSettingRequest) returns (RPCSuccess);", "doc": "更改配置", - "roles": [] + "roles": [ + "user" + ] }, { "name": "readSysSetting", @@ -8181,7 +8316,9 @@ "responseMessageName": "ReadSysSettingResponse", "code": "rpc readSysSetting (ReadSysSettingRequest) returns (ReadSysSettingResponse);", "doc": "读取配置", - "roles": [] + "roles": [ + "user" + ] } ], "filename": "service_sys_setting.proto", @@ -8294,7 +8431,9 @@ "responseMessageName": "CheckUserUsernameResponse", "code": "rpc checkUserUsername (CheckUserUsernameRequest) returns (CheckUserUsernameResponse);", "doc": "检查用户名是否存在", - "roles": [] + "roles": [ + "user" + ] }, { "name": "loginUser", @@ -8828,7 +8967,9 @@ "responseMessageName": "RPCSuccess", "code": "rpc updateUserNodeStatus (UpdateUserNodeStatusRequest) returns (RPCSuccess);", "doc": "更新节点状态", - "roles": [] + "roles": [ + "user" + ] }, { "name": "countAllEnabledUserNodesWithSSLCertId", @@ -9084,10 +9225,10 @@ "roles": [] }, { - "name": "findAllOnUserTicketCategories", - "requestMessageName": "FindAllOnUserTicketCategoriesRequest", - "responseMessageName": "FindAllOnUserTicketCategoriesResponse", - "code": "rpc findAllOnUserTicketCategories(FindAllOnUserTicketCategoriesRequest) returns (FindAllOnUserTicketCategoriesResponse);", + "name": "findAllAvailableUserTicketCategories", + "requestMessageName": "FindAllAvailableUserTicketCategoriesRequest", + "responseMessageName": "FindAllAvailableUserTicketCategoriesResponse", + "code": "rpc findAllAvailableUserTicketCategories(FindAllAvailableUserTicketCategoriesRequest) returns (FindAllAvailableUserTicketCategoriesResponse);", "doc": "查找所有启用中的分类", "roles": [] }, @@ -9144,6 +9285,11 @@ } ], "messages": [ + { + "name": "FindAPIMethodStatsWithDayRequest", + "code": "message FindAPIMethodStatsWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n}", + "doc": "查找某天的统计" + }, { "name": "FindAPIMethodStatsWithDayResponse", "code": "message FindAPIMethodStatsWithDayResponse {\n\trepeated APIMethodStat apiMethodStats = 1;\n}", @@ -9154,24 +9300,14 @@ "code": "message CountAPIMethodStatsWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n}", "doc": "检查是否有统计数据" }, - { - "name": "FindAPIMethodStatsWithDayRequest", - "code": "message FindAPIMethodStatsWithDayRequest {\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": "FindAllACMEProvidersResponse", - "code": "message FindAllACMEProvidersResponse {\n\trepeated ACMEProvider acmeProviders = 1;\n}", + "name": "FindACMEAuthenticationKeyWithTokenResponse", + "code": "message FindACMEAuthenticationKeyWithTokenResponse {\n\tstring key = 1;\n}", "doc": "" }, { @@ -9190,35 +9326,10 @@ "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": "FindAllACMEProviderAccountsWithProviderCodeRequest", - "code": "message FindAllACMEProviderAccountsWithProviderCodeRequest {\n\tstring acmeProviderCode = 1;\n}", - "doc": "使用代号查找服务商账号" - }, - { - "name": "ListEnabledACMEProviderAccountsRequest", - "code": "message ListEnabledACMEProviderAccountsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页服务商账号" - }, - { - "name": "ListEnabledACMEProviderAccountsResponse", - "code": "message ListEnabledACMEProviderAccountsResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", + "name": "FindAllACMEProvidersResponse", + "code": "message FindAllACMEProvidersResponse {\n\trepeated ACMEProvider acmeProviders = 1;\n}", "doc": "" }, - { - "name": "FindEnabledACMEProviderAccountResponse", - "code": "message FindEnabledACMEProviderAccountResponse {\n\tACMEProviderAccount acmeProviderAccount = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledACMEProviderAccountsRequest", - "code": "message CountAllEnabledACMEProviderAccountsRequest {\n\n}", - "doc": "计算所有服务商账号数量" - }, { "name": "CreateACMEProviderAccountResponse", "code": "message CreateACMEProviderAccountResponse {\n\tint64 acmeProviderAccountId = 1;\n}", @@ -9229,70 +9340,50 @@ "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": "DeleteACMEProviderAccountRequest", "code": "message DeleteACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n}", "doc": "删除服务商账号" }, + { + "name": "ListEnabledACMEProviderAccountsRequest", + "code": "message ListEnabledACMEProviderAccountsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\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": "FindAllACMEProviderAccountsWithProviderCodeRequest", + "code": "message FindAllACMEProviderAccountsWithProviderCodeRequest {\n\tstring acmeProviderCode = 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": "FindEnabledACMEProviderAccountRequest", "code": "message FindEnabledACMEProviderAccountRequest {\n\tint64 acmeProviderAccountId = 1;\n}", "doc": "查找单个服务商账号" }, { - "name": "UpdateACMETaskRequest", - "code": "message UpdateACMETaskRequest {\n\tint64 acmeTaskId = 1;\n\tint64 acmeUserId = 2;\n\tint64 dnsProviderId = 3;\n\tstring dnsDomain = 4;\n\trepeated string domains = 5;\n\tbool autoRenew = 6;\n\tstring authURL = 7;\n}", - "doc": "修改任务" - }, - { - "name": "DeleteACMETaskRequest", - "code": "message DeleteACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", - "doc": "删除任务" - }, - { - "name": "FindEnabledACMETaskRequest", - "code": "message FindEnabledACMETaskRequest {\n\tint64 acmeTaskId = 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}", - "doc": "创建任务" - }, - { - "name": "CountEnabledACMETasksWithDNSProviderIdRequest", - "code": "message CountEnabledACMETasksWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算跟某个DNS服务商相关的任务数量" - }, - { - "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}", + "name": "FindEnabledACMEProviderAccountResponse", + "code": "message FindEnabledACMEProviderAccountResponse {\n\tACMEProviderAccount acmeProviderAccount = 1;\n}", "doc": "" }, { - "name": "CreateACMETaskResponse", - "code": "message CreateACMETaskResponse {\n\tint64 acmeTaskId = 1;\n}", - "doc": "" + "name": "CountAllEnabledACMEProviderAccountsRequest", + "code": "message CountAllEnabledACMEProviderAccountsRequest {\n\n}", + "doc": "计算所有服务商账号数量" }, { - "name": "RunACMETaskRequest", - "code": "message RunACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", - "doc": "运行某个任务" + "name": "ListEnabledACMEProviderAccountsResponse", + "code": "message ListEnabledACMEProviderAccountsResponse {\n\trepeated ACMEProviderAccount acmeProviderAccounts = 1;\n}", + "doc": "" }, { "name": "RunACMETaskResponse", @@ -9304,25 +9395,60 @@ "code": "message CountAllEnabledACMETasksWithACMEUserIdRequest {\n\tint64 acmeUserId = 1;\n}", "doc": "计算某个ACME用户相关的任务数量" }, + { + "name": "CountEnabledACMETasksWithDNSProviderIdRequest", + "code": "message CountEnabledACMETasksWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算跟某个DNS服务商相关的任务数量" + }, + { + "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": "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}", + "doc": "创建任务" + }, + { + "name": "CreateACMETaskResponse", + "code": "message CreateACMETaskResponse {\n\tint64 acmeTaskId = 1;\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": "FindEnabledACMETaskResponse", "code": "message FindEnabledACMETaskResponse {\n\tACMETask acmeTask = 1;\n}", "doc": "" }, { - "name": "FindAllACMEUsersResponse", - "code": "message FindAllACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 1;\n}", + "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": "ListEnabledACMETasksResponse", + "code": "message ListEnabledACMETasksResponse {\n\trepeated ACMETask acmeTasks = 1;\n}", "doc": "" }, { - "name": "CreateACMEUserResponse", - "code": "message CreateACMEUserResponse {\n\tint64 acmeUserId = 1;\n}", - "doc": "" + "name": "UpdateACMETaskRequest", + "code": "message UpdateACMETaskRequest {\n\tint64 acmeTaskId = 1;\n\tint64 acmeUserId = 2;\n\tint64 dnsProviderId = 3;\n\tstring dnsDomain = 4;\n\trepeated string domains = 5;\n\tbool autoRenew = 6;\n\tstring authURL = 7;\n}", + "doc": "修改任务" }, { - "name": "DeleteACMEUserRequest", - "code": "message DeleteACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", - "doc": "删除用户" + "name": "FindEnabledACMETaskRequest", + "code": "message FindEnabledACMETaskRequest {\n\tint64 acmeTaskId = 1;\n}", + "doc": "查找单个任务信息" }, { "name": "CountAcmeUsersRequest", @@ -9339,169 +9465,184 @@ "code": "message FindEnabledACMEUserRequest {\n\tint64 acmeUserId = 1;\n}", "doc": "查找单个用户" }, + { + "name": "FindAllACMEUsersRequest", + "code": "message FindAllACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring acmeProviderCode = 3;\n}", + "doc": "查找所有用户" + }, { "name": "FindEnabledACMEUserResponse", "code": "message FindEnabledACMEUserResponse {\n\tACMEUser acmeUser = 1;\n}", "doc": "" }, { - "name": "FindAllACMEUsersRequest", - "code": "message FindAllACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tstring acmeProviderCode = 3;\n}", - "doc": "查找所有用户" + "name": "FindAllACMEUsersResponse", + "code": "message FindAllACMEUsersResponse {\n\trepeated ACMEUser acmeUsers = 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": "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": "ListACMEUsersRequest", "code": "message ListACMEUsersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", "doc": "列出单页用户" }, - { - "name": "CheckAdminExistsRequest", - "code": "message CheckAdminExistsRequest {\n\tint64 adminId = 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": "CheckAdminOTPWithUsernameRequest", - "code": "message CheckAdminOTPWithUsernameRequest {\n\tstring username = 1;\n}", - "doc": "根据用户名检查是否需要输入OTP" - }, { "name": "FindAdminFullnameResponse", "code": "message FindAdminFullnameResponse {\n\tstring fullname = 1;\n}", "doc": "" }, - { - "name": "FindEnabledAdminRequest", - "code": "message FindEnabledAdminRequest {\n\tint64 adminId = 1;\n}", - "doc": "获取管理员信息" - }, - { - "name": "UpdateAdminThemeRequest", - "code": "message UpdateAdminThemeRequest {\n\tint64 adminId = 1;\n\tstring theme = 2;\n}", - "doc": "修改管理员使用的界面风格" - }, - { - "name": "CreateOrUpdateAdminRequest", - "code": "message CreateOrUpdateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "创建或修改管理员" - }, - { - "name": "CreateOrUpdateAdminResponse", - "code": "message CreateOrUpdateAdminResponse {\n\tint64 adminId = 1;\n}", - "doc": "" - }, - { - "name": "CreateAdminResponse", - "code": "message CreateAdminResponse {\n\tint64 adminId = 1;\n}", - "doc": "" - }, - { - "name": "LoginAdminRequest", - "code": "message LoginAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "登录" - }, - { - "name": "FindAdminFullnameRequest", - "code": "message FindAdminFullnameRequest {\n\tint64 adminId = 1;\n}", - "doc": "获取管理员名称" - }, - { - "name": "FindAllAdminModulesResponse", - "code": "message FindAllAdminModulesResponse {\n\trepeated AdminModuleList adminModules = 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": "CheckAdminExistsResponse", - "code": "message CheckAdminExistsResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", - "doc": "" - }, - { - "name": "UpdateAdminInfoRequest", - "code": "message UpdateAdminInfoRequest {\n\tint64 adminId = 1;\n\tstring fullname = 2;\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": "CheckAdminOTPWithUsernameResponse", - "code": "message CheckAdminOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", - "doc": "" - }, - { - "name": "ComposeAdminDashboardRequest", - "code": "message ComposeAdminDashboardRequest {\n\tstring apiVersion = 1;\n}", - "doc": "取得管理员Dashboard数据" - }, - { - "name": "CheckAdminUsernameRequest", - "code": "message CheckAdminUsernameRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n}", - "doc": "检查用户名是否存在" - }, - { - "name": "CheckAdminUsernameResponse", - "code": "message CheckAdminUsernameResponse {\n\tbool exists = 1;\n}", - "doc": "" - }, { "name": "FindEnabledAdminResponse", "code": "message FindEnabledAdminResponse {\n\tAdmin admin = 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": "CreateOrUpdateAdminRequest", + "code": "message CreateOrUpdateAdminRequest {\n\tstring username = 1;\n\tstring password = 2;\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}", "doc": "" }, + { + "name": "FindAdminFullnameRequest", + "code": "message FindAdminFullnameRequest {\n\tint64 adminId = 1;\n}", + "doc": "获取管理员名称" + }, { "name": "FindAllAdminModulesRequest", "code": "message FindAllAdminModulesRequest {\n\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": "CountAllEnabledAdminsRequest", + "code": "message CountAllEnabledAdminsRequest {\n\n}", + "doc": "计算管理员数量" + }, + { + "name": "UpdateAdminThemeRequest", + "code": "message UpdateAdminThemeRequest {\n\tint64 adminId = 1;\n\tstring theme = 2;\n}", + "doc": "修改管理员使用的界面风格" + }, + { + "name": "FindAllAdminModulesResponse", + "code": "message FindAllAdminModulesResponse {\n\trepeated AdminModuleList adminModules = 1;\n}", + "doc": "" + }, + { + "name": "CreateAdminResponse", + "code": "message CreateAdminResponse {\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": "ListEnabledAdminsResponse", + "code": "message ListEnabledAdminsResponse {\n\trepeated Admin admins = 1;\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": "ComposeAdminDashboardRequest", + "code": "message ComposeAdminDashboardRequest {\n\tstring apiVersion = 1;\n}", + "doc": "取得管理员Dashboard数据" + }, + { + "name": "DeleteAdminRequest", + "code": "message DeleteAdminRequest {\n\tint64 adminId = 1;\n}", + "doc": "删除管理员" + }, + { + "name": "CheckAdminOTPWithUsernameResponse", + "code": "message CheckAdminOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", + "doc": "" + }, + { + "name": "CheckAdminExistsRequest", + "code": "message CheckAdminExistsRequest {\n\tint64 adminId = 1;\n}", + "doc": "检查管理员是否存在" + }, + { + "name": "CheckAdminUsernameRequest", + "code": "message CheckAdminUsernameRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n}", + "doc": "检查用户名是否存在" + }, + { + "name": "UpdateAdminLoginRequest", + "code": "message UpdateAdminLoginRequest {\n\tint64 adminId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", + "doc": "修改管理员登录信息" + }, { "name": "ListEnabledAdminsRequest", "code": "message ListEnabledAdminsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页的管理员" }, { - "name": "ListEnabledAdminsResponse", - "code": "message ListEnabledAdminsResponse {\n\trepeated Admin admins = 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": "CreateOrUpdateAdminResponse", + "code": "message CreateOrUpdateAdminResponse {\n\tint64 adminId = 1;\n}", "doc": "" }, { @@ -9515,60 +9656,30 @@ "doc": "" }, { - "name": "CreateAPINodeRequest", - "code": "message CreateAPINodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbytes httpJSON = 3;\n\tbytes httpsJSON = 4;\n\tbytes accessAddrsJSON = 5;\n\tbool isOn = 6;\n\tbool restIsOn = 7;\n\tbytes restHTTPJSON = 8;\n\tbytes restHTTPSJSON = 9;\n}", - "doc": "创建API节点" - }, - { - "name": "DeleteAPINodeRequest", - "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", - "doc": "删除API节点" - }, - { - "name": "FindAllEnabledAPINodesResponse", - "code": "message FindAllEnabledAPINodesResponse {\n\trepeated APINode apiNodes = 1;\n}", - "doc": "" + "name": "FindAllEnabledAPINodesRequest", + "code": "message FindAllEnabledAPINodesRequest {\n\n}", + "doc": "列出所有可用API节点" }, { "name": "CountAllEnabledAPINodesRequest", "code": "message CountAllEnabledAPINodesRequest {\n\n}", "doc": "计算API节点数量" }, + { + "name": "CountAllEnabledAndOnAPINodesRequest", + "code": "message CountAllEnabledAndOnAPINodesRequest {\n\n}", + "doc": "计算启用的API节点数量" + }, { "name": "ListEnabledAPINodesRequest", "code": "message ListEnabledAPINodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", "doc": "列出单页的API节点" }, - { - "name": "FindCurrentAPINodeVersionResponse", - "code": "message FindCurrentAPINodeVersionResponse {\n\tstring version = 1;\n}", - "doc": "" - }, - { - "name": "CreateAPINodeResponse", - "code": "message CreateAPINodeResponse {\n\tint64 apiNodeId = 1;\n}", - "doc": "" - }, { "name": "FindEnabledAPINodeResponse", "code": "message FindEnabledAPINodeResponse {\n\tAPINode apiNode = 1;\n}", "doc": "" }, - { - "name": "DebugAPINodeRequest", - "code": "message DebugAPINodeRequest {\n\tbool debug = 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}", @@ -9580,14 +9691,39 @@ "doc": "获取当前API节点的版本" }, { - "name": "CountAllEnabledAPINodesWithSSLCertIdRequest", - "code": "message CountAllEnabledAPINodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的API节点数量" + "name": "FindCurrentAPINodeResponse", + "code": "message FindCurrentAPINodeResponse {\n\tAPINode apiNode = 1;\n}", + "doc": "" }, { - "name": "FindAllEnabledAPINodesRequest", - "code": "message FindAllEnabledAPINodesRequest {\n\n}", - "doc": "列出所有可用API节点" + "name": "CreateAPINodeRequest", + "code": "message CreateAPINodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbytes httpJSON = 3;\n\tbytes httpsJSON = 4;\n\tbytes accessAddrsJSON = 5;\n\tbool isOn = 6;\n\tbool restIsOn = 7;\n\tbytes restHTTPJSON = 8;\n\tbytes restHTTPSJSON = 9;\n}", + "doc": "创建API节点" + }, + { + "name": "CreateAPINodeResponse", + "code": "message CreateAPINodeResponse {\n\tint64 apiNodeId = 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": "DeleteAPINodeRequest", + "code": "message DeleteAPINodeRequest {\n\tint64 apiNodeId = 1;\n}", + "doc": "删除API节点" + }, + { + "name": "FindAllEnabledAPINodesResponse", + "code": "message FindAllEnabledAPINodesResponse {\n\trepeated APINode apiNodes = 1;\n}", + "doc": "" + }, + { + "name": "FindCurrentAPINodeVersionResponse", + "code": "message FindCurrentAPINodeVersionResponse {\n\tstring version = 1;\n}", + "doc": "" }, { "name": "FindEnabledAPINodeRequest", @@ -9595,20 +9731,25 @@ "doc": "根据ID查找节点" }, { - "name": "FindCurrentAPINodeResponse", - "code": "message FindCurrentAPINodeResponse {\n\tAPINode apiNode = 1;\n}", - "doc": "" + "name": "CountAllEnabledAPINodesWithSSLCertIdRequest", + "code": "message CountAllEnabledAPINodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的API节点数量" }, { - "name": "FindAllEnabledAPITokensResponse", - "code": "message FindAllEnabledAPITokensResponse {\n\trepeated APIToken apiTokens = 1;\n}", - "doc": "" + "name": "DebugAPINodeRequest", + "code": "message DebugAPINodeRequest {\n\tbool debug = 1;\n}", + "doc": "修改调试模式状态" }, { "name": "FindAllEnabledAPITokensRequest", "code": "message FindAllEnabledAPITokensRequest {\n\tstring role = 1;\n}", "doc": "获取API令牌" }, + { + "name": "FindAllEnabledAPITokensResponse", + "code": "message FindAllEnabledAPITokensResponse {\n\trepeated APIToken apiTokens = 1;\n}", + "doc": "" + }, { "name": "FindAllDBTablesRequest", "code": "message FindAllDBTablesRequest {\n\n}", @@ -9630,33 +9771,43 @@ "doc": "清空表" }, { - "name": "DeleteDBNodeRequest", - "code": "message DeleteDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", - "doc": "删除节点" + "name": "FindAllDBNodeTablesRequest", + "code": "message FindAllDBNodeTablesRequest {\n\tint64 dbNodeId = 1;\n}", + "doc": "获取所有表信息" }, { - "name": "ListEnabledDBNodesRequest", - "code": "message ListEnabledDBNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的数据库节点" - }, - { - "name": "FindEnabledDBNodeResponse", - "code": "message FindEnabledDBNodeResponse {\n\tDBNode dbNode = 1;\n}", + "name": "ListEnabledDBNodesResponse", + "code": "message ListEnabledDBNodesResponse {\n\trepeated DBNode dbNodes = 1;\n}", "doc": "" }, + { + "name": "TruncateDBNodeTableRequest", + "code": "message TruncateDBNodeTableRequest {\n\tint64 dbNodeId = 1;\n\tstring dbNodeTable = 2;\n}", + "doc": "清空表" + }, { "name": "CheckDBNodeStatusRequest", "code": "message CheckDBNodeStatusRequest {\n\tint64 dbNodeId = 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": "FindEnabledDBNodeResponse", + "code": "message FindEnabledDBNodeResponse {\n\tDBNode dbNode = 1;\n}", + "doc": "" }, { - "name": "ListEnabledDBNodesResponse", - "code": "message ListEnabledDBNodesResponse {\n\trepeated DBNode dbNodes = 1;\n}", + "name": "CreateDBNodeResponse", + "code": "message CreateDBNodeResponse {\n\tint64 dbNodeId = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledDBNodesRequest", + "code": "message CountAllEnabledDBNodesRequest {\n\n}", + "doc": "计算可用的数据库节点数量" + }, + { + "name": "FindAllDBNodeTablesResponse", + "code": "message FindAllDBNodeTablesResponse {\n\trepeated DBTable dbNodeTables = 1;\n}", "doc": "" }, { @@ -9669,6 +9820,16 @@ "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": "ListEnabledDBNodesRequest", + "code": "message ListEnabledDBNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的数据库节点" + }, { "name": "FindEnabledDBNodeRequest", "code": "message FindEnabledDBNodeRequest {\n\tint64 dbNodeId = 1;\n}", @@ -9680,29 +9841,9 @@ "doc": "" }, { - "name": "FindAllDBNodeTablesResponse", - "code": "message FindAllDBNodeTablesResponse {\n\trepeated DBTable dbNodeTables = 1;\n}", - "doc": "" - }, - { - "name": "TruncateDBNodeTableRequest", - "code": "message TruncateDBNodeTableRequest {\n\tint64 dbNodeId = 1;\n\tstring dbNodeTable = 2;\n}", - "doc": "清空表" - }, - { - "name": "CreateDBNodeResponse", - "code": "message CreateDBNodeResponse {\n\tint64 dbNodeId = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledDBNodesRequest", - "code": "message CountAllEnabledDBNodesRequest {\n\n}", - "doc": "计算可用的数据库节点数量" - }, - { - "name": "FindAllDBNodeTablesRequest", - "code": "message FindAllDBNodeTablesRequest {\n\tint64 dbNodeId = 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": "FindAllDNSIssuesRequest", @@ -9715,49 +9856,14 @@ "doc": "" }, { - "name": "ExistAvailableDomainsResponse", - "code": "message ExistAvailableDomainsResponse {\n\tbool exist = 1;\n}", - "doc": "" + "name": "FindEnabledDNSDomainRequest", + "code": "message FindEnabledDNSDomainRequest {\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": "UpdateDNSDomainRequest", - "code": "message UpdateDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", - "doc": "修改域名" - }, - { - "name": "DeleteDNSDomainRequest", - "code": "message DeleteDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "删除域名" - }, - { - "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse", - "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 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": "CreateDNSDomainResponse", - "code": "message CreateDNSDomainResponse {\n\tint64 dnsDomainId = 1;\n}", - "doc": "" + "name": "FindEnabledBasicDNSDomainRequest", + "code": "message FindEnabledBasicDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查询单个域名的基础信息" }, { "name": "FindEnabledBasicDNSDomainResponse", @@ -9765,24 +9871,19 @@ "doc": "" }, { - "name": "CountAllEnabledDNSDomainsWithDNSProviderIdRequest", - "code": "message CountAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算服务商下的域名数量" + "name": "SyncDNSDomainDataRequest", + "code": "message SyncDNSDomainDataRequest {\n\tint64 dnsDomainId = 1;\n\tint64 nodeClusterId = 2; // 如果指定,表示只更新单个集群ID\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": "ExistDNSDomainRecordRequest", - "code": "message ExistDNSDomainRecordRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3; // 解析类型,比如A, CNAME等\n\tstring route = 4; // 线路\n\tstring value = 5; // 值\n}", - "doc": "检查域名是否在记录中" - }, - { - "name": "ExistAvailableDomainsRequest", - "code": "message ExistAvailableDomainsRequest {\n\n}", - "doc": "判断是否有域名可选" + "name": "SyncDNSDomainsFromProviderResponse", + "code": "message SyncDNSDomainsFromProviderResponse {\n\tbool hasChanges = 1;\n}", + "doc": "" }, { "name": "RecoverDNSDomainRequest", @@ -9790,9 +9891,54 @@ "doc": "恢复删除的域名" }, { - "name": "FindEnabledDNSDomainRequest", - "code": "message FindEnabledDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查询单个域名信息" + "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest", + "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": "SyncDNSDomainsFromProviderRequest", + "code": "message SyncDNSDomainsFromProviderRequest {\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": "FindAllDNSDomainRoutesRequest", + "code": "message FindAllDNSDomainRoutesRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查看支持的线路" + }, + { + "name": "ExistAvailableDomainsResponse", + "code": "message ExistAvailableDomainsResponse {\n\tbool exist = 1;\n}", + "doc": "" + }, + { + "name": "DeleteDNSDomainRequest", + "code": "message DeleteDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "删除域名" + }, + { + "name": "FindEnabledDNSDomainResponse", + "code": "message FindEnabledDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledDNSDomainsWithDNSProviderIdRequest", + "code": "message CountAllEnabledDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算服务商下的域名数量" }, { "name": "FindAllEnabledDNSDomainsWithDNSProviderIdRequest", @@ -9804,90 +9950,30 @@ "code": "message FindAllEnabledDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest", - "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "列出服务商下的所有域名基本信息" - }, { "name": "CreateDNSDomainRequest", "code": "message CreateDNSDomainRequest {\n\tint64 dnsProviderId = 1;\n\tstring name = 2;\n}", "doc": "创建域名" }, { - "name": "FindEnabledDNSDomainResponse", - "code": "message FindEnabledDNSDomainResponse {\n\tDNSDomain dnsDomain = 1;\n}", + "name": "CreateDNSDomainResponse", + "code": "message CreateDNSDomainResponse {\n\tint64 dnsDomainId = 1;\n}", "doc": "" }, { - "name": "FindEnabledBasicDNSDomainRequest", - "code": "message FindEnabledBasicDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查询单个域名的基础信息" + "name": "UpdateDNSDomainRequest", + "code": "message UpdateDNSDomainRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n}", + "doc": "修改域名" }, { - "name": "SyncDNSDomainDataRequest", - "code": "message SyncDNSDomainDataRequest {\n\tint64 dnsDomainId = 1;\n\tint64 nodeClusterId = 2; // 如果指定,表示只更新单个集群ID\n}", - "doc": "同步域名数据" - }, - { - "name": "SyncDNSDomainsFromProviderResponse", - "code": "message SyncDNSDomainsFromProviderResponse {\n\tbool hasChanges = 1;\n}", + "name": "FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse", + "code": "message FindAllEnabledBasicDNSDomainsWithDNSProviderIdResponse {\n\trepeated DNSDomain dnsDomains = 1;\n}", "doc": "" }, { - "name": "DeleteDNSProviderRequest", - "code": "message DeleteDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "删除服务商" - }, - { - "name": "FindEnabledDNSProviderRequest", - "code": "message FindEnabledDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "查找单个服务商" - }, - { - "name": "FindAllDNSProviderTypesRequest", - "code": "message FindAllDNSProviderTypesRequest {\n\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": "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": "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": "FindAllEnabledDNSProvidersResponse", - "code": "message FindAllEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\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}", - "doc": "查找所有的DNS服务商" - }, - { - "name": "FindEnabledDNSProviderResponse", - "code": "message FindEnabledDNSProviderResponse {\n\tDNSProvider dnsProvider = 1;\n}", - "doc": "" + "name": "ExistDNSDomainRecordRequest", + "code": "message ExistDNSDomainRecordRequest {\n\tint64 dnsDomainId = 1;\n\tstring name = 2;\n\tstring type = 3; // 解析类型,比如A, CNAME等\n\tstring route = 4; // 线路\n\tstring value = 5; // 值\n}", + "doc": "检查域名是否在记录中" }, { "name": "DNSProviderType", @@ -9900,8 +9986,38 @@ "doc": "创建服务商" }, { - "name": "CreateDNSProviderResponse", - "code": "message CreateDNSProviderResponse {\n\tint64 dnsProviderId = 1;\n}", + "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": "FindAllEnabledDNSProvidersRequest", + "code": "message FindAllEnabledDNSProvidersRequest {\n\tint64 adminId = 1;\n\tint64 userId = 2;\n}", + "doc": "查找所有的DNS服务商" + }, + { + "name": "FindEnabledDNSProviderRequest", + "code": "message FindEnabledDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "查找单个服务商" + }, + { + "name": "DeleteDNSProviderRequest", + "code": "message DeleteDNSProviderRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "删除服务商" + }, + { + "name": "FindEnabledDNSProviderResponse", + "code": "message FindEnabledDNSProviderResponse {\n\tDNSProvider dnsProvider = 1;\n}", + "doc": "" + }, + { + "name": "FindAllDNSProviderTypesRequest", + "code": "message FindAllDNSProviderTypesRequest {\n\n}", + "doc": "取得所有服务商类型" + }, + { + "name": "FindAllDNSProviderTypesResponse", + "code": "message FindAllDNSProviderTypesResponse {\n\trepeated DNSProviderType providerTypes = 1;\n}", "doc": "" }, { @@ -9910,8 +10026,33 @@ "doc": "修改服务商" }, { - "name": "FindAllDNSProviderTypesResponse", - "code": "message FindAllDNSProviderTypesResponse {\n\trepeated DNSProviderType providerTypes = 1;\n}", + "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}", + "doc": "" + }, + { + "name": "FindAllEnabledDNSProvidersResponse", + "code": "message FindAllEnabledDNSProvidersResponse {\n\trepeated DNSProvider dnsProviders = 1;\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": "CreateDNSProviderResponse", + "code": "message CreateDNSProviderResponse {\n\tint64 dnsProviderId = 1;\n}", "doc": "" }, { @@ -9939,11 +10080,6 @@ "code": "message DeleteDNSTaskRequest {\n\tint64 dnsTaskId = 1;\n}", "doc": "删除任务" }, - { - "name": "UpdateFileFinishedRequest", - "code": "message UpdateFileFinishedRequest {\n\tint64 fileId = 1;\n}", - "doc": "将文件置为已完成" - }, { "name": "FindEnabledFileRequest", "code": "message FindEnabledFileRequest {\n\tint64 fileId = 1;\n}", @@ -9965,19 +10101,9 @@ "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}", - "doc": "" + "name": "UpdateFileFinishedRequest", + "code": "message UpdateFileFinishedRequest {\n\tint64 fileId = 1;\n}", + "doc": "将文件置为已完成" }, { "name": "DownloadFileChunkRequest", @@ -9995,9 +10121,19 @@ "doc": "创建文件片段" }, { - "name": "CountFirewallDailyBlocksRequest", - "code": "message CountFirewallDailyBlocksRequest {\n\n}", - "doc": "读取当前Block动作次数" + "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}", + "doc": "" }, { "name": "CountFirewallDailyBlocksResponse", @@ -10009,14 +10145,24 @@ "code": "message ComposeFirewallGlobalBoardRequest {\n\n}", "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": "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": "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}", + "name": "CountFirewallDailyBlocksRequest", + "code": "message CountFirewallDailyBlocksRequest {\n\n}", + "doc": "读取当前Block动作次数" + }, + { + "name": "FindHTTPAccessLogResponse", + "code": "message FindHTTPAccessLogResponse {\n\tHTTPAccessLog httpAccessLog = 1;\n}", "doc": "" }, { @@ -10055,8 +10201,33 @@ "doc": "查找单个日志" }, { - "name": "FindHTTPAccessLogResponse", - "code": "message FindHTTPAccessLogResponse {\n\tHTTPAccessLog httpAccessLog = 1;\n}", + "name": "CountAllEnabledHTTPAccessLogPoliciesRequest", + "code": "message CountAllEnabledHTTPAccessLogPoliciesRequest {\n\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": "FindEnabledHTTPAccessLogPolicyResponse", + "code": "message FindEnabledHTTPAccessLogPolicyResponse {\n\tHTTPAccessLogPolicy httpAccessLogPolicy = 1;\n}", + "doc": "" + }, + { + "name": "WriteHTTPAccessLogPolicyRequest", + "code": "message WriteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tHTTPAccessLog httpAccessLog = 2;\n}", + "doc": "测试写入某个访问日志策略" + }, + { + "name": "ListEnabledHTTPAccessLogPoliciesRequest", + "code": "message ListEnabledHTTPAccessLogPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页访问日志策略" + }, + { + "name": "ListEnabledHTTPAccessLogPoliciesResponse", + "code": "message ListEnabledHTTPAccessLogPoliciesResponse {\n\trepeated HTTPAccessLogPolicy httpAccessLogPolicies = 1;\n}", "doc": "" }, { @@ -10069,55 +10240,15 @@ "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": "DeleteHTTPAccessLogPolicyRequest", - "code": "message DeleteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", - "doc": "删除策略" - }, - { - "name": "WriteHTTPAccessLogPolicyRequest", - "code": "message WriteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n\tHTTPAccessLog httpAccessLog = 2;\n}", - "doc": "测试写入某个访问日志策略" - }, - { - "name": "CountAllEnabledHTTPAccessLogPoliciesRequest", - "code": "message CountAllEnabledHTTPAccessLogPoliciesRequest {\n\n}", - "doc": "计算访问日志策略数量" - }, - { - "name": "ListEnabledHTTPAccessLogPoliciesRequest", - "code": "message ListEnabledHTTPAccessLogPoliciesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页访问日志策略" - }, - { - "name": "ListEnabledHTTPAccessLogPoliciesResponse", - "code": "message ListEnabledHTTPAccessLogPoliciesResponse {\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": "FindEnabledHTTPAccessLogPolicyRequest", "code": "message FindEnabledHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", "doc": "查找单个访问日志策略" }, { - "name": "FindEnabledHTTPAccessLogPolicyResponse", - "code": "message FindEnabledHTTPAccessLogPolicyResponse {\n\tHTTPAccessLogPolicy httpAccessLogPolicy = 1;\n}", - "doc": "" - }, - { - "name": "CreateHTTPAuthPolicyRequest", - "code": "message CreateHTTPAuthPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", - "doc": "创建策略" - }, - { - "name": "CreateHTTPAuthPolicyResponse", - "code": "message CreateHTTPAuthPolicyResponse {\n\tint64 httpAuthPolicyId = 1;\n}", - "doc": "" + "name": "DeleteHTTPAccessLogPolicyRequest", + "code": "message DeleteHTTPAccessLogPolicyRequest {\n\tint64 httpAccessLogPolicyId = 1;\n}", + "doc": "删除策略" }, { "name": "UpdateHTTPAuthPolicyRequest", @@ -10134,6 +10265,16 @@ "code": "message FindEnabledHTTPAuthPolicyResponse {\n\tHTTPAuthPolicy httpAuthPolicy = 1;\n}", "doc": "" }, + { + "name": "CreateHTTPAuthPolicyRequest", + "code": "message CreateHTTPAuthPolicyRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", + "doc": "创建策略" + }, + { + "name": "CreateHTTPAuthPolicyResponse", + "code": "message CreateHTTPAuthPolicyResponse {\n\tint64 httpAuthPolicyId = 1;\n}", + "doc": "" + }, { "name": "FindAllEnabledHTTPCachePoliciesRequest", "code": "message FindAllEnabledHTTPCachePoliciesRequest {\n\n}", @@ -10145,8 +10286,43 @@ "doc": "列出单页的缓存策略" }, { - "name": "FindEnabledHTTPCachePolicyResponse", - "code": "message FindEnabledHTTPCachePolicyResponse {\n\tHTTPCachePolicy httpCachePolicy = 1;\n}", + "name": "FindEnabledHTTPCachePolicyRequest", + "code": "message FindEnabledHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "查找单个缓存策略信息" + }, + { + "name": "UpdateHTTPCachePolicyRefsRequest", + "code": "message UpdateHTTPCachePolicyRefsRequest {\n\tint64 httpCachePolicyId = 1;\n\tbytes refsJSON = 2;\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": "DeleteHTTPCachePolicyRequest", + "code": "message DeleteHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "删除缓存策略" + }, + { + "name": "ListEnabledHTTPCachePoliciesResponse", + "code": "message ListEnabledHTTPCachePoliciesResponse {\n\tbytes httpCachePoliciesJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPCachePolicyConfigResponse", + "code": "message FindEnabledHTTPCachePolicyConfigResponse {\n\tbytes httpCachePolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPCachePolicyConfigRequest", + "code": "message FindEnabledHTTPCachePolicyConfigRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "查找单个缓存策略配置" + }, + { + "name": "FindAllEnabledHTTPCachePoliciesResponse", + "code": "message FindAllEnabledHTTPCachePoliciesResponse {\n\trepeated HTTPCachePolicy cachePolicies = 1;\n}", "doc": "" }, { @@ -10165,45 +10341,25 @@ "doc": "计算缓存策略数量" }, { - "name": "ListEnabledHTTPCachePoliciesResponse", - "code": "message ListEnabledHTTPCachePoliciesResponse {\n\tbytes httpCachePoliciesJSON = 1;\n}", + "name": "FindEnabledHTTPCachePolicyResponse", + "code": "message FindEnabledHTTPCachePolicyResponse {\n\tHTTPCachePolicy httpCachePolicy = 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": "FindEnabledHTTPCachePolicyConfigRequest", - "code": "message FindEnabledHTTPCachePolicyConfigRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "查找单个缓存策略配置" - }, - { - "name": "UpdateHTTPCachePolicyRefsRequest", - "code": "message UpdateHTTPCachePolicyRefsRequest {\n\tint64 httpCachePolicyId = 1;\n\tbytes refsJSON = 2;\n}", - "doc": "设置缓存策略的默认条件" - }, - { - "name": "FindAllEnabledHTTPCachePoliciesResponse", - "code": "message FindAllEnabledHTTPCachePoliciesResponse {\n\trepeated HTTPCachePolicy cachePolicies = 1;\n}", + "name": "FindEnabledHTTPCacheTaskResponse", + "code": "message FindEnabledHTTPCacheTaskResponse {\n\tHTTPCacheTask httpCacheTask = 1;\n}", "doc": "" }, { - "name": "DeleteHTTPCachePolicyRequest", - "code": "message DeleteHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "删除缓存策略" + "name": "CountHTTPCacheTasksRequest", + "code": "message CountHTTPCacheTasksRequest {\n\n}", + "doc": "计算任务总数量" }, { - "name": "FindEnabledHTTPCachePolicyConfigResponse", - "code": "message FindEnabledHTTPCachePolicyConfigResponse {\n\tbytes httpCachePolicyJSON = 1;\n}", + "name": "CreateHTTPCacheTaskResponse", + "code": "message CreateHTTPCacheTaskResponse {\n\tint64 httpCacheTaskId = 1;\n\tint64 countKeys = 2;\n}", "doc": "" }, - { - "name": "FindEnabledHTTPCachePolicyRequest", - "code": "message FindEnabledHTTPCachePolicyRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "查找单个缓存策略信息" - }, { "name": "CountDoingHTTPCacheTasksRequest", "code": "message CountDoingHTTPCacheTasksRequest {\n\n}", @@ -10215,9 +10371,9 @@ "doc": "查找单个任务" }, { - "name": "ResetHTTPCacheTaskRequest", - "code": "message ResetHTTPCacheTaskRequest {\n\tint64 httpCacheTaskId = 1;\n}", - "doc": "重置任务状态" + "name": "ListHTTPCacheTasksRequest", + "code": "message ListHTTPCacheTasksRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页任务" }, { "name": "ListHTTPCacheTasksResponse", @@ -10229,41 +10385,16 @@ "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}", - "doc": "" - }, - { - "name": "CountHTTPCacheTasksRequest", - "code": "message CountHTTPCacheTasksRequest {\n\n}", - "doc": "计算任务总数量" - }, - { - "name": "FindEnabledHTTPCacheTaskResponse", - "code": "message FindEnabledHTTPCacheTaskResponse {\n\tHTTPCacheTask httpCacheTask = 1;\n}", - "doc": "" - }, - { - "name": "ListHTTPCacheTasksRequest", - "code": "message ListHTTPCacheTasksRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页任务" - }, - { - "name": "ValidateHTTPCacheTaskKeysRequest", - "code": "message ValidateHTTPCacheTaskKeysRequest {\n\trepeated string keys = 1;\n}", - "doc": "校验缓存Key" - }, - { - "name": "ValidateHTTPCacheTaskKeysResponse", - "code": "message ValidateHTTPCacheTaskKeysResponse {\n\trepeated FailKey failKeys = 1;\n\n\n\tmessage FailKey {\n\t\tstring key = 1;\n\t\tstring reasonCode = 2;\n\t}\n}", - "doc": "" - }, { "name": "FindDoingHTTPCacheTaskKeysRequest", "code": "message FindDoingHTTPCacheTaskKeysRequest{\n\tint64 size = 1;\n}", @@ -10279,6 +10410,26 @@ "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": "ValidateHTTPCacheTaskKeysRequest", + "code": "message ValidateHTTPCacheTaskKeysRequest {\n\trepeated string keys = 1;\n}", + "doc": "校验缓存Key" + }, + { + "name": "ValidateHTTPCacheTaskKeysResponse", + "code": "message ValidateHTTPCacheTaskKeysResponse {\n\trepeated FailKey failKeys = 1;\n\n\n\tmessage FailKey {\n\t\tstring key = 1;\n\t\tstring reasonCode = 2;\n\t}\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": "FindEnabledHTTPFastcgiRequest", + "code": "message FindEnabledHTTPFastcgiRequest {\n\tint64 httpFastcgiId = 1;\n}", + "doc": "获取Fastcgi详情" + }, { "name": "FindEnabledHTTPFastcgiResponse", "code": "message FindEnabledHTTPFastcgiResponse {\n\tHTTPFastcgi httpFastcgi = 1;\n}", @@ -10305,29 +10456,49 @@ "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": "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": "FindEnabledHTTPFastcgiRequest", - "code": "message FindEnabledHTTPFastcgiRequest {\n\tint64 httpFastcgiId = 1;\n}", - "doc": "获取Fastcgi详情" - }, - { - "name": "CreateHTTPFirewallPolicyResponse", - "code": "message CreateHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", + "name": "CreateEmptyHTTPFirewallPolicyResponse", + "code": "message CreateEmptyHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\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": "UpdateHTTPFirewallPolicyGroupsRequest", "code": "message UpdateHTTPFirewallPolicyGroupsRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n\tbytes outboundJSON = 3;\n}", "doc": "修改分组信息" }, { - "name": "UpdateHTTPFirewallInboundConfigRequest", - "code": "message UpdateHTTPFirewallInboundConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n\tbytes inboundJSON = 2;\n}", - "doc": "修改inbound信息" + "name": "FindEnabledHTTPFirewallPolicyConfigRequest", + "code": "message FindEnabledHTTPFirewallPolicyConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "查找单个防火墙配置" + }, + { + "name": "FindEnabledHTTPFirewallPolicyRequest", + "code": "message FindEnabledHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "获取防火墙的基本信息" + }, + { + "name": "FindEnabledHTTPFirewallPolicyResponse", + "code": "message FindEnabledHTTPFirewallPolicyResponse {\n\tHTTPFirewallPolicy httpFirewallPolicy = 1;\n}", + "doc": "" }, { "name": "ImportHTTPFirewallPolicyRequest", @@ -10335,8 +10506,8 @@ "doc": "导入策略数据" }, { - "name": "FindAllEnabledHTTPFirewallPoliciesResponse", - "code": "message FindAllEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy firewallPolicies = 1;\n}", + "name": "CreateHTTPFirewallPolicyResponse", + "code": "message CreateHTTPFirewallPolicyResponse {\n\tint64 httpFirewallPolicyId = 1;\n}", "doc": "" }, { @@ -10349,70 +10520,45 @@ "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": "FindEnabledHTTPFirewallPolicyRequest", - "code": "message FindEnabledHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 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": "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": "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": "ListEnabledHTTPFirewallPoliciesResponse", - "code": "message ListEnabledHTTPFirewallPoliciesResponse {\n\trepeated HTTPFirewallPolicy httpFirewallPolicies = 1;\n}", - "doc": "" - }, { "name": "FindAllEnabledHTTPFirewallPoliciesRequest", "code": "message FindAllEnabledHTTPFirewallPoliciesRequest {\n\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": "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": "DeleteHTTPFirewallPolicyRequest", "code": "message DeleteHTTPFirewallPolicyRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", "doc": "删除某个防火墙策略" }, { - "name": "FindEnabledHTTPFirewallPolicyConfigRequest", - "code": "message FindEnabledHTTPFirewallPolicyConfigRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "查找单个防火墙配置" - }, - { - "name": "FindEnabledHTTPFirewallPolicyResponse", - "code": "message FindEnabledHTTPFirewallPolicyResponse {\n\tHTTPFirewallPolicy httpFirewallPolicy = 1;\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", @@ -10424,6 +10570,21 @@ "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": "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": "UpdateHTTPFirewallRuleGroupIsOnRequest", + "code": "message UpdateHTTPFirewallRuleGroupIsOnRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 2;\n}", + "doc": "设置是否启用分组" + }, { "name": "FindEnabledHTTPFirewallRuleGroupConfigRequest", "code": "message FindEnabledHTTPFirewallRuleGroupConfigRequest {\n\tint64 firewallRuleGroupId = 1;\n}", @@ -10435,9 +10596,9 @@ "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": "AddHTTPFirewallRuleGroupSetRequest", @@ -10445,24 +10606,9 @@ "doc": "添加规则集" }, { - "name": "UpdateHTTPFirewallRuleGroupIsOnRequest", - "code": "message UpdateHTTPFirewallRuleGroupIsOnRequest {\n\tint64 firewallRuleGroupId = 1;\n\tbool isOn = 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": "FindEnabledHTTPFirewallRuleGroupRequest", - "code": "message FindEnabledHTTPFirewallRuleGroupRequest {\n\tint64 firewallRuleGroupId = 1;\n}", - "doc": "获取分组信息" - }, - { - "name": "FindEnabledHTTPFirewallRuleGroupResponse", - "code": "message FindEnabledHTTPFirewallRuleGroupResponse {\n\tHTTPFirewallRuleGroup firewallRuleGroup = 1;\n}", - "doc": "" + "name": "UpdateHTTPFirewallRuleSetIsOnRequest", + "code": "message UpdateHTTPFirewallRuleSetIsOnRequest {\n\tint64 firewallRuleSetId = 1;\n\tbool isOn = 2;\n}", + "doc": "设置开启状态" }, { "name": "FindEnabledHTTPFirewallRuleSetConfigRequest", @@ -10495,9 +10641,14 @@ "doc": "" }, { - "name": "UpdateHTTPFirewallRuleSetIsOnRequest", - "code": "message UpdateHTTPFirewallRuleSetIsOnRequest {\n\tint64 firewallRuleSetId = 1;\n\tbool isOn = 2;\n}", - "doc": "设置开启状态" + "name": "FindEnabledGzipConfigResponse", + "code": "message FindEnabledGzipConfigResponse {\n\tbytes httpGzipJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPGzipRequest", + "code": "message UpdateHTTPGzipRequest {\n\tint64 httpGzipId = 1;\n\tint32 level = 2;\n\tSizeCapacity minLength = 3;\n\tSizeCapacity maxLength = 4;\n\tbytes condsJSON = 5;\n}", + "doc": "修改Gzip配置" }, { "name": "CreateHTTPGzipRequest", @@ -10515,14 +10666,14 @@ "doc": "查找Gzip配置" }, { - "name": "FindEnabledGzipConfigResponse", - "code": "message FindEnabledGzipConfigResponse {\n\tbytes httpGzipJSON = 1;\n}", + "name": "CreateHTTPHeaderResponse", + "code": "message CreateHTTPHeaderResponse {\n\tint64 headerId = 1;\n}", "doc": "" }, { - "name": "UpdateHTTPGzipRequest", - "code": "message UpdateHTTPGzipRequest {\n\tint64 httpGzipId = 1;\n\tint32 level = 2;\n\tSizeCapacity minLength = 3;\n\tSizeCapacity maxLength = 4;\n\tbytes condsJSON = 5;\n}", - "doc": "修改Gzip配置" + "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}", + "doc": "修改Header" }, { "name": "FindEnabledHTTPHeaderConfigRequest", @@ -10540,50 +10691,15 @@ "doc": "创建Header" }, { - "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}", - "doc": "修改Header" - }, - { - "name": "CreateHTTPHeaderPolicyRequest", - "code": "message CreateHTTPHeaderPolicyRequest {\n\n}", - "doc": "创建策略" - }, - { - "name": "UpdateHTTPHeaderPolicySettingHeadersRequest", - "code": "message UpdateHTTPHeaderPolicySettingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", - "doc": "修改SetHeaders" + "name": "UpdateHTTPHeaderPolicyAddingHeadersRequest", + "code": "message UpdateHTTPHeaderPolicyAddingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", + "doc": "修改AddHeaders" }, { "name": "UpdateHTTPHeaderPolicyAddingTrailersRequest", "code": "message UpdateHTTPHeaderPolicyAddingTrailersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", "doc": "修改AddTrailers" }, - { - "name": "FindEnabledHTTPHeaderPolicyConfigRequest", - "code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}", - "doc": "查找策略" - }, - { - "name": "FindEnabledHTTPHeaderPolicyConfigResponse", - "code": "message FindEnabledHTTPHeaderPolicyConfigResponse {\n\tbytes headerPolicyJSON = 1;\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": "UpdateHTTPHeaderPolicyReplacingHeadersRequest", "code": "message UpdateHTTPHeaderPolicyReplacingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", @@ -10595,29 +10711,39 @@ "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": "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": "FindEnabledHTTPLocationConfigResponse", - "code": "message FindEnabledHTTPLocationConfigResponse {\n\tbytes locationJSON = 1;\n}", + "name": "FindEnabledHTTPHeaderPolicyConfigResponse", + "code": "message FindEnabledHTTPHeaderPolicyConfigResponse {\n\tbytes headerPolicyJSON = 1;\n}", "doc": "" }, + { + "name": "CreateHTTPHeaderPolicyResponse", + "code": "message CreateHTTPHeaderPolicyResponse {\n\tint64 headerPolicyId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateHTTPHeaderPolicySettingHeadersRequest", + "code": "message UpdateHTTPHeaderPolicySettingHeadersRequest {\n\tint64 headerPolicyId = 1;\n\tbytes headersJSON = 2;\n}", + "doc": "修改SetHeaders" + }, + { + "name": "FindEnabledHTTPHeaderPolicyConfigRequest", + "code": "message FindEnabledHTTPHeaderPolicyConfigRequest {\n\tint64 headerPolicyId = 1;\n}", + "doc": "查找策略" + }, + { + "name": "CreateHTTPHeaderPolicyRequest", + "code": "message CreateHTTPHeaderPolicyRequest {\n\n}", + "doc": "创建策略" + }, { "name": "FindAndInitHTTPLocationReverseProxyConfigResponse", "code": "message FindAndInitHTTPLocationReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, { - "name": "FindAndInitHTTPLocationWebConfigResponse", - "code": "message FindAndInitHTTPLocationWebConfigResponse {\n\tbytes webJSON = 1;\n}", - "doc": "" + "name": "FindAndInitHTTPLocationWebConfigRequest", + "code": "message FindAndInitHTTPLocationWebConfigRequest {\n\tint64 locationId = 1;\n}", + "doc": "初始化Web设置" }, { "name": "UpdateHTTPLocationReverseProxyRequest", @@ -10625,33 +10751,43 @@ "doc": "修改反向代理设置" }, { - "name": "CreateHTTPLocationResponse", - "code": "message CreateHTTPLocationResponse {\n\tint64 locationId = 1;\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": "FindEnabledHTTPLocationConfigResponse", + "code": "message FindEnabledHTTPLocationConfigResponse {\n\tbytes locationJSON = 1;\n}", + "doc": "" + }, { "name": "DeleteHTTPLocationRequest", "code": "message DeleteHTTPLocationRequest {\n\tint64 locationId = 1;\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": "CreateHTTPLocationResponse", + "code": "message CreateHTTPLocationResponse {\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": "FindEnabledHTTPPageConfigResponse", - "code": "message FindEnabledHTTPPageConfigResponse {\n\tbytes pageJSON = 1;\n}", + "name": "FindAndInitHTTPLocationWebConfigResponse", + "code": "message FindAndInitHTTPLocationWebConfigResponse {\n\tbytes webJSON = 1;\n}", "doc": "" }, { @@ -10674,6 +10810,11 @@ "code": "message FindEnabledHTTPPageConfigRequest {\n\tint64 httpPageId = 1;\n}", "doc": "查找单个Page配置" }, + { + "name": "FindEnabledHTTPPageConfigResponse", + "code": "message FindEnabledHTTPPageConfigResponse {\n\tbytes pageJSON = 1;\n}", + "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}", @@ -10689,25 +10830,40 @@ "code": "message UpdateHTTPRewriteRuleRequest {\n\tint64 rewriteRuleId = 1;\n\tstring pattern = 2;\n\tstring replace = 3;\n\tstring mode = 4;\n\tint32 redirectStatus = 5;\n\tbool isBreak = 6;\n\tstring proxyHost = 7;\n\tbool isOn = 8;\n\tbool withQuery = 9;\n\tbytes condsJSON = 10;\n}", "doc": "修改重写规则" }, + { + "name": "CreateHTTPWebRequest", + "code": "message CreateHTTPWebRequest {\n\tbytes rootJSON = 1;\n}", + "doc": "创建Web配置" + }, + { + "name": "CreateHTTPWebResponse", + "code": "message CreateHTTPWebResponse {\n\tint64 httpWebId = 1;\n}", + "doc": "" + }, + { + "name": "FindHTTPWebRequestLimitResponse", + "code": "message FindHTTPWebRequestLimitResponse {\n\tbytes requestLimitJSON = 1;\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": "FindEnabledHTTPWebResponse", - "code": "message FindEnabledHTTPWebResponse {\n\tHTTPWeb httpWeb = 1;\n}", - "doc": "" + "name": "UpdateHTTPWebShutdownRequest", + "code": "message UpdateHTTPWebShutdownRequest {\n\tint64 httpWebId = 1;\n\tbytes shutdownJSON = 2;\n}", + "doc": "更改Shutdown" }, { - "name": "UpdateHTTPWebCompressionRequest", - "code": "message UpdateHTTPWebCompressionRequest {\n\tint64 httpWebId = 1;\n\tbytes compressionJSON = 2;\n}", - "doc": "更改压缩配置" - }, - { - "name": "UpdateHTTPWebStatRequest", - "code": "message UpdateHTTPWebStatRequest {\n\tint64 httpWebId = 1;\n\tbytes statJSON = 2; // @link json:http_stat_stat_ref\n}", - "doc": "更改统计配置" + "name": "UpdateHTTPWebRedirectToHTTPSRequest", + "code": "message UpdateHTTPWebRedirectToHTTPSRequest {\n\tint64 httpWebId = 1;\n\tbytes redirectToHTTPSJSON = 2;\n}", + "doc": "更改跳转到HTTPS设置" }, { "name": "FindHTTPWebHostRedirectsRequest", @@ -10715,14 +10871,19 @@ "doc": "查找主机跳转设置" }, { - "name": "FindEnabledHTTPWebConfigResponse", - "code": "message FindEnabledHTTPWebConfigResponse {\n\tbytes httpWebJSON = 1;\n}", - "doc": "" + "name": "UpdateHTTPWebUAMRequest", + "code": "message UpdateHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n\tbytes uamJSON = 2;\n}", + "doc": "修改服务UAM设置" }, { - "name": "UpdateHTTPWebWebsocketRequest", - "code": "message UpdateHTTPWebWebsocketRequest {\n\tint64 httpWebId = 1;\n\tbytes websocketJSON = 2; // @link json:http_websocket_ref\n}", - "doc": "更改Websocket设置" + "name": "UpdateHTTPWebWebPRequest", + "code": "message UpdateHTTPWebWebPRequest {\n\tint64 httpWebId = 1;\n\tbytes webpJSON = 2;\n}", + "doc": "更改WebP配置" + }, + { + "name": "UpdateHTTPWebAccessLogRequest", + "code": "message UpdateHTTPWebAccessLogRequest {\n\tint64 httpWebId = 1;\n\tbytes accessLogJSON = 2; // @link json:http_access_log_ref\n}", + "doc": "更改访问日志配置" }, { "name": "FindHTTPWebRequestLimitRequest", @@ -10734,50 +10895,15 @@ "code": "message FindHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n}", "doc": "查找服务UAM设置" }, - { - "name": "UpdateHTTPWebShutdownRequest", - "code": "message UpdateHTTPWebShutdownRequest {\n\tint64 httpWebId = 1;\n\tbytes shutdownJSON = 2;\n}", - "doc": "更改Shutdown" - }, - { - "name": "UpdateHTTPWebLocationsRequest", - "code": "message UpdateHTTPWebLocationsRequest {\n\tint64 httpWebId = 1;\n\tbytes locationsJSON = 3;\n}", - "doc": "更改路径规则配置" - }, - { - "name": "UpdateHTTPWebCommonRequest", - "code": "message UpdateHTTPWebCommonRequest {\n\tint64 httpWebId = 1;\n\tbool mergeSlashes = 2;\n}", - "doc": "更改通用设置" - }, - { - "name": "CreateHTTPWebRequest", - "code": "message CreateHTTPWebRequest {\n\tbytes rootJSON = 1;\n}", - "doc": "创建Web配置" - }, { "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": "UpdateHTTPWebRequestLimitRequest", - "code": "message UpdateHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n\tbytes requestLimitJSON = 2;\n}", - "doc": "修改请求限制" - }, - { - "name": "UpdateHTTPWebRequest", - "code": "message UpdateHTTPWebRequest {\n\tint64 httpWebId = 1;\n\tbytes rootJSON = 2;\n}", - "doc": "更改Web配置" - }, - { - "name": "UpdateHTTPWebRemoteAddrRequest", - "code": "message UpdateHTTPWebRemoteAddrRequest {\n\tint64 httpWebId = 1;\n\tbytes remoteAddrJSON = 2; // @link json:http_remote_addr_config\n}", - "doc": "更改RemoteAddr配置" + "name": "UpdateHTTPWebResponseHeaderRequest", + "code": "message UpdateHTTPWebResponseHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", + "doc": "更改响应Header策略" }, { "name": "UpdateHTTPWebPagesRequest", @@ -10785,44 +10911,14 @@ "doc": "更改Pages" }, { - "name": "UpdateHTTPWebFirewallRequest", - "code": "message UpdateHTTPWebFirewallRequest {\n\tint64 httpWebId = 1;\n\tbytes firewallJSON = 2; // @link json:http_firewall_ref\n}", - "doc": "更改防火墙设置" + "name": "UpdateHTTPWebWebsocketRequest", + "code": "message UpdateHTTPWebWebsocketRequest {\n\tint64 httpWebId = 1;\n\tbytes websocketJSON = 2; // @link json:http_websocket_ref\n}", + "doc": "更改Websocket设置" }, { - "name": "FindHTTPWebHostRedirectsResponse", - "code": "message FindHTTPWebHostRedirectsResponse {\n\tbytes hostRedirectsJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPWebAuthRequest", - "code": "message UpdateHTTPWebAuthRequest {\n\tint64 httpWebId = 1;\n\tbytes authJSON = 2;\n}", - "doc": "更改认证设置" - }, - { - "name": "FindHTTPWebUAMResponse", - "code": "message FindHTTPWebUAMResponse {\n\tbytes uamJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPWebWebPRequest", - "code": "message UpdateHTTPWebWebPRequest {\n\tint64 httpWebId = 1;\n\tbytes webpJSON = 2;\n}", - "doc": "更改WebP配置" - }, - { - "name": "FindHTTPWebRequestLimitResponse", - "code": "message FindHTTPWebRequestLimitResponse {\n\tbytes requestLimitJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindHTTPWebRequestScriptsResponse", - "code": "message FindHTTPWebRequestScriptsResponse {\n\tbytes requestScriptsJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateHTTPWebCacheRequest", - "code": "message UpdateHTTPWebCacheRequest {\n\tint64 httpWebId = 1;\n\tbytes cacheJSON = 2; // @link json:http_cache_config\n}", - "doc": "更改缓存配置" + "name": "UpdateHTTPWebRequestHeaderRequest", + "code": "message UpdateHTTPWebRequestHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", + "doc": "更改请求Header策略" }, { "name": "UpdateHTTPWebFastcgiRequest", @@ -10835,18 +10931,23 @@ "doc": "更改重写规则设置" }, { - "name": "UpdateHTTPWebHostRedirectsRequest", - "code": "message UpdateHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n\tbytes hostRedirectsJSON = 2;\n}", - "doc": "更改主机跳转设置" + "name": "FindHTTPWebHostRedirectsResponse", + "code": "message FindHTTPWebHostRedirectsResponse {\n\tbytes hostRedirectsJSON = 1;\n}", + "doc": "" }, { - "name": "UpdateHTTPWebRequestScriptsRequest", - "code": "message UpdateHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n\tbytes requestScriptsJSON = 2;\n}", - "doc": "修改请求脚本" + "name": "UpdateHTTPWebAuthRequest", + "code": "message UpdateHTTPWebAuthRequest {\n\tint64 httpWebId = 1;\n\tbytes authJSON = 2;\n}", + "doc": "更改认证设置" }, { - "name": "CreateHTTPWebResponse", - "code": "message CreateHTTPWebResponse {\n\tint64 httpWebId = 1;\n}", + "name": "UpdateHTTPWebRequestLimitRequest", + "code": "message UpdateHTTPWebRequestLimitRequest {\n\tint64 httpWebId = 1;\n\tbytes requestLimitJSON = 2;\n}", + "doc": "修改请求限制" + }, + { + "name": "FindEnabledHTTPWebResponse", + "code": "message FindEnabledHTTPWebResponse {\n\tHTTPWeb httpWeb = 1;\n}", "doc": "" }, { @@ -10855,29 +10956,74 @@ "doc": "查找Web配置" }, { - "name": "UpdateHTTPWebRequestHeaderRequest", - "code": "message UpdateHTTPWebRequestHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", - "doc": "更改请求Header策略" + "name": "UpdateHTTPWebRequest", + "code": "message UpdateHTTPWebRequest {\n\tint64 httpWebId = 1;\n\tbytes rootJSON = 2;\n}", + "doc": "更改Web配置" }, { - "name": "UpdateHTTPWebResponseHeaderRequest", - "code": "message UpdateHTTPWebResponseHeaderRequest {\n\tint64 httpWebId = 1;\n\tbytes headerJSON = 2;\n}", - "doc": "更改响应Header策略" + "name": "UpdateHTTPWebCompressionRequest", + "code": "message UpdateHTTPWebCompressionRequest {\n\tint64 httpWebId = 1;\n\tbytes compressionJSON = 2;\n}", + "doc": "更改压缩配置" }, { - "name": "UpdateHTTPWebRedirectToHTTPSRequest", - "code": "message UpdateHTTPWebRedirectToHTTPSRequest {\n\tint64 httpWebId = 1;\n\tbytes redirectToHTTPSJSON = 2;\n}", - "doc": "更改跳转到HTTPS设置" + "name": "UpdateHTTPWebRemoteAddrRequest", + "code": "message UpdateHTTPWebRemoteAddrRequest {\n\tint64 httpWebId = 1;\n\tbytes remoteAddrJSON = 2; // @link json:http_remote_addr_config\n}", + "doc": "更改RemoteAddr配置" }, { - "name": "FindHTTPWebRequestScriptsRequest", - "code": "message FindHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n}", - "doc": "查找请求脚本" + "name": "UpdateHTTPWebRequestScriptsRequest", + "code": "message UpdateHTTPWebRequestScriptsRequest {\n\tint64 httpWebId = 1;\n\tbytes requestScriptsJSON = 2;\n}", + "doc": "修改请求脚本" }, { - "name": "UpdateHTTPWebUAMRequest", - "code": "message UpdateHTTPWebUAMRequest {\n\tint64 httpWebId = 1;\n\tbytes uamJSON = 2;\n}", - "doc": "修改服务UAM设置" + "name": "FindHTTPWebRequestScriptsResponse", + "code": "message FindHTTPWebRequestScriptsResponse {\n\tbytes requestScriptsJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledHTTPWebConfigResponse", + "code": "message FindEnabledHTTPWebConfigResponse {\n\tbytes httpWebJSON = 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": "UpdateHTTPWebCacheRequest", + "code": "message UpdateHTTPWebCacheRequest {\n\tint64 httpWebId = 1;\n\tbytes cacheJSON = 2; // @link json:http_cache_config\n}", + "doc": "更改缓存配置" + }, + { + "name": "UpdateHTTPWebCommonRequest", + "code": "message UpdateHTTPWebCommonRequest {\n\tint64 httpWebId = 1;\n\tbool mergeSlashes = 2;\n}", + "doc": "更改通用设置" + }, + { + "name": "FindHTTPWebUAMResponse", + "code": "message FindHTTPWebUAMResponse {\n\tbytes uamJSON = 1;\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": "UpdateHTTPWebHostRedirectsRequest", + "code": "message UpdateHTTPWebHostRedirectsRequest {\n\tint64 httpWebId = 1;\n\tbytes hostRedirectsJSON = 2;\n}", + "doc": "更改主机跳转设置" + }, + { + "name": "UpdateHTTPWebsocketRequest", + "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": "CreateHTTPWebsocketRequest", @@ -10889,30 +11035,30 @@ "code": "message CreateHTTPWebsocketResponse {\n\tint64 websocketId = 1;\n}", "doc": "" }, - { - "name": "UpdateHTTPWebsocketRequest", - "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": "ListIPItemsWithListIdResponse", - "code": "message ListIPItemsWithListIdResponse {\n\trepeated IPItem ipItems = 1;\n}", - "doc": "" - }, { "name": "FindEnabledIPItemResponse", "code": "message FindEnabledIPItemResponse {\n\tIPItem ipItem = 1;\n}", "doc": "" }, { - "name": "DeleteIPItemRequest", - "code": "message DeleteIPItemRequest {\n\tint64 ipItemId = 1; // IP条目的ID\n\n\tstring ipFrom = 2; // v0.4.8新增,开始IP,和ipItemId二选一\n\tstring ipTo = 3; // v0.4.8新增,结束IP,和ipItemId二选一\n\tint64 ipListId = 4; // v0.4.8新增,IP列表,IP所在的IP列表,如果不指定,则会删除所有IP列表中的相关IP信息\n}", - "doc": "删除IP\n可以使用 ipItemId 删除,也可以使用 ipFrom+ipTo+ipListId 删除,如果只是单个IP,则不需要指定ipTo" + "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": "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}", - "doc": "修改IP" + "name": "UpdateIPItemsReadRequest", + "code": "message UpdateIPItemsReadRequest {\n\n}", + "doc": "设置所有为已读" + }, + { + "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": "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": "CountIPItemsWithListIdRequest", @@ -10920,15 +11066,20 @@ "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", + "code": "message ListIPItemsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组IP" }, { "name": "ListIPItemsAfterVersionResponse", "code": "message ListIPItemsAfterVersionResponse {\n\trepeated IPItem ipItems = 1;\n}", "doc": "" }, + { + "name": "FindEnabledIPItemRequest", + "code": "message FindEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", + "doc": "查找单个IP" + }, { "name": "ExistsEnabledIPItemRequest", "code": "message ExistsEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", @@ -10939,31 +11090,6 @@ "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": "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": "FindEnabledIPItemRequest", - "code": "message FindEnabledIPItemRequest {\n\tint64 ipItemId = 1;\n}", - "doc": "查找单个IP" - }, - { - "name": "ListIPItemsAfterVersionRequest", - "code": "message ListIPItemsAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\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": "UpdateIPItemsReadRequest", - "code": "message UpdateIPItemsReadRequest {\n\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}", @@ -10975,19 +11101,9 @@ "doc": "" }, { - "name": "CheckIPItemStatusRequest", - "code": "message CheckIPItemStatusRequest {\n\tint64 ipListId = 1;\n\tstring ip = 2;\n}", - "doc": "检查IP状态" - }, - { - "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": "ExistsEnabledIPItemResponse", - "code": "message ExistsEnabledIPItemResponse {\n\tbool exists = 1;\n}", - "doc": "" + "name": "DeleteIPItemRequest", + "code": "message DeleteIPItemRequest {\n\tint64 ipItemId = 1; // IP条目的ID\n\n\tstring ipFrom = 2; // v0.4.8新增,开始IP,和ipItemId二选一\n\tstring ipTo = 3; // v0.4.8新增,结束IP,和ipItemId二选一\n\tint64 ipListId = 4; // v0.4.8新增,IP列表,IP所在的IP列表,如果不指定,则会删除所有IP列表中的相关IP信息\n}", + "doc": "删除IP\n可以使用 ipItemId 删除,也可以使用 ipFrom+ipTo+ipListId 删除,如果只是单个IP,则不需要指定ipTo" }, { "name": "DeleteIPItemsRequest", @@ -10995,24 +11111,34 @@ "doc": "批量删除IP" }, { - "name": "FindLatestIPLibraryWithTypeRequest", - "code": "message FindLatestIPLibraryWithTypeRequest {\n\tstring type = 1;\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": "FindLatestIPLibraryWithTypeResponse", - "code": "message FindLatestIPLibraryWithTypeResponse {\n\tIPLibrary ipLibrary = 1;\n}", + "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}", + "doc": "修改IP" + }, + { + "name": "ListIPItemsWithListIdResponse", + "code": "message ListIPItemsWithListIdResponse {\n\trepeated IPItem ipItems = 1;\n}", "doc": "" }, { - "name": "DeleteIPLibraryRequest", - "code": "message DeleteIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", - "doc": "删除IP库" + "name": "CheckIPItemStatusRequest", + "code": "message CheckIPItemStatusRequest {\n\tint64 ipListId = 1;\n\tstring ip = 2;\n}", + "doc": "检查IP状态" }, { - "name": "FindAllEnabledIPLibrariesWithTypeRequest", - "code": "message FindAllEnabledIPLibrariesWithTypeRequest {\n\tstring type = 1;\n}", - "doc": "列出某个类型的所有IP库" + "name": "ExistsEnabledIPItemResponse", + "code": "message ExistsEnabledIPItemResponse {\n\tbool exists = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledIPLibraryRequest", + "code": "message FindEnabledIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", + "doc": "查找单个IP库" }, { "name": "LookupIPRegionsResponse", @@ -11029,11 +11155,41 @@ "code": "message CreateIPLibraryResponse {\n\tint64 ipLibraryId = 1;\n}", "doc": "" }, + { + "name": "FindLatestIPLibraryWithTypeResponse", + "code": "message FindLatestIPLibraryWithTypeResponse {\n\tIPLibrary ipLibrary = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledIPLibrariesWithTypeRequest", + "code": "message FindAllEnabledIPLibrariesWithTypeRequest {\n\tstring type = 1;\n}", + "doc": "列出某个类型的所有IP库" + }, { "name": "FindEnabledIPLibraryResponse", "code": "message FindEnabledIPLibraryResponse {\n\tIPLibrary ipLibrary = 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": "LookupIPRegionRequest", + "code": "message LookupIPRegionRequest {\n\tstring ip = 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": "FindAllEnabledIPLibrariesWithTypeResponse", "code": "message FindAllEnabledIPLibrariesWithTypeResponse {\n\trepeated IPLibrary ipLibraries = 1;\n}", @@ -11050,54 +11206,44 @@ "doc": "查询一组IP信息" }, { - "name": "FindEnabledIPLibraryRequest", - "code": "message FindEnabledIPLibraryRequest {\n\tint64 ipLibraryId = 1;\n}", - "doc": "查找单个IP库" + "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}", + "doc": "创建IP列表" }, { - "name": "LookupIPRegionRequest", - "code": "message LookupIPRegionRequest {\n\tstring ip = 1;\n}", - "doc": "查询某个IP信息" + "name": "CreateIPListResponse", + "code": "message CreateIPListResponse {\n\tint64 ipListId = 1;\n}", + "doc": "" }, { - "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": "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": "FindEnabledIPListRequest", + "code": "message FindEnabledIPListRequest {\n\tint64 ipListId = 1;\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": "FindEnabledIPListContainsIPRequest", - "code": "message FindEnabledIPListContainsIPRequest {\n\tstring ip = 1;\n}", - "doc": "根据IP来搜索IP名单" - }, { "name": "FindEnabledIPListContainsIPResponse", "code": "message FindEnabledIPListContainsIPResponse {\n\trepeated IPList ipLists = 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}", - "doc": "创建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": "CountAllEnabledIPListsRequest", + "code": "message CountAllEnabledIPListsRequest {\n\tstring type = 1;\n\tbool isPublic = 2;\n\tstring keyword = 3;\n}", + "doc": "计算名单数量" }, { "name": "ListEnabledIPListsResponse", @@ -11120,14 +11266,9 @@ "doc": "" }, { - "name": "CreateIPListResponse", - "code": "message CreateIPListResponse {\n\tint64 ipListId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledIPListRequest", - "code": "message FindEnabledIPListRequest {\n\tint64 ipListId = 1;\n}", - "doc": "查找IP列表信息" + "name": "FindEnabledIPListContainsIPRequest", + "code": "message FindEnabledIPListContainsIPRequest {\n\tstring ip = 1;\n}", + "doc": "根据IP来搜索IP名单" }, { "name": "IncreaseLatestItemRequest", @@ -11135,20 +11276,15 @@ "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": "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": "CreateLogRequest", - "code": "message CreateLogRequest {\n\tstring level = 1;\n\tstring description = 2;\n\tstring action = 3;\n\tstring ip = 4;\n}", - "doc": "创建日志" - }, { "name": "ListLogsResponse", "code": "message ListLogsResponse {\n\trepeated Log logs = 1;\n}", @@ -11159,6 +11295,16 @@ "code": "message DeleteLogPermanentlyRequest {\n\tint64 logId = 1;\n}", "doc": "删除单条" }, + { + "name": "SumLogsSizeRequest", + "code": "message SumLogsSizeRequest {\n\n}", + "doc": "计算日志容量大小" + }, + { + "name": "CreateLogResponse", + "code": "message CreateLogResponse {\n\n}", + "doc": "" + }, { "name": "DeleteLogsPermanentlyRequest", "code": "message DeleteLogsPermanentlyRequest {\n\trepeated int64 logIds = 1;\n}", @@ -11169,20 +11315,20 @@ "code": "message CleanLogsPermanentlyRequest {\n\tint32 days = 1;\n\tbool clearAll = 2;\n}", "doc": "清理" }, - { - "name": "SumLogsSizeRequest", - "code": "message SumLogsSizeRequest {\n\n}", - "doc": "计算日志容量大小" - }, { "name": "SumLogsResponse", "code": "message SumLogsResponse {\n\tint64 sizeBytes = 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": "CreateLogRequest", + "code": "message CreateLogRequest {\n\tstring level = 1;\n\tstring description = 2;\n\tstring action = 3;\n\tstring ip = 4;\n}", + "doc": "创建日志" + }, + { + "name": "FindEnabledLoginRequest", + "code": "message FindEnabledLoginRequest {\n\tint64 adminId = 1;\n\tint64 userId = 3;\n\tstring type = 2;\n}", + "doc": "查找认证" }, { "name": "FindEnabledLoginResponse", @@ -11194,21 +11340,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": "UpdateMessagesReadRequest", - "code": "message UpdateMessagesReadRequest {\n\trepeated int64 messageIds = 1;\n\tbool isRead = 2;\n}", - "doc": "设置一组消息已读状态" - }, - { - "name": "UpdateAllMessagesReadRequest", - "code": "message UpdateAllMessagesReadRequest {\n\n}", - "doc": "设置所有消息为已读" - }, { "name": "CountUnreadMessagesRequest", "code": "message CountUnreadMessagesRequest {\n\n}", @@ -11229,6 +11360,21 @@ "code": "message UpdateMessageReadRequest {\n\tint64 messageId = 1;\n\tbool isRead = 2;\n}", "doc": "设置消息已读状态" }, + { + "name": "UpdateMessagesReadRequest", + "code": "message UpdateMessagesReadRequest {\n\trepeated int64 messageIds = 1;\n\tbool isRead = 2;\n}", + "doc": "设置一组消息已读状态" + }, + { + "name": "UpdateAllMessagesReadRequest", + "code": "message UpdateAllMessagesReadRequest {\n\n}", + "doc": "设置所有消息为已读" + }, + { + "name": "FindAllMessageMediasRequest", + "code": "message FindAllMessageMediasRequest {\n\n}", + "doc": "获取所有支持的媒介" + }, { "name": "FindAllMessageMediasResponse", "code": "message FindAllMessageMediasResponse {\n\trepeated MessageMedia messageMedias = 1;\n}", @@ -11239,36 +11385,11 @@ "code": "message UpdateMessageMediasRequest {\n\trepeated MessageMedia messageMedias = 2;\n}", "doc": "设置所有支持的媒介" }, - { - "name": "FindAllMessageMediasRequest", - "code": "message FindAllMessageMediasRequest {\n\n}", - "doc": "获取所有支持的媒介" - }, - { - "name": "CreateMessageMediaInstanceResponse", - "code": "message CreateMessageMediaInstanceResponse {\n\tint64 messageMediaInstanceId = 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": "CountAllEnabledMessageMediaInstancesRequest", - "code": "message CountAllEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\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": "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}", - "doc": "创建接收人" - }, { "name": "DeleteMessageMediaInstanceRequest", "code": "message DeleteMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", @@ -11284,15 +11405,30 @@ "code": "message FindEnabledMessageMediaInstanceRequest {\n\tint64 messageMediaInstanceId = 1;\n}", "doc": "查找单个接收人信息" }, + { + "name": "CreateMessageMediaInstanceResponse", + "code": "message CreateMessageMediaInstanceResponse {\n\tint64 messageMediaInstanceId = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledMessageMediaInstancesRequest", + "code": "message CountAllEnabledMessageMediaInstancesRequest {\n\tstring mediaType = 1;\n\tstring keyword = 2;\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": "FindEnabledMessageMediaInstanceResponse", "code": "message FindEnabledMessageMediaInstanceResponse {\n\tMessageMediaInstance messageMediaInstance = 1;\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}", - "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}", + "doc": "创建接收人" }, { "name": "FindAllEnabledMessageReceiversRequest", @@ -11315,35 +11451,25 @@ "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": "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}", + "doc": "修改接收者" + }, + { + "name": "FindEnabledMessageRecipientResponse", + "code": "message FindEnabledMessageRecipientResponse {\n\tMessageRecipient messageRecipient = 1;\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": "FindEnabledMessageRecipientRequest", - "code": "message FindEnabledMessageRecipientRequest {\n\tint64 messageRecipientId = 1;\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": "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}", @@ -11355,9 +11481,24 @@ "doc": "" }, { - "name": "FindEnabledMessageRecipientResponse", - "code": "message FindEnabledMessageRecipientResponse {\n\tMessageRecipient messageRecipient = 1;\n}", - "doc": "" + "name": "FindEnabledMessageRecipientRequest", + "code": "message FindEnabledMessageRecipientRequest {\n\tint64 messageRecipientId = 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": "FindEnabledMessageRecipientGroupRequest", @@ -11400,9 +11541,14 @@ "doc": "删除分组" }, { - "name": "UpdateMessageTaskStatusRequest", - "code": "message UpdateMessageTaskStatusRequest {\n\tint64 messageTaskId = 1;\n\tint32 status = 2;\n\tMessageTaskResult result = 3;\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": "FindSendingMessageTasksResponse", + "code": "message FindSendingMessageTasksResponse {\n\trepeated MessageTask messageTasks = 1;\n}", + "doc": "" }, { "name": "FindEnabledMessageTaskRequest", @@ -11410,8 +11556,8 @@ "doc": "读取消息任务状态" }, { - "name": "FindSendingMessageTasksResponse", - "code": "message FindSendingMessageTasksResponse {\n\trepeated MessageTask messageTasks = 1;\n}", + "name": "FindEnabledMessageTaskResponse", + "code": "message FindEnabledMessageTaskResponse {\n\tMessageTask messageTask = 1;\n}", "doc": "" }, { @@ -11424,31 +11570,21 @@ "code": "message FindSendingMessageTasksRequest {\n\tint64 size = 1;\n}", "doc": "查找要发送的消息任务" }, + { + "name": "UpdateMessageTaskStatusRequest", + "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": "FindEnabledMessageTaskResponse", - "code": "message FindEnabledMessageTaskResponse {\n\tMessageTask messageTask = 1;\n}", - "doc": "" - }, { "name": "ListMessageTasksWithStatusResponse", "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": "CountMessageTaskLogsRequest", - "code": "message CountMessageTaskLogsRequest {\n\n}", - "doc": "计算日志数量" - }, { "name": "ListMessageTaskLogsRequest", "code": "message ListMessageTaskLogsRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", @@ -11460,19 +11596,9 @@ "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": "CountEnabledMetricChartsRequest", - "code": "message CountEnabledMetricChartsRequest {\n\tint64 metricItemId = 1;\n}", - "doc": "计算图表数量" - }, - { - "name": "ListEnabledMetricChartsRequest", - "code": "message ListEnabledMetricChartsRequest {\n\tint64 metricItemId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页图表" + "name": "CountMessageTaskLogsRequest", + "code": "message CountMessageTaskLogsRequest {\n\n}", + "doc": "计算日志数量" }, { "name": "CreateMetricChartRequest", @@ -11484,11 +11610,6 @@ "code": "message CreateMetricChartResponse {\n\tint64 metricChartId = 1;\n}", "doc": "" }, - { - "name": "FindEnabledMetricChartRequest", - "code": "message FindEnabledMetricChartRequest {\n\tint64 metricChartId = 1;\n}", - "doc": "查找单个图表" - }, { "name": "FindEnabledMetricChartResponse", "code": "message FindEnabledMetricChartResponse {\n\tMetricChart metricChart = 1;\n}", @@ -11499,15 +11620,45 @@ "code": "message ListEnabledMetricChartsResponse {\n\trepeated MetricChart metricCharts = 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}", + "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": "CountAllEnabledMetricItemsRequest", - "code": "message CountAllEnabledMetricItemsRequest {\n\tstring category = 1;\n}", - "doc": "计算指标数量" + "name": "CreateMetricItemResponse", + "code": "message CreateMetricItemResponse {\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": "ListEnabledMetricItemsRequest", @@ -11529,30 +11680,15 @@ "code": "message CreateMetricItemRequest {\n\tstring code = 1;\n\tstring category = 2;\n\tstring name = 3;\n\trepeated string keys = 4;\n\tint32 period = 5;\n\tstring periodUnit = 6;\n\tint32 expiresPeriod = 9;\n\tstring value = 7;\n\tbool isPublic = 8;\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": "FindEnabledMetricItemRequest", "code": "message FindEnabledMetricItemRequest {\n\tint64 metricItemId = 1;\n}", "doc": "查找单个指标信息" }, { - "name": "CreateMetricItemResponse", - "code": "message CreateMetricItemResponse {\n\tint64 metricItemId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledMetricItemResponse", - "code": "message FindEnabledMetricItemResponse {\n\tMetricItem metricItem = 1;\n}", - "doc": "" - }, - { - "name": "ListMetricStatsRequest", - "code": "message ListMetricStatsRequest {\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": "ListMetricStatsResponse", @@ -11569,16 +11705,66 @@ "code": "message CountMetricStatsRequest {\n\tint64 metricItemId = 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": "FindAllEnabledMonitorNodesResponse", + "code": "message FindAllEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledMonitorNodesRequest", + "code": "message CountAllEnabledMonitorNodesRequest {\n\n}", + "doc": "计算监控节点数量" + }, + { + "name": "FindCurrentMonitorNodeRequest", + "code": "message FindCurrentMonitorNodeRequest {\n\n}", + "doc": "获取当前监控节点" + }, + { + "name": "UpdateMonitorNodeStatusRequest", + "code": "message UpdateMonitorNodeStatusRequest {\n\tint64 monitorNodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新监控状态" + }, { "name": "CreateMonitorNodeRequest", "code": "message CreateMonitorNodeRequest {\n\tstring name = 1;\n\tstring description = 2;\n\tbool isOn = 3;\n}", "doc": "创建监控节点" }, + { + "name": "CreateMonitorNodeResponse", + "code": "message CreateMonitorNodeResponse {\n\tint64 monitorNodeId = 1;\n}", + "doc": "" + }, + { + "name": "ListEnabledMonitorNodesRequest", + "code": "message ListEnabledMonitorNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的监控节点" + }, + { + "name": "FindEnabledMonitorNodeRequest", + "code": "message FindEnabledMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", + "doc": "根据ID查找节点" + }, { "name": "DeleteMonitorNodeRequest", "code": "message DeleteMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", "doc": "删除监控节点" }, + { + "name": "ListEnabledMonitorNodesResponse", + "code": "message ListEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", + "doc": "" + }, { "name": "FindEnabledMonitorNodeResponse", "code": "message FindEnabledMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", @@ -11589,356 +11775,116 @@ "code": "message FindCurrentMonitorNodeResponse {\n\tMonitorNode monitorNode = 1;\n}", "doc": "" }, - { - "name": "CreateMonitorNodeResponse", - "code": "message CreateMonitorNodeResponse {\n\tint64 monitorNodeId = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledMonitorNodesRequest", - "code": "message FindAllEnabledMonitorNodesRequest {\n\n}", - "doc": "列出所有可用监控节点" - }, - { - "name": "FindCurrentMonitorNodeRequest", - "code": "message FindCurrentMonitorNodeRequest {\n\n}", - "doc": "获取当前监控节点" - }, - { - "name": "FindAllEnabledMonitorNodesResponse", - "code": "message FindAllEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledMonitorNodesRequest", - "code": "message ListEnabledMonitorNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页的监控节点" - }, - { - "name": "ListEnabledMonitorNodesResponse", - "code": "message ListEnabledMonitorNodesResponse {\n\trepeated MonitorNode monitorNodes = 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": "CountAllEnabledMonitorNodesRequest", - "code": "message CountAllEnabledMonitorNodesRequest {\n\n}", - "doc": "计算监控节点数量" - }, - { - "name": "FindEnabledMonitorNodeRequest", - "code": "message FindEnabledMonitorNodeRequest {\n\tint64 monitorNodeId = 1;\n}", - "doc": "根据ID查找节点" - }, - { - "name": "UpdateMonitorNodeStatusRequest", - "code": "message UpdateMonitorNodeStatusRequest {\n\tint64 monitorNodeId = 1;\n\tbytes statusJSON = 2;\n}", - "doc": "更新监控状态" - }, - { - "name": "StartNodeResponse", - "code": "message StartNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\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": "UpdateNodeDNSResolverRequest", - "code": "message UpdateNodeDNSResolverRequest {\n\tint64 nodeId = 1;\n\tbytes dnsResolverJSON = 2;\n}", - "doc": "修改DNS Resolver" - }, - { - "name": "UpdateNodeDDoSProtectionRequest", - "code": "message UpdateNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改节点的DDOS设置" - }, - { - "name": "RegisterClusterNodeResponse", - "code": "message RegisterClusterNodeResponse {\n\tstring uniqueId = 1;\n\tstring secret = 2;\n\trepeated string endpoints = 3;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n\tbool includeSecondary = 2; // 是否检查节点的从集群,如果为false,则只检查主集群ID\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": "CountAllNotInstalledNodesWithNodeClusterIdRequest", - "code": "message CountAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算未安装的节点数量" - }, - { - "name": "UpdateNodeSystemRequest", - "code": "message UpdateNodeSystemRequest {\n\tint64 nodeId = 1;\n\tint32 maxCPU = 2;\n}", - "doc": "修改节点系统信息" - }, - { - "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": "DeleteNodeFromNodeClusterRequest", - "code": "message DeleteNodeFromNodeClusterRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\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": "FindEnabledNodeDNSResponse", - "code": "message FindEnabledNodeDNSResponse {\n\tNodeDNSInfo node = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesDNSWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodesDNSWithNodeClusterIdResponse {\n\trepeated NodeDNSInfo nodes = 1;\n}", - "doc": "" - }, - { - "name": "FindAllUpgradeNodesWithNodeClusterIdRequest", - "code": "message FindAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "列出所有需要升级的节点" - }, - { - "name": "CheckNodeLatestVersionResponse", - "code": "message CheckNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeConfigInfoRequest", - "code": "message FindEnabledNodeConfigInfoRequest {\n\tint64 nodeId = 1;\n}", - "doc": "取得节点的配置概要信息" - }, - { - "name": "FindAllUpgradeNodesWithNodeClusterIdResponse", - "code": "message FindAllUpgradeNodesWithNodeClusterIdResponse {\n\trepeated NodeUpgrade nodes = 1;\n\n\n\tmessage NodeUpgrade {\n\t\tNode node = 1;\n\t\tstring os = 2;\n\t\tstring arch = 3;\n\t\tstring oldVersion = 4;\n\t\tstring newVersion = 5;\n\t}\n}", - "doc": "" - }, - { - "name": "CreateNodeResponse", - "code": "message CreateNodeResponse {\n\tint64 nodeId = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledNodesMatchResponse", - "code": "message ListEnabledNodesMatchResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeLoginRequest", - "code": "message UpdateNodeLoginRequest {\n\tint64 nodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", - "doc": "修改节点登录信息" - }, - { - "name": "UpdateNodeIsInstalledRequest", - "code": "message UpdateNodeIsInstalledRequest {\n\tint64 nodeId = 1;\n\tbool isInstalled = 2;\n}", - "doc": "修改节点安装状态" - }, - { - "name": "FindNodeInstallStatusRequest", - "code": "message FindNodeInstallStatusRequest {\n\tint64 nodeId = 1;\n}", - "doc": "读取节点安装状态" - }, - { - "name": "UpdateNodeConnectedAPINodesRequest", - "code": "message UpdateNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", - "doc": "更改节点连接的API节点信息" - }, { "name": "FindNodeInstallStatusResponse", "code": "message FindNodeInstallStatusResponse {\n\tNodeInstallStatus installStatus = 1;\n}", "doc": "" }, - { - "name": "CheckNodeLatestVersionRequest", - "code": "message CheckNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\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": "FindNodeLevelInfoResponse", - "code": "message FindNodeLevelInfoResponse {\n\tint32 level = 1;\n\tbytes parentNodesMapJSON = 2;\n}", - "doc": "" - }, - { - "name": "RegisterClusterNodeRequest", - "code": "message RegisterClusterNodeRequest {\n\tstring name = 1;\n}", - "doc": "注册集群节点" - }, - { - "name": "InstallNodeResponse", - "code": "message InstallNodeResponse {\n\n}", - "doc": "" - }, - { - "name": "UpgradeNodeRequest", - "code": "message UpgradeNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "升级节点" - }, - { - "name": "InstallNodeRequest", - "code": "message InstallNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "安装节点" - }, - { - "name": "CountAllEnabledNodesWithNodeGrantIdRequest", - "code": "message CountAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 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": "CountAllEnabledNodesRequest", - "code": "message CountAllEnabledNodesRequest {\n\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": "StartNodeRequest", - "code": "message StartNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "启动节点" - }, - { - "name": "StopNodeResponse", - "code": "message StopNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "CountAllUpgradeNodesWithNodeClusterIdRequest", - "code": "message CountAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算需要升级的节点数量" - }, { "name": "CountAllEnabledNodesWithNodeGroupIdRequest", "code": "message CountAllEnabledNodesWithNodeGroupIdRequest {\n\tint64 nodeGroupId = 1;\n}", "doc": "计算某个节点分组内的节点数量" }, { - "name": "FindEnabledNodeDNSRequest", - "code": "message FindEnabledNodeDNSRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\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": "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": "FindEnabledNodesWithIdsResponse", - "code": "message FindEnabledNodesWithIdsResponse {\n\trepeated Node nodes = 1;\n}", - "doc": "" - }, - { - "name": "FindNodeDDoSProtectionRequest", - "code": "message FindNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取节点的DDoS设置" - }, - { - "name": "FindNodeDDoSProtectionResponse", - "code": "message FindNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", - "doc": "" + "name": "DeleteNodeFromNodeClusterRequest", + "code": "message DeleteNodeFromNodeClusterRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\n}", + "doc": "从集群中删除节点" }, { "name": "FindEnabledBasicNodeRequest", "code": "message FindEnabledBasicNodeRequest {\n\tint64 nodeId = 1;\n}", "doc": "获取单个节点基本信息" }, + { + "name": "UpdateNodeIsInstalledRequest", + "code": "message UpdateNodeIsInstalledRequest {\n\tint64 nodeId = 1;\n\tbool isInstalled = 2;\n}", + "doc": "修改节点安装状态" + }, + { + "name": "StartNodeRequest", + "code": "message StartNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "启动节点" + }, + { + "name": "FindAllEnabledNodesWithNodeGrantIdResponse", + "code": "message FindAllEnabledNodesWithNodeGrantIdResponse {\n\trepeated Node nodes = 1;\n}", + "doc": "" + }, { "name": "FindAllNotInstalledNodesWithNodeClusterIdResponse", "code": "message FindAllNotInstalledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 1;\n}", "doc": "" }, - { - "name": "FindEnabledBasicNodeResponse", - "code": "message FindEnabledBasicNodeResponse {\n\tBasicNode node = 1;\n}", - "doc": "" - }, - { - "name": "FindAllNotInstalledNodesWithNodeClusterIdRequest", - "code": "message FindAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "列出所有未安装的节点" - }, - { - "name": "CountAllEnabledNodesWithNodeRegionIdRequest", - "code": "message CountAllEnabledNodesWithNodeRegionIdRequest {\n\tint64 nodeRegionId = 1;\n}", - "doc": "计算某个区域下的节点数量" - }, - { - "name": "FindNodeDNSResolverRequest", - "code": "message FindNodeDNSResolverRequest{\n\tint64 nodeId = 1;\n}", - "doc": "读取节点DNS Resolver" - }, - { - "name": "FindNodeDNSResolverResponse", - "code": "message FindNodeDNSResolverResponse {\n\tbytes dnsResolverJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeRequest", - "code": "message FindEnabledNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "获取单个节点信息" - }, - { - "name": "FindEnabledNodeResponse", - "code": "message FindEnabledNodeResponse {\n\tNode node = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodesWithNodeGrantIdRequest", - "code": "message FindAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "查找使用某个认证的所有节点" - }, { "name": "FindAllEnabledNodesDNSWithNodeClusterIdRequest", "code": "message FindAllEnabledNodesDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 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": "CreateNodeResponse", + "code": "message CreateNodeResponse {\n\tint64 nodeId = 1;\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": "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": "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": "UpdateNodeStatusRequest", + "code": "message UpdateNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新节点状态" + }, + { + "name": "StopNodeRequest", + "code": "message StopNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "停止节点" + }, + { + "name": "FindAllUpgradeNodesWithNodeClusterIdResponse", + "code": "message FindAllUpgradeNodesWithNodeClusterIdResponse {\n\trepeated NodeUpgrade nodes = 1;\n\n\n\tmessage NodeUpgrade {\n\t\tNode node = 1;\n\t\tstring os = 2;\n\t\tstring arch = 3;\n\t\tstring oldVersion = 4;\n\t\tstring newVersion = 5;\n\t}\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodesWithNodeGrantIdRequest", + "code": "message CountAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "计算使用某个认证的节点数量" + }, + { + "name": "CountAllUpgradeNodesWithNodeClusterIdRequest", + "code": "message CountAllUpgradeNodesWithNodeClusterIdRequest {\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}", @@ -11950,39 +11896,269 @@ "doc": "根据一组ID获取节点信息" }, { - "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": "CountAllEnabledNodesRequest", + "code": "message CountAllEnabledNodesRequest {\n\n}", + "doc": "所有可用的节点数量" }, { - "name": "StopNodeRequest", - "code": "message StopNodeRequest {\n\tint64 nodeId = 1;\n}", - "doc": "停止节点" + "name": "FindEnabledNodeRequest", + "code": "message FindEnabledNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取单个节点信息" }, { - "name": "DownloadNodeInstallationFileRequest", - "code": "message DownloadNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", - "doc": "下载最新边缘节点安装文件" + "name": "UpdateNodeLoginRequest", + "code": "message UpdateNodeLoginRequest {\n\tint64 nodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", + "doc": "修改节点登录信息" }, { - "name": "UpdateNodeUpRequest", - "code": "message UpdateNodeUpRequest {\n\tint64 nodeId = 1;\n\tbool isUp = 2;\n}", - "doc": "设置节点上线状态" + "name": "FindEnabledNodesWithIdsResponse", + "code": "message FindEnabledNodesWithIdsResponse {\n\trepeated Node nodes = 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": "FindNodeDDoSProtectionRequest", + "code": "message FindNodeDDoSProtectionRequest {\n\tint64 nodeId = 1;\n}", + "doc": "获取节点的DDoS设置" + }, + { + "name": "FindAllEnabledNodesWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodesWithNodeClusterIdResponse {\n\trepeated Node nodes = 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": "FindAllEnabledNodeClustersWithDNSDomainIdRequest", - "code": "message FindAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "查找使用某个域名的所有集群" + "name": "StopNodeResponse", + "code": "message StopNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeDNSResponse", + "code": "message FindEnabledNodeDNSResponse {\n\tNodeDNSInfo node = 1;\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}", + "doc": "" + }, + { + "name": "InstallNodeResponse", + "code": "message InstallNodeResponse {\n\n}", + "doc": "" + }, + { + "name": "FindAllUpgradeNodesWithNodeClusterIdRequest", + "code": "message FindAllUpgradeNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\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": "UpgradeNodeRequest", + "code": "message UpgradeNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "升级节点" + }, + { + "name": "UpdateNodeConnectedAPINodesRequest", + "code": "message UpdateNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", + "doc": "更改节点连接的API节点信息" + }, + { + "name": "CountAllNotInstalledNodesWithNodeClusterIdRequest", + "code": "message CountAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 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": "InstallNodeRequest", + "code": "message InstallNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "安装节点" + }, + { + "name": "FindNodeDNSResolverResponse", + "code": "message FindNodeDNSResolverResponse {\n\tbytes dnsResolverJSON = 1;\n}", + "doc": "" + }, + { + "name": "RegisterClusterNodeResponse", + "code": "message RegisterClusterNodeResponse {\n\tstring uniqueId = 1;\n\tstring secret = 2;\n\trepeated string endpoints = 3;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodesWithNodeRegionIdRequest", + "code": "message CountAllEnabledNodesWithNodeRegionIdRequest {\n\tint64 nodeRegionId = 1;\n}", + "doc": "计算某个区域下的节点数量" + }, + { + "name": "DownloadNodeInstallationFileRequest", + "code": "message DownloadNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", + "doc": "下载最新边缘节点安装文件" + }, + { + "name": "FindEnabledNodeConfigInfoRequest", + "code": "message FindEnabledNodeConfigInfoRequest {\n\tint64 nodeId = 1;\n}", + "doc": "取得节点的配置概要信息" + }, + { + "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": "FindNodeLevelInfoResponse", + "code": "message FindNodeLevelInfoResponse {\n\tint32 level = 1;\n\tbytes parentNodesMapJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindNodeDNSResolverRequest", + "code": "message FindNodeDNSResolverRequest{\n\tint64 nodeId = 1;\n}", + "doc": "读取节点DNS Resolver" + }, + { + "name": "FindAllEnabledNodesWithNodeGrantIdRequest", + "code": "message FindAllEnabledNodesWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "查找使用某个认证的所有节点" + }, + { + "name": "FindNodeInstallStatusRequest", + "code": "message FindNodeInstallStatusRequest {\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": "UpdateNodeUpRequest", + "code": "message UpdateNodeUpRequest {\n\tint64 nodeId = 1;\n\tbool isUp = 2;\n}", + "doc": "设置节点上线状态" + }, + { + "name": "RegisterClusterNodeRequest", + "code": "message RegisterClusterNodeRequest {\n\tstring name = 1;\n}", + "doc": "注册集群节点" + }, + { + "name": "FindEnabledBasicNodeResponse", + "code": "message FindEnabledBasicNodeResponse {\n\tBasicNode node = 1;\n}", + "doc": "" + }, + { + "name": "FindAllNotInstalledNodesWithNodeClusterIdRequest", + "code": "message FindAllNotInstalledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 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": "UpdateNodeSystemRequest", + "code": "message UpdateNodeSystemRequest {\n\tint64 nodeId = 1;\n\tint32 maxCPU = 2;\n}", + "doc": "修改节点系统信息" + }, + { + "name": "FindAllEnabledNodesDNSWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodesDNSWithNodeClusterIdResponse {\n\trepeated NodeDNSInfo nodes = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeDNSRequest", + "code": "message FindEnabledNodeDNSRequest {\n\tint64 nodeId = 1;\n\tint64 nodeClusterId = 2;\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": "FindEnabledNodeResponse", + "code": "message FindEnabledNodeResponse {\n\tNode node = 1;\n}", + "doc": "" + }, + { + "name": "StartNodeResponse", + "code": "message StartNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "FindNodeDDoSProtectionResponse", + "code": "message FindNodeDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodesWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodesWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1; // 集群ID\n\tbool includeSecondary = 2; // 是否检查节点的从集群,如果为false,则只检查主集群ID\n}", + "doc": "根据集群查找所有节点" + }, + { + "name": "DeleteNodeRequest", + "code": "message DeleteNodeRequest {\n\tint64 nodeId = 1;\n}", + "doc": "删除节点" + }, + { + "name": "UpdateNodeClusterHealthCheckRequest", + "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", + "doc": "修改集群健康检查设置" + }, + { + "name": "FindEnabledNodeClusterDNSRequest", + "code": "message FindEnabledNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的DNS配置" + }, + { + "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse", + "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodeClusterConfigInfoRequest", + "code": "message FindEnabledNodeClusterConfigInfoRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得集群的配置概要信息" + }, + { + "name": "FindEnabledNodeClusterWebPPolicyResponse", + "code": "message FindEnabledNodeClusterWebPPolicyResponse {\n\tbytes webpPolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodeClustersRequest", + "code": "message FindAllEnabledNodeClustersRequest {\n\n}", + "doc": "获取所有集群的信息" + }, + { + "name": "UpdateNodeClusterWebPPolicyRequest", + "code": "message UpdateNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes webpPolicyJSON = 2;\n}", + "doc": "设置集群WebP策略" + }, + { + "name": "CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", + "code": "message CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", + "doc": "计算使用某个缓存策略的集群数量" }, { "name": "CheckNodeClusterDNSChangesResponse", @@ -11990,15 +12166,200 @@ "doc": "" }, { - "name": "UpdateNodeClusterHTTPCachePolicyIdRequest", - "code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}", - "doc": "修改集群的缓存策略" + "name": "FindEnabledNodeClusterWebPPolicyRequest", + "code": "message FindEnabledNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "读取集群WebP策略" + }, + { + "name": "FindNodeClusterHealthCheckConfigRequest", + "code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的健康检查配置" + }, + { + "name": "UpdateNodeClusterDDoSProtectionRequest", + "code": "message UpdateNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", + "doc": "修改集群的DDOS设置" + }, + { + "name": "UpdateNodeClusterTOARequest", + "code": "message UpdateNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n\tbytes toaJSON = 2;\n}", + "doc": "修改集群的TOA设置" + }, + { + "name": "FindNodeClusterSystemServiceResponse", + "code": "message FindNodeClusterSystemServiceResponse {\n\tbytes paramsJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAPINodesWithNodeClusterRequest", + "code": "message FindAPINodesWithNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的API节点信息" + }, + { + "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": "FindNodeClusterDDoSProtectionResponse", + "code": "message FindNodeClusterDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", + "doc": "" + }, + { + "name": "CreateNodeClusterResponse", + "code": "message CreateNodeClusterResponse {\n\tint64 nodeClusterId = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodeClustersWithDNSProviderIdRequest", + "code": "message CountAllEnabledNodeClustersWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", + "doc": "计算使用某个DNS服务商的集群数量" + }, + { + "name": "CountAllEnabledNodeClustersWithDNSDomainIdRequest", + "code": "message CountAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "计算使用某个DNS域名的集群数量" + }, + { + "name": "FindNodeClusterSystemServiceRequest", + "code": "message FindNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n}", + "doc": "查找集群的系统服务设置" + }, + { + "name": "UpdateNodeClusterPinnedRequest", + "code": "message UpdateNodeClusterPinnedRequest {\n\tint64 nodeClusterId = 1;\n\tbool isPinned = 2;\n}", + "doc": "设置集群是否置顶" + }, + { + "name": "FindEnabledNodeClusterUAMPolicyRequest", + "code": "message FindEnabledNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "读取集群的UAM策略" + }, + { + "name": "FindNodeClusterHealthCheckConfigResponse", + "code": "message FindNodeClusterHealthCheckConfigResponse {\n\tbytes healthCheckJSON = 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": "CountAllEnabledNodeClustersRequest", + "code": "message CountAllEnabledNodeClustersRequest {\n\tstring keyword = 1;\n}", + "doc": "计算所有集群数量" + }, + { + "name": "FindAllEnabledNodeClustersWithDNSDomainIdRequest", + "code": "message FindAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", + "doc": "查找使用某个域名的所有集群" + }, + { + "name": "UpdateNodeClusterHTTPFirewallPolicyIdRequest", + "code": "message UpdateNodeClusterHTTPFirewallPolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpFirewallPolicyId = 2;\n}", + "doc": "修改集群的WAF策略" }, { "name": "FindLatestNodeClustersRequest", "code": "message FindLatestNodeClustersRequest {\n\tint64 size = 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": "ListEnabledNodeClustersRequest", + "code": "message ListEnabledNodeClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n}", + "doc": "列出单页集群" + }, + { + "name": "FindAllEnabledNodeClustersWithDNSDomainIdResponse", + "code": "message FindAllEnabledNodeClustersWithDNSDomainIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "CheckNodeClusterDNSChangesRequest", + "code": "message CheckNodeClusterDNSChangesRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "检查集群的DNS是否有变化" + }, + { + "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse", + "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterUAMPolicyRequest", + "code": "message UpdateNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes uamPolicyJSON = 2;\n}", + "doc": "设置集群的UAM策略" + }, + { + "name": "FindEnabledNodeClusterRequest", + "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找单个集群信息" + }, + { + "name": "ExecuteNodeClusterHealthCheckRequest", + "code": "message ExecuteNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "执行健康检查" + }, + { + "name": "FindFreePortInNodeClusterResponse", + "code": "message FindFreePortInNodeClusterResponse {\n\tint32 port = 1;\n}", + "doc": "" + }, + { + "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", + "code": "message FindNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "获取集群的DDoS设置" + }, + { + "name": "DeleteNodeClusterRequest", + "code": "message DeleteNodeClusterRequest {\n\tint64 nodeClusterId = 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": "CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", + "code": "message CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "计算使用某个WAF策略的集群数量" + }, + { + "name": "FindFreePortInNodeClusterRequest", + "code": "message FindFreePortInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring protocolFamily = 2;\n}", + "doc": "获取集群中可以使用的端口" + }, + { + "name": "FindLatestNodeClustersResponse", + "code": "message FindLatestNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 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": "CountAllEnabledNodeClustersWithNodeGrantIdRequest", + "code": "message CountAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "计算使用某个认证的集群数量" + }, { "name": "FindAPINodesWithNodeClusterResponse", "code": "message FindAPINodesWithNodeClusterResponse {\n\tbool useAllAPINodes = 1;\n\trepeated APINode apiNodes = 2;\n}", @@ -12010,294 +12371,79 @@ "doc": "" }, { - "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse", - "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterSystemServiceRequest", - "code": "message UpdateNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", - "doc": "修改集群的系统服务设置" - }, - { - "name": "DeleteNodeClusterRequest", - "code": "message DeleteNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "删除集群" - }, - { - "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse", - "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeClusterWebPPolicyResponse", - "code": "message FindEnabledNodeClusterWebPPolicyResponse {\n\tbytes webpPolicyJSON = 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": "FindFreePortInNodeClusterResponse", - "code": "message FindFreePortInNodeClusterResponse {\n\tint32 port = 1;\n}", - "doc": "" - }, - { - "name": "CheckPortIsUsingInNodeClusterResponse", - "code": "message CheckPortIsUsingInNodeClusterResponse {\n\tbool isUsing = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterDDoSProtectionRequest", - "code": "message UpdateNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n\tbytes ddosProtectionJSON = 2;\n}", - "doc": "修改集群的DDOS设置" - }, - { - "name": "FindEnabledNodeClusterDNSRequest", - "code": "message FindEnabledNodeClusterDNSRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的DNS配置" - }, - { - "name": "CheckNodeClusterDNSNameResponse", - "code": "message CheckNodeClusterDNSNameResponse {\n\tbool isUsed = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", - "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "查找使用某个WAF策略的所有集群" - }, - { - "name": "CountAllEnabledNodeClustersWithNodeGrantIdRequest", - "code": "message CountAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "计算使用某个认证的集群数量" - }, - { - "name": "CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", - "code": "message CountAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "计算使用某个缓存策略的集群数量" - }, - { - "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": "FindEnabledNodeClusterUAMPolicyRequest", - "code": "message FindEnabledNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取集群的UAM策略" - }, - { - "name": "FindNodeClusterDDoSProtectionResponse", - "code": "message FindNodeClusterDDoSProtectionResponse {\n\tbytes ddosProtectionJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindNodeClusterHealthCheckConfigResponse", - "code": "message FindNodeClusterHealthCheckConfigResponse {\n\tbytes healthCheckJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindNodeClusterHealthCheckConfigRequest", - "code": "message FindNodeClusterHealthCheckConfigRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的健康检查配置" - }, - { - "name": "UpdateNodeClusterHealthCheckRequest", - "code": "message UpdateNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n\tbytes healthCheckJSON = 2;\n}", - "doc": "修改集群健康检查设置" - }, - { - "name": "FindAllEnabledNodeClustersWithNodeGrantIdRequest", - "code": "message FindAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "查找使用某个认证的所有集群" - }, - { - "name": "FindNodeClusterDDoSProtectionRequest", - "code": "message FindNodeClusterDDoSProtectionRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "获取集群的DDoS设置" - }, - { - "name": "FindEnabledNodeClusterResponse", - "code": "message FindEnabledNodeClusterResponse {\n\tNodeCluster nodeCluster = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterHTTPFirewallPolicyIdRequest", - "code": "message UpdateNodeClusterHTTPFirewallPolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpFirewallPolicyId = 2;\n}", - "doc": "修改集群的WAF策略" - }, - { - "name": "FindEnabledNodeClusterUAMPolicyResponse", - "code": "message FindEnabledNodeClusterUAMPolicyResponse {\n\tbytes uamPolicyJSON = 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": "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": "CountAllEnabledNodeClustersWithDNSProviderIdRequest", - "code": "message CountAllEnabledNodeClustersWithDNSProviderIdRequest {\n\tint64 dnsProviderId = 1;\n}", - "doc": "计算使用某个DNS服务商的集群数量" - }, - { - "name": "FindEnabledNodeClusterTOAResponse", - "code": "message FindEnabledNodeClusterTOAResponse {\n\tbytes toaJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeClusterTOARequest", - "code": "message UpdateNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n\tbytes toaJSON = 2;\n}", - "doc": "修改集群的TOA设置" - }, - { - "name": "FindFreePortInNodeClusterRequest", - "code": "message FindFreePortInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\tstring protocolFamily = 2;\n}", - "doc": "获取集群中可以使用的端口" - }, - { - "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": "CheckNodeClusterDNSNameRequest", + "code": "message CheckNodeClusterDNSNameRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n}", + "doc": "检查集群域名是否已经被使用" }, { "name": "FindAllEnabledNodeClustersResponse", "code": "message FindAllEnabledNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", "doc": "" }, - { - "name": "UpdateNodeClusterUAMPolicyRequest", - "code": "message UpdateNodeClusterUAMPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes uamPolicyJSON = 2;\n}", - "doc": "设置集群的UAM策略" - }, - { - "name": "ListEnabledNodeClustersRequest", - "code": "message ListEnabledNodeClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tstring keyword = 3;\n}", - "doc": "列出单页集群" - }, { "name": "FindAllEnabledNodeClustersWithNodeGrantIdResponse", "code": "message FindAllEnabledNodeClustersWithNodeGrantIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", - "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 1;\n}", - "doc": "查找使用缓存策略的所有集群" - }, - { - "name": "FindAllEnabledNodeClustersRequest", - "code": "message FindAllEnabledNodeClustersRequest {\n\n}", - "doc": "获取所有集群的信息" - }, - { - "name": "CheckNodeClusterDNSChangesRequest", - "code": "message CheckNodeClusterDNSChangesRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "检查集群的DNS是否有变化" - }, - { - "name": "FindEnabledNodeClusterTOARequest", - "code": "message FindEnabledNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的TOA配置" - }, - { - "name": "FindEnabledNodeClusterWebPPolicyRequest", - "code": "message FindEnabledNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取集群WebP策略" - }, - { - "name": "ExecuteNodeClusterHealthCheckRequest", - "code": "message ExecuteNodeClusterHealthCheckRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "执行健康检查" - }, - { - "name": "CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", - "code": "message CountAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", - "doc": "计算使用某个WAF策略的集群数量" - }, - { - "name": "FindNodeClusterSystemServiceRequest", - "code": "message FindNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n}", - "doc": "查找集群的系统服务设置" - }, - { - "name": "FindEnabledNodeClusterRequest", - "code": "message FindEnabledNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找单个集群信息" - }, - { - "name": "FindAPINodesWithNodeClusterRequest", - "code": "message FindAPINodesWithNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查找集群的API节点信息" - }, - { - "name": "CountAllEnabledNodeClustersRequest", - "code": "message CountAllEnabledNodeClustersRequest {\n\tstring keyword = 1;\n}", - "doc": "计算所有集群数量" - }, - { - "name": "FindAllEnabledNodeClustersWithDNSDomainIdResponse", - "code": "message FindAllEnabledNodeClustersWithDNSDomainIdResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", - "doc": "" - }, - { - "name": "CreateNodeClusterResponse", - "code": "message CreateNodeClusterResponse {\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": "FindNodeClusterSystemServiceResponse", - "code": "message FindNodeClusterSystemServiceResponse {\n\tbytes paramsJSON = 1;\n}", + "name": "FindEnabledNodeClusterTOARequest", + "code": "message FindEnabledNodeClusterTOARequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查找集群的TOA配置" + }, + { + "name": "UpdateNodeClusterHTTPCachePolicyIdRequest", + "code": "message UpdateNodeClusterHTTPCachePolicyIdRequest {\n\tint64 nodeClusterId = 1;\n\tint64 httpCachePolicyId = 2;\n}", + "doc": "修改集群的缓存策略" + }, + { + "name": "CheckPortIsUsingInNodeClusterResponse", + "code": "message CheckPortIsUsingInNodeClusterResponse {\n\tbool isUsing = 1;\n}", "doc": "" }, { - "name": "FindEnabledNodeClusterConfigInfoRequest", - "code": "message FindEnabledNodeClusterConfigInfoRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得集群的配置概要信息" + "name": "FindAllEnabledNodeClustersWithNodeGrantIdRequest", + "code": "message FindAllEnabledNodeClustersWithNodeGrantIdRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "查找使用某个认证的所有集群" }, { - "name": "UpdateNodeClusterPinnedRequest", - "code": "message UpdateNodeClusterPinnedRequest {\n\tint64 nodeClusterId = 1;\n\tbool isPinned = 2;\n}", - "doc": "设置集群是否置顶" - }, - { - "name": "CountAllEnabledNodeClustersWithDNSDomainIdRequest", - "code": "message CountAllEnabledNodeClustersWithDNSDomainIdRequest {\n\tint64 dnsDomainId = 1;\n}", - "doc": "计算使用某个DNS域名的集群数量" - }, - { - "name": "FindLatestNodeClustersResponse", - "code": "message FindLatestNodeClustersResponse {\n\trepeated NodeCluster nodeClusters = 1;\n}", + "name": "FindEnabledNodeClusterTOAResponse", + "code": "message FindEnabledNodeClusterTOAResponse {\n\tbytes toaJSON = 1;\n}", "doc": "" }, { - "name": "UpdateNodeClusterWebPPolicyRequest", - "code": "message UpdateNodeClusterWebPPolicyRequest {\n\tint64 nodeClusterId = 1;\n\tbytes webpPolicyJSON = 2;\n}", - "doc": "设置集群WebP策略" + "name": "FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest", + "code": "message FindAllEnabledNodeClustersWithHTTPCachePolicyIdRequest {\n\tint64 httpCachePolicyId = 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}", + "name": "FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest", + "code": "message FindAllEnabledNodeClustersWithHTTPFirewallPolicyIdRequest {\n\tint64 httpFirewallPolicyId = 1;\n}", + "doc": "查找使用某个WAF策略的所有集群" + }, + { + "name": "CheckNodeClusterDNSNameResponse", + "code": "message CheckNodeClusterDNSNameResponse {\n\tbool isUsed = 1;\n}", "doc": "" }, { - "name": "CheckNodeClusterDNSNameRequest", - "code": "message CheckNodeClusterDNSNameRequest {\n\tint64 nodeClusterId = 1;\n\tstring dnsName = 2;\n}", - "doc": "检查集群域名是否已经被使用" + "name": "FindEnabledNodeClusterUAMPolicyResponse", + "code": "message FindEnabledNodeClusterUAMPolicyResponse {\n\tbytes uamPolicyJSON = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeClusterSystemServiceRequest", + "code": "message UpdateNodeClusterSystemServiceRequest {\n\tint64 nodeClusterId = 1;\n\tstring type = 2;\n\tbytes paramsJSON = 3;\n}", + "doc": "修改集群的系统服务设置" + }, + { + "name": "NodeClusterFirewallActionResponse", + "code": "message NodeClusterFirewallActionResponse {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "" }, { "name": "DeleteNodeClusterFirewallActionRequest", @@ -12305,30 +12451,25 @@ "doc": "删除动作" }, { - "name": "FindAllEnabledNodeClusterFirewallActionsResponse", - "code": "message FindAllEnabledNodeClusterFirewallActionsResponse {\n\trepeated NodeClusterFirewallAction nodeClusterFirewallActions = 1;\n}", - "doc": "" + "name": "CountAllEnabledNodeClusterFirewallActionsRequest", + "code": "message CountAllEnabledNodeClusterFirewallActionsRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算动作数量" + }, + { + "name": "FindEnabledNodeClusterFirewallActionRequest", + "code": "message FindEnabledNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", + "doc": "查询单个动作" }, { "name": "FindEnabledNodeClusterFirewallActionResponse", "code": "message FindEnabledNodeClusterFirewallActionResponse {\n\tNodeClusterFirewallAction nodeClusterFirewallAction = 1;\n}", "doc": "" }, - { - "name": "CountAllEnabledNodeClusterFirewallActionsRequest", - "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}", @@ -12340,20 +12481,10 @@ "doc": "查询集群的所有动作" }, { - "name": "FindEnabledNodeClusterFirewallActionRequest", - "code": "message FindEnabledNodeClusterFirewallActionRequest {\n\tint64 nodeClusterFirewallActionId = 1;\n}", - "doc": "查询单个动作" - }, - { - "name": "FindAllNodeClusterMetricItemsResponse", - "code": "message FindAllNodeClusterMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", + "name": "FindAllEnabledNodeClusterFirewallActionsResponse", + "code": "message FindAllEnabledNodeClusterFirewallActionsResponse {\n\trepeated NodeClusterFirewallAction nodeClusterFirewallActions = 1;\n}", "doc": "" }, - { - "name": "ExistsNodeClusterMetricItemRequest", - "code": "message ExistsNodeClusterMetricItemRequest {\n\tint64 nodeClusterId = 1;\n\tint64 metricItemId = 2;\n}", - "doc": "检查是否已添加某个指标" - }, { "name": "FindAllNodeClustersWithMetricItemIdRequest", "code": "message FindAllNodeClustersWithMetricItemIdRequest {\n\tint64 metricItemId = 1;\n}", @@ -12380,14 +12511,24 @@ "doc": "查找集群中所有指标" }, { - "name": "DisableNodeGrantResponse", - "code": "message DisableNodeGrantResponse {\n\n}", + "name": "FindAllNodeClusterMetricItemsResponse", + "code": "message FindAllNodeClusterMetricItemsResponse {\n\trepeated MetricItem metricItems = 1;\n}", "doc": "" }, { - "name": "FindEnabledNodeGrantRequest", - "code": "message FindEnabledNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "获取认证信息" + "name": "ExistsNodeClusterMetricItemRequest", + "code": "message ExistsNodeClusterMetricItemRequest {\n\tint64 nodeClusterId = 1;\n\tint64 metricItemId = 2;\n}", + "doc": "检查是否已添加某个指标" + }, + { + "name": "CreateNodeGrantRequest", + "code": "message CreateNodeGrantRequest {\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 8;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 9;\n}", + "doc": "创建节点认证" + }, + { + "name": "DisableNodeGrantRequest", + "code": "message DisableNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "禁用节点认证" }, { "name": "FindSuggestNodeGrantsRequest", @@ -12395,8 +12536,43 @@ "doc": "查找集群推荐的认证" }, { - "name": "FindEnabledNodeGrantResponse", - "code": "message FindEnabledNodeGrantResponse {\n\tNodeGrant nodeGrant = 1;\n}", + "name": "CreateNodeGrantResponse", + "code": "message CreateNodeGrantResponse {\n\tint64 nodeGrantId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateNodeGrantRequest", + "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": "ListEnabledNodeGrantsRequest", + "code": "message ListEnabledNodeGrantsRequest {\n\tstring keyword = 3;\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页认证" + }, + { + "name": "FindEnabledNodeGrantRequest", + "code": "message FindEnabledNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", + "doc": "获取认证信息" + }, + { + "name": "ListEnabledNodeGrantsResponse", + "code": "message ListEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledNodeGrantsResponse", + "code": "message FindAllEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\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": "" }, { @@ -12405,64 +12581,39 @@ "doc": "" }, { - "name": "CreateNodeGrantRequest", - "code": "message CreateNodeGrantRequest {\n\tstring name = 1;\n\tstring method = 2;\n\tstring username = 3;\n\tstring password = 4;\n\tstring privateKey = 5;\n\tstring passphrase = 8;\n\tstring description = 6;\n\tint64 nodeId = 7;\n\tbool su = 9;\n}", - "doc": "创建节点认证" - }, - { - "name": "UpdateNodeGrantRequest", - "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": "DisableNodeGrantRequest", - "code": "message DisableNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n}", - "doc": "禁用节点认证" - }, - { - "name": "FindAllEnabledNodeGrantsResponse", - "code": "message FindAllEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "name": "DisableNodeGrantResponse", + "code": "message DisableNodeGrantResponse {\n\n}", "doc": "" }, - { - "name": "CreateNodeGrantResponse", - "code": "message CreateNodeGrantResponse {\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": "FindAllEnabledNodeGrantsRequest", - "code": "message FindAllEnabledNodeGrantsRequest {\n\n}", - "doc": "获取所有认证信息" - }, - { - "name": "TestNodeGrantRequest", - "code": "message TestNodeGrantRequest {\n\tint64 nodeGrantId = 1;\n\tstring host = 2;\n\tint32 port = 3;\n}", - "doc": "测试连接" - }, { "name": "CountAllEnabledNodeGrantsRequest", "code": "message CountAllEnabledNodeGrantsRequest {\n\tstring keyword = 1;\n}", "doc": "计算节点认证数量" }, { - "name": "ListEnabledNodeGrantsResponse", - "code": "message ListEnabledNodeGrantsResponse {\n\trepeated NodeGrant nodeGrants = 1;\n}", + "name": "FindAllEnabledNodeGrantsRequest", + "code": "message FindAllEnabledNodeGrantsRequest {\n\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}", + "name": "CreateNodeGroupRequest", + "code": "message CreateNodeGroupRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n}", + "doc": "创建分组" + }, + { + "name": "CreateNodeGroupResponse", + "code": "message CreateNodeGroupResponse {\n\tint64 nodeGroupId = 1;\n}", "doc": "" }, { - "name": "UpdateNodeGroupOrdersRequest", - "code": "message UpdateNodeGroupOrdersRequest {\n\trepeated int64 nodeGroupIds = 1;\n}", - "doc": "修改分组排序" + "name": "FindAllEnabledNodeGroupsWithNodeClusterIdResponse", + "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdResponse {\n\trepeated NodeGroup nodeGroups = 1;\n}", + "doc": "" }, { "name": "FindEnabledNodeGroupRequest", @@ -12474,16 +12625,6 @@ "code": "message FindEnabledNodeGroupResponse {\n\tNodeGroup nodeGroup = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledNodeGroupsWithNodeClusterIdRequest", - "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "查询所有分组" - }, - { - "name": "CreateNodeGroupResponse", - "code": "message CreateNodeGroupResponse {\n\tint64 nodeGroupId = 1;\n}", - "doc": "" - }, { "name": "UpdateNodeGroupRequest", "code": "message UpdateNodeGroupRequest {\n\tint64 nodeGroupId = 1;\n\tstring name = 2;\n}", @@ -12495,34 +12636,29 @@ "doc": "删除分组" }, { - "name": "FindAllEnabledNodeGroupsWithNodeClusterIdResponse", - "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdResponse {\n\trepeated NodeGroup nodeGroups = 1;\n}", + "name": "FindAllEnabledNodeGroupsWithNodeClusterIdRequest", + "code": "message FindAllEnabledNodeGroupsWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "查询所有分组" + }, + { + "name": "UpdateNodeGroupOrdersRequest", + "code": "message UpdateNodeGroupOrdersRequest {\n\trepeated int64 nodeGroupIds = 1;\n}", + "doc": "修改分组排序" + }, + { + "name": "CreateNodeIPAddressesResponse", + "code": "message CreateNodeIPAddressesResponse {\n\trepeated int64 nodeIPAddressIds = 1;\n}", "doc": "" }, { - "name": "CreateNodeGroupRequest", - "code": "message CreateNodeGroupRequest {\n\tint64 nodeClusterId = 1;\n\tstring name = 2;\n}", - "doc": "创建分组" + "name": "DisableNodeIPAddressRequest", + "code": "message DisableNodeIPAddressRequest {\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": "FindAllEnabledNodeIPAddressesWithNodeIdRequest", - "code": "message FindAllEnabledNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\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": "FindEnabledNodeIPAddressResponse", + "code": "message FindEnabledNodeIPAddressResponse {\n\tNodeIPAddress nodeIPAddress = 1;\n}", + "doc": "" }, { "name": "FindAllEnabledNodeIPAddressesWithNodeIdResponse", @@ -12535,10 +12671,30 @@ "doc": "计算IP地址数量" }, { - "name": "ListEnabledNodeIPAddressesResponse", - "code": "message ListEnabledNodeIPAddressesResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", + "name": "UpdateNodeIPAddressIsUpRequest", + "code": "message UpdateNodeIPAddressIsUpRequest {\n\tint64 nodeIPAddressId = 1;\n\tbool isUp = 2;\n}", + "doc": "设置上下线状态" + }, + { + "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": "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": "DisableAllNodeIPAddressesWithNodeIdResponse", + "code": "message DisableAllNodeIPAddressesWithNodeIdResponse {\n\n}", "doc": "" }, + { + "name": "FindAllEnabledNodeIPAddressesWithNodeIdRequest", + "code": "message FindAllEnabledNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n}", + "doc": "查找节点的所有地址" + }, { "name": "CreateNodeIPAddressResponse", "code": "message CreateNodeIPAddressResponse {\n\tint64 nodeIPAddressId = 1;\n}", @@ -12549,55 +12705,40 @@ "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": "DisableNodeIPAddressResponse", "code": "message DisableNodeIPAddressResponse {\n\n}", "doc": "" }, + { + "name": "FindEnabledNodeIPAddressRequest", + "code": "message FindEnabledNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", + "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": "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": "RestoreNodeIPAddressBackupIPRequest", + "code": "message RestoreNodeIPAddressBackupIPRequest {\n\tint64 nodeIPAddressId = 1;\n}", + "doc": "还原备用IP状态" }, { "name": "UpdateNodeIPAddressNodeIdRequest", "code": "message UpdateNodeIPAddressNodeIdRequest {\n\tint64 nodeIPAddressId = 1;\n\tint64 nodeId = 2;\n}", "doc": "修改IP地址所属节点" }, - { - "name": "DisableAllNodeIPAddressesWithNodeIdResponse", - "code": "message DisableAllNodeIPAddressesWithNodeIdResponse {\n\n}", - "doc": "" - }, - { - "name": "FindEnabledNodeIPAddressResponse", - "code": "message FindEnabledNodeIPAddressResponse {\n\tNodeIPAddress nodeIPAddress = 1;\n}", - "doc": "" - }, - { - "name": "DisableNodeIPAddressRequest", - "code": "message DisableNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", - "doc": "禁用单个IP地址" - }, { "name": "DisableAllNodeIPAddressesWithNodeIdRequest", "code": "message DisableAllNodeIPAddressesWithNodeIdRequest {\n\tint64 nodeId = 1;\n\tstring role = 2;\n}", "doc": "禁用节点的所有IP地址" }, { - "name": "FindEnabledNodeIPAddressRequest", - "code": "message FindEnabledNodeIPAddressRequest {\n\tint64 nodeIPAddressId = 1;\n}", - "doc": "查找单个IP地址" + "name": "ListEnabledNodeIPAddressesResponse", + "code": "message ListEnabledNodeIPAddressesResponse {\n\trepeated NodeIPAddress nodeIPAddresses = 1;\n}", + "doc": "" }, { "name": "CountAllNodeIPAddressLogsRequest", @@ -12655,35 +12796,40 @@ "doc": "" }, { - "name": "ListNodeLogsResponse", - "code": "message ListNodeLogsResponse {\n\trepeated NodeLog nodeLogs = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNodeLogsReadRequest", - "code": "message UpdateNodeLogsReadRequest {\n\trepeated int64 nodeLogIds = 1;\n}", - "doc": "设置日志为已读" - }, - { - "name": "UpdateAllNodeLogsReadRequest", - "code": "message UpdateAllNodeLogsReadRequest {\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": "CreateNodeLogsRequest", + "code": "message CreateNodeLogsRequest {\n\trepeated NodeLog nodeLogs = 1;\n}", + "doc": "创建日志" }, { "name": "CreateNodeLogsResponse", "code": "message CreateNodeLogsResponse {\n\n}", "doc": "" }, + { + "name": "UpdateAllNodeLogsReadRequest", + "code": "message UpdateAllNodeLogsReadRequest {\n\n}", + "doc": "设置所有日志未已读" + }, + { + "name": "UpdateNodeLogsReadRequest", + "code": "message UpdateNodeLogsReadRequest {\n\trepeated int64 nodeLogIds = 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": "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": "ListNodeLogsResponse", + "code": "message ListNodeLogsResponse {\n\trepeated NodeLog nodeLogs = 1;\n}", + "doc": "" + }, { "name": "FixNodeLogsRequest", "code": "message FixNodeLogsRequest {\n\trepeated int64 nodeLogIds = 1;\n}", @@ -12695,9 +12841,9 @@ "doc": "设置所有日志为已修复" }, { - "name": "CreateNodeLogsRequest", - "code": "message CreateNodeLogsRequest {\n\trepeated NodeLog nodeLogs = 1;\n}", - "doc": "创建日志" + "name": "FindNodeLoginSuggestPortsResponse", + "code": "message FindNodeLoginSuggestPortsResponse {\n\trepeated int32 ports = 1;\n\trepeated int32 availablePorts = 2;\n}", + "doc": "" }, { "name": "FindNodeLoginSuggestPortsRequest", @@ -12705,8 +12851,18 @@ "doc": "读取建议的端口" }, { - "name": "FindNodeLoginSuggestPortsResponse", - "code": "message FindNodeLoginSuggestPortsResponse {\n\trepeated int32 ports = 1;\n\trepeated int32 availablePorts = 2;\n}", + "name": "FindAllAvailableNodePriceItemsRequest", + "code": "message FindAllAvailableNodePriceItemsRequest {\n\tstring type = 1;\n}", + "doc": "查找所有启用的区域价格" + }, + { + "name": "FindAllAvailableNodePriceItemsResponse", + "code": "message FindAllAvailableNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledNodePriceItemResponse", + "code": "message FindEnabledNodePriceItemResponse {\n\tNodePriceItem NodePriceItem = 1;\n}", "doc": "" }, { @@ -12714,6 +12870,21 @@ "code": "message CreateNodePriceItemRequest {\n\tstring name = 1;\n\tstring type = 2;\n\tint64 bitsFrom = 3;\n\tint64 bitsTo = 4;\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": "FindEnabledNodePriceItemRequest", + "code": "message FindEnabledNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\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}", @@ -12724,50 +12895,20 @@ "code": "message DeleteNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", "doc": "删除区域价格" }, - { - "name": "FindAllEnabledAndOnNodePriceItemsResponse", - "code": "message FindAllEnabledAndOnNodePriceItemsResponse {\n\trepeated NodePriceItem NodePriceItems = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNodePriceItemResponse", - "code": "message FindEnabledNodePriceItemResponse {\n\tNodePriceItem NodePriceItem = 1;\n}", - "doc": "" - }, - { - "name": "CreateNodePriceItemResponse", - "code": "message CreateNodePriceItemResponse {\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": "FindAllEnabledAndOnNodePriceItemsRequest", - "code": "message FindAllEnabledAndOnNodePriceItemsRequest {\n\tstring type = 1;\n}", - "doc": "查找所有启用的区域价格" - }, - { - "name": "FindEnabledNodePriceItemRequest", - "code": "message FindEnabledNodePriceItemRequest {\n\tint64 NodePriceItemId = 1;\n}", - "doc": "查找单个区域价格信息" - }, { "name": "FindEnabledNodeRegionResponse", "code": "message FindEnabledNodeRegionResponse {\n\tNodeRegion nodeRegion = 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": "CreateNodeRegionRequest", + "code": "message CreateNodeRegionRequest {\n\tstring name = 1;\n\tstring description = 2;\n}", + "doc": "创建区域" }, { "name": "FindAllEnabledNodeRegionsResponse", @@ -12775,14 +12916,24 @@ "doc": "" }, { - "name": "FindAllEnabledAndOnNodeRegionsRequest", - "code": "message FindAllEnabledAndOnNodeRegionsRequest {\n\n}", + "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": "FindAllEnabledAndOnNodeRegionsResponse", - "code": "message FindAllEnabledAndOnNodeRegionsResponse {\n\trepeated NodeRegion nodeRegions = 1;\n}", - "doc": "" + "name": "UpdateNodeRegionOrdersRequest", + "code": "message UpdateNodeRegionOrdersRequest {\n\trepeated int64 nodeRegionIds = 1;\n}", + "doc": "排序" }, { "name": "FindEnabledNodeRegionRequest", @@ -12794,81 +12945,46 @@ "code": "message UpdateNodeRegionPriceRequest {\n\tint64 nodeRegionId = 1;\n\tint64 nodeItemId = 2;\n\tfloat price = 3;\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": "DeleteNodeRegionRequest", "code": "message DeleteNodeRegionRequest {\n\tint64 nodeRegionId = 1;\n}", "doc": "删除区域" }, { - "name": "FindAllEnabledNodeRegionsRequest", - "code": "message FindAllEnabledNodeRegionsRequest {\n\n}", - "doc": "查找所有区域" - }, - { - "name": "UpdateNodeRegionOrdersRequest", - "code": "message UpdateNodeRegionOrdersRequest {\n\trepeated int64 nodeRegionIds = 1;\n}", - "doc": "排序" - }, - { - "name": "DeleteNodeTaskRequest", - "code": "message DeleteNodeTaskRequest {\n\tint64 nodeTaskId = 1;\n}", - "doc": "删除任务" + "name": "ExistsNodeTasksRequest", + "code": "message ExistsNodeTasksRequest {\n\trepeated string excludeTypes = 1;\n}", + "doc": "检查是否有正在执行的任务" }, { "name": "CountDoingNodeTasksRequest", "code": "message CountDoingNodeTasksRequest {\n\n}", "doc": "计算正在执行的任务数量" }, - { - "name": "FindNodeTasksRequest", - "code": "message FindNodeTasksRequest {\n\n}", - "doc": "获取单节点同步任务" - }, - { - "name": "ExistsNodeTasksResponse", - "code": "message ExistsNodeTasksResponse {\n\tbool existTasks = 1;\n\tbool existError = 2;\n}", - "doc": "" - }, { "name": "FindNotifyingNodeTasksResponse", "code": "message FindNotifyingNodeTasksResponse {\n\trepeated NodeTask nodeTasks = 1;\n}", "doc": "" }, { - "name": "ReportNodeTaskDoneRequest", - "code": "message ReportNodeTaskDoneRequest {\n\tint64 nodeTaskId = 1;\n\tbool isOk = 2;\n\tstring error = 3;\n}", - "doc": "报告同步任务结果" + "name": "UpdateNodeTasksNotifiedRequest", + "code": "message UpdateNodeTasksNotifiedRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", + "doc": "设置任务已通知" }, { "name": "FindNodeClusterTasksRequest", "code": "message FindNodeClusterTasksRequest {\n\n}", "doc": "获取所有正在同步的集群信息" }, - { - "name": "DeleteNodeTasksRequest", - "code": "message DeleteNodeTasksRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", - "doc": "批量删除任务" - }, - { - "name": "FindNotifyingNodeTasksRequest", - "code": "message FindNotifyingNodeTasksRequest {\n\tint64 size = 1;\n}", - "doc": "查找需要通知的任务" - }, - { - "name": "UpdateNodeTasksNotifiedRequest", - "code": "message UpdateNodeTasksNotifiedRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", - "doc": "设置任务已通知" - }, { "name": "FindNodeClusterTasksResponse", "code": "message FindNodeClusterTasksResponse {\n\trepeated ClusterTask clusterTasks = 1;\n}", @@ -12879,31 +12995,41 @@ "code": "message ClusterTask {\n\tint64 clusterId = 1;\n\tstring clusterName = 2;\n\trepeated NodeTask nodeTasks = 3;\n}", "doc": "" }, + { + "name": "DeleteNodeTaskRequest", + "code": "message DeleteNodeTaskRequest {\n\tint64 nodeTaskId = 1;\n}", + "doc": "删除任务" + }, + { + "name": "FindNotifyingNodeTasksRequest", + "code": "message FindNotifyingNodeTasksRequest {\n\tint64 size = 1;\n}", + "doc": "查找需要通知的任务" + }, + { + "name": "FindNodeTasksRequest", + "code": "message FindNodeTasksRequest {\n\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": "ReportNodeTaskDoneRequest", + "code": "message ReportNodeTaskDoneRequest {\n\tint64 nodeTaskId = 1;\n\tbool isOk = 2;\n\tstring error = 3;\n}", + "doc": "报告同步任务结果" }, { - "name": "CountAllEnabledNodeThresholdsRequest", - "code": "message CountAllEnabledNodeThresholdsRequest {\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": "FindEnabledNodeThresholdResponse", - "code": "message FindEnabledNodeThresholdResponse {\n\tNodeThreshold nodeThreshold = 1;\n}", + "name": "ExistsNodeTasksResponse", + "code": "message ExistsNodeTasksResponse {\n\tbool existTasks = 1;\n\tbool existError = 2;\n}", "doc": "" }, + { + "name": "DeleteNodeTasksRequest", + "code": "message DeleteNodeTasksRequest {\n\trepeated int64 nodeTaskIds = 1;\n}", + "doc": "批量删除任务" + }, { "name": "DeleteNodeThresholdRequest", "code": "message DeleteNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n}", @@ -12915,8 +13041,13 @@ "doc": "查询阈值" }, { - "name": "FindAllEnabledNodeThresholdsResponse", - "code": "message FindAllEnabledNodeThresholdsResponse {\n\trepeated NodeThreshold nodeThresholds = 1;\n}", + "name": "FindEnabledNodeThresholdRequest", + "code": "message FindEnabledNodeThresholdRequest {\n\tint64 nodeThresholdId = 1;\n}", + "doc": "查询单个阈值详情" + }, + { + "name": "FindEnabledNodeThresholdResponse", + "code": "message FindEnabledNodeThresholdResponse {\n\tNodeThreshold nodeThreshold = 1;\n}", "doc": "" }, { @@ -12934,6 +13065,26 @@ "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": "FindAllEnabledNodeThresholdsResponse", + "code": "message FindAllEnabledNodeThresholdsResponse {\n\trepeated NodeThreshold nodeThresholds = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledNodeThresholdsRequest", + "code": "message CountAllEnabledNodeThresholdsRequest {\n\tstring role = 1;\n\tint64 nodeClusterId = 2;\n\tint64 nodeId = 3;\n}", + "doc": "计算阈值数量" + }, + { + "name": "ListNodeValuesResponse", + "code": "message ListNodeValuesResponse {\n\trepeated NodeValue nodeValues = 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}", @@ -12949,16 +13100,6 @@ "code": "message ListNodeValuesRequest {\n\tstring role = 1;\n\tint64 nodeId = 2;\n\tstring item = 3;\n\n\tstring range = 10;\n}", "doc": "读取数据" }, - { - "name": "ListNodeValuesResponse", - "code": "message ListNodeValuesResponse {\n\trepeated NodeValue nodeValues = 1;\n}", - "doc": "" - }, - { - "name": "SumAllNodeValueStatsRequest", - "code": "message SumAllNodeValueStatsRequest {\n\n}", - "doc": "读取所有节点的最新数据" - }, { "name": "ComposeNSBoardRequest", "code": "message ComposeNSBoardRequest {\n\n}", @@ -12969,6 +13110,21 @@ "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": "CreateNSAccessLogsResponse", + "code": "message CreateNSAccessLogsResponse {\n\n}", + "doc": "" + }, + { + "name": "ListNSAccessLogsRequest", + "code": "message ListNSAccessLogsRequest {\n\tstring requestId = 1; // 上一页请求ID,可选\n\tint64 nsClusterId = 9; // 集群\n\tint64 nsNodeId = 2; // 节点ID\n\tint64 nsDomainId = 3; // 域名ID\n\tint64 nsRecordId = 4; // 记录ID\n\tint64 size = 5; // 单页条数\n\tstring day = 6; // 日期,格式YYYYMMDD\n\tbool reverse = 7; // 是否反向查找,可选\n\tstring keyword = 8; // 关键词\n\tstring recordType = 10; // 记录类型\n}", + "doc": "列出往前的单页访问日志" + }, + { + "name": "ListNSAccessLogsResponse", + "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}", @@ -12984,135 +13140,100 @@ "code": "message CreateNSAccessLogsRequest {\n\trepeated NSAccessLog nsAccessLogs = 1;\n}", "doc": "创建访问日志" }, - { - "name": "CreateNSAccessLogsResponse", - "code": "message CreateNSAccessLogsResponse {\n\n}", - "doc": "" - }, - { - "name": "ListNSAccessLogsRequest", - "code": "message ListNSAccessLogsRequest {\n\tstring requestId = 1; // 上一页请求ID,可选\n\tint64 nsClusterId = 9; // 集群\n\tint64 nsNodeId = 2; // 节点ID\n\tint64 nsDomainId = 3; // 域名ID\n\tint64 nsRecordId = 4; // 记录ID\n\tint64 size = 5; // 单页条数\n\tstring day = 6; // 日期,格式YYYYMMDD\n\tbool reverse = 7; // 是否反向查找,可选\n\tstring keyword = 8; // 关键词\n\tstring recordType = 10; // 记录类型\n}", - "doc": "列出往前的单页访问日志" - }, - { - "name": "ListNSAccessLogsResponse", - "code": "message ListNSAccessLogsResponse {\n\trepeated NSAccessLog nsAccessLogs = 1;\n\tstring requestId = 2;\n\tbool hasMore = 3;\n}", - "doc": "" - }, - { - "name": "CreateNSClusterResponse", - "code": "message CreateNSClusterResponse {\n\tint64 nsClusterId = 1;\n}", - "doc": "" - }, { "name": "DeleteNSCluster", "code": "message DeleteNSCluster {\n\tint64 nsClusterId = 1;\n}", "doc": "删除集群" }, { - "name": "FindAllEnabledNSClustersRequest", - "code": "message FindAllEnabledNSClustersRequest {\n\n}", - "doc": "查找所有可用集群" - }, - { - "name": "FindAllEnabledNSClustersResponse", - "code": "message FindAllEnabledNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", + "name": "FindNSClusterResponse", + "code": "message FindNSClusterResponse {\n\tNSCluster nsCluster = 1;\n}", "doc": "" }, { - "name": "FindNSClusterRecursionConfigRequest", - "code": "message FindNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "读取递归DNS配置" - }, - { - "name": "FindNSClusterRecursionConfigResponse", - "code": "message FindNSClusterRecursionConfigResponse {\n\tbytes recursionJSON = 1;\n}", + "name": "FindAllNSClustersResponse", + "code": "message FindAllNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", "doc": "" }, - { - "name": "FindNSClusterTLSConfigRequest", - "code": "message FindNSClusterTLSConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群的TLS设置" - }, - { - "name": "UpdateNSClusterTCPRequest", - "code": "message UpdateNSClusterTCPRequest {\n\tint64 nsClusterId = 1;\n\tbytes tcpJSON = 2;\n}", - "doc": "修改集群的TCP设置" - }, - { - "name": "FindNSClusterAccessLogRequest", - "code": "message FindNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群访问日志配置" - }, - { - "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": "FindEnabledNSClusterRequest", - "code": "message FindEnabledNSClusterRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找单个可用集群信息" - }, - { - "name": "ListEnabledNSClustersResponse", - "code": "message ListEnabledNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", - "doc": "" - }, - { - "name": "FindNSClusterTCPConfigRequest", - "code": "message FindNSClusterTCPConfigRequest {\n\tint64 nsClusterId = 1;\n}", - "doc": "查找集群的TCP设置" - }, - { - "name": "FindNSClusterUDPConfigResponse", - "code": "message FindNSClusterUDPConfigResponse {\n\tbytes udpJSON = 1;\n}", - "doc": "" - }, - { - "name": "UpdateNSClusterTLSRequest", - "code": "message UpdateNSClusterTLSRequest {\n\tint64 nsClusterId = 1;\n\tbytes tlsJSON = 2;\n}", - "doc": "修改集群的TLS设置" - }, - { - "name": "UpdateNSClusterUDPRequest", - "code": "message UpdateNSClusterUDPRequest {\n\tint64 nsClusterId = 1;\n\tbytes udpJSON = 2;\n}", - "doc": "修改集群的UDP设置" - }, - { - "name": "FindEnabledNSClusterResponse", - "code": "message FindEnabledNSClusterResponse {\n\tNSCluster nsCluster = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledNSClustersRequest", - "code": "message ListEnabledNSClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", - "doc": "列出单页可用集群" - }, { "name": "UpdateNSClusterRecursionConfigRequest", "code": "message UpdateNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n\tbytes recursionJSON = 2;\n}", "doc": "设置递归DNS配置" }, + { + "name": "FindNSClusterRecursionConfigResponse", + "code": "message FindNSClusterRecursionConfigResponse {\n\tbytes recursionJSON = 1;\n}", + "doc": "" + }, { "name": "FindNSClusterTLSConfigResponse", "code": "message FindNSClusterTLSConfigResponse {\n\tbytes tlsJSON = 1;\n}", "doc": "" }, + { + "name": "FindNSClusterAccessLogRequest", + "code": "message FindNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群访问日志配置" + }, + { + "name": "UpdateNSClusterAccessLogRequest", + "code": "message UpdateNSClusterAccessLogRequest {\n\tint64 nsClusterId = 1;\n\tbytes accessLogJSON = 2;\n}", + "doc": "修改集群访问日志配置" + }, + { + "name": "FindNSClusterUDPConfigResponse", + "code": "message FindNSClusterUDPConfigResponse {\n\tbytes udpJSON = 1;\n}", + "doc": "" + }, + { + "name": "CountAllNSClustersWithSSLCertIdRequest", + "code": "message CountAllNSClustersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的集群数量" + }, + { + "name": "ListNSClustersResponse", + "code": "message ListNSClustersResponse {\n\trepeated NSCluster nsClusters = 1;\n}", + "doc": "" + }, + { + "name": "FindAllNSClustersRequest", + "code": "message FindAllNSClustersRequest {\n\n}", + "doc": "查找所有可用集群" + }, + { + "name": "FindNSClusterTCPConfigRequest", + "code": "message FindNSClusterTCPConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群的TCP设置" + }, + { + "name": "FindNSClusterTLSConfigRequest", + "code": "message FindNSClusterTLSConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找集群的TLS设置" + }, + { + "name": "CreateNSClusterRequest", + "code": "message CreateNSClusterRequest {\n\tstring name = 1;\n\tbytes accessLogJSON = 2;\n}", + "doc": "创建集群" + }, + { + "name": "ListNSClustersRequest", + "code": "message ListNSClustersRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页可用集群" + }, { "name": "FindNSClusterUDPConfigRequest", "code": "message FindNSClusterUDPConfigRequest {\n\tint64 nsClusterId = 1;\n}", "doc": "查找集群的UDP设置" }, { - "name": "CreateNSClusterRequest", - "code": "message CreateNSClusterRequest {\n\tstring name = 1;\n\tbytes accessLogJSON = 2;\n}", - "doc": "创建集群" + "name": "UpdateNSClusterTCPRequest", + "code": "message UpdateNSClusterTCPRequest {\n\tint64 nsClusterId = 1;\n\tbytes tcpJSON = 2;\n}", + "doc": "修改集群的TCP设置" + }, + { + "name": "UpdateNSClusterTLSRequest", + "code": "message UpdateNSClusterTLSRequest {\n\tint64 nsClusterId = 1;\n\tbytes tlsJSON = 2;\n}", + "doc": "修改集群的TLS设置" }, { "name": "UpdateNSClusterRequest", @@ -13125,38 +13246,33 @@ "doc": "" }, { - "name": "CountAllNSClustersWithSSLCertIdRequest", - "code": "message CountAllNSClustersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的集群数量" + "name": "FindNSClusterRequest", + "code": "message FindNSClusterRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "查找单个可用集群信息" }, { - "name": "UpdateNSDomainRequest", - "code": "message UpdateNSDomainRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsClusterId = 2;\n\tint64 userId = 3;\n\tbool isOn = 4;\n}", - "doc": "修改域名\n注意:名称不能修改" + "name": "FindNSClusterRecursionConfigRequest", + "code": "message FindNSClusterRecursionConfigRequest {\n\tint64 nsClusterId = 1;\n}", + "doc": "读取递归DNS配置" }, { - "name": "DeleteNSDomainRequest", - "code": "message DeleteNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "删除域名" + "name": "UpdateNSClusterUDPRequest", + "code": "message UpdateNSClusterUDPRequest {\n\tint64 nsClusterId = 1;\n\tbytes udpJSON = 2;\n}", + "doc": "修改集群的UDP设置" }, { - "name": "CreateNSDomainRequest", - "code": "message CreateNSDomainRequest {\n\tint64 nsClusterId = 1;\n\tint64 userId = 2;\n\tstring name = 3;\n}", - "doc": "创建域名" - }, - { - "name": "ListEnabledNSDomainsResponse", - "code": "message ListEnabledNSDomainsResponse {\n\trepeated NSDomain nsDomains = 1;\n}", + "name": "CreateNSClusterResponse", + "code": "message CreateNSClusterResponse {\n\tint64 nsClusterId = 1;\n}", "doc": "" }, { - "name": "ListNSDomainsAfterVersionResponse", - "code": "message ListNSDomainsAfterVersionResponse {\n\trepeated NSDomain nsDomains = 1;\n}", + "name": "FindNSClusterAccessLogResponse", + "code": "message FindNSClusterAccessLogResponse {\n\tbytes AccessLogJSON = 1;\n}", "doc": "" }, { - "name": "FindEnabledNSDomainTSIGResponse", - "code": "message FindEnabledNSDomainTSIGResponse {\n\tbytes tsigJSON = 1;\n}", + "name": "ListNSDomainsResponse", + "code": "message ListNSDomainsResponse {\n\trepeated NSDomain nsDomains = 1;\n}", "doc": "" }, { @@ -13165,13 +13281,58 @@ "doc": "修改TSIG配置" }, { - "name": "CreateNSDomainResponse", - "code": "message CreateNSDomainResponse {\n\tint64 nsDomainId = 1;\n}", + "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": "FindNSDomainRequest", + "code": "message FindNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "查找单个域名" + }, + { + "name": "ExistNSDomainsResponse", + "code": "message ExistNSDomainsResponse {\n\trepeated string existingNames = 1;\n}", "doc": "" }, { - "name": "CountAllEnabledNSDomainsRequest", - "code": "message CountAllEnabledNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n}", + "name": "CreateNSDomainsResponse", + "code": "message CreateNSDomainsResponse {\n\trepeated int64 nsDomainIds = 1;\n}", + "doc": "" + }, + { + "name": "ExistNSDomainsRequest", + "code": "message ExistNSDomainsRequest {\n\trepeated string names = 1;\n\tint64 userId = 2;\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": "FindNSDomainTSIGResponse", + "code": "message FindNSDomainTSIGResponse {\n\tbytes tsigJSON = 1;\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": "DeleteNSDomainRequest", + "code": "message DeleteNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "删除域名" + }, + { + "name": "FindNSDomainResponse", + "code": "message FindNSDomainResponse {\n\tNSDomain nsDomain = 1;\n}", + "doc": "" + }, + { + "name": "CountAllNSDomainsRequest", + "code": "message CountAllNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 nsDomainGroupId = 4;\n}", "doc": "计算域名数量" }, { @@ -13180,24 +13341,89 @@ "doc": "根据版本列出一组域名" }, { - "name": "FindEnabledNSDomainTSIGRequest", - "code": "message FindEnabledNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "查找TSIG配置" - }, - { - "name": "FindEnabledNSDomainRequest", - "code": "message FindEnabledNSDomainRequest {\n\tint64 nsDomainId = 1;\n}", - "doc": "查找单个域名" - }, - { - "name": "FindEnabledNSDomainResponse", - "code": "message FindEnabledNSDomainResponse {\n\tNSDomain nsDomain = 1;\n}", + "name": "ListNSDomainsAfterVersionResponse", + "code": "message ListNSDomainsAfterVersionResponse {\n\trepeated NSDomain nsDomains = 1;\n}", "doc": "" }, { - "name": "ListEnabledNSDomainsRequest", - "code": "message ListEnabledNSDomainsRequest {\n\tint64 userId = 1;\n\tint64 nsClusterId = 2;\n\tstring keyword = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页域名" + "name": "CreateNSDomainResponse", + "code": "message CreateNSDomainResponse {\n\tint64 nsDomainId = 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": "FindNSDomainTSIGRequest", + "code": "message FindNSDomainTSIGRequest {\n\tint64 nsDomainId = 1;\n}", + "doc": "查找TSIG配置" + }, + { + "name": "CreateNSDomainGroupRequest", + "code": "message CreateNSDomainGroupRequest {\n\tstring name = 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": "CountAllAvailableNSDomainGroupsRequest", + "code": "message CountAllAvailableNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", + "doc": "查询可用分组数量" + }, + { + "name": "FindAllAvailableNSDomainGroupsRequest", + "code": "message FindAllAvailableNSDomainGroupsRequest {\n\tint64 userId = 1;\n}", + "doc": "查询所有启用分组" + }, + { + "name": "FindNSDomainGroupResponse", + "code": "message FindNSDomainGroupResponse {\n\tNSDomainGroup nsDomainGroup = 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": "FindAllNSDomainGroupsResponse", + "code": "message FindAllNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", + "doc": "" + }, + { + "name": "FindAllAvailableNSDomainGroupsResponse", + "code": "message FindAllAvailableNSDomainGroupsResponse {\n\trepeated NSDomainGroup nsDomainGroups = 1;\n}", + "doc": "" + }, + { + "name": "FindNSDomainGroupRequest", + "code": "message FindNSDomainGroupRequest {\n\tint64 nsDomainGroupId = 1;\n}", + "doc": "查找单个分组" + }, + { + "name": "ListNSKeysAfterVersionRequest", + "code": "message ListNSKeysAfterVersionRequest {\n\tint64 version = 1;\n\tint64 size = 2;\n}", + "doc": "根据版本列出一组密钥" + }, + { + "name": "CreateNSKeyRequest", + "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": "UpdateNSKeyRequest", @@ -13210,19 +13436,24 @@ "doc": "删除密钥" }, { - "name": "CountAllEnabledNSKeysRequest", - "code": "message CountAllEnabledNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n}", - "doc": "计算密钥数量" + "name": "FindNSKeyRequest", + "code": "message FindNSKeyRequest {\n\tint64 nsKeyId = 1;\n}", + "doc": "查找单个密钥" }, { - "name": "ListEnabledNSKeysResponse", - "code": "message ListEnabledNSKeysResponse {\n\trepeated NSKey nsKeys = 1;\n}", + "name": "FindNSKeyResponse", + "code": "message FindNSKeyResponse {\n\tNSKey nsKey = 1;\n}", "doc": "" }, { - "name": "CreateNSKeyRequest", - "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": "ListNSKeysRequest", + "code": "message ListNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "列出单页密钥" + }, + { + "name": "ListNSKeysResponse", + "code": "message ListNSKeysResponse {\n\trepeated NSKey nsKeys = 1;\n}", + "doc": "" }, { "name": "CreateNSKeyResponse", @@ -13230,24 +13461,9 @@ "doc": "" }, { - "name": "FindEnabledNSKeyRequest", - "code": "message FindEnabledNSKeyRequest {\n\tint64 nsKeyId = 1;\n}", - "doc": "查找单个密钥" - }, - { - "name": "FindEnabledNSKeyResponse", - "code": "message FindEnabledNSKeyResponse {\n\tNSKey nsKey = 1;\n}", - "doc": "" - }, - { - "name": "ListEnabledNSKeysRequest", - "code": "message ListEnabledNSKeysRequest {\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": "CountAllNSKeysRequest", + "code": "message CountAllNSKeysRequest {\n\tint64 nsDomainId = 1;\n\tint64 nsZoneId = 2;\n}", + "doc": "计算密钥数量" }, { "name": "ListNSKeysAfterVersionResponse", @@ -13255,40 +13471,15 @@ "doc": "" }, { - "name": "CreateNSNodeRequest", - "code": "message CreateNSNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n}", - "doc": "创建节点" + "name": "CheckNSNodeLatestVersionRequest", + "code": "message CheckNSNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", + "doc": "检查新版本" }, { - "name": "CreateNSNodeResponse", - "code": "message CreateNSNodeResponse {\n\tint64 nsNodeId = 1;\n}", + "name": "CheckNSNodeLatestVersionResponse", + "code": "message CheckNSNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", "doc": "" }, - { - "name": "FindCurrentNSNodeConfigResponse", - "code": "message FindCurrentNSNodeConfigResponse {\n\tbytes nsNodeJSON = 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": "DeleteNSNodeRequest", - "code": "message DeleteNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "删除节点" - }, - { - "name": "InstallNSNodeRequest", - "code": "message InstallNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "安装节点" - }, - { - "name": "UpdateNSNodeIsInstalledRequest", - "code": "message UpdateNSNodeIsInstalledRequest {\n\tint64 nsNodeId = 1;\n\tbool isInstalled = 2;\n}", - "doc": "修改节点安装状态" - }, { "name": "StopNSNodeResponse", "code": "message StopNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", @@ -13300,68 +13491,123 @@ "doc": "计算需要升级的节点数量" }, { - "name": "FindEnabledNSNodeRequest", - "code": "message FindEnabledNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "获取单个节点信息" - }, - { - "name": "InstallNSNodeResponse", - "code": "message InstallNSNodeResponse {\n\n}", + "name": "ListNSNodesMatchResponse", + "code": "message ListNSNodesMatchResponse {\n\trepeated NSNode nsNodes = 1;\n}", "doc": "" }, { - "name": "FindEnabledNSNodeResponse", - "code": "message FindEnabledNSNodeResponse {\n\tNSNode nsNode = 1;\n}", + "name": "UpdateNSNodeIsInstalledRequest", + "code": "message UpdateNSNodeIsInstalledRequest {\n\tint64 nsNodeId = 1;\n\tbool isInstalled = 2;\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": "InstallNSNodeRequest", + "code": "message InstallNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "安装节点" + }, + { + "name": "DownloadNSNodeInstallationFileRequest", + "code": "message DownloadNSNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", + "doc": "下载最新DNS节点安装文件" + }, + { + "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": "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": "UpdateNSNodeConnectedAPINodesRequest", - "code": "message UpdateNSNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", - "doc": "更改节点连接的API节点信息" + "name": "FindNSNodeInstallStatusRequest", + "code": "message FindNSNodeInstallStatusRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "读取节点安装状态" }, { - "name": "FindAllEnabledNSNodesWithNSClusterIdResponse", - "code": "message FindAllEnabledNSNodesWithNSClusterIdResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "name": "FindCurrentNSNodeConfigResponse", + "code": "message FindCurrentNSNodeConfigResponse {\n\tbytes nsNodeJSON = 1;\n}", "doc": "" }, - { - "name": "ListEnabledNSNodesMatchRequest", - "code": "message ListEnabledNSNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nsClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\t//int64 nodeGroupId = 7;\n\t//int64 nodeRegionId = 8;\n}", - "doc": "列出单页节点" - }, - { - "name": "FindCurrentNSNodeConfigRequest", - "code": "message FindCurrentNSNodeConfigRequest {\n\n}", - "doc": "获取当前节点信息" - }, - { - "name": "StartNSNodeResponse", - "code": "message StartNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", - "doc": "" - }, - { - "name": "StopNSNodeRequest", - "code": "message StopNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "停止节点" - }, - { - "name": "UpdateNSNodeStatusRequest", - "code": "message UpdateNSNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", - "doc": "更新节点状态" - }, { "name": "NSNodeStreamMessage", "code": "message NSNodeStreamMessage {\n\tint64 nsNodeId = 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": "ListEnabledNSNodesMatchResponse", - "code": "message ListEnabledNSNodesMatchResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "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": "FindNSNodeRequest", + "code": "message FindNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "获取单个节点信息" + }, + { + "name": "UpdateNSNodeStatusRequest", + "code": "message UpdateNSNodeStatusRequest {\n\tint64 nodeId = 1;\n\tbytes statusJSON = 2;\n}", + "doc": "更新节点状态" + }, + { + "name": "ListNSNodesMatchRequest", + "code": "message ListNSNodesMatchRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n\tint64 nsClusterId = 3;\n\tint32 installState = 4;\n\tint32 activeState = 5;\n\tstring keyword = 6;\n\t//int64 nodeGroupId = 7;\n\t//int64 nodeRegionId = 8;\n}", + "doc": "列出单页节点" + }, + { + "name": "UpdateNSNodeConnectedAPINodesRequest", + "code": "message UpdateNSNodeConnectedAPINodesRequest {\n\trepeated int64 apiNodeIds = 1;\n}", + "doc": "更改节点连接的API节点信息" + }, + { + "name": "CreateNSNodeRequest", + "code": "message CreateNSNodeRequest {\n\tstring name = 1;\n\tint64 nodeClusterId = 2;\n\tNodeLogin nodeLogin = 3;\n}", + "doc": "创建节点" + }, + { + "name": "CountAllNSNodesRequest", + "code": "message CountAllNSNodesRequest {\n\n}", + "doc": "所有可用的节点数量" + }, + { + "name": "CreateNSNodeResponse", + "code": "message CreateNSNodeResponse {\n\tint64 nsNodeId = 1;\n}", + "doc": "" + }, + { + "name": "DeleteNSNodeRequest", + "code": "message DeleteNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "删除节点" + }, + { + "name": "StartNSNodeResponse", + "code": "message StartNSNodeResponse {\n\tbool isOk = 1;\n\tstring error = 2;\n}", + "doc": "" + }, + { + "name": "FindAllNSNodesWithNSClusterIdResponse", + "code": "message FindAllNSNodesWithNSClusterIdResponse {\n\trepeated NSNode nsNodes = 1;\n}", + "doc": "" + }, + { + "name": "InstallNSNodeResponse", + "code": "message InstallNSNodeResponse {\n\n}", "doc": "" }, { @@ -13370,49 +13616,24 @@ "doc": "" }, { - "name": "CheckNSNodeLatestVersionRequest", - "code": "message CheckNSNodeLatestVersionRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tstring currentVersion = 3;\n}", - "doc": "检查新版本" + "name": "FindCurrentNSNodeConfigRequest", + "code": "message FindCurrentNSNodeConfigRequest {\n\n}", + "doc": "获取当前节点信息" }, { - "name": "UpdateNSNodeLoginRequest", - "code": "message UpdateNSNodeLoginRequest {\n\tint64 nsNodeId = 1;\n\tNodeLogin nodeLogin = 2;\n}", - "doc": "修改节点登录信息" + "name": "StopNSNodeRequest", + "code": "message StopNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", + "doc": "停止节点" }, { - "name": "DownloadNSNodeInstallationFileRequest", - "code": "message DownloadNSNodeInstallationFileRequest {\n\tstring os = 1;\n\tstring arch = 2;\n\tint64 chunkOffset = 3;\n}", - "doc": "下载最新DNS节点安装文件" - }, - { - "name": "StartNSNodeRequest", - "code": "message StartNSNodeRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "启动节点" - }, - { - "name": "FindAllEnabledNSNodesWithNSClusterIdRequest", - "code": "message FindAllEnabledNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", + "name": "FindAllNSNodesWithNSClusterIdRequest", + "code": "message FindAllNSNodesWithNSClusterIdRequest {\n\tint64 nsClusterId = 1;\n}", "doc": "根据集群查找所有节点" }, { - "name": "CountAllEnabledNSNodesRequest", - "code": "message CountAllEnabledNSNodesRequest {\n\n}", - "doc": "所有可用的节点数量" - }, - { - "name": "CountAllEnabledNSNodesMatchRequest", - "code": "message CountAllEnabledNSNodesMatchRequest {\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": "FindNSNodeInstallStatusRequest", - "code": "message FindNSNodeInstallStatusRequest {\n\tint64 nsNodeId = 1;\n}", - "doc": "读取节点安装状态" - }, - { - "name": "CheckNSNodeLatestVersionResponse", - "code": "message CheckNSNodeLatestVersionResponse {\n\tbool hasNewVersion = 1;\n\tstring newVersion = 2;\n}", - "doc": "" + "name": "DeleteNSQuestionOptionRequest", + "code": "message DeleteNSQuestionOptionRequest {\n\tint64 nsQuestionOptionId = 1;\n}", + "doc": "删除选项" }, { "name": "CreateNSQuestionOptionRequest", @@ -13435,33 +13656,8 @@ "doc": "" }, { - "name": "DeleteNSQuestionOptionRequest", - "code": "message DeleteNSQuestionOptionRequest {\n\tint64 nsQuestionOptionId = 1;\n}", - "doc": "删除选项" - }, - { - "name": "ListNSRecordsAfterVersionResponse", - "code": "message ListNSRecordsAfterVersionResponse {\n\trepeated NSRecord nsRecords = 1;\n}", - "doc": "" - }, - { - "name": "CreateNSRecordResponse", - "code": "message CreateNSRecordResponse {\n\tint64 nsRecordId = 1;\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": "ListEnabledNSRecordsRequest", - "code": "message ListEnabledNSRecordsRequest {\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": "FindEnabledNSRecordRequest", - "code": "message FindEnabledNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", + "name": "FindNSRecordRequest", + "code": "message FindNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", "doc": "查询单个记录信息" }, { @@ -13469,56 +13665,66 @@ "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": "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": "CreateNSRecordsResponse", + "code": "message CreateNSRecordsResponse {\n\trepeated int64 nsRecordIds = 1;\n}", + "doc": "" + }, + { + "name": "ListNSRecordsResponse", + "code": "message ListNSRecordsResponse {\n\trepeated NSRecord nsRecords = 1;\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": "CreateNSRecordsRequest", + "code": "message CreateNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring description = 2;\n\trepeated string names = 3;\n\tstring type = 4;\n\tstring value = 5;\n\tint32 ttl = 6;\n\trepeated string nsRouteCodes = 7; // 路线代号\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": "DeleteNSRecordRequest", "code": "message DeleteNSRecordRequest {\n\tint64 nsRecordId = 1;\n}", "doc": "删除记录" }, { - "name": "CountAllEnabledNSRecordsRequest", - "code": "message CountAllEnabledNSRecordsRequest {\n\tint64 nsDomainId = 1;\n\tstring type = 2;\n\tint64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替\n\tstring nsRouteCode = 5;\n\tstring keyword = 4;\n}", + "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": "ListEnabledNSRecordsResponse", - "code": "message ListEnabledNSRecordsResponse {\n\trepeated NSRecord nsRecords = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledNSRecordResponse", - "code": "message FindEnabledNSRecordResponse {\n\tNSRecord nsRecord = 1;\n}", - "doc": "" - }, { "name": "UploadNSRecordHourlyStatsRequest", "code": "message UploadNSRecordHourlyStatsRequest {\n\trepeated NSRecordHourlyStat stats = 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": "FindAllEnabledNSRoutesRequest", - "code": "message FindAllEnabledNSRoutesRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n}", - "doc": "读取所有线路" - }, - { - "name": "FindAllEnabledNSRoutesResponse", - "code": "message FindAllEnabledNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", - "doc": "" - }, { "name": "UpdateNSRouteOrdersRequest", "code": "message UpdateNSRouteOrdersRequest {\n\trepeated int64 nsRouteIds = 1;\n}", @@ -13529,20 +13735,40 @@ "code": "message CreateNSRouteRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n\tstring name = 4;\n\tbytes rangesJSON = 5;\n}", "doc": "创建线路" }, + { + "name": "UpdateNSRouteRequest", + "code": "message UpdateNSRouteRequest {\n\tint64 nsRouteId = 1;\n\tstring name = 2;\n\tbytes rangesJSON = 3;\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": "FindAllNSRoutesRequest", + "code": "message FindAllNSRoutesRequest {\n\tint64 nsClusterId = 1;\n\tint64 nsDomainId = 2;\n\tint64 userId = 3;\n}", + "doc": "读取所有线路" + }, + { + "name": "FindAllNSRoutesResponse", + "code": "message FindAllNSRoutesResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", + "doc": "" + }, { "name": "CreateNSRouteResponse", "code": "message CreateNSRouteResponse {\n\tint64 nsRouteId = 1;\n}", "doc": "" }, { - "name": "FindEnabledNSRouteRequest", - "code": "message FindEnabledNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", - "doc": "获取单个路线信息" - }, - { - "name": "FindEnabledNSRouteResponse", - "code": "message FindEnabledNSRouteResponse {\n\tNSRoute nsRoute = 1;\n}", - "doc": "" + "name": "DeleteNSRouteRequest", + "code": "message DeleteNSRouteRequest {\n\tint64 nsRouteId = 1;\n}", + "doc": "删除线路" }, { "name": "ListNSRoutesAfterVersionRequest", @@ -13554,36 +13780,6 @@ "code": "message ListNSRoutesAfterVersionResponse {\n\trepeated NSRoute nsRoutes = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledAndOnOrderMethodsResponse", - "code": "message FindAllEnabledAndOnOrderMethodsResponse {\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": "UpdateOrderMethodRequest", - "code": "message UpdateOrderMethodRequest {\n\tint64 orderMethodId = 1;\n\tstring name = 2;\n\tstring code = 3;\n\tstring description = 4;\n\tstring url = 5;\n\tbool isOn = 6;\n}", - "doc": "修改支付方式" - }, - { - "name": "FindAllEnabledAndOnOrderMethodsRequest", - "code": "message FindAllEnabledAndOnOrderMethodsRequest {\n\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}", @@ -13600,8 +13796,13 @@ "doc": "" }, { - "name": "CreateOrderMethodResponse", - "code": "message CreateOrderMethodResponse {\n\tint64 orderMethodId = 1;\n}", + "name": "FindAllAvailableOrderMethodsRequest", + "code": "message FindAllAvailableOrderMethodsRequest {\n\n}", + "doc": "查找所有已启用的支付方式" + }, + { + "name": "FindAllAvailableOrderMethodsResponse", + "code": "message FindAllAvailableOrderMethodsResponse {\n\trepeated OrderMethod orderMethods = 1;\n}", "doc": "" }, { @@ -13609,26 +13810,36 @@ "code": "message DeleteOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", "doc": "删除支付方式" }, + { + "name": "FindEnabledOrderMethodResponse", + "code": "message FindEnabledOrderMethodResponse {\n\tOrderMethod orderMethod = 1;\n}", + "doc": "" + }, + { + "name": "UpdateOrderMethodRequest", + "code": "message UpdateOrderMethodRequest {\n\tint64 orderMethodId = 1;\n\tstring name = 2;\n\tstring code = 3;\n\tstring description = 4;\n\tstring url = 5;\n\tbool isOn = 6;\n}", + "doc": "修改支付方式" + }, { "name": "FindEnabledOrderMethodRequest", "code": "message FindEnabledOrderMethodRequest {\n\tint64 orderMethodId = 1;\n}", "doc": "查找单个支付方式" }, { - "name": "CreateOriginResponse", - "code": "message CreateOriginResponse {\n\tint64 originId = 1;\n}", + "name": "FindEnabledOrderMethodWithCodeRequest", + "code": "message FindEnabledOrderMethodWithCodeRequest {\n\tstring code = 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": "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}", - "doc": "查找单个源站信息" - }, { "name": "FindEnabledOriginResponse", "code": "message FindEnabledOriginResponse {\n\tOrigin Origin = 1;\n}", @@ -13649,6 +13860,21 @@ "code": "message CreateOriginRequest {\n\tstring name = 1;\n\tNetworkAddress addr = 2;\n\tstring description = 3;\n\tint32 weight = 4;\n\tbool isOn = 5;\n\tbytes connTimeoutJSON = 6;\n\tbytes readTimeoutJSON = 7;\n\tbytes idleTimeoutJSON = 8;\n\tint32 maxConns = 9;\n\tint32 maxIdleConns = 10;\n\trepeated string domains = 11;\n\tbytes certRefJSON = 12;\n\tstring host = 13;\n\tbool followPort = 14;\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}", + "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}", @@ -13664,16 +13890,6 @@ "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": "FindEnabledPlanRequest", "code": "message FindEnabledPlanRequest {\n\tint64 planId = 1;\n}", @@ -13694,6 +13910,16 @@ "code": "message ListEnabledPlansResponse {\n\trepeated Plan plans = 1;\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": "SortPlansRequest", "code": "message SortPlansRequest {\n\trepeated int64 planIds = 1;\n}", @@ -13719,6 +13945,11 @@ "code": "message FindEnabledRegionCityResponse {\n\tRegionCity regionCity = 1;\n}", "doc": "" }, + { + "name": "FindAllEnabledRegionCountriesRequest", + "code": "message FindAllEnabledRegionCountriesRequest {\n\n}", + "doc": "查找所有的国家列表" + }, { "name": "FindAllEnabledRegionCountriesResponse", "code": "message FindAllEnabledRegionCountriesResponse {\n\trepeated RegionCountry regionCountries = 1;\n}", @@ -13734,16 +13965,6 @@ "code": "message FindEnabledRegionCountryResponse {\n\tRegionCountry regionCountry = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledRegionCountriesRequest", - "code": "message FindAllEnabledRegionCountriesRequest {\n\n}", - "doc": "查找所有的国家列表" - }, - { - "name": "FindAllEnabledRegionProvidersRequest", - "code": "message FindAllEnabledRegionProvidersRequest {\n\n}", - "doc": "查找所有ISP" - }, { "name": "FindAllEnabledRegionProvidersResponse", "code": "message FindAllEnabledRegionProvidersResponse {\n\trepeated RegionProvider regionProviders = 1;\n}", @@ -13760,9 +13981,9 @@ "doc": "" }, { - "name": "FindAllEnabledRegionProvincesWithCountryIdRequest", - "code": "message FindAllEnabledRegionProvincesWithCountryIdRequest {\n\tint64 regionCountryId = 1;\n}", - "doc": "查找所有省份" + "name": "FindAllEnabledRegionProvidersRequest", + "code": "message FindAllEnabledRegionProvidersRequest {\n\n}", + "doc": "查找所有ISP" }, { "name": "FindAllEnabledRegionProvincesWithCountryIdResponse", @@ -13780,55 +14001,25 @@ "doc": "" }, { - "name": "UpdateReportNodeRequest", - "code": "message UpdateReportNodeRequest{\n\tint64 reportNodeId = 1;\n\tstring name = 2;\n\tstring location = 3;\n\tstring isp = 4;\n\trepeated string allowIPs = 5;\n\tbool isOn = 6;\n\trepeated int64 reportNodeGroupIds = 7;\n}", - "doc": "修改终端" + "name": "FindAllEnabledRegionProvincesWithCountryIdRequest", + "code": "message FindAllEnabledRegionProvincesWithCountryIdRequest {\n\tint64 regionCountryId = 1;\n}", + "doc": "查找所有省份" }, { - "name": "CountAllEnabledReportNodesRequest", - "code": "message CountAllEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 2;\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": "UpdateReportNodeStatusRequest", - "code": "message UpdateReportNodeStatusRequest {\n\tbytes statusJSON = 1;\n}", - "doc": "更新节点状态" - }, - { - "name": "ReadReportNodeGlobalSettingResponse", - "code": "message ReadReportNodeGlobalSettingResponse {\n\tbytes settingJSON = 1;\n}", - "doc": "" - }, - { - "name": "DeleteReportNodeRequest", - "code": "message DeleteReportNodeRequest {\n\tint64 reportNodeId = 1;\n}", - "doc": "删除终端" - }, - { - "name": "ListEnabledReportNodesResponse", - "code": "message ListEnabledReportNodesResponse {\n\trepeated ReportNode reportNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledReportNodeResponse", - "code": "message FindEnabledReportNodeResponse {\n\tReportNode reportNode = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentReportNodeConfigResponse", - "code": "message FindCurrentReportNodeConfigResponse {\n\tbytes reportNodeJSON = 1;\n}", - "doc": "" + "name": "FindReportNodeTasksRequest", + "code": "message FindReportNodeTasksRequest {\n\n}", + "doc": "读取任务" }, { "name": "FindReportNodeTasksResponse", "code": "message FindReportNodeTasksResponse {\n\tbytes ipAddrTasksJSON = 1;\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}", @@ -13840,19 +14031,9 @@ "doc": "" }, { - "name": "UpdateReportNodeGlobalSetting", - "code": "message UpdateReportNodeGlobalSetting {\n\tbytes settingJSON = 1;\n}", - "doc": "修改全局设置" - }, - { - "name": "CreateReportNodeResponse", - "code": "message CreateReportNodeResponse {\n\tint64 reportNodeId = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledReportNodeRequest", - "code": "message FindEnabledReportNodeRequest{\n\tint64 reportNodeId = 1;\n}", - "doc": "查找单个终端" + "name": "UpdateReportNodeRequest", + "code": "message UpdateReportNodeRequest{\n\tint64 reportNodeId = 1;\n\tstring name = 2;\n\tstring location = 3;\n\tstring isp = 4;\n\trepeated string allowIPs = 5;\n\tbool isOn = 6;\n\trepeated int64 reportNodeGroupIds = 7;\n}", + "doc": "修改终端" }, { "name": "ReportNodeStreamMessage", @@ -13860,13 +14041,13 @@ "doc": "终端stream" }, { - "name": "FindReportNodeTasksRequest", - "code": "message FindReportNodeTasksRequest {\n\n}", - "doc": "读取任务" + "name": "FindCurrentReportNodeConfigResponse", + "code": "message FindCurrentReportNodeConfigResponse {\n\tbytes reportNodeJSON = 1;\n}", + "doc": "" }, { - "name": "FindLatestReportNodeVersionResponse", - "code": "message FindLatestReportNodeVersionResponse {\n\tstring version = 1;\n}", + "name": "FindEnabledReportNodeResponse", + "code": "message FindEnabledReportNodeResponse {\n\tReportNode reportNode = 1;\n}", "doc": "" }, { @@ -13875,9 +14056,24 @@ "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": "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": "FindEnabledReportNodeRequest", + "code": "message FindEnabledReportNodeRequest{\n\tint64 reportNodeId = 1;\n}", + "doc": "查找单个终端" + }, + { + "name": "ListEnabledReportNodesResponse", + "code": "message ListEnabledReportNodesResponse {\n\trepeated ReportNode reportNodes = 1;\n}", + "doc": "" }, { "name": "FindCurrentReportNodeConfigRequest", @@ -13885,14 +14081,39 @@ "doc": "获取当前节点信息" }, { - "name": "FindLatestReportNodeVersionRequest", - "code": "message FindLatestReportNodeVersionRequest {\n\n}", - "doc": "取得最新的版本号" + "name": "UpdateReportNodeGlobalSetting", + "code": "message UpdateReportNodeGlobalSetting {\n\tbytes settingJSON = 1;\n}", + "doc": "修改全局设置" }, { - "name": "CountAllEnabledReportNodeGroupsRequest", - "code": "message CountAllEnabledReportNodeGroupsRequest {\n\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": "DeleteReportNodeRequest", + "code": "message DeleteReportNodeRequest {\n\tint64 reportNodeId = 1;\n}", + "doc": "删除终端" + }, + { + "name": "CountAllEnabledReportNodesRequest", + "code": "message CountAllEnabledReportNodesRequest {\n\tstring keyword = 1;\n\tint64 reportNodeGroupId = 2;\n}", + "doc": "计算终端数量" + }, + { + "name": "UpdateReportNodeStatusRequest", + "code": "message UpdateReportNodeStatusRequest {\n\tbytes statusJSON = 1;\n}", + "doc": "更新节点状态" + }, + { + "name": "FindLatestReportNodeVersionResponse", + "code": "message FindLatestReportNodeVersionResponse {\n\tstring version = 1;\n}", + "doc": "" + }, + { + "name": "ReadReportNodeGlobalSettingResponse", + "code": "message ReadReportNodeGlobalSettingResponse {\n\tbytes settingJSON = 1;\n}", + "doc": "" }, { "name": "CreateReportNodeGroupRequest", @@ -13914,11 +14135,6 @@ "code": "message FindEnabledReportNodeGroupRequest {\n\tint64 reportNodeGroupId = 1;\n}", "doc": "查找单个分组" }, - { - "name": "FindEnabledReportNodeGroupResponse", - "code": "message FindEnabledReportNodeGroupResponse {\n\tReportNodeGroup reportNodeGroup = 1;\n}", - "doc": "" - }, { "name": "CreateReportNodeGroupResponse", "code": "message CreateReportNodeGroupResponse {\n\tint64 reportNodeGroupId = 1;\n}", @@ -13935,20 +14151,15 @@ "doc": "查找所有分组" }, { - "name": "CountAllReportResultsRequest", - "code": "message CountAllReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n}", - "doc": "计算监控结果数量" - }, - { - "name": "ListReportResultsRequest", - "code": "message ListReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", - "doc": "列出单页监控结果" - }, - { - "name": "ListReportResultsResponse", - "code": "message ListReportResultsResponse {\n\trepeated ReportResult reportResults = 1;\n}", + "name": "FindEnabledReportNodeGroupResponse", + "code": "message FindEnabledReportNodeGroupResponse {\n\tReportNodeGroup reportNodeGroup = 1;\n}", "doc": "" }, + { + "name": "CountAllEnabledReportNodeGroupsRequest", + "code": "message CountAllEnabledReportNodeGroupsRequest {\n\n}", + "doc": "计算所有分组数量" + }, { "name": "UpdateReportResultsRequest", "code": "message UpdateReportResultsRequest {\n\trepeated ReportResult reportResults = 1;\n}", @@ -13965,30 +14176,20 @@ "doc": "" }, { - "name": "CreateReverseProxyResponse", - "code": "message CreateReverseProxyResponse {\n\tint64 reverseProxyId = 1;\n}", + "name": "CountAllReportResultsRequest", + "code": "message CountAllReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n}", + "doc": "计算监控结果数量" + }, + { + "name": "ListReportResultsRequest", + "code": "message ListReportResultsRequest {\n\tint64 reportNodeId = 1;\n\tint32 okState = 2;\n\tstring level = 3;\n\tint64 offset = 4;\n\tint64 size = 5;\n}", + "doc": "列出单页监控结果" + }, + { + "name": "ListReportResultsResponse", + "code": "message ListReportResultsResponse {\n\trepeated ReportResult reportResults = 1;\n}", "doc": "" }, - { - "name": "FindEnabledReverseProxyRequest", - "code": "message FindEnabledReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n}", - "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": "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": "CreateReverseProxyRequest", "code": "message CreateReverseProxyRequest {\n\tbytes schedulingJSON = 1;\n\tbytes primaryOriginsJSON = 2;\n\tbytes backupOriginsJSON = 3;\n}", @@ -13999,6 +14200,31 @@ "code": "message FindEnabledReverseProxyResponse {\n\tReverseProxy reverseProxy = 1;\n}", "doc": "" }, + { + "name": "UpdateReverseProxyPrimaryOriginsRequest", + "code": "message UpdateReverseProxyPrimaryOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", + "doc": "修改主要源站信息" + }, + { + "name": "UpdateReverseProxyBackupOriginsRequest", + "code": "message UpdateReverseProxyBackupOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\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": "CreateReverseProxyResponse", + "code": "message CreateReverseProxyResponse {\n\tint64 reverseProxyId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledReverseProxyRequest", + "code": "message FindEnabledReverseProxyRequest {\n\tint64 reverseProxyId = 1;\n}", + "doc": "查找反向代理" + }, { "name": "FindEnabledReverseProxyConfigRequest", "code": "message FindEnabledReverseProxyConfigRequest {\n\tint64 reverseProxyId = 1;\n}", @@ -14010,49 +14236,9 @@ "doc": "" }, { - "name": "UpdateReverseProxyBackupOriginsRequest", - "code": "message UpdateReverseProxyBackupOriginsRequest {\n\tint64 reverseProxyId = 1;\n\tbytes originsJSON = 2;\n}", - "doc": "修改备用源站信息" - }, - { - "name": "DeleteScriptRequest", - "code": "message DeleteScriptRequest {\n\tint64 scriptId = 1;\n}", - "doc": "删除脚本" - }, - { - "name": "FindEnabledScriptResponse", - "code": "message FindEnabledScriptResponse {\n\tScript script = 1;\n}", - "doc": "" - }, - { - "name": "ComposeScriptConfigsRequest", - "code": "message ComposeScriptConfigsRequest {\n\n}", - "doc": "组合脚本配置" - }, - { - "name": "CreateScriptRequest", - "code": "message CreateScriptRequest {\n\tstring name = 1;\n\tstring filename = 2;\n\tstring code = 3;\n}", - "doc": "添加脚本" - }, - { - "name": "ListEnabledScriptsRequest", - "code": "message ListEnabledScriptsRequest {\n\tint64 userId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页脚本" - }, - { - "name": "PublishScriptsRequest", - "code": "message PublishScriptsRequest {\n\tint64 userId = 1;\n}", - "doc": "发布脚本" - }, - { - "name": "UpdateScriptRequest", - "code": "message UpdateScriptRequest {\n\tint64 scriptId = 1;\n\tstring name = 2;\n\tstring filename = 3;\n\tstring code = 4;\n\tbool isOn = 5;\n}", - "doc": "修改脚本" - }, - { - "name": "CheckScriptUpdatesRequest", - "code": "message CheckScriptUpdatesRequest {\n\tint64 userId = 1;\n}", - "doc": "检查脚本是否需要有更新" + "name": "UpdateReverseProxySchedulingRequest", + "code": "message UpdateReverseProxySchedulingRequest {\n\tint64 reverseProxyId = 1;\n\tbytes schedulingJSON = 2;\n}", + "doc": "修改反向代理调度算法" }, { "name": "ComposeScriptConfigsResponse", @@ -14060,28 +14246,148 @@ "doc": "" }, { - "name": "FindEnabledScriptRequest", - "code": "message FindEnabledScriptRequest {\n\tint64 scriptId = 1;\n}", - "doc": "查找单个脚本" - }, - { - "name": "CreateScriptResponse", - "code": "message CreateScriptResponse {\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": "ListEnabledScriptsRequest", + "code": "message ListEnabledScriptsRequest {\n\tint64 userId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", + "doc": "列出单页脚本" + }, + { + "name": "CheckScriptUpdatesResponse", + "code": "message CheckScriptUpdatesResponse {\n\tbool hasUpdates = 1;\n\tint64 version = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledScriptResponse", + "code": "message FindEnabledScriptResponse {\n\tScript script = 1;\n}", + "doc": "" + }, + { + "name": "UpdateScriptRequest", + "code": "message UpdateScriptRequest {\n\tint64 scriptId = 1;\n\tstring name = 2;\n\tstring filename = 3;\n\tstring code = 4;\n\tbool isOn = 5;\n}", + "doc": "修改脚本" + }, { "name": "ListEnabledScriptsResponse", "code": "message ListEnabledScriptsResponse {\n\trepeated Script scripts = 1;\n}", "doc": "" }, { - "name": "CheckScriptUpdatesResponse", - "code": "message CheckScriptUpdatesResponse {\n\tbool hasUpdates = 1;\n\tint64 version = 2;\n}", + "name": "CheckScriptUpdatesRequest", + "code": "message CheckScriptUpdatesRequest {\n\tint64 userId = 1;\n}", + "doc": "检查脚本是否需要有更新" + }, + { + "name": "CreateScriptRequest", + "code": "message CreateScriptRequest {\n\tstring name = 1;\n\tstring filename = 2;\n\tstring code = 3;\n}", + "doc": "添加脚本" + }, + { + "name": "CreateScriptResponse", + "code": "message CreateScriptResponse {\n\tint64 scriptId = 1;\n}", + "doc": "" + }, + { + "name": "PublishScriptsRequest", + "code": "message PublishScriptsRequest {\n\tint64 userId = 1;\n}", + "doc": "发布脚本" + }, + { + "name": "FindEnabledScriptRequest", + "code": "message FindEnabledScriptRequest {\n\tint64 scriptId = 1;\n}", + "doc": "查找单个脚本" + }, + { + "name": "ComposeScriptConfigsRequest", + "code": "message ComposeScriptConfigsRequest {\n\n}", + "doc": "组合脚本配置" + }, + { + "name": "FindEnabledServerTypeResponse", + "code": "message FindEnabledServerTypeResponse {\n\tstring type = 1;\n}", + "doc": "" + }, + { + "name": "NotifyServersChangeResponse", + "code": "message NotifyServersChangeResponse {\n\n}", + "doc": "" + }, + { + "name": "UpdateServerUnixRequest", + "code": "message UpdateServerUnixRequest {\n\tint64 serverId = 1;\n\tbytes unixJSON = 2;\n}", + "doc": "" + }, + { + "name": "UpdateServerUDPRequest", + "code": "message UpdateServerUDPRequest {\n\tint64 serverId = 1;\n\tbytes udpJSON = 2;\n}", + "doc": "" + }, + { + "name": "PurgeServerCacheResponse", + "code": "message PurgeServerCacheResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserServerBasicRequest", + "code": "message FindEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找用户服务基本信息" + }, + { + "name": "UpdateEnabledUserServerBasicRequest", + "code": "message UpdateEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\n}", + "doc": "修改用户服务基本信息" + }, + { + "name": "CheckServerNameDuplicationInNodeClusterRequest", + "code": "message CheckServerNameDuplicationInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\trepeated string serverNames = 2; // 可以同时检查一批域名\n\tint64 excludeServerId = 3; // 要排除的服务ID\n}", + "doc": "检查域名是否已经存在" + }, + { + "name": "FindEnabledServerUAMRequest", + "code": "message FindEnabledServerUAMRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务UAM设置" + }, + { + "name": "FindEnabledServerUAMResponse", + "code": "message FindEnabledServerUAMResponse {\n\tbytes uamJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindLatestServersResponse", + "code": "message FindLatestServersResponse {\n\trepeated Server servers = 1;\n}", + "doc": "" + }, + { + "name": "UpdateServerIsOnRequest", + "code": "message UpdateServerIsOnRequest {\n\tint64 serverId = 1;\n\tbool isOn = 2;\n}", + "doc": "修改服务启是否启用" + }, + { + "name": "UpdateServerNamesRequest", + "code": "message UpdateServerNamesRequest {\n\tint64 serverId = 1;\n\tbytes serverNamesJSON = 2;\n}", + "doc": "修改服务的域名设置" + }, + { + "name": "UpdateServerDNSRequest", + "code": "message UpdateServerDNSRequest {\n\tint64 serverId = 1;\n\tbool supportCNAME = 2;\n}", + "doc": "修改服务的DNS相关设置" + }, + { + "name": "FindEnabledServerConfigResponse", + "code": "message FindEnabledServerConfigResponse {\n\tbytes serverJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledServerNamesWithUserIdResponse", + "code": "message FindAllEnabledServerNamesWithUserIdResponse {\n\trepeated string serverNames = 1;\n}", "doc": "" }, { @@ -14089,41 +14395,41 @@ "code": "message FindServerUserPlanResponse {\n\tUserPlan userPlan = 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": "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": "FindAndInitServerWebConfigResponse", - "code": "message FindAndInitServerWebConfigResponse {\n\tbytes webJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllEnabledServersWithNodeClusterIdRequest", - "code": "message CountAllEnabledServersWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "计算运行在某个集群上的所有服务数量" - }, - { - "name": "PurgeServerCacheResponse", - "code": "message PurgeServerCacheResponse {\n\tbool isOk = 1;\n\tstring message = 2;\n}", - "doc": "" - }, { "name": "FindEnabledServerRequest", "code": "message FindEnabledServerRequest {\n\tint64 serverId = 1;\n}", "doc": "查找单个服务" }, + { + "name": "FindAndInitServerWebConfigRequest", + "code": "message FindAndInitServerWebConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "初始化Web设置" + }, + { + "name": "CountAllEnabledServersWithSSLCertIdRequest", + "code": "message CountAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "计算使用某个SSL证书的服务数量" + }, + { + "name": "CountAllEnabledServersWithServerGroupIdRequest", + "code": "message CountAllEnabledServersWithServerGroupIdRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "计算使用某个分组的服务数量" + }, + { + "name": "UpdateServerUserPlanRequest", + "code": "message UpdateServerUserPlanRequest {\n\tint64 serverId = 1;\n\tint64 userPlanId = 2;\n}", + "doc": "修改服务套餐" + }, + { + "name": "FindNearbyServersRequest", + "code": "message FindNearbyServersRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找某个服务附近的服务" + }, + { + "name": "UpdateServerHTTPRequest", + "code": "message UpdateServerHTTPRequest {\n\tint64 serverId = 1;\n\tbytes httpJSON = 2;\n}", + "doc": "修改服务的HTTP等设置" + }, { "name": "FindEnabledServerResponse", "code": "message FindEnabledServerResponse {\n\tServer server = 1;\n}", @@ -14135,24 +14441,9 @@ "doc": "查找服务配置" }, { - "name": "FindNearbyServersRequest", - "code": "message FindNearbyServersRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找某个服务附近的服务" - }, - { - "name": "FindServerNamesRequest", - "code": "message FindServerNamesRequest {\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": "DeleteServerRequest", - "code": "message DeleteServerRequest {\n\tint64 serverId = 1;\n}", - "doc": "禁用服务" + "name": "CountAllEnabledServersWithNodeClusterIdRequest", + "code": "message CountAllEnabledServersWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "计算运行在某个集群上的所有服务数量" }, { "name": "FindAllEnabledServersDNSWithNodeClusterIdResponse", @@ -14160,39 +14451,14 @@ "doc": "" }, { - "name": "FindLatestServersResponse", - "code": "message FindLatestServersResponse {\n\trepeated Server servers = 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": "CheckServerNameDuplicationInNodeClusterRequest", - "code": "message CheckServerNameDuplicationInNodeClusterRequest {\n\tint64 nodeClusterId = 1;\n\trepeated string serverNames = 2; // 可以同时检查一批域名\n\tint64 excludeServerId = 3; // 要排除的服务ID\n}", - "doc": "检查域名是否已经存在" - }, - { - "name": "UpdateServerTrafficLimitRequest", - "code": "message UpdateServerTrafficLimitRequest {\n\tint64 serverId = 1;\n\tbytes trafficLimitJSON = 2;\n}", - "doc": "设置流量限制" - }, - { - "name": "UpdateServerUDPRequest", - "code": "message UpdateServerUDPRequest {\n\tint64 serverId = 1;\n\tbytes udpJSON = 2;\n}", - "doc": "" - }, - { - "name": "NotifyServersChangeResponse", - "code": "message NotifyServersChangeResponse {\n\n}", - "doc": "" - }, - { - "name": "FindAllEnabledServerNamesWithUserIdRequest", - "code": "message FindAllEnabledServerNamesWithUserIdRequest {\n\tint64 userId = 1;\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": "CheckUserServerRequest", + "code": "message CheckUserServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "检查服务是否属于某个用户" }, { "name": "FindEnabledUserServerBasicResponse", @@ -14200,40 +14466,15 @@ "doc": "" }, { - "name": "FindEnabledServerTrafficLimitRequest", - "code": "message FindEnabledServerTrafficLimitRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找流量限制" + "name": "FindLatestServersRequest", + "code": "message FindLatestServersRequest {\n\tint64 size = 1;\n}", + "doc": "查找最近访问的服务" }, { - "name": "FindEnabledServerConfigResponse", - "code": "message FindEnabledServerConfigResponse {\n\tbytes serverJSON = 1;\n}", + "name": "UpdateServerHTTPSRequest", + "code": "message UpdateServerHTTPSRequest {\n\tint64 serverId = 1;\n\tbytes httpsJSON = 2;\n}", "doc": "" }, - { - "name": "FindAllEnabledServersWithSSLCertIdResponse", - "code": "message FindAllEnabledServersWithSSLCertIdResponse {\n\trepeated Server servers = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledServerUAMRequest", - "code": "message FindEnabledServerUAMRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务UAM设置" - }, - { - "name": "CountAllEnabledServersMatchRequest", - "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": "CountAllEnabledServersWithSSLCertIdRequest", - "code": "message CountAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "计算使用某个SSL证书的服务数量" - }, - { - "name": "UpdateServerIsOnRequest", - "code": "message UpdateServerIsOnRequest {\n\tint64 serverId = 1;\n\tbool isOn = 2;\n}", - "doc": "修改服务启是否启用" - }, { "name": "UpdateServerTCPRequest", "code": "message UpdateServerTCPRequest {\n\tint64 serverId = 1;\n\tbytes tcpJSON = 2;\n}", @@ -14245,189 +14486,59 @@ "doc": "" }, { - "name": "UpdateServerWebRequest", - "code": "message UpdateServerWebRequest {\n\tint64 serverId = 1;\n\tint64 webId = 2;\n}", + "name": "RegenerateServerCNAMERequest", + "code": "message RegenerateServerCNAMERequest {\n\tint64 serverId = 1;\n}", + "doc": "重新生成CNAME" + }, + { + "name": "CountAllEnabledServersMatchRequest", + "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": "FindServerNamesRequest", + "code": "message FindServerNamesRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务的域名设置" + }, + { + "name": "FindAndInitServerWebConfigResponse", + "code": "message FindAndInitServerWebConfigResponse {\n\tbytes webJSON = 1;\n}", "doc": "" }, - { - "name": "UpdateServerNamesAuditingRequest", - "code": "message UpdateServerNamesAuditingRequest {\n\tint64 serverId = 1;\n\tServerNameAuditingResult auditingResult = 2;\n}", - "doc": "审核服务的域名设置" - }, - { - "name": "UpdateServerDNSRequest", - "code": "message UpdateServerDNSRequest {\n\tint64 serverId = 1;\n\tbool supportCNAME = 2;\n}", - "doc": "修改服务的DNS相关设置" - }, - { - "name": "FindEnabledServerDNSResponse", - "code": "message FindEnabledServerDNSResponse {\n\tstring dnsName = 1;\n\tDNSDomain domain = 2;\n\tbool supportCNAME = 3;\n}", - "doc": "" - }, - { - "name": "FindServerUserPlanRequest", - "code": "message FindServerUserPlanRequest {\n\tint64 serverId = 1;\n}", - "doc": "获取服务套餐信息" - }, - { - "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": "UpdateServerUnixRequest", - "code": "message UpdateServerUnixRequest {\n\tint64 serverId = 1;\n\tbytes unixJSON = 2;\n}", - "doc": "" - }, - { - "name": "ComposeServerConfigRequest", - "code": "message ComposeServerConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "获取服务配置" - }, - { - "name": "ComposeServerConfigResponse", - "code": "message ComposeServerConfigResponse {\n\tbytes serverConfigJSON = 1;\n}", - "doc": "" - }, - { - "name": "FindAndInitServerReverseProxyConfigRequest", - "code": "message FindAndInitServerReverseProxyConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找反向代理设置" - }, - { - "name": "FindAndInitServerWebConfigRequest", - "code": "message FindAndInitServerWebConfigRequest {\n\tint64 serverId = 1;\n}", - "doc": "初始化Web设置" - }, - { - "name": "CountAllEnabledServersWithServerGroupIdRequest", - "code": "message CountAllEnabledServersWithServerGroupIdRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "计算使用某个分组的服务数量" - }, { "name": "ServerDNSInfo", "code": "message ServerDNSInfo {\n\tint64 id = 1;\n\tstring name = 2;\n\tstring dnsName = 3;\n}", "doc": "" }, { - "name": "UpdateServerHTTPSRequest", - "code": "message UpdateServerHTTPSRequest {\n\tint64 serverId = 1;\n\tbytes httpsJSON = 2;\n}", + "name": "UpdateServerTrafficLimitRequest", + "code": "message UpdateServerTrafficLimitRequest {\n\tint64 serverId = 1;\n\tbytes trafficLimitJSON = 2;\n}", + "doc": "设置流量限制" + }, + { + "name": "UpdateServerWebRequest", + "code": "message UpdateServerWebRequest {\n\tint64 serverId = 1;\n\tint64 webId = 2;\n}", "doc": "" }, - { - "name": "ListEnabledServersMatchResponse", - "code": "message ListEnabledServersMatchResponse {\n\trepeated Server servers = 1;\n}", - "doc": "" - }, - { - "name": "FindAllEnabledServersWithSSLCertIdRequest", - "code": "message FindAllEnabledServersWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", - "doc": "查找使用某个SSL证书的所有服务" - }, - { - "name": "UpdateEnabledUserServerBasicRequest", - "code": "message UpdateEnabledUserServerBasicRequest {\n\tint64 serverId = 1;\n\tstring name = 2;\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": "UpdateServerNamesRequest", - "code": "message UpdateServerNamesRequest {\n\tint64 serverId = 1;\n\tbytes serverNamesJSON = 2;\n}", - "doc": "修改服务的域名设置" - }, - { - "name": "RegenerateServerCNAMERequest", - "code": "message RegenerateServerCNAMERequest {\n\tint64 serverId = 1;\n}", - "doc": "重新生成CNAME" - }, - { - "name": "NotifyServersChangeRequest", - "code": "message NotifyServersChangeRequest {\n\n}", - "doc": "通知更新" - }, - { - "name": "UpdateServerHTTPRequest", - "code": "message UpdateServerHTTPRequest {\n\tint64 serverId = 1;\n\tbytes httpJSON = 2;\n}", - "doc": "修改服务的HTTP等设置" - }, - { - "name": "FindEnabledServerUAMResponse", - "code": "message FindEnabledServerUAMResponse {\n\tbytes uamJSON = 1;\n}", - "doc": "" - }, - { - "name": "CheckUserServerRequest", - "code": "message CheckUserServerRequest {\n\tint64 serverId = 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": "FindLatestServersRequest", - "code": "message FindLatestServersRequest {\n\tint64 size = 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": "UpdateServerUAMRequest", "code": "message UpdateServerUAMRequest {\n\tint64 serverId = 1;\n\tbytes uamJSON = 2;\n}", "doc": "修改服务UAM设置" }, { - "name": "CreateServerResponse", - "code": "message CreateServerResponse {\n\tint64 serverId = 1;\n}", + "name": "ListEnabledServersMatchResponse", + "code": "message ListEnabledServersMatchResponse {\n\trepeated Server servers = 1;\n}", "doc": "" }, { - "name": "FindAndInitServerReverseProxyConfigResponse", - "code": "message FindAndInitServerReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" + "name": "DeleteServerRequest", + "code": "message DeleteServerRequest {\n\tint64 serverId = 1;\n}", + "doc": "禁用服务" }, { - "name": "FindAllEnabledServersDNSWithNodeClusterIdRequest", - "code": "message FindAllEnabledServersDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "取得某个集群下的所有服务相关的DNS" - }, - { - "name": "UpdateServerUserPlanRequest", - "code": "message UpdateServerUserPlanRequest {\n\tint64 serverId = 1;\n\tint64 userPlanId = 2;\n}", - "doc": "修改服务套餐" - }, - { - "name": "FindEnabledServerTypeRequest", - "code": "message FindEnabledServerTypeRequest {\n\tint64 serverId = 1;\n}", - "doc": "查找服务的服务类型" - }, - { - "name": "FindAllEnabledServerNamesWithUserIdResponse", - "code": "message FindAllEnabledServerNamesWithUserIdResponse {\n\trepeated string serverNames = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledUserServerBasicRequest", - "code": "message FindEnabledUserServerBasicRequest {\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": "FindEnabledServerDNSRequest", @@ -14439,6 +14550,121 @@ "code": "message CheckServerNameDuplicationInNodeClusterResponse {\n\trepeated string duplicatedServerNames = 1;\n}", "doc": "" }, + { + "name": "FindEnabledServerTrafficLimitRequest", + "code": "message FindEnabledServerTrafficLimitRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找流量限制" + }, + { + "name": "ComposeServerConfigResponse", + "code": "message ComposeServerConfigResponse {\n\tbytes serverConfigJSON = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerDNSResponse", + "code": "message FindEnabledServerDNSResponse {\n\tstring dnsName = 1;\n\tDNSDomain domain = 2;\n\tbool supportCNAME = 3;\n}", + "doc": "" + }, + { + "name": "PurgeServerCacheRequest", + "code": "message PurgeServerCacheRequest {\n\trepeated string keys = 2;\n\trepeated string prefixes = 3;\n\tstring description = 4; // 任务描述\n}", + "doc": "清除缓存" + }, + { + "name": "FindEnabledServerTrafficLimitResponse", + "code": "message FindEnabledServerTrafficLimitResponse {\n\tbytes trafficLimitJSON = 1;\n}", + "doc": "" + }, + { + "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": "CreateServerResponse", + "code": "message CreateServerResponse {\n\tint64 serverId = 1;\n}", + "doc": "" + }, + { + "name": "UpdateServerGroupIdsRequest", + "code": "message UpdateServerGroupIdsRequest {\n\tint64 serverId = 1;\n\trepeated int64 serverGroupIds = 2;\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": "FindAllEnabledServersDNSWithNodeClusterIdRequest", + "code": "message FindAllEnabledServersDNSWithNodeClusterIdRequest {\n\tint64 nodeClusterId = 1;\n}", + "doc": "取得某个集群下的所有服务相关的DNS" + }, + { + "name": "ComposeServerConfigRequest", + "code": "message ComposeServerConfigRequest {\n\tint64 serverId = 1;\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": "UpdateServerNamesAuditingRequest", + "code": "message UpdateServerNamesAuditingRequest {\n\tint64 serverId = 1;\n\tServerNameAuditingResult auditingResult = 2;\n}", + "doc": "审核服务的域名设置" + }, + { + "name": "FindAllEnabledServersWithSSLCertIdResponse", + "code": "message FindAllEnabledServersWithSSLCertIdResponse {\n\trepeated Server servers = 1;\n}", + "doc": "" + }, + { + "name": "NotifyServersChangeRequest", + "code": "message NotifyServersChangeRequest {\n\n}", + "doc": "通知更新" + }, + { + "name": "FindAllEnabledServerNamesWithUserIdRequest", + "code": "message FindAllEnabledServerNamesWithUserIdRequest {\n\tint64 userId = 1;\n}", + "doc": "查找一个用户下的所有域名列表" + }, + { + "name": "FindAndInitServerReverseProxyConfigResponse", + "code": "message FindAndInitServerReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, + { + "name": "FindServerUserPlanRequest", + "code": "message FindServerUserPlanRequest {\n\tint64 serverId = 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": "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": "UpdateServerReverseProxyRequest", + "code": "message UpdateServerReverseProxyRequest {\n\tint64 serverId = 1;\n\tbytes reverseProxyJSON = 2;\n}", + "doc": "修改服务的反向代理设置" + }, + { + "name": "FindEnabledServerTypeRequest", + "code": "message FindEnabledServerTypeRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找服务的服务类型" + }, + { + "name": "FindAndInitServerReverseProxyConfigRequest", + "code": "message FindAndInitServerReverseProxyConfigRequest {\n\tint64 serverId = 1;\n}", + "doc": "查找反向代理设置" + }, { "name": "UploadServerBandwidthStatsRequest", "code": "message UploadServerBandwidthStatsRequest {\n\trepeated ServerBandwidthStat serverBandwidthStats = 1;\n}", @@ -14469,16 +14695,16 @@ "code": "message ListServerBillsResponse {\n\trepeated ServerBill serverBills = 1;\n}", "doc": "" }, - { - "name": "FindTopServerClientBrowserMonthlyStatsRequest", - "code": "message FindTopServerClientBrowserMonthlyStatsRequest {\n\tint64 serverId = 1;\n\tstring month = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "查找前N个浏览器" - }, { "name": "FindTopServerClientBrowserMonthlyStatsResponse", "code": "message FindTopServerClientBrowserMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tClientBrowser clientBrowser = 1;\n\t\tstring version = 2;\n\t\tint64 count = 3;\n\t}\n}", "doc": "" }, + { + "name": "FindTopServerClientBrowserMonthlyStatsRequest", + "code": "message FindTopServerClientBrowserMonthlyStatsRequest {\n\tint64 serverId = 1;\n\tstring month = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "查找前N个浏览器" + }, { "name": "FindTopServerClientSystemMonthlyStatsRequest", "code": "message FindTopServerClientSystemMonthlyStatsRequest {\n\tint64 serverId = 1;\n\tstring month = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", @@ -14489,46 +14715,26 @@ "code": "message FindTopServerClientSystemMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tClientSystem clientSystem = 1;\n\t\tstring version = 2;\n\t\tint64 count = 3;\n\t}\n}", "doc": "" }, + { + "name": "FindLatestServerHourlyStatsRequest", + "code": "message FindLatestServerHourlyStatsRequest {\n\tint64 serverId = 1;\n\tint32 hours = 2;\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": "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": "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": "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": "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": "SumCurrentServerDailyStatsResponse", - "code": "message SumCurrentServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\n}", - "doc": "" - }, { "name": "SumServerMonthlyStatsRequest", "code": "message SumServerMonthlyStatsRequest {\n\tint64 serverId = 1;\n\tstring month = 2; // YYYYMM\n}", @@ -14539,20 +14745,40 @@ "code": "message SumServerMonthlyStatsResponse {\n\tServerDailyStat serverMonthlyStat = 1;\n}", "doc": "" }, + { + "name": "SumServerDailyStatsResponse", + "code": "message SumServerDailyStatsResponse {\n\tServerDailyStat serverDailyStat = 1;\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": "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": "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}", + "name": "FindLatestServerMinutelyStatsRequest", + "code": "message FindLatestServerMinutelyStatsRequest {\n\tint64 serverId = 1;\n\tint32 minutes = 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": "FindLatestServerHourlyStatsRequest", - "code": "message FindLatestServerHourlyStatsRequest {\n\tint64 serverId = 1;\n\tint32 hours = 2;\n}", - "doc": "按小时读取统计数据" + "name": "SumServerDailyStatsRequest", + "code": "message SumServerDailyStatsRequest {\n\tint64 serverId = 1;\n\tstring day = 2; // YYYYMMDD\n}", + "doc": "计算单个服务的日统计" }, { "name": "ListTopServerDomainStatsWithServerIdRequest", @@ -14565,13 +14791,8 @@ "doc": "" }, { - "name": "CreateServerGroupRequest", - "code": "message CreateServerGroupRequest {\n\tstring name = 1;\n}", - "doc": "创建分组" - }, - { - "name": "FindAndInitServerGroupHTTPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupHTTPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "name": "FindAndInitServerGroupTCPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupTCPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", "doc": "" }, { @@ -14579,16 +14800,6 @@ "code": "message FindAndInitServerGroupUDPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", "doc": "查找UDP反向代理设置" }, - { - "name": "FindEnabledServerGroupResponse", - "code": "message FindEnabledServerGroupResponse {\n\tServerGroup serverGroup = 1;\n}", - "doc": "" - }, - { - "name": "FindAndInitServerGroupHTTPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupHTTPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找HTTP反向代理设置" - }, { "name": "UpdateServerGroupTCPReverseProxyRequest", "code": "message UpdateServerGroupTCPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", @@ -14599,21 +14810,6 @@ "code": "message UpdateServerGroupUDPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", "doc": "修改分组的UDP反向代理设置" }, - { - "name": "FindAndInitServerGroupTCPReverseProxyConfigRequest", - "code": "message FindAndInitServerGroupTCPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找TCP反向代理设置" - }, - { - "name": "FindEnabledServerGroupConfigInfoRequest", - "code": "message FindEnabledServerGroupConfigInfoRequest {\n\tint64 serverGroupId = 1;\n\tint64 serverId = 2;\n}", - "doc": "取得分组的配置概要信息" - }, - { - "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": "FindAndInitServerGroupWebConfigRequest", "code": "message FindAndInitServerGroupWebConfigRequest {\n\tint64 serverGroupId = 1;\n}", @@ -14630,43 +14826,73 @@ "doc": "删除分组" }, { - "name": "FindAllEnabledServerGroupsResponse", - "code": "message FindAllEnabledServerGroupsResponse {\n\trepeated ServerGroup serverGroups = 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": "UpdateServerGroupHTTPReverseProxyRequest", "code": "message UpdateServerGroupHTTPReverseProxyRequest {\n\tint64 serverGroupId = 1;\n\tbytes reverseProxyJSON = 2;\n}", "doc": "修改分组的HTTP反向代理设置" }, + { + "name": "FindEnabledServerGroupConfigInfoRequest", + "code": "message FindEnabledServerGroupConfigInfoRequest {\n\tint64 serverGroupId = 1;\n\tint64 serverId = 2;\n}", + "doc": "取得分组的配置概要信息" + }, + { + "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": "UpdateServerGroupOrdersRequest", + "code": "message UpdateServerGroupOrdersRequest {\n\trepeated int64 serverGroupIds = 1;\n}", + "doc": "修改分组排序" + }, + { + "name": "FindAndInitServerGroupHTTPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupHTTPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, { "name": "FindAndInitServerGroupWebConfigResponse", "code": "message FindAndInitServerGroupWebConfigResponse {\n\tbytes webJSON = 1;\n}", "doc": "" }, + { + "name": "FindAllEnabledServerGroupsResponse", + "code": "message FindAllEnabledServerGroupsResponse {\n\trepeated ServerGroup serverGroups = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledServerGroupRequest", + "code": "message FindEnabledServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找单个分组信息" + }, + { + "name": "FindAndInitServerGroupTCPReverseProxyConfigRequest", + "code": "message FindAndInitServerGroupTCPReverseProxyConfigRequest {\n\tint64 serverGroupId = 1;\n}", + "doc": "查找TCP反向代理设置" + }, + { + "name": "FindAndInitServerGroupUDPReverseProxyConfigResponse", + "code": "message FindAndInitServerGroupUDPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "doc": "" + }, { "name": "UpdateServerGroupRequest", "code": "message UpdateServerGroupRequest {\n\tint64 serverGroupId = 1;\n\tstring name = 2;\n}", "doc": "修改分组" }, { - "name": "FindEnabledServerGroupRequest", - "code": "message FindEnabledServerGroupRequest {\n\tint64 serverGroupId = 1;\n}", - "doc": "查找单个分组信息" - }, - { - "name": "FindAndInitServerGroupTCPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupTCPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", - "doc": "" - }, - { - "name": "FindAndInitServerGroupUDPReverseProxyConfigResponse", - "code": "message FindAndInitServerGroupUDPReverseProxyConfigResponse {\n\tbytes reverseProxyJSON = 1;\n\tbytes reverseProxyRefJSON = 2;\n}", + "name": "FindEnabledServerGroupResponse", + "code": "message FindEnabledServerGroupResponse {\n\tServerGroup serverGroup = 1;\n}", "doc": "" }, { @@ -14689,26 +14915,26 @@ "code": "message FindTopServerRegionCityMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionCountry regionCountry = 1;\n\t\tRegionProvince regionProvince = 2;\n\t\tRegionCity regionCity = 3;\n\t\tint64 count = 4;\n\t}\n}", "doc": "" }, - { - "name": "FindTopServerRegionCountryMonthlyStatsResponse", - "code": "message FindTopServerRegionCountryMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionCountry regionCountry = 1;\n\t\tint64 count = 2;\n\t}\n}", - "doc": "" - }, { "name": "FindTopServerRegionCountryMonthlyStatsRequest", "code": "message FindTopServerRegionCountryMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", "doc": "查找前N个城市" }, { - "name": "FindTopServerRegionProviderMonthlyStatsRequest", - "code": "message FindTopServerRegionProviderMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", - "doc": "查找前N个城市" + "name": "FindTopServerRegionCountryMonthlyStatsResponse", + "code": "message FindTopServerRegionCountryMonthlyStatsResponse {\n\trepeated Stat stats = 1;\n\n\n\tmessage Stat {\n\t\tRegionCountry regionCountry = 1;\n\t\tint64 count = 2;\n\t}\n}", + "doc": "" }, { "name": "FindTopServerRegionProviderMonthlyStatsResponse", "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": "FindTopServerRegionProviderMonthlyStatsRequest", + "code": "message FindTopServerRegionProviderMonthlyStatsRequest {\n\tstring month = 1; // YYYYMM\n\tint64 serverId = 2;\n\tint64 offset = 3;\n\tint64 size = 4;\n}", + "doc": "查找前N个城市" + }, { "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}", @@ -14719,6 +14945,21 @@ "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": "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}", + "doc": "" + }, + { + "name": "FindAllEnabledServerStatBoardsResponse", + "code": "message FindAllEnabledServerStatBoardsResponse {\n\trepeated ServerStatBoard serverStatBoards = 1;\n}", + "doc": "" + }, { "name": "ComposeServerStatNodeBoardRequest", "code": "message ComposeServerStatNodeBoardRequest {\n\tint64 nodeId = 1;\n}", @@ -14729,31 +14970,6 @@ "code": "message ComposeServerStatNodeClusterBoardRequest {\n\tint64 nodeClusterId = 1;\n}", "doc": "组合集群看板数据" }, - { - "name": "FindAllEnabledServerStatBoardsRequest", - "code": "message FindAllEnabledServerStatBoardsRequest {\n\tint64 nodeClusterId = 1;\n}", - "doc": "读取所有看板" - }, - { - "name": "ComposeServerStatBoardResponse", - "code": "message ComposeServerStatBoardResponse {\n\tint64 minutelyPeekBandwidthBytes = 5; // 当前带宽(N分钟峰值)\n\tint64 dailyPeekBandwidthBytes = 2; // 当天带宽峰值\n\tint64 monthlyPeekBandwidthBytes = 3; // 当月带宽峰值\n\tint64 lastMonthlyPeekBandwidthBytes = 4; // 上个月带宽峰值\n\n\trepeated ServerBandwidthStat minutelyBandwidthStats = 1; // 分钟级的带宽统计\n\trepeated ServerBandwidthStat dailyBandwidthStats = 6; // 按天的带宽统计\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNodeStats = 32;\n\trepeated CountryStat topCountryStats = 35;\n\n\trepeated MetricDataChart metricDataCharts = 34;\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\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": "FindAllEnabledServerStatBoardsResponse", - "code": "message FindAllEnabledServerStatBoardsResponse {\n\trepeated ServerStatBoard serverStatBoards = 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}", - "doc": "" - }, - { - "name": "ComposeServerStatNodeBoardResponse", - "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}", @@ -14765,14 +14981,14 @@ "doc": "矩阵数据" }, { - "name": "EnableServerStatBoardChartRequest", - "code": "message EnableServerStatBoardChartRequest {\n\tint64 serverStatBoardId = 1;\n\tint64 metricChartId = 2;\n}", - "doc": "添加图表" + "name": "ComposeServerStatNodeBoardResponse", + "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": "DisableServerStatBoardChartRequest", - "code": "message DisableServerStatBoardChartRequest {\n\tint64 serverStatBoardId = 1;\n\tint64 metricChartId = 2;\n}", - "doc": "取消图表" + "name": "ComposeServerStatBoardResponse", + "code": "message ComposeServerStatBoardResponse {\n\tint64 minutelyPeekBandwidthBytes = 5; // 当前带宽(N分钟峰值)\n\tint64 dailyPeekBandwidthBytes = 2; // 当天带宽峰值\n\tint64 monthlyPeekBandwidthBytes = 3; // 当月带宽峰值\n\tint64 lastMonthlyPeekBandwidthBytes = 4; // 上个月带宽峰值\n\n\trepeated ServerBandwidthStat minutelyBandwidthStats = 1; // 分钟级的带宽统计\n\trepeated ServerBandwidthStat dailyBandwidthStats = 6; // 按天的带宽统计\n\trepeated DailyTrafficStat dailyTrafficStats = 30;\n\trepeated HourlyTrafficStat hourlyTrafficStats = 31;\n\trepeated NodeStat topNodeStats = 32;\n\trepeated CountryStat topCountryStats = 35;\n\n\trepeated MetricDataChart metricDataCharts = 34;\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\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": "FindAllEnabledServerStatBoardChartsRequest", @@ -14785,19 +15001,29 @@ "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": "EnableServerStatBoardChartRequest", + "code": "message EnableServerStatBoardChartRequest {\n\tint64 serverStatBoardId = 1;\n\tint64 metricChartId = 2;\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": "DisableServerStatBoardChartRequest", + "code": "message DisableServerStatBoardChartRequest {\n\tint64 serverStatBoardId = 1;\n\tint64 metricChartId = 2;\n}", + "doc": "取消图表" }, { - "name": "ResetAllSSLCertsWithOCSPErrorRequest", - "code": "message ResetAllSSLCertsWithOCSPErrorRequest {\n\n}", - "doc": "重置所有证书OCSP错误状态" + "name": "FindEnabledSSLCertConfigRequest", + "code": "message FindEnabledSSLCertConfigRequest {\n\tint64 sslCertId = 1;\n}", + "doc": "查找证书配置" + }, + { + "name": "FindEnabledSSLCertConfigResponse", + "code": "message FindEnabledSSLCertConfigResponse {\n\tbytes sslCertJSON = 1;\n}", + "doc": "" + }, + { + "name": "ListSSLCertsResponse", + "code": "message ListSSLCertsResponse {\n\tbytes sslCertsJSON = 1;\n}", + "doc": "" }, { "name": "ListUpdatedSSLCertOCSPRequest", @@ -14805,24 +15031,39 @@ "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}", + "name": "CreateSSLCertResponse", + "code": "message CreateSSLCertResponse {\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": "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": "ListSSLCertsWithOCSPErrorResponse", "code": "message ListSSLCertsWithOCSPErrorResponse {\n\trepeated SSLCert sslCerts = 1;\n}", "doc": "" }, { - "name": "UpdateSSLCertRequest", - "code": "message UpdateSSLCertRequest {\n\tint64 sslCertId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tstring serverName = 5;\n\tbool isCA = 6;\n\tbytes certData = 7;\n\tbytes keyData = 8;\n\tint64 timeBeginAt = 9;\n\tint64 timeEndAt = 10;\n\trepeated string dnsNames = 11;\n\trepeated string commonNames = 12;\n}", - "doc": "修改Cert" + "name": "IgnoreSSLCertsWithOCSPErrorRequest", + "code": "message IgnoreSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", + "doc": "忽略一组OCSP证书错误" }, { - "name": "FindEnabledSSLCertConfigResponse", - "code": "message FindEnabledSSLCertConfigResponse {\n\tbytes sslCertJSON = 1;\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": "DeleteSSLCertRequest", @@ -14834,41 +15075,31 @@ "code": "message ListSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", "doc": "列出有OCSP错误的证书" }, - { - "name": "IgnoreSSLCertsWithOCSPErrorRequest", - "code": "message IgnoreSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", - "doc": "忽略一组OCSP证书错误" - }, - { - "name": "CreateSSLCertResponse", - "code": "message CreateSSLCertResponse {\n\tint64 sslCertId = 1;\n}", - "doc": "" - }, - { - "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", - "code": "message ListSSLCertsResponse {\n\tbytes sslCertsJSON = 1;\n}", - "doc": "" - }, - { - "name": "CountAllSSLCertsWithOCSPErrorRequest", - "code": "message CountAllSSLCertsWithOCSPErrorRequest {\n\tstring keyword = 1;\n}", - "doc": "计算有OCSP错误的证书数量" - }, { "name": "ResetSSLCertsWithOCSPErrorRequest", "code": "message ResetSSLCertsWithOCSPErrorRequest {\n\trepeated int64 sslCertIds = 1;\n}", "doc": "重置一组证书OCSP错误状态" }, + { + "name": "ResetAllSSLCertsWithOCSPErrorRequest", + "code": "message ResetAllSSLCertsWithOCSPErrorRequest {\n\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": "UpdateSSLCertRequest", + "code": "message UpdateSSLCertRequest {\n\tint64 sslCertId = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring description = 4;\n\tstring serverName = 5;\n\tbool isCA = 6;\n\tbytes certData = 7;\n\tbytes keyData = 8;\n\tint64 timeBeginAt = 9;\n\tint64 timeEndAt = 10;\n\trepeated string dnsNames = 11;\n\trepeated string commonNames = 12;\n}", + "doc": "修改Cert" + }, + { + "name": "CreateSSLPolicyRequest", + "code": "message CreateSSLPolicyRequest {\n\tbool http2Enabled = 1;\n\tstring minVersion = 2;\n\tbytes sslCertsJSON = 3;\n\tbytes hstsJSON = 4;\n\tint32 clientAuthType = 5;\n\tbytes clientCACertsJSON = 6;\n\trepeated string cipherSuites = 7;\n\tbool cipherSuitesIsOn = 8;\n\tbool ocspIsOn = 9;\n}", + "doc": "创建Policy" + }, { "name": "CreateSSLPolicyResponse", "code": "message CreateSSLPolicyResponse {\n\tint64 sslPolicyId = 1;\n}", @@ -14889,11 +15120,6 @@ "code": "message FindEnabledSSLPolicyConfigResponse {\n\tbytes sslPolicyJSON = 1;\n}", "doc": "" }, - { - "name": "CreateSSLPolicyRequest", - "code": "message CreateSSLPolicyRequest {\n\tbool http2Enabled = 1;\n\tstring minVersion = 2;\n\tbytes sslCertsJSON = 3;\n\tbytes hstsJSON = 4;\n\tint32 clientAuthType = 5;\n\tbytes clientCACertsJSON = 6;\n\trepeated string cipherSuites = 7;\n\tbool cipherSuitesIsOn = 8;\n\tbool ocspIsOn = 9;\n}", - "doc": "创建Policy" - }, { "name": "SysLockerLockRequest", "code": "message SysLockerLockRequest {\n\tstring key = 1;\n\tint64 timeoutSeconds = 2;\n}", @@ -14909,6 +15135,11 @@ "code": "message SysLockerUnlockRequest {\n\tstring key = 1;\n}", "doc": "释放锁" }, + { + "name": "UpdateSysSettingRequest", + "code": "message UpdateSysSettingRequest {\n\tstring code = 1;\n\tbytes valueJSON = 2;\n}", + "doc": "更改配置" + }, { "name": "ReadSysSettingRequest", "code": "message ReadSysSettingRequest {\n\tstring code = 1;\n}", @@ -14919,11 +15150,6 @@ "code": "message ReadSysSettingResponse {\n\tbytes valueJSON = 1;\n}", "doc": "" }, - { - "name": "UpdateSysSettingRequest", - "code": "message UpdateSysSettingRequest {\n\tstring code = 1;\n\tbytes valueJSON = 2;\n}", - "doc": "更改配置" - }, { "name": "FindTrafficDailyStatWithDayRequest", "code": "message FindTrafficDailyStatWithDayRequest {\n\tstring day = 1; // YYYYMMDD\n\tstring minute = 2; // HHIISS,可选项\n}", @@ -14935,9 +15161,14 @@ "doc": "" }, { - "name": "UpdateUserFeaturesRequest", - "code": "message UpdateUserFeaturesRequest {\n\tint64 userId = 1;\n\trepeated string featureCodes = 2;\n}", - "doc": "设置用户能使用的功能" + "name": "LoginUserResponse", + "code": "message LoginUserResponse {\n\tint64 userId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", + "doc": "" + }, + { + "name": "FindUserNodeClusterIdRequest", + "code": "message FindUserNodeClusterIdRequest {\n\tint64 userId = 1;\n}", + "doc": "获取用户所在的集群ID" }, { "name": "FindAllUserFeatureDefinitionsRequest", @@ -14945,13 +15176,8 @@ "doc": "获取所有的功能定义" }, { - "name": "ComposeUserGlobalBoardRequest", - "code": "message ComposeUserGlobalBoardRequest {\n\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}", + "name": "FindAllUserFeatureDefinitionsResponse", + "code": "message FindAllUserFeatureDefinitionsResponse {\n\trepeated UserFeature features = 1;\n}", "doc": "" }, { @@ -14960,83 +15186,8 @@ "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": "FindUserNodeClusterIdRequest", - "code": "message FindUserNodeClusterIdRequest {\n\tint64 userId = 1;\n}", - "doc": "获取用户所在的集群ID" - }, - { - "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": "DeleteUserRequest", - "code": "message DeleteUserRequest {\n\tint64 userId = 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": "ComposeUserDashboardRequest", - "code": "message ComposeUserDashboardRequest {\n\tint64 userId = 1;\n}", - "doc": "取得用户Dashboard数据" - }, - { - "name": "FindEnabledUserResponse", - "code": "message FindEnabledUserResponse {\n\tUser user = 1;\n}", - "doc": "" - }, - { - "name": "LoginUserRequest", - "code": "message LoginUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", - "doc": "登录" - }, - { - "name": "FindUserFeaturesRequest", - "code": "message FindUserFeaturesRequest {\n\tint64 userId = 1;\n}", - "doc": "获取用户所有的功能列表" - }, - { - "name": "FindUserFeaturesResponse", - "code": "message FindUserFeaturesResponse {\n\trepeated UserFeature features = 1;\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": "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}", - "doc": "" - }, - { - "name": "FindUserNodeClusterIdResponse", - "code": "message FindUserNodeClusterIdResponse {\n\tint64 nodeClusterId = 1;\n}", + "name": "CheckUserUsernameResponse", + "code": "message CheckUserUsernameResponse {\n\tbool exists = 1;\n}", "doc": "" }, { @@ -15044,24 +15195,84 @@ "code": "message CheckUserOTPWithUsernameRequest {\n\tstring username = 1;\n}", "doc": "根据用户名检查是否需要输入OTP" }, + { + "name": "DeleteUserRequest", + "code": "message DeleteUserRequest {\n\tint64 userId = 1;\n}", + "doc": "删除用户" + }, + { + "name": "FindEnabledUserRequest", + "code": "message FindEnabledUserRequest {\n\tint64 userId = 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": "FindUserNodeClusterIdResponse", + "code": "message FindUserNodeClusterIdResponse {\n\tint64 nodeClusterId = 1;\n}", + "doc": "" + }, + { + "name": "CreateUserResponse", + "code": "message CreateUserResponse {\n\tint64 userId = 1;\n}", + "doc": "" + }, + { + "name": "FindEnabledUserResponse", + "code": "message FindEnabledUserResponse {\n\tUser user = 1;\n}", + "doc": "" + }, + { + "name": "CheckUserUsernameRequest", + "code": "message CheckUserUsernameRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n}", + "doc": "检查用户名是否存在" + }, + { + "name": "UpdateUserLoginRequest", + "code": "message UpdateUserLoginRequest {\n\tint64 userId = 1;\n\tstring username = 2;\n\tstring password = 3;\n}", + "doc": "修改用户登录信息" + }, + { + "name": "ComposeUserDashboardRequest", + "code": "message ComposeUserDashboardRequest {\n\tint64 userId = 1;\n}", + "doc": "取得用户Dashboard数据" + }, { "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": "CountAllEnabledUsersRequest", - "code": "message CountAllEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 2;\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": "CheckUserUsernameResponse", - "code": "message CheckUserUsernameResponse {\n\tbool exists = 1;\n}", + "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": "LoginUserResponse", - "code": "message LoginUserResponse {\n\tint64 userId = 1;\n\tbool isOk = 2;\n\tstring message = 3;\n}", + "name": "FindUserFeaturesRequest", + "code": "message FindUserFeaturesRequest {\n\tint64 userId = 1;\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": "CheckUserOTPWithUsernameResponse", + "code": "message CheckUserOTPWithUsernameResponse {\n\tbool requireOTP = 1;\n}", + "doc": "" + }, + { + "name": "FindUserFeaturesResponse", + "code": "message FindUserFeaturesResponse {\n\trepeated UserFeature features = 1;\n}", "doc": "" }, { @@ -15070,18 +15281,43 @@ "doc": "列出单页用户" }, { - "name": "FindEnabledUserRequest", - "code": "message FindEnabledUserRequest {\n\tint64 userId = 1;\n}", - "doc": "查询单个用户信息" - }, - { - "name": "CreateUserResponse", - "code": "message CreateUserResponse {\n\tint64 userId = 1;\n}", + "name": "ListEnabledUsersResponse", + "code": "message ListEnabledUsersResponse {\n\trepeated User users = 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}", + "name": "LoginUserRequest", + "code": "message LoginUserRequest {\n\tstring username = 1;\n\tstring password = 2;\n}", + "doc": "登录" + }, + { + "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": "VerifyUserRequest", + "code": "message VerifyUserRequest {\n\tint64 userId = 1;\n\tbool isRejected = 2;\n\tstring rejectReason = 3;\n}", + "doc": "审核用户" + }, + { + "name": "CountAllEnabledUsersRequest", + "code": "message CountAllEnabledUsersRequest {\n\tstring keyword = 1;\n\tbool isVerifying = 2;\n}", + "doc": "计算用户数量" + }, + { + "name": "FindAllEnabledUserAccessKeysRequest", + "code": "message FindAllEnabledUserAccessKeysRequest {\n\tint64 userId = 1;\n\tint64 adminId = 2;\n}", + "doc": "查找所有的AccessKey" + }, + { + "name": "FindAllEnabledUserAccessKeysResponse", + "code": "message FindAllEnabledUserAccessKeysResponse {\n\trepeated UserAccessKey userAccessKeys = 1;\n}", "doc": "" }, { @@ -15109,26 +15345,6 @@ "code": "message CreateUserAccessKeyResponse {\n\tint64 userAccessKeyId = 1;\n}", "doc": "" }, - { - "name": "FindAllEnabledUserAccessKeysRequest", - "code": "message FindAllEnabledUserAccessKeysRequest {\n\tint64 userId = 1;\n\tint64 adminId = 2;\n}", - "doc": "查找所有的AccessKey" - }, - { - "name": "FindAllEnabledUserAccessKeysResponse", - "code": "message FindAllEnabledUserAccessKeysResponse {\n\trepeated UserAccessKey userAccessKeys = 1;\n}", - "doc": "" - }, - { - "name": "FindEnabledUserAccountWithUserIdRequest", - "code": "message FindEnabledUserAccountWithUserIdRequest {\n\tint64 userId = 1;\n}", - "doc": "根据用户ID查找单个账户" - }, - { - "name": "FindEnabledUserAccountWithUserIdResponse", - "code": "message FindEnabledUserAccountWithUserIdResponse {\n\tUserAccount userAccount = 1;\n}", - "doc": "" - }, { "name": "FindEnabledUserAccountRequest", "code": "message FindEnabledUserAccountRequest {\n\tint64 userAccountId = 1;\n}", @@ -15159,6 +15375,16 @@ "code": "message ListUserAccountsResponse {\n\trepeated UserAccount userAccounts = 1;\n}", "doc": "" }, + { + "name": "FindEnabledUserAccountWithUserIdRequest", + "code": "message FindEnabledUserAccountWithUserIdRequest {\n\tint64 userId = 1;\n}", + "doc": "根据用户ID查找单个账户" + }, + { + "name": "FindEnabledUserAccountWithUserIdResponse", + "code": "message FindEnabledUserAccountWithUserIdResponse {\n\tUserAccount userAccount = 1;\n}", + "doc": "" + }, { "name": "ListUserAccountDailyStatsRequest", "code": "message ListUserAccountDailyStatsRequest {\n\tstring dayFrom = 1;\n\tstring dayTo = 2;\n}", @@ -15194,11 +15420,21 @@ "code": "message ListUserAccountLogsResponse {\n\trepeated UserAccountLog userAccountLogs = 1;\n}", "doc": "" }, + { + "name": "GenerateAllUserBillsRequest", + "code": "message GenerateAllUserBillsRequest {\n\tstring month = 1;\n}", + "doc": "手工生成账单" + }, { "name": "FindUserBillRequest", "code": "message FindUserBillRequest {\n\tint64 userBillId = 1;\n}", "doc": "查找账单信息" }, + { + "name": "FindUserBillResponse", + "code": "message FindUserBillResponse {\n\tUserBill userBill = 1;\n}", + "doc": "" + }, { "name": "PayUserBillRequest", "code": "message PayUserBillRequest {\n\tint64 userBillId = 1;\n}", @@ -15224,71 +15460,16 @@ "code": "message ListUserBillsResponse {\n\trepeated UserBill userBills = 1;\n}", "doc": "" }, - { - "name": "GenerateAllUserBillsRequest", - "code": "message GenerateAllUserBillsRequest {\n\tstring month = 1;\n}", - "doc": "手工生成账单" - }, - { - "name": "FindUserBillResponse", - "code": "message FindUserBillResponse {\n\tUserBill userBill = 1;\n}", - "doc": "" - }, { "name": "SumUserUnpaidBillsResponse", "code": "message SumUserUnpaidBillsResponse {\n\tfloat amount = 1;\n}", "doc": "" }, - { - "name": "CreateUserIdentityResponse", - "code": "message CreateUserIdentityResponse {\n\tint64 userIdentityId = 1;\n}", - "doc": "" - }, { "name": "FindEnabledUserIdentityRequest", "code": "message FindEnabledUserIdentityRequest {\n\tint64 userIdentityId = 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": "FindEnabledUserIdentityWithOrgTypeResponse", - "code": "message FindEnabledUserIdentityWithOrgTypeResponse {\n\tUserIdentity userIdentity = 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": "CheckUserIdentityIsSubmittedRequest", - "code": "message CheckUserIdentityIsSubmittedRequest {\n\tint64 userId = 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": "CreateUserIdentityRequest", - "code": "message CreateUserIdentityRequest {\n\tstring orgType = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", - "doc": "创建实名认证信息" - }, { "name": "FindEnabledUserIdentityResponse", "code": "message FindEnabledUserIdentityResponse {\n\tUserIdentity userIdentity = 1;\n}", @@ -15300,55 +15481,60 @@ "doc": "查看某个类型的实名认证信息" }, { - "name": "CheckUserIdentityIsSubmittedResponse", - "code": "message CheckUserIdentityIsSubmittedResponse {\n\tbool isSubmitted = 1;\n}", + "name": "FindEnabledUserIdentityWithOrgTypeResponse", + "code": "message FindEnabledUserIdentityWithOrgTypeResponse {\n\tUserIdentity userIdentity = 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": "SubmitUserIdentityRequest", + "code": "message SubmitUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "提交审核实名认证信息" + }, + { + "name": "CancelUserIdentityRequest", + "code": "message CancelUserIdentityRequest {\n\tint64 userIdentityId = 1;\n}", + "doc": "取消提交身份审核认证信息" + }, + { + "name": "CreateUserIdentityRequest", + "code": "message CreateUserIdentityRequest {\n\tstring orgType = 1;\n\tstring type = 2;\n\tstring realName = 3;\n\tstring number = 4;\n\trepeated int64 fileIds = 5;\n}", + "doc": "创建实名认证信息" + }, + { + "name": "CreateUserIdentityResponse", + "code": "message CreateUserIdentityResponse {\n\tint64 userIdentityId = 1;\n}", + "doc": "" + }, + { + "name": "ResetUserIdentityRequest", + "code": "message ResetUserIdentityRequest {\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": "FindAllEnabledUserNodesResponse", - "code": "message FindAllEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", + "name": "CheckUserIdentityIsSubmittedRequest", + "code": "message CheckUserIdentityIsSubmittedRequest {\n\tint64 userId = 1;\n}", + "doc": "检查是否正在审核中" + }, + { + "name": "CheckUserIdentityIsSubmittedResponse", + "code": "message CheckUserIdentityIsSubmittedResponse {\n\tbool isSubmitted = 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": "ListEnabledUserNodesResponse", - "code": "message ListEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", - "doc": "" - }, - { - "name": "FindCurrentUserNodeRequest", - "code": "message FindCurrentUserNodeRequest {\n\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": "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": "DeleteUserNodeRequest", "code": "message DeleteUserNodeRequest {\n\tint64 userNodeId = 1;\n}", @@ -15359,31 +15545,71 @@ "code": "message FindEnabledUserNodeRequest {\n\tint64 userNodeId = 1;\n}", "doc": "根据ID查找节点" }, - { - "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": "UpdateUserNodeStatusRequest", "code": "message UpdateUserNodeStatusRequest {\n\tint64 userNodeId = 1;\n\tbytes statusJSON = 2;\n}", "doc": "更新节点状态" }, - { - "name": "FindEnabledUserNodeResponse", - "code": "message FindEnabledUserNodeResponse {\n\tUserNode userNode = 1;\n}", - "doc": "" - }, { "name": "CountAllEnabledUserNodesWithSSLCertIdRequest", "code": "message CountAllEnabledUserNodesWithSSLCertIdRequest {\n\tint64 sslCertId = 1;\n}", "doc": "计算使用某个SSL证书的用户节点数量" }, + { + "name": "FindEnabledUserNodeResponse", + "code": "message FindEnabledUserNodeResponse {\n\tUserNode userNode = 1;\n}", + "doc": "" + }, + { + "name": "FindCurrentUserNodeResponse", + "code": "message FindCurrentUserNodeResponse {\n\tUserNode userNode = 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": "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": "ListEnabledUserNodesRequest", + "code": "message ListEnabledUserNodesRequest {\n\tint64 offset = 1;\n\tint64 size = 2;\n}", + "doc": "列出单页的用户节点" + }, + { + "name": "ListEnabledUserNodesResponse", + "code": "message ListEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", + "doc": "" + }, + { + "name": "CreateUserNodeResponse", + "code": "message CreateUserNodeResponse {\n\tint64 userNodeId = 1;\n}", + "doc": "" + }, + { + "name": "FindAllEnabledUserNodesResponse", + "code": "message FindAllEnabledUserNodesResponse {\n\trepeated UserNode userNodes = 1;\n}", + "doc": "" + }, + { + "name": "CountAllEnabledUserNodesRequest", + "code": "message CountAllEnabledUserNodesRequest {\n\n}", + "doc": "计算用户节点数量" + }, + { + "name": "FindCurrentUserNodeRequest", + "code": "message FindCurrentUserNodeRequest {\n\n}", + "doc": "获取当前用户节点" + }, { "name": "ListEnabledUserOrdersResponse", "code": "message ListEnabledUserOrdersResponse {\n\trepeated UserOrder userOrders = 1;\n}", @@ -15399,16 +15625,6 @@ "code": "message CreateUserOrderResponse {\n\tstring code = 1;\n\tstring payURL = 2;\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": "FindEnabledUserOrderRequest", "code": "message FindEnabledUserOrderRequest {\n\tstring code = 1;\n}", @@ -15430,34 +15646,14 @@ "doc": "列出单页订单" }, { - "name": "FindAllEnabledUserPlansForServerRequest", - "code": "message FindAllEnabledUserPlansForServerRequest {\n\tint64 userId = 1;\n\tint64 serverId = 2;\n}", - "doc": "查找所有服务可用的套餐" - }, - { - "name": "FindAllEnabledUserPlansForServerResponse", - "code": "message FindAllEnabledUserPlansForServerResponse {\n\trepeated UserPlan userPlans = 1;\n}", + "name": "FindEnabledUserOrderResponse", + "code": "message FindEnabledUserOrderResponse {\n\tUserOrder userOrder = 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": "UpdateUserPlanRequest", - "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": "CountEnabledUserOrdersRequest", + "code": "message CountEnabledUserOrdersRequest {\n\tint64 userId = 1;\n\tstring keyword = 2;\n\tstring status = 3;\n}", + "doc": "计算订单数量" }, { "name": "CountAllEnabledUserPlansRequest", @@ -15470,29 +15666,59 @@ "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": "FindAllEnabledUserPlansForServerRequest", + "code": "message FindAllEnabledUserPlansForServerRequest {\n\tint64 userId = 1;\n\tint64 serverId = 2;\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}", "doc": "" }, + { + "name": "UpdateUserPlanRequest", + "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": "FindAllEnabledUserPlansForServerResponse", + "code": "message FindAllEnabledUserPlansForServerResponse {\n\trepeated UserPlan userPlans = 1;\n}", + "doc": "" + }, + { + "name": "BuyUserPlanRequest", + "code": "message BuyUserPlanRequest{\n\tint64 userId = 1;\n\tint64 planId = 2;\n\tstring dayTo = 3;\n\tstring period = 4;\n\tint32 countPeriod = 5;\n\tstring name = 6;\n}", + "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": "DeleteUserPlanRequest", + "code": "message DeleteUserPlanRequest {\n\tint64 userPlanId = 1;\n}", + "doc": "删除已购套餐" + }, { "name": "ListEnabledUserPlansResponse", "code": "message ListEnabledUserPlansResponse {\n\trepeated UserPlan userPlans = 1;\n}", "doc": "" }, { - "name": "CountUserTicketsRequest", - "code": "message CountUserTicketsRequest {\n\tint64 userId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring status = 3;\n}", - "doc": "计算工单数量" + "name": "CreateUserTicketResponse", + "code": "message CreateUserTicketResponse {\n\tint64 userTicketId = 1;\n}", + "doc": "" }, { "name": "ListUserTicketsRequest", @@ -15504,6 +15730,26 @@ "code": "message ListUserTicketsResponse {\n\trepeated UserTicket userTickets = 1;\n}", "doc": "" }, + { + "name": "CreateUserTicketRequest", + "code": "message CreateUserTicketRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring subject = 2;\n\tstring body = 3;\n}", + "doc": "创建工单" + }, + { + "name": "UpdateUserTicketRequest", + "code": "message UpdateUserTicketRequest {\n\tint64 userTicketId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring subject = 3;\n\tstring body = 4;\n}", + "doc": "修改工单" + }, + { + "name": "DeleteUserTicketRequest", + "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": "FindUserTicketRequest", "code": "message FindUserTicketRequest {\n\tint64 userTicketId = 1;\n}", @@ -15515,49 +15761,14 @@ "doc": "" }, { - "name": "CreateUserTicketRequest", - "code": "message CreateUserTicketRequest {\n\tint64 userTicketCategoryId = 1;\n\tstring subject = 2;\n\tstring body = 3;\n}", - "doc": "创建工单" - }, - { - "name": "CreateUserTicketResponse", - "code": "message CreateUserTicketResponse {\n\tint64 userTicketId = 1;\n}", + "name": "FindAllAvailableUserTicketCategoriesResponse", + "code": "message FindAllAvailableUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", "doc": "" }, { - "name": "DeleteUserTicketRequest", - "code": "message DeleteUserTicketRequest {\n\tint64 userTicketId = 1;\n}", - "doc": "删除工单" - }, - { - "name": "UpdateUserTicketRequest", - "code": "message UpdateUserTicketRequest {\n\tint64 userTicketId = 1;\n\tint64 userTicketCategoryId = 2;\n\tstring subject = 3;\n\tstring body = 4;\n}", - "doc": "修改工单" - }, - { - "name": "DeleteUserTicketCategoryRequest", - "code": "message DeleteUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", - "doc": "删除分类" - }, - { - "name": "FindAllUserTicketCategoriesRequest", - "code": "message FindAllUserTicketCategoriesRequest {\n\n}", - "doc": "查找所有分类" - }, - { - "name": "FindAllOnUserTicketCategoriesRequest", - "code": "message FindAllOnUserTicketCategoriesRequest {\n\n}", - "doc": "查找所有启用中的分类" - }, - { - "name": "FindUserTicketCategoryResponse", - "code": "message FindUserTicketCategoryResponse {\n\tUserTicketCategory userTicketCategory = 1;\n}", - "doc": "" - }, - { - "name": "CreateUserTicketCategoryRequest", - "code": "message CreateUserTicketCategoryRequest {\n\tstring name = 1;\n}", - "doc": "创建分类" + "name": "FindUserTicketCategoryRequest", + "code": "message FindUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", + "doc": "查询单个分类" }, { "name": "CreateUserTicketCategoryResponse", @@ -15569,29 +15780,34 @@ "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": "FindAllUserTicketCategoriesRequest", + "code": "message FindAllUserTicketCategoriesRequest {\n\n}", + "doc": "查找所有分类" + }, { "name": "FindAllUserTicketCategoriesResponse", "code": "message FindAllUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", "doc": "" }, { - "name": "FindAllOnUserTicketCategoriesResponse", - "code": "message FindAllOnUserTicketCategoriesResponse {\n\trepeated UserTicketCategory userTicketCategories = 1;\n}", - "doc": "" + "name": "FindAllAvailableUserTicketCategoriesRequest", + "code": "message FindAllAvailableUserTicketCategoriesRequest {\n\n}", + "doc": "查找所有启用中的分类" }, { - "name": "FindUserTicketCategoryRequest", - "code": "message FindUserTicketCategoryRequest {\n\tint64 userTicketCategoryId = 1;\n}", - "doc": "查询单个分类" + "name": "CreateUserTicketCategoryRequest", + "code": "message CreateUserTicketCategoryRequest {\n\tstring name = 1;\n}", + "doc": "创建分类" }, { - "name": "ListUserTicketLogsRequest", - "code": "message ListUserTicketLogsRequest {\n\tint64 userTicketId = 1;\n\tint64 offset = 2;\n\tint64 size = 3;\n}", - "doc": "列出单页日志" - }, - { - "name": "ListUserTicketLogsResponse", - "code": "message ListUserTicketLogsResponse {\n\trepeated UserTicketLog userTicketLogs = 1;\n}", + "name": "FindUserTicketCategoryResponse", + "code": "message FindUserTicketCategoryResponse {\n\tUserTicketCategory userTicketCategory = 1;\n}", "doc": "" }, { @@ -15614,6 +15830,16 @@ "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": "ListUserTicketLogsResponse", + "code": "message ListUserTicketLogsResponse {\n\trepeated UserTicketLog userTicketLogs = 1;\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}", @@ -15690,13 +15916,13 @@ "doc": "" }, { - "name": "DBNode", - "code": "message DBNode {\n\tint64 id = 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\tDBNodeStatus status = 30;\n}", + "name": "DBNodeStatus", + "code": "message DBNodeStatus {\n\tbool isOk = 1;\n\tint64 size = 2;\n\tstring error = 3;\n\tstring version = 4;\n}", "doc": "" }, { - "name": "DBNodeStatus", - "code": "message DBNodeStatus {\n\tbool isOk = 1;\n\tint64 size = 2;\n\tstring error = 3;\n\tstring version = 4;\n}", + "name": "DBNode", + "code": "message DBNode {\n\tint64 id = 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\tDBNodeStatus status = 30;\n}", "doc": "" }, { @@ -15865,13 +16091,13 @@ "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": "" }, { - "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": "" }, { @@ -16006,9 +16232,14 @@ }, { "name": "NSDomain", - "code": "message NSDomain {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 createdAt = 4;\n\tbool isDeleted = 5;\n\tint64 version = 6;\n\tbytes tsigJSON = 7;\n\n\tNSCluster nsCluster = 30;\n\tUser user = 31;\n}", + "code": "message NSDomain {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 createdAt = 4;\n\tbool isDeleted = 5;\n\tint64 version = 6;\n\tbytes tsigJSON = 7;\n\trepeated int64 nsDomainGroupIds = 8;\n\n\tNSCluster nsCluster = 30;\n\tUser user = 31;\n\trepeated NSDomainGroup nsDomainGroups = 32;\n}", "doc": "DNS域名" }, + { + "name": "NSDomainGroup", + "code": "message NSDomainGroup {\n\tint64 id = 1;\n\tstring name = 2;\n\tbool isOn = 3;\n\tint64 userId = 4;\n}", + "doc": "域名分组" + }, { "name": "NSKey", "code": "message NSKey {\n\tint64 id = 1;\n\tbool isOn = 2;\n\tstring name = 3;\n\tstring algo = 4;\n\tstring secret = 5;\n\tstring secretType = 6;\n\tbool isDeleted = 7;\n\tint64 version = 8;\n\n\tNSDomain nsDomain = 30;\n\tNSZone nsZone = 31;\n}", @@ -16239,6 +16470,11 @@ "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": "RPCCountResponse", + "code": "message RPCCountResponse {\n\tint64 count = 1;\n}", + "doc": "返回数量" + }, { "name": "RPCExists", "code": "message RPCExists {\n\tbool exists = 1;\n}", @@ -16249,11 +16485,6 @@ "code": "message RPCSuccess {\n\n}", "doc": "操作成功" }, - { - "name": "RPCCountResponse", - "code": "message RPCCountResponse {\n\tint64 count = 1;\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/cmd/proto-json/main.go b/cmd/proto-json/main.go index c7883f1..b98dbbb 100644 --- a/cmd/proto-json/main.go +++ b/cmd/proto-json/main.go @@ -69,6 +69,23 @@ func readComments(data []byte) string { return string(bytes.TrimSpace(bytes.Join(comments, []byte{'\n'}))) } +func removeDuplicates(s []string) []string { + if len(s) == 0 { + return s + } + var m = map[string]bool{} + var result = []string{} + for _, item := range s { + _, ok := m[item] + if ok { + continue + } + result = append(result, item) + m[item] = true + } + return result +} + // 生成JSON格式API列表 func main() { var quiet = false @@ -128,9 +145,23 @@ func main() { roles = append(roles, "dns") } else if strings.Contains(methodSource, ".ValidateMonitorNode(") { roles = append(roles, "monitor") + } else if strings.Contains(methodSource, "rpcutils.UserTypeDNS") { + roles = append(roles, "dns") + } else if strings.Contains(methodSource, "rpcutils.UserTypeUser") { + roles = append(roles, "user") + } else if strings.Contains(methodSource, "rpcutils.UserTypeNode") { + roles = append(roles, "node") + } else if strings.Contains(methodSource, "rpcutils.UserTypeMonitor") { + roles = append(roles, "monitor") + } else if strings.Contains(methodSource, "rpcutils.UserTypeReport") { + roles = append(roles, "report") + } else if strings.Contains(methodSource, "rpcutils.UserTypeCluster") { + roles = append(roles, "cluster") + } else if strings.Contains(methodSource, "rpcutils.UserTypeAdmin") { + roles = append(roles, "admin") } - methodRolesMap[strings.ToLower(methodName)] = roles + methodRolesMap[strings.ToLower(methodName)] = removeDuplicates(roles) } } } diff --git a/pkg/dnsconfigs/consts.go b/pkg/dnsconfigs/consts.go new file mode 100644 index 0000000..8d1b6a2 --- /dev/null +++ b/pkg/dnsconfigs/consts.go @@ -0,0 +1,10 @@ +// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn . + +package dnsconfigs + +type NSDomainStatus = string + +const ( + NSDomainStatusNone = "none" + NSDomainStatusVerified = "verified" +) diff --git a/pkg/rpc/pb/model_ns_domain.pb.go b/pkg/rpc/pb/model_ns_domain.pb.go index b2b59bd..a1ec8ed 100644 --- a/pkg/rpc/pb/model_ns_domain.pb.go +++ b/pkg/rpc/pb/model_ns_domain.pb.go @@ -31,15 +31,17 @@ type NSDomain 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"` - IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` - CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - IsDeleted bool `protobuf:"varint,5,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"` - Version int64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` - TsigJSON []byte `protobuf:"bytes,7,opt,name=tsigJSON,proto3" json:"tsigJSON,omitempty"` - NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"` - User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,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"` + IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` + CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + IsDeleted bool `protobuf:"varint,5,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"` + Version int64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"` + TsigJSON []byte `protobuf:"bytes,7,opt,name=tsigJSON,proto3" json:"tsigJSON,omitempty"` + NsDomainGroupIds []int64 `protobuf:"varint,8,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"` + NsCluster *NSCluster `protobuf:"bytes,30,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"` + User *User `protobuf:"bytes,31,opt,name=user,proto3" json:"user,omitempty"` + NsDomainGroups []*NSDomainGroup `protobuf:"bytes,32,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"` } func (x *NSDomain) Reset() { @@ -123,6 +125,13 @@ func (x *NSDomain) GetTsigJSON() []byte { return nil } +func (x *NSDomain) GetNsDomainGroupIds() []int64 { + if x != nil { + return x.NsDomainGroupIds + } + return nil +} + func (x *NSDomain) GetNsCluster() *NSCluster { if x != nil { return x.NsCluster @@ -137,6 +146,13 @@ func (x *NSDomain) GetUser() *User { return nil } +func (x *NSDomain) GetNsDomainGroups() []*NSDomainGroup { + if x != nil { + return x.NsDomainGroups + } + return nil +} + var File_models_model_ns_domain_proto protoreflect.FileDescriptor var file_models_model_ns_domain_proto_rawDesc = []byte{ @@ -144,25 +160,34 @@ var file_models_model_ns_domain_proto_rawDesc = []byte{ 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x73, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, - 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xff, 0x01, 0x0a, 0x08, 0x4e, - 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x12, 0x0a, 0x04, 0x69, - 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 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, 0x1c, 0x0a, - 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, - 0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, - 0x4e, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, + 0x6f, 0x1a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, + 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, + 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe6, + 0x02, 0x0a, 0x08, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, + 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, + 0x73, 0x4f, 0x6e, 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, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, + 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, + 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x2a, 0x0a, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x03, 0x52, + 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x73, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, - 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x42, 0x06, 0x5a, 0x04, - 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0e, + 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x20, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -179,18 +204,20 @@ func file_models_model_ns_domain_proto_rawDescGZIP() []byte { var file_models_model_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_models_model_ns_domain_proto_goTypes = []interface{}{ - (*NSDomain)(nil), // 0: pb.NSDomain - (*NSCluster)(nil), // 1: pb.NSCluster - (*User)(nil), // 2: pb.User + (*NSDomain)(nil), // 0: pb.NSDomain + (*NSCluster)(nil), // 1: pb.NSCluster + (*User)(nil), // 2: pb.User + (*NSDomainGroup)(nil), // 3: pb.NSDomainGroup } var file_models_model_ns_domain_proto_depIdxs = []int32{ 1, // 0: pb.NSDomain.nsCluster:type_name -> pb.NSCluster 2, // 1: pb.NSDomain.user:type_name -> pb.User - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name + 3, // 2: pb.NSDomain.nsDomainGroups:type_name -> pb.NSDomainGroup + 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_ns_domain_proto_init() } @@ -199,6 +226,7 @@ func file_models_model_ns_domain_proto_init() { return } file_models_model_ns_cluster_proto_init() + file_models_model_ns_domain_group_proto_init() file_models_model_user_proto_init() if !protoimpl.UnsafeEnabled { file_models_model_ns_domain_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { diff --git a/pkg/rpc/pb/model_ns_domain_group.pb.go b/pkg/rpc/pb/model_ns_domain_group.pb.go new file mode 100644 index 0000000..3e1e66a --- /dev/null +++ b/pkg/rpc/pb/model_ns_domain_group.pb.go @@ -0,0 +1,176 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: models/model_ns_domain_group.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 NSDomainGroup struct { + state protoimpl.MessageState + 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"` + IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` + UserId int64 `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"` +} + +func (x *NSDomainGroup) Reset() { + *x = NSDomainGroup{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_ns_domain_group_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *NSDomainGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NSDomainGroup) ProtoMessage() {} + +func (x *NSDomainGroup) ProtoReflect() protoreflect.Message { + mi := &file_models_model_ns_domain_group_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 NSDomainGroup.ProtoReflect.Descriptor instead. +func (*NSDomainGroup) Descriptor() ([]byte, []int) { + return file_models_model_ns_domain_group_proto_rawDescGZIP(), []int{0} +} + +func (x *NSDomainGroup) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *NSDomainGroup) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *NSDomainGroup) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *NSDomainGroup) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +var File_models_model_ns_domain_group_proto protoreflect.FileDescriptor + +var file_models_model_ns_domain_group_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, + 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x5f, 0x0a, 0x0d, 0x4e, 0x53, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0x12, 0x0a, + 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, + 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, + 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_ns_domain_group_proto_rawDescOnce sync.Once + file_models_model_ns_domain_group_proto_rawDescData = file_models_model_ns_domain_group_proto_rawDesc +) + +func file_models_model_ns_domain_group_proto_rawDescGZIP() []byte { + file_models_model_ns_domain_group_proto_rawDescOnce.Do(func() { + file_models_model_ns_domain_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_ns_domain_group_proto_rawDescData) + }) + return file_models_model_ns_domain_group_proto_rawDescData +} + +var file_models_model_ns_domain_group_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_ns_domain_group_proto_goTypes = []interface{}{ + (*NSDomainGroup)(nil), // 0: pb.NSDomainGroup +} +var file_models_model_ns_domain_group_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_ns_domain_group_proto_init() } +func file_models_model_ns_domain_group_proto_init() { + if File_models_model_ns_domain_group_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_ns_domain_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NSDomainGroup); 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_ns_domain_group_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_ns_domain_group_proto_goTypes, + DependencyIndexes: file_models_model_ns_domain_group_proto_depIdxs, + MessageInfos: file_models_model_ns_domain_group_proto_msgTypes, + }.Build() + File_models_model_ns_domain_group_proto = out.File + file_models_model_ns_domain_group_proto_rawDesc = nil + file_models_model_ns_domain_group_proto_goTypes = nil + file_models_model_ns_domain_group_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/service_node_price_item.pb.go b/pkg/rpc/pb/service_node_price_item.pb.go index 4d68748..fd192cf 100644 --- a/pkg/rpc/pb/service_node_price_item.pb.go +++ b/pkg/rpc/pb/service_node_price_item.pb.go @@ -372,7 +372,7 @@ func (x *FindAllEnabledNodePriceItemsResponse) GetNodePriceItems() []*NodePriceI } // 查找所有启用的区域价格 -type FindAllEnabledAndOnNodePriceItemsRequest struct { +type FindAllAvailableNodePriceItemsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -380,8 +380,8 @@ type FindAllEnabledAndOnNodePriceItemsRequest struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` } -func (x *FindAllEnabledAndOnNodePriceItemsRequest) Reset() { - *x = FindAllEnabledAndOnNodePriceItemsRequest{} +func (x *FindAllAvailableNodePriceItemsRequest) Reset() { + *x = FindAllAvailableNodePriceItemsRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_node_price_item_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -389,13 +389,13 @@ func (x *FindAllEnabledAndOnNodePriceItemsRequest) Reset() { } } -func (x *FindAllEnabledAndOnNodePriceItemsRequest) String() string { +func (x *FindAllAvailableNodePriceItemsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledAndOnNodePriceItemsRequest) ProtoMessage() {} +func (*FindAllAvailableNodePriceItemsRequest) ProtoMessage() {} -func (x *FindAllEnabledAndOnNodePriceItemsRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableNodePriceItemsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_price_item_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -407,19 +407,19 @@ func (x *FindAllEnabledAndOnNodePriceItemsRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledAndOnNodePriceItemsRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledAndOnNodePriceItemsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableNodePriceItemsRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableNodePriceItemsRequest) Descriptor() ([]byte, []int) { return file_service_node_price_item_proto_rawDescGZIP(), []int{6} } -func (x *FindAllEnabledAndOnNodePriceItemsRequest) GetType() string { +func (x *FindAllAvailableNodePriceItemsRequest) GetType() string { if x != nil { return x.Type } return "" } -type FindAllEnabledAndOnNodePriceItemsResponse struct { +type FindAllAvailableNodePriceItemsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -427,8 +427,8 @@ type FindAllEnabledAndOnNodePriceItemsResponse struct { NodePriceItems []*NodePriceItem `protobuf:"bytes,1,rep,name=NodePriceItems,proto3" json:"NodePriceItems,omitempty"` } -func (x *FindAllEnabledAndOnNodePriceItemsResponse) Reset() { - *x = FindAllEnabledAndOnNodePriceItemsResponse{} +func (x *FindAllAvailableNodePriceItemsResponse) Reset() { + *x = FindAllAvailableNodePriceItemsResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_node_price_item_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -436,13 +436,13 @@ func (x *FindAllEnabledAndOnNodePriceItemsResponse) Reset() { } } -func (x *FindAllEnabledAndOnNodePriceItemsResponse) String() string { +func (x *FindAllAvailableNodePriceItemsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledAndOnNodePriceItemsResponse) ProtoMessage() {} +func (*FindAllAvailableNodePriceItemsResponse) ProtoMessage() {} -func (x *FindAllEnabledAndOnNodePriceItemsResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableNodePriceItemsResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_price_item_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -454,12 +454,12 @@ func (x *FindAllEnabledAndOnNodePriceItemsResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledAndOnNodePriceItemsResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledAndOnNodePriceItemsResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableNodePriceItemsResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableNodePriceItemsResponse) Descriptor() ([]byte, []int) { return file_service_node_price_item_proto_rawDescGZIP(), []int{7} } -func (x *FindAllEnabledAndOnNodePriceItemsResponse) GetNodePriceItems() []*NodePriceItem { +func (x *FindAllAvailableNodePriceItemsResponse) GetNodePriceItems() []*NodePriceItem { if x != nil { return x.NodePriceItems } @@ -607,58 +607,57 @@ var file_service_node_price_item_proto_rawDesc = []byte{ 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, - 0x22, 0x3e, 0x0a, 0x28, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x22, 0x66, 0x0a, 0x29, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, - 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, - 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x4e, - 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, - 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, - 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, - 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, - 0x74, 0x65, 0x6d, 0x52, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x32, 0xd9, 0x04, 0x0a, 0x14, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x49, 0x74, 0x65, 0x6d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, - 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, + 0x22, 0x3b, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x63, 0x0a, + 0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, + 0x65, 0x6d, 0x52, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, + 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, + 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, - 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, - 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, - 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x13, 0x64, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, - 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, - 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, - 0x73, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, - 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x21, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, - 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x2c, 0x2e, 0x70, 0x62, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, - 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, - 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, + 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x49, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x0d, 0x4e, + 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x32, 0xcf, 0x04, 0x0a, + 0x14, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, + 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, + 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1e, 0x2e, 0x70, 0x62, + 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, + 0x49, 0x74, 0x65, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, + 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x27, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, + 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, + 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, + 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, + 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x50, 0x72, 0x69, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, @@ -683,34 +682,34 @@ func file_service_node_price_item_proto_rawDescGZIP() []byte { var file_service_node_price_item_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_service_node_price_item_proto_goTypes = []interface{}{ - (*CreateNodePriceItemRequest)(nil), // 0: pb.CreateNodePriceItemRequest - (*CreateNodePriceItemResponse)(nil), // 1: pb.CreateNodePriceItemResponse - (*UpdateNodePriceItemRequest)(nil), // 2: pb.UpdateNodePriceItemRequest - (*DeleteNodePriceItemRequest)(nil), // 3: pb.DeleteNodePriceItemRequest - (*FindAllEnabledNodePriceItemsRequest)(nil), // 4: pb.FindAllEnabledNodePriceItemsRequest - (*FindAllEnabledNodePriceItemsResponse)(nil), // 5: pb.FindAllEnabledNodePriceItemsResponse - (*FindAllEnabledAndOnNodePriceItemsRequest)(nil), // 6: pb.FindAllEnabledAndOnNodePriceItemsRequest - (*FindAllEnabledAndOnNodePriceItemsResponse)(nil), // 7: pb.FindAllEnabledAndOnNodePriceItemsResponse - (*FindEnabledNodePriceItemRequest)(nil), // 8: pb.FindEnabledNodePriceItemRequest - (*FindEnabledNodePriceItemResponse)(nil), // 9: pb.FindEnabledNodePriceItemResponse - (*NodePriceItem)(nil), // 10: pb.NodePriceItem - (*RPCSuccess)(nil), // 11: pb.RPCSuccess + (*CreateNodePriceItemRequest)(nil), // 0: pb.CreateNodePriceItemRequest + (*CreateNodePriceItemResponse)(nil), // 1: pb.CreateNodePriceItemResponse + (*UpdateNodePriceItemRequest)(nil), // 2: pb.UpdateNodePriceItemRequest + (*DeleteNodePriceItemRequest)(nil), // 3: pb.DeleteNodePriceItemRequest + (*FindAllEnabledNodePriceItemsRequest)(nil), // 4: pb.FindAllEnabledNodePriceItemsRequest + (*FindAllEnabledNodePriceItemsResponse)(nil), // 5: pb.FindAllEnabledNodePriceItemsResponse + (*FindAllAvailableNodePriceItemsRequest)(nil), // 6: pb.FindAllAvailableNodePriceItemsRequest + (*FindAllAvailableNodePriceItemsResponse)(nil), // 7: pb.FindAllAvailableNodePriceItemsResponse + (*FindEnabledNodePriceItemRequest)(nil), // 8: pb.FindEnabledNodePriceItemRequest + (*FindEnabledNodePriceItemResponse)(nil), // 9: pb.FindEnabledNodePriceItemResponse + (*NodePriceItem)(nil), // 10: pb.NodePriceItem + (*RPCSuccess)(nil), // 11: pb.RPCSuccess } var file_service_node_price_item_proto_depIdxs = []int32{ 10, // 0: pb.FindAllEnabledNodePriceItemsResponse.NodePriceItems:type_name -> pb.NodePriceItem - 10, // 1: pb.FindAllEnabledAndOnNodePriceItemsResponse.NodePriceItems:type_name -> pb.NodePriceItem + 10, // 1: pb.FindAllAvailableNodePriceItemsResponse.NodePriceItems:type_name -> pb.NodePriceItem 10, // 2: pb.FindEnabledNodePriceItemResponse.NodePriceItem:type_name -> pb.NodePriceItem 0, // 3: pb.NodePriceItemService.createNodePriceItem:input_type -> pb.CreateNodePriceItemRequest 2, // 4: pb.NodePriceItemService.updateNodePriceItem:input_type -> pb.UpdateNodePriceItemRequest 3, // 5: pb.NodePriceItemService.deleteNodePriceItem:input_type -> pb.DeleteNodePriceItemRequest 4, // 6: pb.NodePriceItemService.findAllEnabledNodePriceItems:input_type -> pb.FindAllEnabledNodePriceItemsRequest - 6, // 7: pb.NodePriceItemService.findAllEnabledAndOnNodePriceItems:input_type -> pb.FindAllEnabledAndOnNodePriceItemsRequest + 6, // 7: pb.NodePriceItemService.findAllAvailableNodePriceItems:input_type -> pb.FindAllAvailableNodePriceItemsRequest 8, // 8: pb.NodePriceItemService.findEnabledNodePriceItem:input_type -> pb.FindEnabledNodePriceItemRequest 1, // 9: pb.NodePriceItemService.createNodePriceItem:output_type -> pb.CreateNodePriceItemResponse 11, // 10: pb.NodePriceItemService.updateNodePriceItem:output_type -> pb.RPCSuccess 11, // 11: pb.NodePriceItemService.deleteNodePriceItem:output_type -> pb.RPCSuccess 5, // 12: pb.NodePriceItemService.findAllEnabledNodePriceItems:output_type -> pb.FindAllEnabledNodePriceItemsResponse - 7, // 13: pb.NodePriceItemService.findAllEnabledAndOnNodePriceItems:output_type -> pb.FindAllEnabledAndOnNodePriceItemsResponse + 7, // 13: pb.NodePriceItemService.findAllAvailableNodePriceItems:output_type -> pb.FindAllAvailableNodePriceItemsResponse 9, // 14: pb.NodePriceItemService.findEnabledNodePriceItem:output_type -> pb.FindEnabledNodePriceItemResponse 9, // [9:15] is the sub-list for method output_type 3, // [3:9] is the sub-list for method input_type @@ -800,7 +799,7 @@ func file_service_node_price_item_proto_init() { } } file_service_node_price_item_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledAndOnNodePriceItemsRequest); i { + switch v := v.(*FindAllAvailableNodePriceItemsRequest); i { case 0: return &v.state case 1: @@ -812,7 +811,7 @@ func file_service_node_price_item_proto_init() { } } file_service_node_price_item_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledAndOnNodePriceItemsResponse); i { + switch v := v.(*FindAllAvailableNodePriceItemsResponse); i { case 0: return &v.state case 1: @@ -889,7 +888,7 @@ type NodePriceItemServiceClient interface { // 查找所有区域价格 FindAllEnabledNodePriceItems(ctx context.Context, in *FindAllEnabledNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodePriceItemsResponse, error) // 查找所有启用的区域价格 - FindAllEnabledAndOnNodePriceItems(ctx context.Context, in *FindAllEnabledAndOnNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodePriceItemsResponse, error) + FindAllAvailableNodePriceItems(ctx context.Context, in *FindAllAvailableNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodePriceItemsResponse, error) // 查找单个区域信息 FindEnabledNodePriceItem(ctx context.Context, in *FindEnabledNodePriceItemRequest, opts ...grpc.CallOption) (*FindEnabledNodePriceItemResponse, error) } @@ -938,9 +937,9 @@ func (c *nodePriceItemServiceClient) FindAllEnabledNodePriceItems(ctx context.Co return out, nil } -func (c *nodePriceItemServiceClient) FindAllEnabledAndOnNodePriceItems(ctx context.Context, in *FindAllEnabledAndOnNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodePriceItemsResponse, error) { - out := new(FindAllEnabledAndOnNodePriceItemsResponse) - err := c.cc.Invoke(ctx, "/pb.NodePriceItemService/findAllEnabledAndOnNodePriceItems", in, out, opts...) +func (c *nodePriceItemServiceClient) FindAllAvailableNodePriceItems(ctx context.Context, in *FindAllAvailableNodePriceItemsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodePriceItemsResponse, error) { + out := new(FindAllAvailableNodePriceItemsResponse) + err := c.cc.Invoke(ctx, "/pb.NodePriceItemService/findAllAvailableNodePriceItems", in, out, opts...) if err != nil { return nil, err } @@ -967,7 +966,7 @@ type NodePriceItemServiceServer interface { // 查找所有区域价格 FindAllEnabledNodePriceItems(context.Context, *FindAllEnabledNodePriceItemsRequest) (*FindAllEnabledNodePriceItemsResponse, error) // 查找所有启用的区域价格 - FindAllEnabledAndOnNodePriceItems(context.Context, *FindAllEnabledAndOnNodePriceItemsRequest) (*FindAllEnabledAndOnNodePriceItemsResponse, error) + FindAllAvailableNodePriceItems(context.Context, *FindAllAvailableNodePriceItemsRequest) (*FindAllAvailableNodePriceItemsResponse, error) // 查找单个区域信息 FindEnabledNodePriceItem(context.Context, *FindEnabledNodePriceItemRequest) (*FindEnabledNodePriceItemResponse, error) } @@ -988,8 +987,8 @@ func (*UnimplementedNodePriceItemServiceServer) DeleteNodePriceItem(context.Cont func (*UnimplementedNodePriceItemServiceServer) FindAllEnabledNodePriceItems(context.Context, *FindAllEnabledNodePriceItemsRequest) (*FindAllEnabledNodePriceItemsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodePriceItems not implemented") } -func (*UnimplementedNodePriceItemServiceServer) FindAllEnabledAndOnNodePriceItems(context.Context, *FindAllEnabledAndOnNodePriceItemsRequest) (*FindAllEnabledAndOnNodePriceItemsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledAndOnNodePriceItems not implemented") +func (*UnimplementedNodePriceItemServiceServer) FindAllAvailableNodePriceItems(context.Context, *FindAllAvailableNodePriceItemsRequest) (*FindAllAvailableNodePriceItemsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableNodePriceItems not implemented") } func (*UnimplementedNodePriceItemServiceServer) FindEnabledNodePriceItem(context.Context, *FindEnabledNodePriceItemRequest) (*FindEnabledNodePriceItemResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodePriceItem not implemented") @@ -1071,20 +1070,20 @@ func _NodePriceItemService_FindAllEnabledNodePriceItems_Handler(srv interface{}, return interceptor(ctx, in, info, handler) } -func _NodePriceItemService_FindAllEnabledAndOnNodePriceItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledAndOnNodePriceItemsRequest) +func _NodePriceItemService_FindAllAvailableNodePriceItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableNodePriceItemsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NodePriceItemServiceServer).FindAllEnabledAndOnNodePriceItems(ctx, in) + return srv.(NodePriceItemServiceServer).FindAllAvailableNodePriceItems(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NodePriceItemService/FindAllEnabledAndOnNodePriceItems", + FullMethod: "/pb.NodePriceItemService/FindAllAvailableNodePriceItems", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NodePriceItemServiceServer).FindAllEnabledAndOnNodePriceItems(ctx, req.(*FindAllEnabledAndOnNodePriceItemsRequest)) + return srv.(NodePriceItemServiceServer).FindAllAvailableNodePriceItems(ctx, req.(*FindAllAvailableNodePriceItemsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1128,8 +1127,8 @@ var _NodePriceItemService_serviceDesc = grpc.ServiceDesc{ Handler: _NodePriceItemService_FindAllEnabledNodePriceItems_Handler, }, { - MethodName: "findAllEnabledAndOnNodePriceItems", - Handler: _NodePriceItemService_FindAllEnabledAndOnNodePriceItems_Handler, + MethodName: "findAllAvailableNodePriceItems", + Handler: _NodePriceItemService_FindAllAvailableNodePriceItems_Handler, }, { MethodName: "findEnabledNodePriceItem", diff --git a/pkg/rpc/pb/service_node_region.pb.go b/pkg/rpc/pb/service_node_region.pb.go index 4b9f793..d7917f8 100644 --- a/pkg/rpc/pb/service_node_region.pb.go +++ b/pkg/rpc/pb/service_node_region.pb.go @@ -339,14 +339,14 @@ func (x *FindAllEnabledNodeRegionsResponse) GetNodeRegions() []*NodeRegion { } // 查找所有启用的区域 -type FindAllEnabledAndOnNodeRegionsRequest struct { +type FindAllAvailableNodeRegionsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *FindAllEnabledAndOnNodeRegionsRequest) Reset() { - *x = FindAllEnabledAndOnNodeRegionsRequest{} +func (x *FindAllAvailableNodeRegionsRequest) Reset() { + *x = FindAllAvailableNodeRegionsRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_node_region_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -354,13 +354,13 @@ func (x *FindAllEnabledAndOnNodeRegionsRequest) Reset() { } } -func (x *FindAllEnabledAndOnNodeRegionsRequest) String() string { +func (x *FindAllAvailableNodeRegionsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledAndOnNodeRegionsRequest) ProtoMessage() {} +func (*FindAllAvailableNodeRegionsRequest) ProtoMessage() {} -func (x *FindAllEnabledAndOnNodeRegionsRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableNodeRegionsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_region_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -372,12 +372,12 @@ func (x *FindAllEnabledAndOnNodeRegionsRequest) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledAndOnNodeRegionsRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledAndOnNodeRegionsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableNodeRegionsRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableNodeRegionsRequest) Descriptor() ([]byte, []int) { return file_service_node_region_proto_rawDescGZIP(), []int{6} } -type FindAllEnabledAndOnNodeRegionsResponse struct { +type FindAllAvailableNodeRegionsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -385,8 +385,8 @@ type FindAllEnabledAndOnNodeRegionsResponse struct { NodeRegions []*NodeRegion `protobuf:"bytes,1,rep,name=nodeRegions,proto3" json:"nodeRegions,omitempty"` } -func (x *FindAllEnabledAndOnNodeRegionsResponse) Reset() { - *x = FindAllEnabledAndOnNodeRegionsResponse{} +func (x *FindAllAvailableNodeRegionsResponse) Reset() { + *x = FindAllAvailableNodeRegionsResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_node_region_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -394,13 +394,13 @@ func (x *FindAllEnabledAndOnNodeRegionsResponse) Reset() { } } -func (x *FindAllEnabledAndOnNodeRegionsResponse) String() string { +func (x *FindAllAvailableNodeRegionsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledAndOnNodeRegionsResponse) ProtoMessage() {} +func (*FindAllAvailableNodeRegionsResponse) ProtoMessage() {} -func (x *FindAllEnabledAndOnNodeRegionsResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableNodeRegionsResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_region_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -412,12 +412,12 @@ func (x *FindAllEnabledAndOnNodeRegionsResponse) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledAndOnNodeRegionsResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledAndOnNodeRegionsResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableNodeRegionsResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableNodeRegionsResponse) Descriptor() ([]byte, []int) { return file_service_node_region_proto_rawDescGZIP(), []int{7} } -func (x *FindAllEnabledAndOnNodeRegionsResponse) GetNodeRegions() []*NodeRegion { +func (x *FindAllAvailableNodeRegionsResponse) GetNodeRegions() []*NodeRegion { if x != nil { return x.NodeRegions } @@ -669,81 +669,80 @@ var file_service_node_region_proto_rawDesc = []byte{ 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x27, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5a, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, - 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45, 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x42, 0x0a, 0x1c, 0x46, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, - 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, - 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x22, 0x78, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, 0x65, 0x6d, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, - 0x65, 0x6d, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x32, 0xbd, 0x05, 0x0a, 0x11, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x3f, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x12, 0x3f, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x68, 0x0a, 0x19, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x66, - 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, - 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x29, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, - 0x6e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x21, - 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, - 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, + 0x24, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x57, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0b, + 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x52, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x45, + 0x0a, 0x1d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x42, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6e, 0x6f, 0x64, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x4f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, + 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x0a, 0x6e, 0x6f, + 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, + 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x0a, + 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x22, 0x78, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, - 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, + 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0c, 0x6e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, + 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x14, + 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x32, 0xb4, 0x05, 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x10, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x2e, + 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3f, 0x0a, 0x10, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x1b, + 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x68, 0x0a, 0x19, 0x66, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x16, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, + 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, + 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x49, 0x0a, 0x15, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x50, + 0x72, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, + 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -760,30 +759,30 @@ func file_service_node_region_proto_rawDescGZIP() []byte { var file_service_node_region_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_service_node_region_proto_goTypes = []interface{}{ - (*CreateNodeRegionRequest)(nil), // 0: pb.CreateNodeRegionRequest - (*CreateNodeRegionResponse)(nil), // 1: pb.CreateNodeRegionResponse - (*UpdateNodeRegionRequest)(nil), // 2: pb.UpdateNodeRegionRequest - (*DeleteNodeRegionRequest)(nil), // 3: pb.DeleteNodeRegionRequest - (*FindAllEnabledNodeRegionsRequest)(nil), // 4: pb.FindAllEnabledNodeRegionsRequest - (*FindAllEnabledNodeRegionsResponse)(nil), // 5: pb.FindAllEnabledNodeRegionsResponse - (*FindAllEnabledAndOnNodeRegionsRequest)(nil), // 6: pb.FindAllEnabledAndOnNodeRegionsRequest - (*FindAllEnabledAndOnNodeRegionsResponse)(nil), // 7: pb.FindAllEnabledAndOnNodeRegionsResponse - (*UpdateNodeRegionOrdersRequest)(nil), // 8: pb.UpdateNodeRegionOrdersRequest - (*FindEnabledNodeRegionRequest)(nil), // 9: pb.FindEnabledNodeRegionRequest - (*FindEnabledNodeRegionResponse)(nil), // 10: pb.FindEnabledNodeRegionResponse - (*UpdateNodeRegionPriceRequest)(nil), // 11: pb.UpdateNodeRegionPriceRequest - (*NodeRegion)(nil), // 12: pb.NodeRegion - (*RPCSuccess)(nil), // 13: pb.RPCSuccess + (*CreateNodeRegionRequest)(nil), // 0: pb.CreateNodeRegionRequest + (*CreateNodeRegionResponse)(nil), // 1: pb.CreateNodeRegionResponse + (*UpdateNodeRegionRequest)(nil), // 2: pb.UpdateNodeRegionRequest + (*DeleteNodeRegionRequest)(nil), // 3: pb.DeleteNodeRegionRequest + (*FindAllEnabledNodeRegionsRequest)(nil), // 4: pb.FindAllEnabledNodeRegionsRequest + (*FindAllEnabledNodeRegionsResponse)(nil), // 5: pb.FindAllEnabledNodeRegionsResponse + (*FindAllAvailableNodeRegionsRequest)(nil), // 6: pb.FindAllAvailableNodeRegionsRequest + (*FindAllAvailableNodeRegionsResponse)(nil), // 7: pb.FindAllAvailableNodeRegionsResponse + (*UpdateNodeRegionOrdersRequest)(nil), // 8: pb.UpdateNodeRegionOrdersRequest + (*FindEnabledNodeRegionRequest)(nil), // 9: pb.FindEnabledNodeRegionRequest + (*FindEnabledNodeRegionResponse)(nil), // 10: pb.FindEnabledNodeRegionResponse + (*UpdateNodeRegionPriceRequest)(nil), // 11: pb.UpdateNodeRegionPriceRequest + (*NodeRegion)(nil), // 12: pb.NodeRegion + (*RPCSuccess)(nil), // 13: pb.RPCSuccess } var file_service_node_region_proto_depIdxs = []int32{ 12, // 0: pb.FindAllEnabledNodeRegionsResponse.nodeRegions:type_name -> pb.NodeRegion - 12, // 1: pb.FindAllEnabledAndOnNodeRegionsResponse.nodeRegions:type_name -> pb.NodeRegion + 12, // 1: pb.FindAllAvailableNodeRegionsResponse.nodeRegions:type_name -> pb.NodeRegion 12, // 2: pb.FindEnabledNodeRegionResponse.nodeRegion:type_name -> pb.NodeRegion 0, // 3: pb.NodeRegionService.createNodeRegion:input_type -> pb.CreateNodeRegionRequest 2, // 4: pb.NodeRegionService.updateNodeRegion:input_type -> pb.UpdateNodeRegionRequest 3, // 5: pb.NodeRegionService.deleteNodeRegion:input_type -> pb.DeleteNodeRegionRequest 4, // 6: pb.NodeRegionService.findAllEnabledNodeRegions:input_type -> pb.FindAllEnabledNodeRegionsRequest - 6, // 7: pb.NodeRegionService.findAllEnabledAndOnNodeRegions:input_type -> pb.FindAllEnabledAndOnNodeRegionsRequest + 6, // 7: pb.NodeRegionService.findAllAvailableNodeRegions:input_type -> pb.FindAllAvailableNodeRegionsRequest 8, // 8: pb.NodeRegionService.updateNodeRegionOrders:input_type -> pb.UpdateNodeRegionOrdersRequest 9, // 9: pb.NodeRegionService.findEnabledNodeRegion:input_type -> pb.FindEnabledNodeRegionRequest 11, // 10: pb.NodeRegionService.updateNodeRegionPrice:input_type -> pb.UpdateNodeRegionPriceRequest @@ -791,7 +790,7 @@ var file_service_node_region_proto_depIdxs = []int32{ 13, // 12: pb.NodeRegionService.updateNodeRegion:output_type -> pb.RPCSuccess 13, // 13: pb.NodeRegionService.deleteNodeRegion:output_type -> pb.RPCSuccess 5, // 14: pb.NodeRegionService.findAllEnabledNodeRegions:output_type -> pb.FindAllEnabledNodeRegionsResponse - 7, // 15: pb.NodeRegionService.findAllEnabledAndOnNodeRegions:output_type -> pb.FindAllEnabledAndOnNodeRegionsResponse + 7, // 15: pb.NodeRegionService.findAllAvailableNodeRegions:output_type -> pb.FindAllAvailableNodeRegionsResponse 13, // 16: pb.NodeRegionService.updateNodeRegionOrders:output_type -> pb.RPCSuccess 10, // 17: pb.NodeRegionService.findEnabledNodeRegion:output_type -> pb.FindEnabledNodeRegionResponse 13, // 18: pb.NodeRegionService.updateNodeRegionPrice:output_type -> pb.RPCSuccess @@ -883,7 +882,7 @@ func file_service_node_region_proto_init() { } } file_service_node_region_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledAndOnNodeRegionsRequest); i { + switch v := v.(*FindAllAvailableNodeRegionsRequest); i { case 0: return &v.state case 1: @@ -895,7 +894,7 @@ func file_service_node_region_proto_init() { } } file_service_node_region_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledAndOnNodeRegionsResponse); i { + switch v := v.(*FindAllAvailableNodeRegionsResponse); i { case 0: return &v.state case 1: @@ -996,7 +995,7 @@ type NodeRegionServiceClient interface { // 查找所有区域 FindAllEnabledNodeRegions(ctx context.Context, in *FindAllEnabledNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeRegionsResponse, error) // 查找所有启用的区域 - FindAllEnabledAndOnNodeRegions(ctx context.Context, in *FindAllEnabledAndOnNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodeRegionsResponse, error) + FindAllAvailableNodeRegions(ctx context.Context, in *FindAllAvailableNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodeRegionsResponse, error) // 排序 UpdateNodeRegionOrders(ctx context.Context, in *UpdateNodeRegionOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 查找单个区域信息 @@ -1049,9 +1048,9 @@ func (c *nodeRegionServiceClient) FindAllEnabledNodeRegions(ctx context.Context, return out, nil } -func (c *nodeRegionServiceClient) FindAllEnabledAndOnNodeRegions(ctx context.Context, in *FindAllEnabledAndOnNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnNodeRegionsResponse, error) { - out := new(FindAllEnabledAndOnNodeRegionsResponse) - err := c.cc.Invoke(ctx, "/pb.NodeRegionService/findAllEnabledAndOnNodeRegions", in, out, opts...) +func (c *nodeRegionServiceClient) FindAllAvailableNodeRegions(ctx context.Context, in *FindAllAvailableNodeRegionsRequest, opts ...grpc.CallOption) (*FindAllAvailableNodeRegionsResponse, error) { + out := new(FindAllAvailableNodeRegionsResponse) + err := c.cc.Invoke(ctx, "/pb.NodeRegionService/findAllAvailableNodeRegions", in, out, opts...) if err != nil { return nil, err } @@ -1096,7 +1095,7 @@ type NodeRegionServiceServer interface { // 查找所有区域 FindAllEnabledNodeRegions(context.Context, *FindAllEnabledNodeRegionsRequest) (*FindAllEnabledNodeRegionsResponse, error) // 查找所有启用的区域 - FindAllEnabledAndOnNodeRegions(context.Context, *FindAllEnabledAndOnNodeRegionsRequest) (*FindAllEnabledAndOnNodeRegionsResponse, error) + FindAllAvailableNodeRegions(context.Context, *FindAllAvailableNodeRegionsRequest) (*FindAllAvailableNodeRegionsResponse, error) // 排序 UpdateNodeRegionOrders(context.Context, *UpdateNodeRegionOrdersRequest) (*RPCSuccess, error) // 查找单个区域信息 @@ -1121,8 +1120,8 @@ func (*UnimplementedNodeRegionServiceServer) DeleteNodeRegion(context.Context, * func (*UnimplementedNodeRegionServiceServer) FindAllEnabledNodeRegions(context.Context, *FindAllEnabledNodeRegionsRequest) (*FindAllEnabledNodeRegionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeRegions not implemented") } -func (*UnimplementedNodeRegionServiceServer) FindAllEnabledAndOnNodeRegions(context.Context, *FindAllEnabledAndOnNodeRegionsRequest) (*FindAllEnabledAndOnNodeRegionsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledAndOnNodeRegions not implemented") +func (*UnimplementedNodeRegionServiceServer) FindAllAvailableNodeRegions(context.Context, *FindAllAvailableNodeRegionsRequest) (*FindAllAvailableNodeRegionsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableNodeRegions not implemented") } func (*UnimplementedNodeRegionServiceServer) UpdateNodeRegionOrders(context.Context, *UpdateNodeRegionOrdersRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeRegionOrders not implemented") @@ -1210,20 +1209,20 @@ func _NodeRegionService_FindAllEnabledNodeRegions_Handler(srv interface{}, ctx c return interceptor(ctx, in, info, handler) } -func _NodeRegionService_FindAllEnabledAndOnNodeRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledAndOnNodeRegionsRequest) +func _NodeRegionService_FindAllAvailableNodeRegions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableNodeRegionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NodeRegionServiceServer).FindAllEnabledAndOnNodeRegions(ctx, in) + return srv.(NodeRegionServiceServer).FindAllAvailableNodeRegions(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NodeRegionService/FindAllEnabledAndOnNodeRegions", + FullMethod: "/pb.NodeRegionService/FindAllAvailableNodeRegions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NodeRegionServiceServer).FindAllEnabledAndOnNodeRegions(ctx, req.(*FindAllEnabledAndOnNodeRegionsRequest)) + return srv.(NodeRegionServiceServer).FindAllAvailableNodeRegions(ctx, req.(*FindAllAvailableNodeRegionsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1303,8 +1302,8 @@ var _NodeRegionService_serviceDesc = grpc.ServiceDesc{ Handler: _NodeRegionService_FindAllEnabledNodeRegions_Handler, }, { - MethodName: "findAllEnabledAndOnNodeRegions", - Handler: _NodeRegionService_FindAllEnabledAndOnNodeRegions_Handler, + MethodName: "findAllAvailableNodeRegions", + Handler: _NodeRegionService_FindAllAvailableNodeRegions_Handler, }, { MethodName: "updateNodeRegionOrders", diff --git a/pkg/rpc/pb/service_ns_cluster.pb.go b/pkg/rpc/pb/service_ns_cluster.pb.go index ab8fab0..5173a30 100644 --- a/pkg/rpc/pb/service_ns_cluster.pb.go +++ b/pkg/rpc/pb/service_ns_cluster.pb.go @@ -396,7 +396,7 @@ func (x *DeleteNSCluster) GetNsClusterId() int64 { } // 查找单个可用集群信息 -type FindEnabledNSClusterRequest struct { +type FindNSClusterRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -404,8 +404,8 @@ type FindEnabledNSClusterRequest struct { NsClusterId int64 `protobuf:"varint,1,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` } -func (x *FindEnabledNSClusterRequest) Reset() { - *x = FindEnabledNSClusterRequest{} +func (x *FindNSClusterRequest) Reset() { + *x = FindNSClusterRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -413,13 +413,13 @@ func (x *FindEnabledNSClusterRequest) Reset() { } } -func (x *FindEnabledNSClusterRequest) String() string { +func (x *FindNSClusterRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSClusterRequest) ProtoMessage() {} +func (*FindNSClusterRequest) ProtoMessage() {} -func (x *FindEnabledNSClusterRequest) ProtoReflect() protoreflect.Message { +func (x *FindNSClusterRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -431,19 +431,19 @@ func (x *FindEnabledNSClusterRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSClusterRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSClusterRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSClusterRequest.ProtoReflect.Descriptor instead. +func (*FindNSClusterRequest) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{7} } -func (x *FindEnabledNSClusterRequest) GetNsClusterId() int64 { +func (x *FindNSClusterRequest) GetNsClusterId() int64 { if x != nil { return x.NsClusterId } return 0 } -type FindEnabledNSClusterResponse struct { +type FindNSClusterResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -451,8 +451,8 @@ type FindEnabledNSClusterResponse struct { NsCluster *NSCluster `protobuf:"bytes,1,opt,name=nsCluster,proto3" json:"nsCluster,omitempty"` } -func (x *FindEnabledNSClusterResponse) Reset() { - *x = FindEnabledNSClusterResponse{} +func (x *FindNSClusterResponse) Reset() { + *x = FindNSClusterResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -460,13 +460,13 @@ func (x *FindEnabledNSClusterResponse) Reset() { } } -func (x *FindEnabledNSClusterResponse) String() string { +func (x *FindNSClusterResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSClusterResponse) ProtoMessage() {} +func (*FindNSClusterResponse) ProtoMessage() {} -func (x *FindEnabledNSClusterResponse) ProtoReflect() protoreflect.Message { +func (x *FindNSClusterResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -478,12 +478,12 @@ func (x *FindEnabledNSClusterResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSClusterResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSClusterResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSClusterResponse.ProtoReflect.Descriptor instead. +func (*FindNSClusterResponse) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{8} } -func (x *FindEnabledNSClusterResponse) GetNsCluster() *NSCluster { +func (x *FindNSClusterResponse) GetNsCluster() *NSCluster { if x != nil { return x.NsCluster } @@ -491,14 +491,14 @@ func (x *FindEnabledNSClusterResponse) GetNsCluster() *NSCluster { } // 计算所有可用集群的数量 -type CountAllEnabledNSClustersRequest struct { +type CountAllNSClustersRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *CountAllEnabledNSClustersRequest) Reset() { - *x = CountAllEnabledNSClustersRequest{} +func (x *CountAllNSClustersRequest) Reset() { + *x = CountAllNSClustersRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -506,13 +506,13 @@ func (x *CountAllEnabledNSClustersRequest) Reset() { } } -func (x *CountAllEnabledNSClustersRequest) String() string { +func (x *CountAllNSClustersRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledNSClustersRequest) ProtoMessage() {} +func (*CountAllNSClustersRequest) ProtoMessage() {} -func (x *CountAllEnabledNSClustersRequest) ProtoReflect() protoreflect.Message { +func (x *CountAllNSClustersRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -524,13 +524,13 @@ func (x *CountAllEnabledNSClustersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledNSClustersRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledNSClustersRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CountAllNSClustersRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSClustersRequest) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{9} } // 列出单页可用集群 -type ListEnabledNSClustersRequest struct { +type ListNSClustersRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -539,8 +539,8 @@ type ListEnabledNSClustersRequest struct { Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` } -func (x *ListEnabledNSClustersRequest) Reset() { - *x = ListEnabledNSClustersRequest{} +func (x *ListNSClustersRequest) Reset() { + *x = ListNSClustersRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -548,13 +548,13 @@ func (x *ListEnabledNSClustersRequest) Reset() { } } -func (x *ListEnabledNSClustersRequest) String() string { +func (x *ListNSClustersRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSClustersRequest) ProtoMessage() {} +func (*ListNSClustersRequest) ProtoMessage() {} -func (x *ListEnabledNSClustersRequest) ProtoReflect() protoreflect.Message { +func (x *ListNSClustersRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -566,26 +566,26 @@ func (x *ListEnabledNSClustersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSClustersRequest.ProtoReflect.Descriptor instead. -func (*ListEnabledNSClustersRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSClustersRequest.ProtoReflect.Descriptor instead. +func (*ListNSClustersRequest) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{10} } -func (x *ListEnabledNSClustersRequest) GetOffset() int64 { +func (x *ListNSClustersRequest) GetOffset() int64 { if x != nil { return x.Offset } return 0 } -func (x *ListEnabledNSClustersRequest) GetSize() int64 { +func (x *ListNSClustersRequest) GetSize() int64 { if x != nil { return x.Size } return 0 } -type ListEnabledNSClustersResponse struct { +type ListNSClustersResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -593,8 +593,8 @@ type ListEnabledNSClustersResponse struct { NsClusters []*NSCluster `protobuf:"bytes,1,rep,name=nsClusters,proto3" json:"nsClusters,omitempty"` } -func (x *ListEnabledNSClustersResponse) Reset() { - *x = ListEnabledNSClustersResponse{} +func (x *ListNSClustersResponse) Reset() { + *x = ListNSClustersResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -602,13 +602,13 @@ func (x *ListEnabledNSClustersResponse) Reset() { } } -func (x *ListEnabledNSClustersResponse) String() string { +func (x *ListNSClustersResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSClustersResponse) ProtoMessage() {} +func (*ListNSClustersResponse) ProtoMessage() {} -func (x *ListEnabledNSClustersResponse) ProtoReflect() protoreflect.Message { +func (x *ListNSClustersResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -620,12 +620,12 @@ func (x *ListEnabledNSClustersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSClustersResponse.ProtoReflect.Descriptor instead. -func (*ListEnabledNSClustersResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSClustersResponse.ProtoReflect.Descriptor instead. +func (*ListNSClustersResponse) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{11} } -func (x *ListEnabledNSClustersResponse) GetNsClusters() []*NSCluster { +func (x *ListNSClustersResponse) GetNsClusters() []*NSCluster { if x != nil { return x.NsClusters } @@ -633,14 +633,14 @@ func (x *ListEnabledNSClustersResponse) GetNsClusters() []*NSCluster { } // 查找所有可用集群 -type FindAllEnabledNSClustersRequest struct { +type FindAllNSClustersRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *FindAllEnabledNSClustersRequest) Reset() { - *x = FindAllEnabledNSClustersRequest{} +func (x *FindAllNSClustersRequest) Reset() { + *x = FindAllNSClustersRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -648,13 +648,13 @@ func (x *FindAllEnabledNSClustersRequest) Reset() { } } -func (x *FindAllEnabledNSClustersRequest) String() string { +func (x *FindAllNSClustersRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledNSClustersRequest) ProtoMessage() {} +func (*FindAllNSClustersRequest) ProtoMessage() {} -func (x *FindAllEnabledNSClustersRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllNSClustersRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -666,12 +666,12 @@ func (x *FindAllEnabledNSClustersRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledNSClustersRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledNSClustersRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllNSClustersRequest.ProtoReflect.Descriptor instead. +func (*FindAllNSClustersRequest) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{12} } -type FindAllEnabledNSClustersResponse struct { +type FindAllNSClustersResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -679,8 +679,8 @@ type FindAllEnabledNSClustersResponse struct { NsClusters []*NSCluster `protobuf:"bytes,1,rep,name=nsClusters,proto3" json:"nsClusters,omitempty"` } -func (x *FindAllEnabledNSClustersResponse) Reset() { - *x = FindAllEnabledNSClustersResponse{} +func (x *FindAllNSClustersResponse) Reset() { + *x = FindAllNSClustersResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_cluster_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -688,13 +688,13 @@ func (x *FindAllEnabledNSClustersResponse) Reset() { } } -func (x *FindAllEnabledNSClustersResponse) String() string { +func (x *FindAllNSClustersResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledNSClustersResponse) ProtoMessage() {} +func (*FindAllNSClustersResponse) ProtoMessage() {} -func (x *FindAllEnabledNSClustersResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllNSClustersResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_cluster_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -706,12 +706,12 @@ func (x *FindAllEnabledNSClustersResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledNSClustersResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledNSClustersResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllNSClustersResponse.ProtoReflect.Descriptor instead. +func (*FindAllNSClustersResponse) Descriptor() ([]byte, []int) { return file_service_ns_cluster_proto_rawDescGZIP(), []int{13} } -func (x *FindAllEnabledNSClustersResponse) GetNsClusters() []*NSCluster { +func (x *FindAllNSClustersResponse) GetNsClusters() []*NSCluster { if x != nil { return x.NsClusters } @@ -1412,196 +1412,188 @@ var file_service_ns_cluster_proto_rawDesc = []byte{ 0x53, 0x4f, 0x4e, 0x22, 0x33, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x4b, 0x0a, 0x1c, 0x46, 0x69, 0x6e, - 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x73, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, - 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, 0x73, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x22, 0x0a, 0x20, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4a, 0x0a, 0x1c, 0x4c, 0x69, - 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4e, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, 0x6e, 0x73, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, - 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x73, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x21, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x51, 0x0a, 0x20, 0x46, 0x69, 0x6e, - 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, - 0x0a, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x0a, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x6f, 0x0a, 0x25, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x75, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, - 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x47, 0x0a, - 0x23, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, + 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x22, 0x44, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x09, 0x6e, + 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x09, 0x6e, + 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x1b, 0x0a, 0x19, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, + 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, + 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x47, 0x0a, 0x16, 0x4c, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x73, 0x22, 0x1a, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, + 0x4a, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x0a, + 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, + 0x0a, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x22, 0x6f, 0x0a, 0x25, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, - 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x41, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x4e, - 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70, - 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x72, + 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x47, 0x0a, 0x23, + 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, + 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x4c, 0x0a, 0x24, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, + 0x0d, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x41, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, + 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x4a, - 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70, 0x4a, + 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x41, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, + 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, - 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, - 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, - 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, - 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, - 0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x46, 0x0a, 0x26, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x49, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, - 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x73, 0x6c, 0x43, 0x65, - 0x72, 0x74, 0x49, 0x64, 0x32, 0xa7, 0x0c, 0x0a, 0x10, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x70, - 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x12, 0x21, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x18, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, - 0x67, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x36, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x0e, - 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x59, - 0x0a, 0x14, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x19, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, - 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x23, 0x2e, 0x70, - 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x1e, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x4e, - 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x12, 0x1d, - 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, - 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, - 0x16, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, - 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, - 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, - 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x54, 0x4c, 0x53, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x52, 0x65, 0x71, 0x75, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, + 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, 0x4f, + 0x4e, 0x22, 0x41, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x22, 0x3a, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, + 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, + 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x07, 0x74, 0x63, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x6c, 0x73, 0x4a, + 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x74, 0x6c, 0x73, 0x4a, 0x53, + 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x75, 0x64, 0x70, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x46, 0x0a, 0x26, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x49, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, 0x74, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x73, 0x6c, 0x43, 0x65, 0x72, + 0x74, 0x49, 0x64, 0x32, 0xda, 0x0b, 0x0a, 0x10, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x0f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x2e, + 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, - 0x44, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, - 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x63, 0x0a, 0x1f, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x57, - 0x69, 0x74, 0x68, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x49, 0x64, 0x12, 0x2a, 0x2e, 0x70, - 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x49, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, - 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, - 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x18, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, + 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x36, 0x0a, 0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, + 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x13, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x1a, 0x0e, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x0a, + 0x0d, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x18, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x12, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, + 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, + 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, + 0x0a, 0x0e, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, + 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1c, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, 0x0a, 0x1e, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x29, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, + 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x71, 0x0a, 0x1c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, + 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, + 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x43, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, + 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x54, 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, + 0x4c, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x54, 0x4c, 0x53, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x55, 0x44, 0x50, 0x12, 0x1d, 0x2e, 0x70, + 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x55, 0x44, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x63, 0x0a, 0x1f, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, 0x74, 0x49, 0x64, 0x12, 0x2a, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x57, 0x69, 0x74, 0x68, 0x53, 0x53, 0x4c, 0x43, 0x65, 0x72, + 0x74, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1625,13 +1617,13 @@ var file_service_ns_cluster_proto_goTypes = []interface{}{ (*FindNSClusterAccessLogResponse)(nil), // 4: pb.FindNSClusterAccessLogResponse (*UpdateNSClusterAccessLogRequest)(nil), // 5: pb.UpdateNSClusterAccessLogRequest (*DeleteNSCluster)(nil), // 6: pb.DeleteNSCluster - (*FindEnabledNSClusterRequest)(nil), // 7: pb.FindEnabledNSClusterRequest - (*FindEnabledNSClusterResponse)(nil), // 8: pb.FindEnabledNSClusterResponse - (*CountAllEnabledNSClustersRequest)(nil), // 9: pb.CountAllEnabledNSClustersRequest - (*ListEnabledNSClustersRequest)(nil), // 10: pb.ListEnabledNSClustersRequest - (*ListEnabledNSClustersResponse)(nil), // 11: pb.ListEnabledNSClustersResponse - (*FindAllEnabledNSClustersRequest)(nil), // 12: pb.FindAllEnabledNSClustersRequest - (*FindAllEnabledNSClustersResponse)(nil), // 13: pb.FindAllEnabledNSClustersResponse + (*FindNSClusterRequest)(nil), // 7: pb.FindNSClusterRequest + (*FindNSClusterResponse)(nil), // 8: pb.FindNSClusterResponse + (*CountAllNSClustersRequest)(nil), // 9: pb.CountAllNSClustersRequest + (*ListNSClustersRequest)(nil), // 10: pb.ListNSClustersRequest + (*ListNSClustersResponse)(nil), // 11: pb.ListNSClustersResponse + (*FindAllNSClustersRequest)(nil), // 12: pb.FindAllNSClustersRequest + (*FindAllNSClustersResponse)(nil), // 13: pb.FindAllNSClustersResponse (*UpdateNSClusterRecursionConfigRequest)(nil), // 14: pb.UpdateNSClusterRecursionConfigRequest (*FindNSClusterRecursionConfigRequest)(nil), // 15: pb.FindNSClusterRecursionConfigRequest (*FindNSClusterRecursionConfigResponse)(nil), // 16: pb.FindNSClusterRecursionConfigResponse @@ -1650,18 +1642,18 @@ var file_service_ns_cluster_proto_goTypes = []interface{}{ (*RPCCountResponse)(nil), // 29: pb.RPCCountResponse } var file_service_ns_cluster_proto_depIdxs = []int32{ - 27, // 0: pb.FindEnabledNSClusterResponse.nsCluster:type_name -> pb.NSCluster - 27, // 1: pb.ListEnabledNSClustersResponse.nsClusters:type_name -> pb.NSCluster - 27, // 2: pb.FindAllEnabledNSClustersResponse.nsClusters:type_name -> pb.NSCluster + 27, // 0: pb.FindNSClusterResponse.nsCluster:type_name -> pb.NSCluster + 27, // 1: pb.ListNSClustersResponse.nsClusters:type_name -> pb.NSCluster + 27, // 2: pb.FindAllNSClustersResponse.nsClusters:type_name -> pb.NSCluster 0, // 3: pb.NSClusterService.createNSCluster:input_type -> pb.CreateNSClusterRequest 2, // 4: pb.NSClusterService.updateNSCluster:input_type -> pb.UpdateNSClusterRequest 3, // 5: pb.NSClusterService.findNSClusterAccessLog:input_type -> pb.FindNSClusterAccessLogRequest 5, // 6: pb.NSClusterService.updateNSClusterAccessLog:input_type -> pb.UpdateNSClusterAccessLogRequest 6, // 7: pb.NSClusterService.deleteNSCluster:input_type -> pb.DeleteNSCluster - 7, // 8: pb.NSClusterService.findEnabledNSCluster:input_type -> pb.FindEnabledNSClusterRequest - 9, // 9: pb.NSClusterService.countAllEnabledNSClusters:input_type -> pb.CountAllEnabledNSClustersRequest - 10, // 10: pb.NSClusterService.listEnabledNSClusters:input_type -> pb.ListEnabledNSClustersRequest - 12, // 11: pb.NSClusterService.findAllEnabledNSClusters:input_type -> pb.FindAllEnabledNSClustersRequest + 7, // 8: pb.NSClusterService.findNSCluster:input_type -> pb.FindNSClusterRequest + 9, // 9: pb.NSClusterService.countAllNSClusters:input_type -> pb.CountAllNSClustersRequest + 10, // 10: pb.NSClusterService.listNSClusters:input_type -> pb.ListNSClustersRequest + 12, // 11: pb.NSClusterService.findAllNSClusters:input_type -> pb.FindAllNSClustersRequest 14, // 12: pb.NSClusterService.updateNSClusterRecursionConfig:input_type -> pb.UpdateNSClusterRecursionConfigRequest 15, // 13: pb.NSClusterService.findNSClusterRecursionConfig:input_type -> pb.FindNSClusterRecursionConfigRequest 17, // 14: pb.NSClusterService.findNSClusterTCPConfig:input_type -> pb.FindNSClusterTCPConfigRequest @@ -1676,10 +1668,10 @@ var file_service_ns_cluster_proto_depIdxs = []int32{ 4, // 23: pb.NSClusterService.findNSClusterAccessLog:output_type -> pb.FindNSClusterAccessLogResponse 28, // 24: pb.NSClusterService.updateNSClusterAccessLog:output_type -> pb.RPCSuccess 28, // 25: pb.NSClusterService.deleteNSCluster:output_type -> pb.RPCSuccess - 8, // 26: pb.NSClusterService.findEnabledNSCluster:output_type -> pb.FindEnabledNSClusterResponse - 29, // 27: pb.NSClusterService.countAllEnabledNSClusters:output_type -> pb.RPCCountResponse - 11, // 28: pb.NSClusterService.listEnabledNSClusters:output_type -> pb.ListEnabledNSClustersResponse - 13, // 29: pb.NSClusterService.findAllEnabledNSClusters:output_type -> pb.FindAllEnabledNSClustersResponse + 8, // 26: pb.NSClusterService.findNSCluster:output_type -> pb.FindNSClusterResponse + 29, // 27: pb.NSClusterService.countAllNSClusters:output_type -> pb.RPCCountResponse + 11, // 28: pb.NSClusterService.listNSClusters:output_type -> pb.ListNSClustersResponse + 13, // 29: pb.NSClusterService.findAllNSClusters:output_type -> pb.FindAllNSClustersResponse 28, // 30: pb.NSClusterService.updateNSClusterRecursionConfig:output_type -> pb.RPCSuccess 16, // 31: pb.NSClusterService.findNSClusterRecursionConfig:output_type -> pb.FindNSClusterRecursionConfigResponse 18, // 32: pb.NSClusterService.findNSClusterTCPConfig:output_type -> pb.FindNSClusterTCPConfigResponse @@ -1789,7 +1781,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSClusterRequest); i { + switch v := v.(*FindNSClusterRequest); i { case 0: return &v.state case 1: @@ -1801,7 +1793,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSClusterResponse); i { + switch v := v.(*FindNSClusterResponse); i { case 0: return &v.state case 1: @@ -1813,7 +1805,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledNSClustersRequest); i { + switch v := v.(*CountAllNSClustersRequest); i { case 0: return &v.state case 1: @@ -1825,7 +1817,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSClustersRequest); i { + switch v := v.(*ListNSClustersRequest); i { case 0: return &v.state case 1: @@ -1837,7 +1829,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSClustersResponse); i { + switch v := v.(*ListNSClustersResponse); i { case 0: return &v.state case 1: @@ -1849,7 +1841,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledNSClustersRequest); i { + switch v := v.(*FindAllNSClustersRequest); i { case 0: return &v.state case 1: @@ -1861,7 +1853,7 @@ func file_service_ns_cluster_proto_init() { } } file_service_ns_cluster_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledNSClustersResponse); i { + switch v := v.(*FindAllNSClustersResponse); i { case 0: return &v.state case 1: @@ -2072,13 +2064,13 @@ type NSClusterServiceClient interface { // 删除集群 DeleteNSCluster(ctx context.Context, in *DeleteNSCluster, opts ...grpc.CallOption) (*RPCSuccess, error) // 查找单个可用集群信息 - FindEnabledNSCluster(ctx context.Context, in *FindEnabledNSClusterRequest, opts ...grpc.CallOption) (*FindEnabledNSClusterResponse, error) + FindNSCluster(ctx context.Context, in *FindNSClusterRequest, opts ...grpc.CallOption) (*FindNSClusterResponse, error) // 计算所有可用集群的数量 - CountAllEnabledNSClusters(ctx context.Context, in *CountAllEnabledNSClustersRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllNSClusters(ctx context.Context, in *CountAllNSClustersRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 列出单页可用集群 - ListEnabledNSClusters(ctx context.Context, in *ListEnabledNSClustersRequest, opts ...grpc.CallOption) (*ListEnabledNSClustersResponse, error) + ListNSClusters(ctx context.Context, in *ListNSClustersRequest, opts ...grpc.CallOption) (*ListNSClustersResponse, error) // 查找所有可用集群 - FindAllEnabledNSClusters(ctx context.Context, in *FindAllEnabledNSClustersRequest, opts ...grpc.CallOption) (*FindAllEnabledNSClustersResponse, error) + FindAllNSClusters(ctx context.Context, in *FindAllNSClustersRequest, opts ...grpc.CallOption) (*FindAllNSClustersResponse, error) // 设置递归DNS配置 UpdateNSClusterRecursionConfig(ctx context.Context, in *UpdateNSClusterRecursionConfigRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 读取递归DNS配置 @@ -2152,36 +2144,36 @@ func (c *nSClusterServiceClient) DeleteNSCluster(ctx context.Context, in *Delete return out, nil } -func (c *nSClusterServiceClient) FindEnabledNSCluster(ctx context.Context, in *FindEnabledNSClusterRequest, opts ...grpc.CallOption) (*FindEnabledNSClusterResponse, error) { - out := new(FindEnabledNSClusterResponse) - err := c.cc.Invoke(ctx, "/pb.NSClusterService/findEnabledNSCluster", in, out, opts...) +func (c *nSClusterServiceClient) FindNSCluster(ctx context.Context, in *FindNSClusterRequest, opts ...grpc.CallOption) (*FindNSClusterResponse, error) { + out := new(FindNSClusterResponse) + err := c.cc.Invoke(ctx, "/pb.NSClusterService/findNSCluster", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSClusterServiceClient) CountAllEnabledNSClusters(ctx context.Context, in *CountAllEnabledNSClustersRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nSClusterServiceClient) CountAllNSClusters(ctx context.Context, in *CountAllNSClustersRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NSClusterService/countAllEnabledNSClusters", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NSClusterService/countAllNSClusters", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSClusterServiceClient) ListEnabledNSClusters(ctx context.Context, in *ListEnabledNSClustersRequest, opts ...grpc.CallOption) (*ListEnabledNSClustersResponse, error) { - out := new(ListEnabledNSClustersResponse) - err := c.cc.Invoke(ctx, "/pb.NSClusterService/listEnabledNSClusters", in, out, opts...) +func (c *nSClusterServiceClient) ListNSClusters(ctx context.Context, in *ListNSClustersRequest, opts ...grpc.CallOption) (*ListNSClustersResponse, error) { + out := new(ListNSClustersResponse) + err := c.cc.Invoke(ctx, "/pb.NSClusterService/listNSClusters", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSClusterServiceClient) FindAllEnabledNSClusters(ctx context.Context, in *FindAllEnabledNSClustersRequest, opts ...grpc.CallOption) (*FindAllEnabledNSClustersResponse, error) { - out := new(FindAllEnabledNSClustersResponse) - err := c.cc.Invoke(ctx, "/pb.NSClusterService/findAllEnabledNSClusters", in, out, opts...) +func (c *nSClusterServiceClient) FindAllNSClusters(ctx context.Context, in *FindAllNSClustersRequest, opts ...grpc.CallOption) (*FindAllNSClustersResponse, error) { + out := new(FindAllNSClustersResponse) + err := c.cc.Invoke(ctx, "/pb.NSClusterService/findAllNSClusters", in, out, opts...) if err != nil { return nil, err } @@ -2282,13 +2274,13 @@ type NSClusterServiceServer interface { // 删除集群 DeleteNSCluster(context.Context, *DeleteNSCluster) (*RPCSuccess, error) // 查找单个可用集群信息 - FindEnabledNSCluster(context.Context, *FindEnabledNSClusterRequest) (*FindEnabledNSClusterResponse, error) + FindNSCluster(context.Context, *FindNSClusterRequest) (*FindNSClusterResponse, error) // 计算所有可用集群的数量 - CountAllEnabledNSClusters(context.Context, *CountAllEnabledNSClustersRequest) (*RPCCountResponse, error) + CountAllNSClusters(context.Context, *CountAllNSClustersRequest) (*RPCCountResponse, error) // 列出单页可用集群 - ListEnabledNSClusters(context.Context, *ListEnabledNSClustersRequest) (*ListEnabledNSClustersResponse, error) + ListNSClusters(context.Context, *ListNSClustersRequest) (*ListNSClustersResponse, error) // 查找所有可用集群 - FindAllEnabledNSClusters(context.Context, *FindAllEnabledNSClustersRequest) (*FindAllEnabledNSClustersResponse, error) + FindAllNSClusters(context.Context, *FindAllNSClustersRequest) (*FindAllNSClustersResponse, error) // 设置递归DNS配置 UpdateNSClusterRecursionConfig(context.Context, *UpdateNSClusterRecursionConfigRequest) (*RPCSuccess, error) // 读取递归DNS配置 @@ -2328,17 +2320,17 @@ func (*UnimplementedNSClusterServiceServer) UpdateNSClusterAccessLog(context.Con func (*UnimplementedNSClusterServiceServer) DeleteNSCluster(context.Context, *DeleteNSCluster) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNSCluster not implemented") } -func (*UnimplementedNSClusterServiceServer) FindEnabledNSCluster(context.Context, *FindEnabledNSClusterRequest) (*FindEnabledNSClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSCluster not implemented") +func (*UnimplementedNSClusterServiceServer) FindNSCluster(context.Context, *FindNSClusterRequest) (*FindNSClusterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSCluster not implemented") } -func (*UnimplementedNSClusterServiceServer) CountAllEnabledNSClusters(context.Context, *CountAllEnabledNSClustersRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSClusters not implemented") +func (*UnimplementedNSClusterServiceServer) CountAllNSClusters(context.Context, *CountAllNSClustersRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSClusters not implemented") } -func (*UnimplementedNSClusterServiceServer) ListEnabledNSClusters(context.Context, *ListEnabledNSClustersRequest) (*ListEnabledNSClustersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSClusters not implemented") +func (*UnimplementedNSClusterServiceServer) ListNSClusters(context.Context, *ListNSClustersRequest) (*ListNSClustersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNSClusters not implemented") } -func (*UnimplementedNSClusterServiceServer) FindAllEnabledNSClusters(context.Context, *FindAllEnabledNSClustersRequest) (*FindAllEnabledNSClustersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNSClusters not implemented") +func (*UnimplementedNSClusterServiceServer) FindAllNSClusters(context.Context, *FindAllNSClustersRequest) (*FindAllNSClustersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllNSClusters not implemented") } func (*UnimplementedNSClusterServiceServer) UpdateNSClusterRecursionConfig(context.Context, *UpdateNSClusterRecursionConfigRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNSClusterRecursionConfig not implemented") @@ -2462,74 +2454,74 @@ func _NSClusterService_DeleteNSCluster_Handler(srv interface{}, ctx context.Cont return interceptor(ctx, in, info, handler) } -func _NSClusterService_FindEnabledNSCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSClusterRequest) +func _NSClusterService_FindNSCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSClusterRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSClusterServiceServer).FindEnabledNSCluster(ctx, in) + return srv.(NSClusterServiceServer).FindNSCluster(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSClusterService/FindEnabledNSCluster", + FullMethod: "/pb.NSClusterService/FindNSCluster", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSClusterServiceServer).FindEnabledNSCluster(ctx, req.(*FindEnabledNSClusterRequest)) + return srv.(NSClusterServiceServer).FindNSCluster(ctx, req.(*FindNSClusterRequest)) } return interceptor(ctx, in, info, handler) } -func _NSClusterService_CountAllEnabledNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledNSClustersRequest) +func _NSClusterService_CountAllNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSClustersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSClusterServiceServer).CountAllEnabledNSClusters(ctx, in) + return srv.(NSClusterServiceServer).CountAllNSClusters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSClusterService/CountAllEnabledNSClusters", + FullMethod: "/pb.NSClusterService/CountAllNSClusters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSClusterServiceServer).CountAllEnabledNSClusters(ctx, req.(*CountAllEnabledNSClustersRequest)) + return srv.(NSClusterServiceServer).CountAllNSClusters(ctx, req.(*CountAllNSClustersRequest)) } return interceptor(ctx, in, info, handler) } -func _NSClusterService_ListEnabledNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEnabledNSClustersRequest) +func _NSClusterService_ListNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNSClustersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSClusterServiceServer).ListEnabledNSClusters(ctx, in) + return srv.(NSClusterServiceServer).ListNSClusters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSClusterService/ListEnabledNSClusters", + FullMethod: "/pb.NSClusterService/ListNSClusters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSClusterServiceServer).ListEnabledNSClusters(ctx, req.(*ListEnabledNSClustersRequest)) + return srv.(NSClusterServiceServer).ListNSClusters(ctx, req.(*ListNSClustersRequest)) } return interceptor(ctx, in, info, handler) } -func _NSClusterService_FindAllEnabledNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledNSClustersRequest) +func _NSClusterService_FindAllNSClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllNSClustersRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSClusterServiceServer).FindAllEnabledNSClusters(ctx, in) + return srv.(NSClusterServiceServer).FindAllNSClusters(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSClusterService/FindAllEnabledNSClusters", + FullMethod: "/pb.NSClusterService/FindAllNSClusters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSClusterServiceServer).FindAllEnabledNSClusters(ctx, req.(*FindAllEnabledNSClustersRequest)) + return srv.(NSClusterServiceServer).FindAllNSClusters(ctx, req.(*FindAllNSClustersRequest)) } return interceptor(ctx, in, info, handler) } @@ -2721,20 +2713,20 @@ var _NSClusterService_serviceDesc = grpc.ServiceDesc{ Handler: _NSClusterService_DeleteNSCluster_Handler, }, { - MethodName: "findEnabledNSCluster", - Handler: _NSClusterService_FindEnabledNSCluster_Handler, + MethodName: "findNSCluster", + Handler: _NSClusterService_FindNSCluster_Handler, }, { - MethodName: "countAllEnabledNSClusters", - Handler: _NSClusterService_CountAllEnabledNSClusters_Handler, + MethodName: "countAllNSClusters", + Handler: _NSClusterService_CountAllNSClusters_Handler, }, { - MethodName: "listEnabledNSClusters", - Handler: _NSClusterService_ListEnabledNSClusters_Handler, + MethodName: "listNSClusters", + Handler: _NSClusterService_ListNSClusters_Handler, }, { - MethodName: "findAllEnabledNSClusters", - Handler: _NSClusterService_FindAllEnabledNSClusters_Handler, + MethodName: "findAllNSClusters", + Handler: _NSClusterService_FindAllNSClusters_Handler, }, { MethodName: "updateNSClusterRecursionConfig", diff --git a/pkg/rpc/pb/service_ns_domain.pb.go b/pkg/rpc/pb/service_ns_domain.pb.go index f068b83..063dc24 100644 --- a/pkg/rpc/pb/service_ns_domain.pb.go +++ b/pkg/rpc/pb/service_ns_domain.pb.go @@ -29,15 +29,16 @@ const ( // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 -// 创建域名 +// 创建单个域名 type CreateNSDomainRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NsClusterId int64 `protobuf:"varint,1,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` - UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + NsClusterId int64 `protobuf:"varint,1,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` // 所属集群 + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` // 所属用户 + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 域名 + NsDomainGroupIds []int64 `protobuf:"varint,4,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"` // 域名分组ID } func (x *CreateNSDomainRequest) Reset() { @@ -93,6 +94,13 @@ func (x *CreateNSDomainRequest) GetName() string { return "" } +func (x *CreateNSDomainRequest) GetNsDomainGroupIds() []int64 { + if x != nil { + return x.NsDomainGroupIds + } + return nil +} + type CreateNSDomainResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -140,6 +148,125 @@ func (x *CreateNSDomainResponse) GetNsDomainId() int64 { return 0 } +// 批量创建域名 +type CreateNSDomainsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsClusterId int64 `protobuf:"varint,1,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` // 所属集群 + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` // 所属用户 + Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"` // 一组域名 + NsDomainGroupIds []int64 `protobuf:"varint,4,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"` // 域名分组ID +} + +func (x *CreateNSDomainsRequest) Reset() { + *x = CreateNSDomainsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSDomainsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSDomainsRequest) ProtoMessage() {} + +func (x *CreateNSDomainsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_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 CreateNSDomainsRequest.ProtoReflect.Descriptor instead. +func (*CreateNSDomainsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateNSDomainsRequest) GetNsClusterId() int64 { + if x != nil { + return x.NsClusterId + } + return 0 +} + +func (x *CreateNSDomainsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CreateNSDomainsRequest) GetNames() []string { + if x != nil { + return x.Names + } + return nil +} + +func (x *CreateNSDomainsRequest) GetNsDomainGroupIds() []int64 { + if x != nil { + return x.NsDomainGroupIds + } + return nil +} + +type CreateNSDomainsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainIds []int64 `protobuf:"varint,1,rep,packed,name=nsDomainIds,proto3" json:"nsDomainIds,omitempty"` +} + +func (x *CreateNSDomainsResponse) Reset() { + *x = CreateNSDomainsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSDomainsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSDomainsResponse) ProtoMessage() {} + +func (x *CreateNSDomainsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_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 CreateNSDomainsResponse.ProtoReflect.Descriptor instead. +func (*CreateNSDomainsResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateNSDomainsResponse) GetNsDomainIds() []int64 { + if x != nil { + return x.NsDomainIds + } + return nil +} + // 修改域名 // 注意:名称不能修改 type UpdateNSDomainRequest struct { @@ -147,16 +274,17 @@ type UpdateNSDomainRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` - NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` - UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` - IsOn bool `protobuf:"varint,4,opt,name=isOn,proto3" json:"isOn,omitempty"` + NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` + NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` + UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` + NsDomainGroupIds []int64 `protobuf:"varint,5,rep,packed,name=nsDomainGroupIds,proto3" json:"nsDomainGroupIds,omitempty"` // 域名分组ID + IsOn bool `protobuf:"varint,4,opt,name=isOn,proto3" json:"isOn,omitempty"` } func (x *UpdateNSDomainRequest) Reset() { *x = UpdateNSDomainRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[2] + mi := &file_service_ns_domain_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -169,7 +297,7 @@ func (x *UpdateNSDomainRequest) String() string { func (*UpdateNSDomainRequest) ProtoMessage() {} func (x *UpdateNSDomainRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[2] + mi := &file_service_ns_domain_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -182,7 +310,7 @@ func (x *UpdateNSDomainRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNSDomainRequest.ProtoReflect.Descriptor instead. func (*UpdateNSDomainRequest) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{2} + return file_service_ns_domain_proto_rawDescGZIP(), []int{4} } func (x *UpdateNSDomainRequest) GetNsDomainId() int64 { @@ -206,6 +334,13 @@ func (x *UpdateNSDomainRequest) GetUserId() int64 { return 0 } +func (x *UpdateNSDomainRequest) GetNsDomainGroupIds() []int64 { + if x != nil { + return x.NsDomainGroupIds + } + return nil +} + func (x *UpdateNSDomainRequest) GetIsOn() bool { if x != nil { return x.IsOn @@ -225,7 +360,7 @@ type DeleteNSDomainRequest struct { func (x *DeleteNSDomainRequest) Reset() { *x = DeleteNSDomainRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[3] + mi := &file_service_ns_domain_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -238,7 +373,7 @@ func (x *DeleteNSDomainRequest) String() string { func (*DeleteNSDomainRequest) ProtoMessage() {} func (x *DeleteNSDomainRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[3] + mi := &file_service_ns_domain_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -251,7 +386,7 @@ func (x *DeleteNSDomainRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteNSDomainRequest.ProtoReflect.Descriptor instead. func (*DeleteNSDomainRequest) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{3} + return file_service_ns_domain_proto_rawDescGZIP(), []int{5} } func (x *DeleteNSDomainRequest) GetNsDomainId() int64 { @@ -262,7 +397,7 @@ func (x *DeleteNSDomainRequest) GetNsDomainId() int64 { } // 查找单个域名 -type FindEnabledNSDomainRequest struct { +type FindNSDomainRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -270,105 +405,8 @@ type FindEnabledNSDomainRequest struct { NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` } -func (x *FindEnabledNSDomainRequest) Reset() { - *x = FindEnabledNSDomainRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindEnabledNSDomainRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindEnabledNSDomainRequest) ProtoMessage() {} - -func (x *FindEnabledNSDomainRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_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 FindEnabledNSDomainRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSDomainRequest) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{4} -} - -func (x *FindEnabledNSDomainRequest) GetNsDomainId() int64 { - if x != nil { - return x.NsDomainId - } - return 0 -} - -type FindEnabledNSDomainResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NsDomain *NSDomain `protobuf:"bytes,1,opt,name=nsDomain,proto3" json:"nsDomain,omitempty"` -} - -func (x *FindEnabledNSDomainResponse) Reset() { - *x = FindEnabledNSDomainResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindEnabledNSDomainResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindEnabledNSDomainResponse) ProtoMessage() {} - -func (x *FindEnabledNSDomainResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_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 FindEnabledNSDomainResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSDomainResponse) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{5} -} - -func (x *FindEnabledNSDomainResponse) GetNsDomain() *NSDomain { - if x != nil { - return x.NsDomain - } - return nil -} - -// 计算域名数量 -type CountAllEnabledNSDomainsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` - NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` - Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` -} - -func (x *CountAllEnabledNSDomainsRequest) Reset() { - *x = CountAllEnabledNSDomainsRequest{} +func (x *FindNSDomainRequest) Reset() { + *x = FindNSDomainRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_domain_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -376,13 +414,13 @@ func (x *CountAllEnabledNSDomainsRequest) Reset() { } } -func (x *CountAllEnabledNSDomainsRequest) String() string { +func (x *FindNSDomainRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledNSDomainsRequest) ProtoMessage() {} +func (*FindNSDomainRequest) ProtoMessage() {} -func (x *CountAllEnabledNSDomainsRequest) ProtoReflect() protoreflect.Message { +func (x *FindNSDomainRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_domain_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -394,47 +432,28 @@ func (x *CountAllEnabledNSDomainsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledNSDomainsRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledNSDomainsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSDomainRequest.ProtoReflect.Descriptor instead. +func (*FindNSDomainRequest) Descriptor() ([]byte, []int) { return file_service_ns_domain_proto_rawDescGZIP(), []int{6} } -func (x *CountAllEnabledNSDomainsRequest) GetUserId() int64 { +func (x *FindNSDomainRequest) GetNsDomainId() int64 { if x != nil { - return x.UserId + return x.NsDomainId } return 0 } -func (x *CountAllEnabledNSDomainsRequest) GetNsClusterId() int64 { - if x != nil { - return x.NsClusterId - } - return 0 -} - -func (x *CountAllEnabledNSDomainsRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -// 列出单页域名 -type ListEnabledNSDomainsRequest struct { +type FindNSDomainResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` - NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` - Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` - Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` - Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` + NsDomain *NSDomain `protobuf:"bytes,1,opt,name=nsDomain,proto3" json:"nsDomain,omitempty"` } -func (x *ListEnabledNSDomainsRequest) Reset() { - *x = ListEnabledNSDomainsRequest{} +func (x *FindNSDomainResponse) Reset() { + *x = FindNSDomainResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_domain_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -442,13 +461,13 @@ func (x *ListEnabledNSDomainsRequest) Reset() { } } -func (x *ListEnabledNSDomainsRequest) String() string { +func (x *FindNSDomainResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSDomainsRequest) ProtoMessage() {} +func (*FindNSDomainResponse) ProtoMessage() {} -func (x *ListEnabledNSDomainsRequest) ProtoReflect() protoreflect.Message { +func (x *FindNSDomainResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_domain_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -460,56 +479,32 @@ func (x *ListEnabledNSDomainsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSDomainsRequest.ProtoReflect.Descriptor instead. -func (*ListEnabledNSDomainsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSDomainResponse.ProtoReflect.Descriptor instead. +func (*FindNSDomainResponse) Descriptor() ([]byte, []int) { return file_service_ns_domain_proto_rawDescGZIP(), []int{7} } -func (x *ListEnabledNSDomainsRequest) GetUserId() int64 { +func (x *FindNSDomainResponse) GetNsDomain() *NSDomain { if x != nil { - return x.UserId + return x.NsDomain } - return 0 + return nil } -func (x *ListEnabledNSDomainsRequest) GetNsClusterId() int64 { - if x != nil { - return x.NsClusterId - } - return 0 -} - -func (x *ListEnabledNSDomainsRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -func (x *ListEnabledNSDomainsRequest) GetOffset() int64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ListEnabledNSDomainsRequest) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -type ListEnabledNSDomainsResponse struct { +// 计算域名数量 +type CountAllNSDomainsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NsDomains []*NSDomain `protobuf:"bytes,1,rep,name=nsDomains,proto3" json:"nsDomains,omitempty"` + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` + Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` + NsDomainGroupId int64 `protobuf:"varint,4,opt,name=nsDomainGroupId,proto3" json:"nsDomainGroupId,omitempty"` } -func (x *ListEnabledNSDomainsResponse) Reset() { - *x = ListEnabledNSDomainsResponse{} +func (x *CountAllNSDomainsRequest) Reset() { + *x = CountAllNSDomainsRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_domain_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -517,13 +512,13 @@ func (x *ListEnabledNSDomainsResponse) Reset() { } } -func (x *ListEnabledNSDomainsResponse) String() string { +func (x *CountAllNSDomainsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSDomainsResponse) ProtoMessage() {} +func (*CountAllNSDomainsRequest) ProtoMessage() {} -func (x *ListEnabledNSDomainsResponse) ProtoReflect() protoreflect.Message { +func (x *CountAllNSDomainsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_domain_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -535,12 +530,168 @@ func (x *ListEnabledNSDomainsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSDomainsResponse.ProtoReflect.Descriptor instead. -func (*ListEnabledNSDomainsResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use CountAllNSDomainsRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSDomainsRequest) Descriptor() ([]byte, []int) { return file_service_ns_domain_proto_rawDescGZIP(), []int{8} } -func (x *ListEnabledNSDomainsResponse) GetNsDomains() []*NSDomain { +func (x *CountAllNSDomainsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *CountAllNSDomainsRequest) GetNsClusterId() int64 { + if x != nil { + return x.NsClusterId + } + return 0 +} + +func (x *CountAllNSDomainsRequest) GetKeyword() string { + if x != nil { + return x.Keyword + } + return "" +} + +func (x *CountAllNSDomainsRequest) GetNsDomainGroupId() int64 { + if x != nil { + return x.NsDomainGroupId + } + return 0 +} + +// 列出单页域名 +type ListNSDomainsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + NsClusterId int64 `protobuf:"varint,2,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` + Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` + NsDomainGroupId int64 `protobuf:"varint,6,opt,name=nsDomainGroupId,proto3" json:"nsDomainGroupId,omitempty"` + Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` + Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *ListNSDomainsRequest) Reset() { + *x = ListNSDomainsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListNSDomainsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNSDomainsRequest) ProtoMessage() {} + +func (x *ListNSDomainsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_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 ListNSDomainsRequest.ProtoReflect.Descriptor instead. +func (*ListNSDomainsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{9} +} + +func (x *ListNSDomainsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *ListNSDomainsRequest) GetNsClusterId() int64 { + if x != nil { + return x.NsClusterId + } + return 0 +} + +func (x *ListNSDomainsRequest) GetKeyword() string { + if x != nil { + return x.Keyword + } + return "" +} + +func (x *ListNSDomainsRequest) GetNsDomainGroupId() int64 { + if x != nil { + return x.NsDomainGroupId + } + return 0 +} + +func (x *ListNSDomainsRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListNSDomainsRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListNSDomainsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomains []*NSDomain `protobuf:"bytes,1,rep,name=nsDomains,proto3" json:"nsDomains,omitempty"` +} + +func (x *ListNSDomainsResponse) Reset() { + *x = ListNSDomainsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListNSDomainsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNSDomainsResponse) ProtoMessage() {} + +func (x *ListNSDomainsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_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 ListNSDomainsResponse.ProtoReflect.Descriptor instead. +func (*ListNSDomainsResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{10} +} + +func (x *ListNSDomainsResponse) GetNsDomains() []*NSDomain { if x != nil { return x.NsDomains } @@ -560,7 +711,7 @@ type ListNSDomainsAfterVersionRequest struct { func (x *ListNSDomainsAfterVersionRequest) Reset() { *x = ListNSDomainsAfterVersionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[9] + mi := &file_service_ns_domain_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -573,7 +724,7 @@ func (x *ListNSDomainsAfterVersionRequest) String() string { func (*ListNSDomainsAfterVersionRequest) ProtoMessage() {} func (x *ListNSDomainsAfterVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[9] + mi := &file_service_ns_domain_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -586,7 +737,7 @@ func (x *ListNSDomainsAfterVersionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSDomainsAfterVersionRequest.ProtoReflect.Descriptor instead. func (*ListNSDomainsAfterVersionRequest) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{9} + return file_service_ns_domain_proto_rawDescGZIP(), []int{11} } func (x *ListNSDomainsAfterVersionRequest) GetVersion() int64 { @@ -614,7 +765,7 @@ type ListNSDomainsAfterVersionResponse struct { func (x *ListNSDomainsAfterVersionResponse) Reset() { *x = ListNSDomainsAfterVersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[10] + mi := &file_service_ns_domain_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -627,7 +778,7 @@ func (x *ListNSDomainsAfterVersionResponse) String() string { func (*ListNSDomainsAfterVersionResponse) ProtoMessage() {} func (x *ListNSDomainsAfterVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[10] + mi := &file_service_ns_domain_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -640,7 +791,7 @@ func (x *ListNSDomainsAfterVersionResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListNSDomainsAfterVersionResponse.ProtoReflect.Descriptor instead. func (*ListNSDomainsAfterVersionResponse) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{10} + return file_service_ns_domain_proto_rawDescGZIP(), []int{12} } func (x *ListNSDomainsAfterVersionResponse) GetNsDomains() []*NSDomain { @@ -651,7 +802,7 @@ func (x *ListNSDomainsAfterVersionResponse) GetNsDomains() []*NSDomain { } // 查找TSIG配置 -type FindEnabledNSDomainTSIGRequest struct { +type FindNSDomainTSIGRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -659,23 +810,23 @@ type FindEnabledNSDomainTSIGRequest struct { NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` } -func (x *FindEnabledNSDomainTSIGRequest) Reset() { - *x = FindEnabledNSDomainTSIGRequest{} +func (x *FindNSDomainTSIGRequest) Reset() { + *x = FindNSDomainTSIGRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[11] + mi := &file_service_ns_domain_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FindEnabledNSDomainTSIGRequest) String() string { +func (x *FindNSDomainTSIGRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSDomainTSIGRequest) ProtoMessage() {} +func (*FindNSDomainTSIGRequest) ProtoMessage() {} -func (x *FindEnabledNSDomainTSIGRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[11] +func (x *FindNSDomainTSIGRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -686,19 +837,19 @@ func (x *FindEnabledNSDomainTSIGRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSDomainTSIGRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSDomainTSIGRequest) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{11} +// Deprecated: Use FindNSDomainTSIGRequest.ProtoReflect.Descriptor instead. +func (*FindNSDomainTSIGRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{13} } -func (x *FindEnabledNSDomainTSIGRequest) GetNsDomainId() int64 { +func (x *FindNSDomainTSIGRequest) GetNsDomainId() int64 { if x != nil { return x.NsDomainId } return 0 } -type FindEnabledNSDomainTSIGResponse struct { +type FindNSDomainTSIGResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -706,23 +857,23 @@ type FindEnabledNSDomainTSIGResponse struct { TsigJSON []byte `protobuf:"bytes,1,opt,name=tsigJSON,proto3" json:"tsigJSON,omitempty"` } -func (x *FindEnabledNSDomainTSIGResponse) Reset() { - *x = FindEnabledNSDomainTSIGResponse{} +func (x *FindNSDomainTSIGResponse) Reset() { + *x = FindNSDomainTSIGResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[12] + mi := &file_service_ns_domain_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *FindEnabledNSDomainTSIGResponse) String() string { +func (x *FindNSDomainTSIGResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSDomainTSIGResponse) ProtoMessage() {} +func (*FindNSDomainTSIGResponse) ProtoMessage() {} -func (x *FindEnabledNSDomainTSIGResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[12] +func (x *FindNSDomainTSIGResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -733,12 +884,12 @@ func (x *FindEnabledNSDomainTSIGResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSDomainTSIGResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSDomainTSIGResponse) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{12} +// Deprecated: Use FindNSDomainTSIGResponse.ProtoReflect.Descriptor instead. +func (*FindNSDomainTSIGResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{14} } -func (x *FindEnabledNSDomainTSIGResponse) GetTsigJSON() []byte { +func (x *FindNSDomainTSIGResponse) GetTsigJSON() []byte { if x != nil { return x.TsigJSON } @@ -758,7 +909,7 @@ type UpdateNSDomainTSIGRequest struct { func (x *UpdateNSDomainTSIGRequest) Reset() { *x = UpdateNSDomainTSIGRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_domain_proto_msgTypes[13] + mi := &file_service_ns_domain_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -771,7 +922,7 @@ func (x *UpdateNSDomainTSIGRequest) String() string { func (*UpdateNSDomainTSIGRequest) ProtoMessage() {} func (x *UpdateNSDomainTSIGRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_domain_proto_msgTypes[13] + mi := &file_service_ns_domain_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -784,7 +935,7 @@ func (x *UpdateNSDomainTSIGRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNSDomainTSIGRequest.ProtoReflect.Descriptor instead. func (*UpdateNSDomainTSIGRequest) Descriptor() ([]byte, []int) { - return file_service_ns_domain_proto_rawDescGZIP(), []int{13} + return file_service_ns_domain_proto_rawDescGZIP(), []int{15} } func (x *UpdateNSDomainTSIGRequest) GetNsDomainId() int64 { @@ -801,6 +952,109 @@ func (x *UpdateNSDomainTSIGRequest) GetTsigJSON() []byte { return nil } +// 检查一组域名是否存在 +type ExistNSDomainsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` +} + +func (x *ExistNSDomainsRequest) Reset() { + *x = ExistNSDomainsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExistNSDomainsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExistNSDomainsRequest) ProtoMessage() {} + +func (x *ExistNSDomainsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_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 ExistNSDomainsRequest.ProtoReflect.Descriptor instead. +func (*ExistNSDomainsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{16} +} + +func (x *ExistNSDomainsRequest) GetNames() []string { + if x != nil { + return x.Names + } + return nil +} + +func (x *ExistNSDomainsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +type ExistNSDomainsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ExistingNames []string `protobuf:"bytes,1,rep,name=existingNames,proto3" json:"existingNames,omitempty"` +} + +func (x *ExistNSDomainsResponse) Reset() { + *x = ExistNSDomainsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExistNSDomainsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExistNSDomainsResponse) ProtoMessage() {} + +func (x *ExistNSDomainsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_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 ExistNSDomainsResponse.ProtoReflect.Descriptor instead. +func (*ExistNSDomainsResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_proto_rawDescGZIP(), []int{17} +} + +func (x *ExistNSDomainsResponse) GetExistingNames() []string { + if x != nil { + return x.ExistingNames + } + return nil +} + var File_service_ns_domain_proto protoreflect.FileDescriptor var file_service_ns_domain_proto_rawDesc = []byte{ @@ -809,131 +1063,165 @@ var file_service_ns_domain_proto_rawDesc = []byte{ 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 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, 0x65, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x91, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, + 0x0a, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, + 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, - 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x85, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x69, - 0x73, 0x4f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, - 0x37, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x3c, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, - 0x75, 0x0a, 0x1f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, + 0x2a, 0x0a, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x22, 0x3b, 0x0a, 0x17, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, + 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, + 0x18, 0x05, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x37, 0x0a, 0x15, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, + 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x14, + 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x08, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x98, + 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, + 0x28, 0x0a, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x14, 0x4c, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, - 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, - 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4a, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, - 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x73, 0x22, 0x50, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4f, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, - 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x22, 0x40, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x3d, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, - 0x49, 0x47, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, - 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, - 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x32, - 0xf1, 0x05, 0x0a, 0x0f, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, - 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, - 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x1e, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, - 0x0a, 0x18, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, - 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1f, 0x2e, - 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, - 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, + 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x15, + 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x73, 0x22, 0x50, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x22, 0x4f, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, + 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x73, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x73, 0x22, 0x39, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x22, + 0x36, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, + 0x53, 0x49, 0x47, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, + 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, + 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x57, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x74, 0x73, 0x69, 0x67, 0x4a, 0x53, 0x4f, 0x4e, + 0x22, 0x45, 0x0a, 0x15, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, + 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x16, 0x45, 0x78, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4e, 0x61, 0x6d, + 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x78, 0x69, 0x73, 0x74, 0x69, + 0x6e, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x32, 0xb9, 0x06, 0x0a, 0x0f, 0x4e, 0x53, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x19, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x19, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, - 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, - 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, - 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, - 0x49, 0x47, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, - 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x54, 0x53, 0x49, 0x47, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 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, + 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, + 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, + 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x0c, 0x66, 0x69, + 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, + 0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, + 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, + 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x19, + 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, + 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, + 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, 0x53, 0x49, 0x47, 0x12, 0x1d, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x54, + 0x53, 0x49, 0x47, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x47, 0x0a, 0x0e, 0x65, 0x78, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x19, 0x2e, 0x70, + 0x62, 0x2e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x78, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } @@ -949,50 +1237,58 @@ func file_service_ns_domain_proto_rawDescGZIP() []byte { return file_service_ns_domain_proto_rawDescData } -var file_service_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_service_ns_domain_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_service_ns_domain_proto_goTypes = []interface{}{ (*CreateNSDomainRequest)(nil), // 0: pb.CreateNSDomainRequest (*CreateNSDomainResponse)(nil), // 1: pb.CreateNSDomainResponse - (*UpdateNSDomainRequest)(nil), // 2: pb.UpdateNSDomainRequest - (*DeleteNSDomainRequest)(nil), // 3: pb.DeleteNSDomainRequest - (*FindEnabledNSDomainRequest)(nil), // 4: pb.FindEnabledNSDomainRequest - (*FindEnabledNSDomainResponse)(nil), // 5: pb.FindEnabledNSDomainResponse - (*CountAllEnabledNSDomainsRequest)(nil), // 6: pb.CountAllEnabledNSDomainsRequest - (*ListEnabledNSDomainsRequest)(nil), // 7: pb.ListEnabledNSDomainsRequest - (*ListEnabledNSDomainsResponse)(nil), // 8: pb.ListEnabledNSDomainsResponse - (*ListNSDomainsAfterVersionRequest)(nil), // 9: pb.ListNSDomainsAfterVersionRequest - (*ListNSDomainsAfterVersionResponse)(nil), // 10: pb.ListNSDomainsAfterVersionResponse - (*FindEnabledNSDomainTSIGRequest)(nil), // 11: pb.FindEnabledNSDomainTSIGRequest - (*FindEnabledNSDomainTSIGResponse)(nil), // 12: pb.FindEnabledNSDomainTSIGResponse - (*UpdateNSDomainTSIGRequest)(nil), // 13: pb.UpdateNSDomainTSIGRequest - (*NSDomain)(nil), // 14: pb.NSDomain - (*RPCSuccess)(nil), // 15: pb.RPCSuccess - (*RPCCountResponse)(nil), // 16: pb.RPCCountResponse + (*CreateNSDomainsRequest)(nil), // 2: pb.CreateNSDomainsRequest + (*CreateNSDomainsResponse)(nil), // 3: pb.CreateNSDomainsResponse + (*UpdateNSDomainRequest)(nil), // 4: pb.UpdateNSDomainRequest + (*DeleteNSDomainRequest)(nil), // 5: pb.DeleteNSDomainRequest + (*FindNSDomainRequest)(nil), // 6: pb.FindNSDomainRequest + (*FindNSDomainResponse)(nil), // 7: pb.FindNSDomainResponse + (*CountAllNSDomainsRequest)(nil), // 8: pb.CountAllNSDomainsRequest + (*ListNSDomainsRequest)(nil), // 9: pb.ListNSDomainsRequest + (*ListNSDomainsResponse)(nil), // 10: pb.ListNSDomainsResponse + (*ListNSDomainsAfterVersionRequest)(nil), // 11: pb.ListNSDomainsAfterVersionRequest + (*ListNSDomainsAfterVersionResponse)(nil), // 12: pb.ListNSDomainsAfterVersionResponse + (*FindNSDomainTSIGRequest)(nil), // 13: pb.FindNSDomainTSIGRequest + (*FindNSDomainTSIGResponse)(nil), // 14: pb.FindNSDomainTSIGResponse + (*UpdateNSDomainTSIGRequest)(nil), // 15: pb.UpdateNSDomainTSIGRequest + (*ExistNSDomainsRequest)(nil), // 16: pb.ExistNSDomainsRequest + (*ExistNSDomainsResponse)(nil), // 17: pb.ExistNSDomainsResponse + (*NSDomain)(nil), // 18: pb.NSDomain + (*RPCSuccess)(nil), // 19: pb.RPCSuccess + (*RPCCountResponse)(nil), // 20: pb.RPCCountResponse } var file_service_ns_domain_proto_depIdxs = []int32{ - 14, // 0: pb.FindEnabledNSDomainResponse.nsDomain:type_name -> pb.NSDomain - 14, // 1: pb.ListEnabledNSDomainsResponse.nsDomains:type_name -> pb.NSDomain - 14, // 2: pb.ListNSDomainsAfterVersionResponse.nsDomains:type_name -> pb.NSDomain + 18, // 0: pb.FindNSDomainResponse.nsDomain:type_name -> pb.NSDomain + 18, // 1: pb.ListNSDomainsResponse.nsDomains:type_name -> pb.NSDomain + 18, // 2: pb.ListNSDomainsAfterVersionResponse.nsDomains:type_name -> pb.NSDomain 0, // 3: pb.NSDomainService.createNSDomain:input_type -> pb.CreateNSDomainRequest - 2, // 4: pb.NSDomainService.updateNSDomain:input_type -> pb.UpdateNSDomainRequest - 3, // 5: pb.NSDomainService.deleteNSDomain:input_type -> pb.DeleteNSDomainRequest - 4, // 6: pb.NSDomainService.findEnabledNSDomain:input_type -> pb.FindEnabledNSDomainRequest - 6, // 7: pb.NSDomainService.countAllEnabledNSDomains:input_type -> pb.CountAllEnabledNSDomainsRequest - 7, // 8: pb.NSDomainService.listEnabledNSDomains:input_type -> pb.ListEnabledNSDomainsRequest - 9, // 9: pb.NSDomainService.listNSDomainsAfterVersion:input_type -> pb.ListNSDomainsAfterVersionRequest - 11, // 10: pb.NSDomainService.findEnabledNSDomainTSIG:input_type -> pb.FindEnabledNSDomainTSIGRequest - 13, // 11: pb.NSDomainService.updateNSDomainTSIG:input_type -> pb.UpdateNSDomainTSIGRequest - 1, // 12: pb.NSDomainService.createNSDomain:output_type -> pb.CreateNSDomainResponse - 15, // 13: pb.NSDomainService.updateNSDomain:output_type -> pb.RPCSuccess - 15, // 14: pb.NSDomainService.deleteNSDomain:output_type -> pb.RPCSuccess - 5, // 15: pb.NSDomainService.findEnabledNSDomain:output_type -> pb.FindEnabledNSDomainResponse - 16, // 16: pb.NSDomainService.countAllEnabledNSDomains:output_type -> pb.RPCCountResponse - 8, // 17: pb.NSDomainService.listEnabledNSDomains:output_type -> pb.ListEnabledNSDomainsResponse - 10, // 18: pb.NSDomainService.listNSDomainsAfterVersion:output_type -> pb.ListNSDomainsAfterVersionResponse - 12, // 19: pb.NSDomainService.findEnabledNSDomainTSIG:output_type -> pb.FindEnabledNSDomainTSIGResponse - 15, // 20: pb.NSDomainService.updateNSDomainTSIG:output_type -> pb.RPCSuccess - 12, // [12:21] is the sub-list for method output_type - 3, // [3:12] is the sub-list for method input_type + 2, // 4: pb.NSDomainService.createNSDomains:input_type -> pb.CreateNSDomainsRequest + 4, // 5: pb.NSDomainService.updateNSDomain:input_type -> pb.UpdateNSDomainRequest + 5, // 6: pb.NSDomainService.deleteNSDomain:input_type -> pb.DeleteNSDomainRequest + 6, // 7: pb.NSDomainService.findNSDomain:input_type -> pb.FindNSDomainRequest + 8, // 8: pb.NSDomainService.countAllNSDomains:input_type -> pb.CountAllNSDomainsRequest + 9, // 9: pb.NSDomainService.listNSDomains:input_type -> pb.ListNSDomainsRequest + 11, // 10: pb.NSDomainService.listNSDomainsAfterVersion:input_type -> pb.ListNSDomainsAfterVersionRequest + 13, // 11: pb.NSDomainService.findNSDomainTSIG:input_type -> pb.FindNSDomainTSIGRequest + 15, // 12: pb.NSDomainService.updateNSDomainTSIG:input_type -> pb.UpdateNSDomainTSIGRequest + 16, // 13: pb.NSDomainService.existNSDomains:input_type -> pb.ExistNSDomainsRequest + 1, // 14: pb.NSDomainService.createNSDomain:output_type -> pb.CreateNSDomainResponse + 3, // 15: pb.NSDomainService.createNSDomains:output_type -> pb.CreateNSDomainsResponse + 19, // 16: pb.NSDomainService.updateNSDomain:output_type -> pb.RPCSuccess + 19, // 17: pb.NSDomainService.deleteNSDomain:output_type -> pb.RPCSuccess + 7, // 18: pb.NSDomainService.findNSDomain:output_type -> pb.FindNSDomainResponse + 20, // 19: pb.NSDomainService.countAllNSDomains:output_type -> pb.RPCCountResponse + 10, // 20: pb.NSDomainService.listNSDomains:output_type -> pb.ListNSDomainsResponse + 12, // 21: pb.NSDomainService.listNSDomainsAfterVersion:output_type -> pb.ListNSDomainsAfterVersionResponse + 14, // 22: pb.NSDomainService.findNSDomainTSIG:output_type -> pb.FindNSDomainTSIGResponse + 19, // 23: pb.NSDomainService.updateNSDomainTSIG:output_type -> pb.RPCSuccess + 17, // 24: pb.NSDomainService.existNSDomains:output_type -> pb.ExistNSDomainsResponse + 14, // [14:25] is the sub-list for method output_type + 3, // [3:14] 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 @@ -1031,7 +1327,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateNSDomainRequest); i { + switch v := v.(*CreateNSDomainsRequest); i { case 0: return &v.state case 1: @@ -1043,7 +1339,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteNSDomainRequest); i { + switch v := v.(*CreateNSDomainsResponse); i { case 0: return &v.state case 1: @@ -1055,7 +1351,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSDomainRequest); i { + switch v := v.(*UpdateNSDomainRequest); i { case 0: return &v.state case 1: @@ -1067,7 +1363,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSDomainResponse); i { + switch v := v.(*DeleteNSDomainRequest); i { case 0: return &v.state case 1: @@ -1079,7 +1375,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledNSDomainsRequest); i { + switch v := v.(*FindNSDomainRequest); i { case 0: return &v.state case 1: @@ -1091,7 +1387,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSDomainsRequest); i { + switch v := v.(*FindNSDomainResponse); i { case 0: return &v.state case 1: @@ -1103,7 +1399,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSDomainsResponse); i { + switch v := v.(*CountAllNSDomainsRequest); i { case 0: return &v.state case 1: @@ -1115,7 +1411,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSDomainsAfterVersionRequest); i { + switch v := v.(*ListNSDomainsRequest); i { case 0: return &v.state case 1: @@ -1127,7 +1423,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSDomainsAfterVersionResponse); i { + switch v := v.(*ListNSDomainsResponse); i { case 0: return &v.state case 1: @@ -1139,7 +1435,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSDomainTSIGRequest); i { + switch v := v.(*ListNSDomainsAfterVersionRequest); i { case 0: return &v.state case 1: @@ -1151,7 +1447,7 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSDomainTSIGResponse); i { + switch v := v.(*ListNSDomainsAfterVersionResponse); i { case 0: return &v.state case 1: @@ -1163,6 +1459,30 @@ func file_service_ns_domain_proto_init() { } } file_service_ns_domain_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSDomainTSIGRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSDomainTSIGResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateNSDomainTSIGRequest); i { case 0: return &v.state @@ -1174,6 +1494,30 @@ func file_service_ns_domain_proto_init() { return nil } } + file_service_ns_domain_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExistNSDomainsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExistNSDomainsResponse); 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{ @@ -1181,7 +1525,7 @@ func file_service_ns_domain_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_ns_domain_proto_rawDesc, NumEnums: 0, - NumMessages: 14, + NumMessages: 18, NumExtensions: 0, NumServices: 1, }, @@ -1207,24 +1551,28 @@ 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 NSDomainServiceClient interface { - // 创建域名 + // 创建单个域名 CreateNSDomain(ctx context.Context, in *CreateNSDomainRequest, opts ...grpc.CallOption) (*CreateNSDomainResponse, error) + // 批量创建域名 + CreateNSDomains(ctx context.Context, in *CreateNSDomainsRequest, opts ...grpc.CallOption) (*CreateNSDomainsResponse, error) // 修改域名 UpdateNSDomain(ctx context.Context, in *UpdateNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 删除域名 DeleteNSDomain(ctx context.Context, in *DeleteNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 查找单个域名 - FindEnabledNSDomain(ctx context.Context, in *FindEnabledNSDomainRequest, opts ...grpc.CallOption) (*FindEnabledNSDomainResponse, error) + FindNSDomain(ctx context.Context, in *FindNSDomainRequest, opts ...grpc.CallOption) (*FindNSDomainResponse, error) // 计算域名数量 - CountAllEnabledNSDomains(ctx context.Context, in *CountAllEnabledNSDomainsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllNSDomains(ctx context.Context, in *CountAllNSDomainsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 列出单页域名 - ListEnabledNSDomains(ctx context.Context, in *ListEnabledNSDomainsRequest, opts ...grpc.CallOption) (*ListEnabledNSDomainsResponse, error) + ListNSDomains(ctx context.Context, in *ListNSDomainsRequest, opts ...grpc.CallOption) (*ListNSDomainsResponse, error) // 根据版本列出一组域名 ListNSDomainsAfterVersion(ctx context.Context, in *ListNSDomainsAfterVersionRequest, opts ...grpc.CallOption) (*ListNSDomainsAfterVersionResponse, error) // 查找TSIG配置 - FindEnabledNSDomainTSIG(ctx context.Context, in *FindEnabledNSDomainTSIGRequest, opts ...grpc.CallOption) (*FindEnabledNSDomainTSIGResponse, error) + FindNSDomainTSIG(ctx context.Context, in *FindNSDomainTSIGRequest, opts ...grpc.CallOption) (*FindNSDomainTSIGResponse, error) // 修改TSIG配置 UpdateNSDomainTSIG(ctx context.Context, in *UpdateNSDomainTSIGRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 检查一组域名是否存在 + ExistNSDomains(ctx context.Context, in *ExistNSDomainsRequest, opts ...grpc.CallOption) (*ExistNSDomainsResponse, error) } type nSDomainServiceClient struct { @@ -1244,6 +1592,15 @@ func (c *nSDomainServiceClient) CreateNSDomain(ctx context.Context, in *CreateNS return out, nil } +func (c *nSDomainServiceClient) CreateNSDomains(ctx context.Context, in *CreateNSDomainsRequest, opts ...grpc.CallOption) (*CreateNSDomainsResponse, error) { + out := new(CreateNSDomainsResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainService/createNSDomains", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *nSDomainServiceClient) UpdateNSDomain(ctx context.Context, in *UpdateNSDomainRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { out := new(RPCSuccess) err := c.cc.Invoke(ctx, "/pb.NSDomainService/updateNSDomain", in, out, opts...) @@ -1262,27 +1619,27 @@ func (c *nSDomainServiceClient) DeleteNSDomain(ctx context.Context, in *DeleteNS return out, nil } -func (c *nSDomainServiceClient) FindEnabledNSDomain(ctx context.Context, in *FindEnabledNSDomainRequest, opts ...grpc.CallOption) (*FindEnabledNSDomainResponse, error) { - out := new(FindEnabledNSDomainResponse) - err := c.cc.Invoke(ctx, "/pb.NSDomainService/findEnabledNSDomain", in, out, opts...) +func (c *nSDomainServiceClient) FindNSDomain(ctx context.Context, in *FindNSDomainRequest, opts ...grpc.CallOption) (*FindNSDomainResponse, error) { + out := new(FindNSDomainResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainService/findNSDomain", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSDomainServiceClient) CountAllEnabledNSDomains(ctx context.Context, in *CountAllEnabledNSDomainsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nSDomainServiceClient) CountAllNSDomains(ctx context.Context, in *CountAllNSDomainsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NSDomainService/countAllEnabledNSDomains", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NSDomainService/countAllNSDomains", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSDomainServiceClient) ListEnabledNSDomains(ctx context.Context, in *ListEnabledNSDomainsRequest, opts ...grpc.CallOption) (*ListEnabledNSDomainsResponse, error) { - out := new(ListEnabledNSDomainsResponse) - err := c.cc.Invoke(ctx, "/pb.NSDomainService/listEnabledNSDomains", in, out, opts...) +func (c *nSDomainServiceClient) ListNSDomains(ctx context.Context, in *ListNSDomainsRequest, opts ...grpc.CallOption) (*ListNSDomainsResponse, error) { + out := new(ListNSDomainsResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainService/listNSDomains", in, out, opts...) if err != nil { return nil, err } @@ -1298,9 +1655,9 @@ func (c *nSDomainServiceClient) ListNSDomainsAfterVersion(ctx context.Context, i return out, nil } -func (c *nSDomainServiceClient) FindEnabledNSDomainTSIG(ctx context.Context, in *FindEnabledNSDomainTSIGRequest, opts ...grpc.CallOption) (*FindEnabledNSDomainTSIGResponse, error) { - out := new(FindEnabledNSDomainTSIGResponse) - err := c.cc.Invoke(ctx, "/pb.NSDomainService/findEnabledNSDomainTSIG", in, out, opts...) +func (c *nSDomainServiceClient) FindNSDomainTSIG(ctx context.Context, in *FindNSDomainTSIGRequest, opts ...grpc.CallOption) (*FindNSDomainTSIGResponse, error) { + out := new(FindNSDomainTSIGResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainService/findNSDomainTSIG", in, out, opts...) if err != nil { return nil, err } @@ -1316,26 +1673,39 @@ func (c *nSDomainServiceClient) UpdateNSDomainTSIG(ctx context.Context, in *Upda return out, nil } +func (c *nSDomainServiceClient) ExistNSDomains(ctx context.Context, in *ExistNSDomainsRequest, opts ...grpc.CallOption) (*ExistNSDomainsResponse, error) { + out := new(ExistNSDomainsResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainService/existNSDomains", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + // NSDomainServiceServer is the server API for NSDomainService service. type NSDomainServiceServer interface { - // 创建域名 + // 创建单个域名 CreateNSDomain(context.Context, *CreateNSDomainRequest) (*CreateNSDomainResponse, error) + // 批量创建域名 + CreateNSDomains(context.Context, *CreateNSDomainsRequest) (*CreateNSDomainsResponse, error) // 修改域名 UpdateNSDomain(context.Context, *UpdateNSDomainRequest) (*RPCSuccess, error) // 删除域名 DeleteNSDomain(context.Context, *DeleteNSDomainRequest) (*RPCSuccess, error) // 查找单个域名 - FindEnabledNSDomain(context.Context, *FindEnabledNSDomainRequest) (*FindEnabledNSDomainResponse, error) + FindNSDomain(context.Context, *FindNSDomainRequest) (*FindNSDomainResponse, error) // 计算域名数量 - CountAllEnabledNSDomains(context.Context, *CountAllEnabledNSDomainsRequest) (*RPCCountResponse, error) + CountAllNSDomains(context.Context, *CountAllNSDomainsRequest) (*RPCCountResponse, error) // 列出单页域名 - ListEnabledNSDomains(context.Context, *ListEnabledNSDomainsRequest) (*ListEnabledNSDomainsResponse, error) + ListNSDomains(context.Context, *ListNSDomainsRequest) (*ListNSDomainsResponse, error) // 根据版本列出一组域名 ListNSDomainsAfterVersion(context.Context, *ListNSDomainsAfterVersionRequest) (*ListNSDomainsAfterVersionResponse, error) // 查找TSIG配置 - FindEnabledNSDomainTSIG(context.Context, *FindEnabledNSDomainTSIGRequest) (*FindEnabledNSDomainTSIGResponse, error) + FindNSDomainTSIG(context.Context, *FindNSDomainTSIGRequest) (*FindNSDomainTSIGResponse, error) // 修改TSIG配置 UpdateNSDomainTSIG(context.Context, *UpdateNSDomainTSIGRequest) (*RPCSuccess, error) + // 检查一组域名是否存在 + ExistNSDomains(context.Context, *ExistNSDomainsRequest) (*ExistNSDomainsResponse, error) } // UnimplementedNSDomainServiceServer can be embedded to have forward compatible implementations. @@ -1345,30 +1715,36 @@ type UnimplementedNSDomainServiceServer struct { func (*UnimplementedNSDomainServiceServer) CreateNSDomain(context.Context, *CreateNSDomainRequest) (*CreateNSDomainResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNSDomain not implemented") } +func (*UnimplementedNSDomainServiceServer) CreateNSDomains(context.Context, *CreateNSDomainsRequest) (*CreateNSDomainsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNSDomains not implemented") +} func (*UnimplementedNSDomainServiceServer) UpdateNSDomain(context.Context, *UpdateNSDomainRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNSDomain not implemented") } func (*UnimplementedNSDomainServiceServer) DeleteNSDomain(context.Context, *DeleteNSDomainRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNSDomain not implemented") } -func (*UnimplementedNSDomainServiceServer) FindEnabledNSDomain(context.Context, *FindEnabledNSDomainRequest) (*FindEnabledNSDomainResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSDomain not implemented") +func (*UnimplementedNSDomainServiceServer) FindNSDomain(context.Context, *FindNSDomainRequest) (*FindNSDomainResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSDomain not implemented") } -func (*UnimplementedNSDomainServiceServer) CountAllEnabledNSDomains(context.Context, *CountAllEnabledNSDomainsRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSDomains not implemented") +func (*UnimplementedNSDomainServiceServer) CountAllNSDomains(context.Context, *CountAllNSDomainsRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSDomains not implemented") } -func (*UnimplementedNSDomainServiceServer) ListEnabledNSDomains(context.Context, *ListEnabledNSDomainsRequest) (*ListEnabledNSDomainsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSDomains not implemented") +func (*UnimplementedNSDomainServiceServer) ListNSDomains(context.Context, *ListNSDomainsRequest) (*ListNSDomainsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNSDomains not implemented") } func (*UnimplementedNSDomainServiceServer) ListNSDomainsAfterVersion(context.Context, *ListNSDomainsAfterVersionRequest) (*ListNSDomainsAfterVersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListNSDomainsAfterVersion not implemented") } -func (*UnimplementedNSDomainServiceServer) FindEnabledNSDomainTSIG(context.Context, *FindEnabledNSDomainTSIGRequest) (*FindEnabledNSDomainTSIGResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSDomainTSIG not implemented") +func (*UnimplementedNSDomainServiceServer) FindNSDomainTSIG(context.Context, *FindNSDomainTSIGRequest) (*FindNSDomainTSIGResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSDomainTSIG not implemented") } func (*UnimplementedNSDomainServiceServer) UpdateNSDomainTSIG(context.Context, *UpdateNSDomainTSIGRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNSDomainTSIG not implemented") } +func (*UnimplementedNSDomainServiceServer) ExistNSDomains(context.Context, *ExistNSDomainsRequest) (*ExistNSDomainsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExistNSDomains not implemented") +} func RegisterNSDomainServiceServer(s *grpc.Server, srv NSDomainServiceServer) { s.RegisterService(&_NSDomainService_serviceDesc, srv) @@ -1392,6 +1768,24 @@ func _NSDomainService_CreateNSDomain_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } +func _NSDomainService_CreateNSDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNSDomainsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainServiceServer).CreateNSDomains(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainService/CreateNSDomains", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainServiceServer).CreateNSDomains(ctx, req.(*CreateNSDomainsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _NSDomainService_UpdateNSDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateNSDomainRequest) if err := dec(in); err != nil { @@ -1428,56 +1822,56 @@ func _NSDomainService_DeleteNSDomain_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } -func _NSDomainService_FindEnabledNSDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSDomainRequest) +func _NSDomainService_FindNSDomain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSDomainRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSDomainServiceServer).FindEnabledNSDomain(ctx, in) + return srv.(NSDomainServiceServer).FindNSDomain(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSDomainService/FindEnabledNSDomain", + FullMethod: "/pb.NSDomainService/FindNSDomain", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSDomainServiceServer).FindEnabledNSDomain(ctx, req.(*FindEnabledNSDomainRequest)) + return srv.(NSDomainServiceServer).FindNSDomain(ctx, req.(*FindNSDomainRequest)) } return interceptor(ctx, in, info, handler) } -func _NSDomainService_CountAllEnabledNSDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledNSDomainsRequest) +func _NSDomainService_CountAllNSDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSDomainsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSDomainServiceServer).CountAllEnabledNSDomains(ctx, in) + return srv.(NSDomainServiceServer).CountAllNSDomains(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSDomainService/CountAllEnabledNSDomains", + FullMethod: "/pb.NSDomainService/CountAllNSDomains", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSDomainServiceServer).CountAllEnabledNSDomains(ctx, req.(*CountAllEnabledNSDomainsRequest)) + return srv.(NSDomainServiceServer).CountAllNSDomains(ctx, req.(*CountAllNSDomainsRequest)) } return interceptor(ctx, in, info, handler) } -func _NSDomainService_ListEnabledNSDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEnabledNSDomainsRequest) +func _NSDomainService_ListNSDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNSDomainsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSDomainServiceServer).ListEnabledNSDomains(ctx, in) + return srv.(NSDomainServiceServer).ListNSDomains(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSDomainService/ListEnabledNSDomains", + FullMethod: "/pb.NSDomainService/ListNSDomains", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSDomainServiceServer).ListEnabledNSDomains(ctx, req.(*ListEnabledNSDomainsRequest)) + return srv.(NSDomainServiceServer).ListNSDomains(ctx, req.(*ListNSDomainsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1500,20 +1894,20 @@ func _NSDomainService_ListNSDomainsAfterVersion_Handler(srv interface{}, ctx con return interceptor(ctx, in, info, handler) } -func _NSDomainService_FindEnabledNSDomainTSIG_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSDomainTSIGRequest) +func _NSDomainService_FindNSDomainTSIG_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSDomainTSIGRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSDomainServiceServer).FindEnabledNSDomainTSIG(ctx, in) + return srv.(NSDomainServiceServer).FindNSDomainTSIG(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSDomainService/FindEnabledNSDomainTSIG", + FullMethod: "/pb.NSDomainService/FindNSDomainTSIG", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSDomainServiceServer).FindEnabledNSDomainTSIG(ctx, req.(*FindEnabledNSDomainTSIGRequest)) + return srv.(NSDomainServiceServer).FindNSDomainTSIG(ctx, req.(*FindNSDomainTSIGRequest)) } return interceptor(ctx, in, info, handler) } @@ -1536,6 +1930,24 @@ func _NSDomainService_UpdateNSDomainTSIG_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } +func _NSDomainService_ExistNSDomains_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExistNSDomainsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainServiceServer).ExistNSDomains(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainService/ExistNSDomains", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainServiceServer).ExistNSDomains(ctx, req.(*ExistNSDomainsRequest)) + } + return interceptor(ctx, in, info, handler) +} + var _NSDomainService_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.NSDomainService", HandlerType: (*NSDomainServiceServer)(nil), @@ -1544,6 +1956,10 @@ var _NSDomainService_serviceDesc = grpc.ServiceDesc{ MethodName: "createNSDomain", Handler: _NSDomainService_CreateNSDomain_Handler, }, + { + MethodName: "createNSDomains", + Handler: _NSDomainService_CreateNSDomains_Handler, + }, { MethodName: "updateNSDomain", Handler: _NSDomainService_UpdateNSDomain_Handler, @@ -1553,29 +1969,33 @@ var _NSDomainService_serviceDesc = grpc.ServiceDesc{ Handler: _NSDomainService_DeleteNSDomain_Handler, }, { - MethodName: "findEnabledNSDomain", - Handler: _NSDomainService_FindEnabledNSDomain_Handler, + MethodName: "findNSDomain", + Handler: _NSDomainService_FindNSDomain_Handler, }, { - MethodName: "countAllEnabledNSDomains", - Handler: _NSDomainService_CountAllEnabledNSDomains_Handler, + MethodName: "countAllNSDomains", + Handler: _NSDomainService_CountAllNSDomains_Handler, }, { - MethodName: "listEnabledNSDomains", - Handler: _NSDomainService_ListEnabledNSDomains_Handler, + MethodName: "listNSDomains", + Handler: _NSDomainService_ListNSDomains_Handler, }, { MethodName: "listNSDomainsAfterVersion", Handler: _NSDomainService_ListNSDomainsAfterVersion_Handler, }, { - MethodName: "findEnabledNSDomainTSIG", - Handler: _NSDomainService_FindEnabledNSDomainTSIG_Handler, + MethodName: "findNSDomainTSIG", + Handler: _NSDomainService_FindNSDomainTSIG_Handler, }, { MethodName: "updateNSDomainTSIG", Handler: _NSDomainService_UpdateNSDomainTSIG_Handler, }, + { + MethodName: "existNSDomains", + Handler: _NSDomainService_ExistNSDomains_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_ns_domain.proto", diff --git a/pkg/rpc/pb/service_ns_domain_group.pb.go b/pkg/rpc/pb/service_ns_domain_group.pb.go new file mode 100644 index 0000000..67ebc93 --- /dev/null +++ b/pkg/rpc/pb/service_ns_domain_group.pb.go @@ -0,0 +1,1201 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.19.4 +// source: service_ns_domain_group.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建分组 +type CreateNSDomainGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` +} + +func (x *CreateNSDomainGroupRequest) Reset() { + *x = CreateNSDomainGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSDomainGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSDomainGroupRequest) ProtoMessage() {} + +func (x *CreateNSDomainGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 CreateNSDomainGroupRequest.ProtoReflect.Descriptor instead. +func (*CreateNSDomainGroupRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateNSDomainGroupRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +type CreateNSDomainGroupResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroupId int64 `protobuf:"varint,1,opt,name=nsDomainGroupId,proto3" json:"nsDomainGroupId,omitempty"` +} + +func (x *CreateNSDomainGroupResponse) Reset() { + *x = CreateNSDomainGroupResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSDomainGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSDomainGroupResponse) ProtoMessage() {} + +func (x *CreateNSDomainGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 CreateNSDomainGroupResponse.ProtoReflect.Descriptor instead. +func (*CreateNSDomainGroupResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateNSDomainGroupResponse) GetNsDomainGroupId() int64 { + if x != nil { + return x.NsDomainGroupId + } + return 0 +} + +// 修改分组 +type UpdateNSDomainGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroupId int64 `protobuf:"varint,1,opt,name=nsDomainGroupId,proto3" json:"nsDomainGroupId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` +} + +func (x *UpdateNSDomainGroupRequest) Reset() { + *x = UpdateNSDomainGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateNSDomainGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNSDomainGroupRequest) ProtoMessage() {} + +func (x *UpdateNSDomainGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 UpdateNSDomainGroupRequest.ProtoReflect.Descriptor instead. +func (*UpdateNSDomainGroupRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{2} +} + +func (x *UpdateNSDomainGroupRequest) GetNsDomainGroupId() int64 { + if x != nil { + return x.NsDomainGroupId + } + return 0 +} + +func (x *UpdateNSDomainGroupRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateNSDomainGroupRequest) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +// 删除分组 +type DeleteNSDomainGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroupId int64 `protobuf:"varint,1,opt,name=nsDomainGroupId,proto3" json:"nsDomainGroupId,omitempty"` +} + +func (x *DeleteNSDomainGroupRequest) Reset() { + *x = DeleteNSDomainGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteNSDomainGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteNSDomainGroupRequest) ProtoMessage() {} + +func (x *DeleteNSDomainGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 DeleteNSDomainGroupRequest.ProtoReflect.Descriptor instead. +func (*DeleteNSDomainGroupRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{3} +} + +func (x *DeleteNSDomainGroupRequest) GetNsDomainGroupId() int64 { + if x != nil { + return x.NsDomainGroupId + } + return 0 +} + +// 查询所有分组 +type FindAllNSDomainGroupsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` +} + +func (x *FindAllNSDomainGroupsRequest) Reset() { + *x = FindAllNSDomainGroupsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllNSDomainGroupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllNSDomainGroupsRequest) ProtoMessage() {} + +func (x *FindAllNSDomainGroupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 FindAllNSDomainGroupsRequest.ProtoReflect.Descriptor instead. +func (*FindAllNSDomainGroupsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{4} +} + +func (x *FindAllNSDomainGroupsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +type FindAllNSDomainGroupsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroups []*NSDomainGroup `protobuf:"bytes,1,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"` +} + +func (x *FindAllNSDomainGroupsResponse) Reset() { + *x = FindAllNSDomainGroupsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllNSDomainGroupsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllNSDomainGroupsResponse) ProtoMessage() {} + +func (x *FindAllNSDomainGroupsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 FindAllNSDomainGroupsResponse.ProtoReflect.Descriptor instead. +func (*FindAllNSDomainGroupsResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{5} +} + +func (x *FindAllNSDomainGroupsResponse) GetNsDomainGroups() []*NSDomainGroup { + if x != nil { + return x.NsDomainGroups + } + return nil +} + +// 查询可用分组数量 +type CountAllAvailableNSDomainGroupsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` +} + +func (x *CountAllAvailableNSDomainGroupsRequest) Reset() { + *x = CountAllAvailableNSDomainGroupsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountAllAvailableNSDomainGroupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountAllAvailableNSDomainGroupsRequest) ProtoMessage() {} + +func (x *CountAllAvailableNSDomainGroupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 CountAllAvailableNSDomainGroupsRequest.ProtoReflect.Descriptor instead. +func (*CountAllAvailableNSDomainGroupsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{6} +} + +func (x *CountAllAvailableNSDomainGroupsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +// 查询所有启用分组 +type FindAllAvailableNSDomainGroupsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` +} + +func (x *FindAllAvailableNSDomainGroupsRequest) Reset() { + *x = FindAllAvailableNSDomainGroupsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllAvailableNSDomainGroupsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllAvailableNSDomainGroupsRequest) ProtoMessage() {} + +func (x *FindAllAvailableNSDomainGroupsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 FindAllAvailableNSDomainGroupsRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableNSDomainGroupsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{7} +} + +func (x *FindAllAvailableNSDomainGroupsRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +type FindAllAvailableNSDomainGroupsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroups []*NSDomainGroup `protobuf:"bytes,1,rep,name=nsDomainGroups,proto3" json:"nsDomainGroups,omitempty"` +} + +func (x *FindAllAvailableNSDomainGroupsResponse) Reset() { + *x = FindAllAvailableNSDomainGroupsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllAvailableNSDomainGroupsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllAvailableNSDomainGroupsResponse) ProtoMessage() {} + +func (x *FindAllAvailableNSDomainGroupsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 FindAllAvailableNSDomainGroupsResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableNSDomainGroupsResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{8} +} + +func (x *FindAllAvailableNSDomainGroupsResponse) GetNsDomainGroups() []*NSDomainGroup { + if x != nil { + return x.NsDomainGroups + } + return nil +} + +// 查找单个分组 +type FindNSDomainGroupRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroupId int64 `protobuf:"varint,1,opt,name=nsDomainGroupId,proto3" json:"nsDomainGroupId,omitempty"` +} + +func (x *FindNSDomainGroupRequest) Reset() { + *x = FindNSDomainGroupRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSDomainGroupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSDomainGroupRequest) ProtoMessage() {} + +func (x *FindNSDomainGroupRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 FindNSDomainGroupRequest.ProtoReflect.Descriptor instead. +func (*FindNSDomainGroupRequest) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{9} +} + +func (x *FindNSDomainGroupRequest) GetNsDomainGroupId() int64 { + if x != nil { + return x.NsDomainGroupId + } + return 0 +} + +type FindNSDomainGroupResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainGroup *NSDomainGroup `protobuf:"bytes,1,opt,name=nsDomainGroup,proto3" json:"nsDomainGroup,omitempty"` +} + +func (x *FindNSDomainGroupResponse) Reset() { + *x = FindNSDomainGroupResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_domain_group_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSDomainGroupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSDomainGroupResponse) ProtoMessage() {} + +func (x *FindNSDomainGroupResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_domain_group_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 FindNSDomainGroupResponse.ProtoReflect.Descriptor instead. +func (*FindNSDomainGroupResponse) Descriptor() ([]byte, []int) { + return file_service_ns_domain_group_proto_rawDescGZIP(), []int{10} +} + +func (x *FindNSDomainGroupResponse) GetNsDomainGroup() *NSDomainGroup { + if x != nil { + return x.NsDomainGroup + } + return nil +} + +var File_service_ns_domain_group_proto protoreflect.FileDescriptor + +var file_service_ns_domain_group_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 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, 0x6e, 0x73, 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 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, 0x30, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x47, 0x0a, 0x1b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x6e, 0x0a, + 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, + 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x46, 0x0a, + 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, + 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, + 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x5a, 0x0a, + 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, + 0x0a, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x40, 0x0a, 0x26, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x53, + 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x25, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, + 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x63, 0x0a, 0x26, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x52, 0x0e, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x22, 0x44, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, + 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, + 0x2e, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0d, + 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x32, 0x8a, 0x05, + 0x0a, 0x14, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, + 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, + 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x45, 0x0a, 0x13, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, + 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1e, 0x2e, 0x70, + 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5c, 0x0a, 0x15, + 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x63, 0x0a, 0x1f, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, + 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x12, 0x2a, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, + 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, + 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x77, 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, + 0x73, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, + 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1c, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, + 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, + 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x47, 0x72, 0x6f, + 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_ns_domain_group_proto_rawDescOnce sync.Once + file_service_ns_domain_group_proto_rawDescData = file_service_ns_domain_group_proto_rawDesc +) + +func file_service_ns_domain_group_proto_rawDescGZIP() []byte { + file_service_ns_domain_group_proto_rawDescOnce.Do(func() { + file_service_ns_domain_group_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_ns_domain_group_proto_rawDescData) + }) + return file_service_ns_domain_group_proto_rawDescData +} + +var file_service_ns_domain_group_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_service_ns_domain_group_proto_goTypes = []interface{}{ + (*CreateNSDomainGroupRequest)(nil), // 0: pb.CreateNSDomainGroupRequest + (*CreateNSDomainGroupResponse)(nil), // 1: pb.CreateNSDomainGroupResponse + (*UpdateNSDomainGroupRequest)(nil), // 2: pb.UpdateNSDomainGroupRequest + (*DeleteNSDomainGroupRequest)(nil), // 3: pb.DeleteNSDomainGroupRequest + (*FindAllNSDomainGroupsRequest)(nil), // 4: pb.FindAllNSDomainGroupsRequest + (*FindAllNSDomainGroupsResponse)(nil), // 5: pb.FindAllNSDomainGroupsResponse + (*CountAllAvailableNSDomainGroupsRequest)(nil), // 6: pb.CountAllAvailableNSDomainGroupsRequest + (*FindAllAvailableNSDomainGroupsRequest)(nil), // 7: pb.FindAllAvailableNSDomainGroupsRequest + (*FindAllAvailableNSDomainGroupsResponse)(nil), // 8: pb.FindAllAvailableNSDomainGroupsResponse + (*FindNSDomainGroupRequest)(nil), // 9: pb.FindNSDomainGroupRequest + (*FindNSDomainGroupResponse)(nil), // 10: pb.FindNSDomainGroupResponse + (*NSDomainGroup)(nil), // 11: pb.NSDomainGroup + (*RPCSuccess)(nil), // 12: pb.RPCSuccess + (*RPCCountResponse)(nil), // 13: pb.RPCCountResponse +} +var file_service_ns_domain_group_proto_depIdxs = []int32{ + 11, // 0: pb.FindAllNSDomainGroupsResponse.nsDomainGroups:type_name -> pb.NSDomainGroup + 11, // 1: pb.FindAllAvailableNSDomainGroupsResponse.nsDomainGroups:type_name -> pb.NSDomainGroup + 11, // 2: pb.FindNSDomainGroupResponse.nsDomainGroup:type_name -> pb.NSDomainGroup + 0, // 3: pb.NSDomainGroupService.createNSDomainGroup:input_type -> pb.CreateNSDomainGroupRequest + 2, // 4: pb.NSDomainGroupService.updateNSDomainGroup:input_type -> pb.UpdateNSDomainGroupRequest + 3, // 5: pb.NSDomainGroupService.deleteNSDomainGroup:input_type -> pb.DeleteNSDomainGroupRequest + 4, // 6: pb.NSDomainGroupService.findAllNSDomainGroups:input_type -> pb.FindAllNSDomainGroupsRequest + 6, // 7: pb.NSDomainGroupService.countAllAvailableNSDomainGroups:input_type -> pb.CountAllAvailableNSDomainGroupsRequest + 7, // 8: pb.NSDomainGroupService.findAllAvailableNSDomainGroups:input_type -> pb.FindAllAvailableNSDomainGroupsRequest + 9, // 9: pb.NSDomainGroupService.findNSDomainGroup:input_type -> pb.FindNSDomainGroupRequest + 1, // 10: pb.NSDomainGroupService.createNSDomainGroup:output_type -> pb.CreateNSDomainGroupResponse + 12, // 11: pb.NSDomainGroupService.updateNSDomainGroup:output_type -> pb.RPCSuccess + 12, // 12: pb.NSDomainGroupService.deleteNSDomainGroup:output_type -> pb.RPCSuccess + 5, // 13: pb.NSDomainGroupService.findAllNSDomainGroups:output_type -> pb.FindAllNSDomainGroupsResponse + 13, // 14: pb.NSDomainGroupService.countAllAvailableNSDomainGroups:output_type -> pb.RPCCountResponse + 8, // 15: pb.NSDomainGroupService.findAllAvailableNSDomainGroups:output_type -> pb.FindAllAvailableNSDomainGroupsResponse + 10, // 16: pb.NSDomainGroupService.findNSDomainGroup:output_type -> pb.FindNSDomainGroupResponse + 10, // [10:17] is the sub-list for method output_type + 3, // [3:10] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_ns_domain_group_proto_init() } +func file_service_ns_domain_group_proto_init() { + if File_service_ns_domain_group_proto != nil { + return + } + file_models_model_ns_domain_group_proto_init() + file_models_rpc_messages_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_ns_domain_group_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNSDomainGroupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateNSDomainGroupResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateNSDomainGroupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteNSDomainGroupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllNSDomainGroupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllNSDomainGroupsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountAllAvailableNSDomainGroupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllAvailableNSDomainGroupsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllAvailableNSDomainGroupsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSDomainGroupRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_domain_group_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSDomainGroupResponse); 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_ns_domain_group_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_ns_domain_group_proto_goTypes, + DependencyIndexes: file_service_ns_domain_group_proto_depIdxs, + MessageInfos: file_service_ns_domain_group_proto_msgTypes, + }.Build() + File_service_ns_domain_group_proto = out.File + file_service_ns_domain_group_proto_rawDesc = nil + file_service_ns_domain_group_proto_goTypes = nil + file_service_ns_domain_group_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 + +// NSDomainGroupServiceClient is the client API for NSDomainGroupService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type NSDomainGroupServiceClient interface { + // 创建分组 + CreateNSDomainGroup(ctx context.Context, in *CreateNSDomainGroupRequest, opts ...grpc.CallOption) (*CreateNSDomainGroupResponse, error) + // 修改分组 + UpdateNSDomainGroup(ctx context.Context, in *UpdateNSDomainGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 删除分组 + DeleteNSDomainGroup(ctx context.Context, in *DeleteNSDomainGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查询所有分组 + FindAllNSDomainGroups(ctx context.Context, in *FindAllNSDomainGroupsRequest, opts ...grpc.CallOption) (*FindAllNSDomainGroupsResponse, error) + // 查询可用分组数量 + CountAllAvailableNSDomainGroups(ctx context.Context, in *CountAllAvailableNSDomainGroupsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 查询所有启用分组 + FindAllAvailableNSDomainGroups(ctx context.Context, in *FindAllAvailableNSDomainGroupsRequest, opts ...grpc.CallOption) (*FindAllAvailableNSDomainGroupsResponse, error) + // 查找单个分组 + FindNSDomainGroup(ctx context.Context, in *FindNSDomainGroupRequest, opts ...grpc.CallOption) (*FindNSDomainGroupResponse, error) +} + +type nSDomainGroupServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewNSDomainGroupServiceClient(cc grpc.ClientConnInterface) NSDomainGroupServiceClient { + return &nSDomainGroupServiceClient{cc} +} + +func (c *nSDomainGroupServiceClient) CreateNSDomainGroup(ctx context.Context, in *CreateNSDomainGroupRequest, opts ...grpc.CallOption) (*CreateNSDomainGroupResponse, error) { + out := new(CreateNSDomainGroupResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/createNSDomainGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSDomainGroupServiceClient) UpdateNSDomainGroup(ctx context.Context, in *UpdateNSDomainGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/updateNSDomainGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSDomainGroupServiceClient) DeleteNSDomainGroup(ctx context.Context, in *DeleteNSDomainGroupRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/deleteNSDomainGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSDomainGroupServiceClient) FindAllNSDomainGroups(ctx context.Context, in *FindAllNSDomainGroupsRequest, opts ...grpc.CallOption) (*FindAllNSDomainGroupsResponse, error) { + out := new(FindAllNSDomainGroupsResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/findAllNSDomainGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSDomainGroupServiceClient) CountAllAvailableNSDomainGroups(ctx context.Context, in *CountAllAvailableNSDomainGroupsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/countAllAvailableNSDomainGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSDomainGroupServiceClient) FindAllAvailableNSDomainGroups(ctx context.Context, in *FindAllAvailableNSDomainGroupsRequest, opts ...grpc.CallOption) (*FindAllAvailableNSDomainGroupsResponse, error) { + out := new(FindAllAvailableNSDomainGroupsResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/findAllAvailableNSDomainGroups", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nSDomainGroupServiceClient) FindNSDomainGroup(ctx context.Context, in *FindNSDomainGroupRequest, opts ...grpc.CallOption) (*FindNSDomainGroupResponse, error) { + out := new(FindNSDomainGroupResponse) + err := c.cc.Invoke(ctx, "/pb.NSDomainGroupService/findNSDomainGroup", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// NSDomainGroupServiceServer is the server API for NSDomainGroupService service. +type NSDomainGroupServiceServer interface { + // 创建分组 + CreateNSDomainGroup(context.Context, *CreateNSDomainGroupRequest) (*CreateNSDomainGroupResponse, error) + // 修改分组 + UpdateNSDomainGroup(context.Context, *UpdateNSDomainGroupRequest) (*RPCSuccess, error) + // 删除分组 + DeleteNSDomainGroup(context.Context, *DeleteNSDomainGroupRequest) (*RPCSuccess, error) + // 查询所有分组 + FindAllNSDomainGroups(context.Context, *FindAllNSDomainGroupsRequest) (*FindAllNSDomainGroupsResponse, error) + // 查询可用分组数量 + CountAllAvailableNSDomainGroups(context.Context, *CountAllAvailableNSDomainGroupsRequest) (*RPCCountResponse, error) + // 查询所有启用分组 + FindAllAvailableNSDomainGroups(context.Context, *FindAllAvailableNSDomainGroupsRequest) (*FindAllAvailableNSDomainGroupsResponse, error) + // 查找单个分组 + FindNSDomainGroup(context.Context, *FindNSDomainGroupRequest) (*FindNSDomainGroupResponse, error) +} + +// UnimplementedNSDomainGroupServiceServer can be embedded to have forward compatible implementations. +type UnimplementedNSDomainGroupServiceServer struct { +} + +func (*UnimplementedNSDomainGroupServiceServer) CreateNSDomainGroup(context.Context, *CreateNSDomainGroupRequest) (*CreateNSDomainGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNSDomainGroup not implemented") +} +func (*UnimplementedNSDomainGroupServiceServer) UpdateNSDomainGroup(context.Context, *UpdateNSDomainGroupRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNSDomainGroup not implemented") +} +func (*UnimplementedNSDomainGroupServiceServer) DeleteNSDomainGroup(context.Context, *DeleteNSDomainGroupRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteNSDomainGroup not implemented") +} +func (*UnimplementedNSDomainGroupServiceServer) FindAllNSDomainGroups(context.Context, *FindAllNSDomainGroupsRequest) (*FindAllNSDomainGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllNSDomainGroups not implemented") +} +func (*UnimplementedNSDomainGroupServiceServer) CountAllAvailableNSDomainGroups(context.Context, *CountAllAvailableNSDomainGroupsRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllAvailableNSDomainGroups not implemented") +} +func (*UnimplementedNSDomainGroupServiceServer) FindAllAvailableNSDomainGroups(context.Context, *FindAllAvailableNSDomainGroupsRequest) (*FindAllAvailableNSDomainGroupsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableNSDomainGroups not implemented") +} +func (*UnimplementedNSDomainGroupServiceServer) FindNSDomainGroup(context.Context, *FindNSDomainGroupRequest) (*FindNSDomainGroupResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSDomainGroup not implemented") +} + +func RegisterNSDomainGroupServiceServer(s *grpc.Server, srv NSDomainGroupServiceServer) { + s.RegisterService(&_NSDomainGroupService_serviceDesc, srv) +} + +func _NSDomainGroupService_CreateNSDomainGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNSDomainGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).CreateNSDomainGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/CreateNSDomainGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).CreateNSDomainGroup(ctx, req.(*CreateNSDomainGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSDomainGroupService_UpdateNSDomainGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNSDomainGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).UpdateNSDomainGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/UpdateNSDomainGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).UpdateNSDomainGroup(ctx, req.(*UpdateNSDomainGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSDomainGroupService_DeleteNSDomainGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteNSDomainGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).DeleteNSDomainGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/DeleteNSDomainGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).DeleteNSDomainGroup(ctx, req.(*DeleteNSDomainGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSDomainGroupService_FindAllNSDomainGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllNSDomainGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).FindAllNSDomainGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/FindAllNSDomainGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).FindAllNSDomainGroups(ctx, req.(*FindAllNSDomainGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSDomainGroupService_CountAllAvailableNSDomainGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllAvailableNSDomainGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).CountAllAvailableNSDomainGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/CountAllAvailableNSDomainGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).CountAllAvailableNSDomainGroups(ctx, req.(*CountAllAvailableNSDomainGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSDomainGroupService_FindAllAvailableNSDomainGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableNSDomainGroupsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).FindAllAvailableNSDomainGroups(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/FindAllAvailableNSDomainGroups", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).FindAllAvailableNSDomainGroups(ctx, req.(*FindAllAvailableNSDomainGroupsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NSDomainGroupService_FindNSDomainGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSDomainGroupRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSDomainGroupServiceServer).FindNSDomainGroup(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSDomainGroupService/FindNSDomainGroup", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSDomainGroupServiceServer).FindNSDomainGroup(ctx, req.(*FindNSDomainGroupRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _NSDomainGroupService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.NSDomainGroupService", + HandlerType: (*NSDomainGroupServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createNSDomainGroup", + Handler: _NSDomainGroupService_CreateNSDomainGroup_Handler, + }, + { + MethodName: "updateNSDomainGroup", + Handler: _NSDomainGroupService_UpdateNSDomainGroup_Handler, + }, + { + MethodName: "deleteNSDomainGroup", + Handler: _NSDomainGroupService_DeleteNSDomainGroup_Handler, + }, + { + MethodName: "findAllNSDomainGroups", + Handler: _NSDomainGroupService_FindAllNSDomainGroups_Handler, + }, + { + MethodName: "countAllAvailableNSDomainGroups", + Handler: _NSDomainGroupService_CountAllAvailableNSDomainGroups_Handler, + }, + { + MethodName: "findAllAvailableNSDomainGroups", + Handler: _NSDomainGroupService_FindAllAvailableNSDomainGroups_Handler, + }, + { + MethodName: "findNSDomainGroup", + Handler: _NSDomainGroupService_FindNSDomainGroup_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_ns_domain_group.proto", +} diff --git a/pkg/rpc/pb/service_ns_key.pb.go b/pkg/rpc/pb/service_ns_key.pb.go index 37fcbda..b11dfef 100644 --- a/pkg/rpc/pb/service_ns_key.pb.go +++ b/pkg/rpc/pb/service_ns_key.pb.go @@ -301,7 +301,7 @@ func (x *DeleteNSKeyRequest) GetNsKeyId() int64 { } // 查找单个密钥 -type FindEnabledNSKeyRequest struct { +type FindNSKeyRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -309,8 +309,8 @@ type FindEnabledNSKeyRequest struct { NsKeyId int64 `protobuf:"varint,1,opt,name=nsKeyId,proto3" json:"nsKeyId,omitempty"` } -func (x *FindEnabledNSKeyRequest) Reset() { - *x = FindEnabledNSKeyRequest{} +func (x *FindNSKeyRequest) Reset() { + *x = FindNSKeyRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_key_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -318,13 +318,13 @@ func (x *FindEnabledNSKeyRequest) Reset() { } } -func (x *FindEnabledNSKeyRequest) String() string { +func (x *FindNSKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSKeyRequest) ProtoMessage() {} +func (*FindNSKeyRequest) ProtoMessage() {} -func (x *FindEnabledNSKeyRequest) ProtoReflect() protoreflect.Message { +func (x *FindNSKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_key_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -336,19 +336,19 @@ func (x *FindEnabledNSKeyRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSKeyRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSKeyRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSKeyRequest.ProtoReflect.Descriptor instead. +func (*FindNSKeyRequest) Descriptor() ([]byte, []int) { return file_service_ns_key_proto_rawDescGZIP(), []int{4} } -func (x *FindEnabledNSKeyRequest) GetNsKeyId() int64 { +func (x *FindNSKeyRequest) GetNsKeyId() int64 { if x != nil { return x.NsKeyId } return 0 } -type FindEnabledNSKeyResponse struct { +type FindNSKeyResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -356,8 +356,8 @@ type FindEnabledNSKeyResponse struct { NsKey *NSKey `protobuf:"bytes,1,opt,name=nsKey,proto3" json:"nsKey,omitempty"` } -func (x *FindEnabledNSKeyResponse) Reset() { - *x = FindEnabledNSKeyResponse{} +func (x *FindNSKeyResponse) Reset() { + *x = FindNSKeyResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_key_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -365,13 +365,13 @@ func (x *FindEnabledNSKeyResponse) Reset() { } } -func (x *FindEnabledNSKeyResponse) String() string { +func (x *FindNSKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSKeyResponse) ProtoMessage() {} +func (*FindNSKeyResponse) ProtoMessage() {} -func (x *FindEnabledNSKeyResponse) ProtoReflect() protoreflect.Message { +func (x *FindNSKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_key_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -383,12 +383,12 @@ func (x *FindEnabledNSKeyResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSKeyResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSKeyResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSKeyResponse.ProtoReflect.Descriptor instead. +func (*FindNSKeyResponse) Descriptor() ([]byte, []int) { return file_service_ns_key_proto_rawDescGZIP(), []int{5} } -func (x *FindEnabledNSKeyResponse) GetNsKey() *NSKey { +func (x *FindNSKeyResponse) GetNsKey() *NSKey { if x != nil { return x.NsKey } @@ -396,7 +396,7 @@ func (x *FindEnabledNSKeyResponse) GetNsKey() *NSKey { } // 计算密钥数量 -type CountAllEnabledNSKeysRequest struct { +type CountAllNSKeysRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -405,8 +405,8 @@ type CountAllEnabledNSKeysRequest struct { NsZoneId int64 `protobuf:"varint,2,opt,name=nsZoneId,proto3" json:"nsZoneId,omitempty"` } -func (x *CountAllEnabledNSKeysRequest) Reset() { - *x = CountAllEnabledNSKeysRequest{} +func (x *CountAllNSKeysRequest) Reset() { + *x = CountAllNSKeysRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_key_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -414,13 +414,13 @@ func (x *CountAllEnabledNSKeysRequest) Reset() { } } -func (x *CountAllEnabledNSKeysRequest) String() string { +func (x *CountAllNSKeysRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledNSKeysRequest) ProtoMessage() {} +func (*CountAllNSKeysRequest) ProtoMessage() {} -func (x *CountAllEnabledNSKeysRequest) ProtoReflect() protoreflect.Message { +func (x *CountAllNSKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_key_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -432,19 +432,19 @@ func (x *CountAllEnabledNSKeysRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledNSKeysRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledNSKeysRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CountAllNSKeysRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSKeysRequest) Descriptor() ([]byte, []int) { return file_service_ns_key_proto_rawDescGZIP(), []int{6} } -func (x *CountAllEnabledNSKeysRequest) GetNsDomainId() int64 { +func (x *CountAllNSKeysRequest) GetNsDomainId() int64 { if x != nil { return x.NsDomainId } return 0 } -func (x *CountAllEnabledNSKeysRequest) GetNsZoneId() int64 { +func (x *CountAllNSKeysRequest) GetNsZoneId() int64 { if x != nil { return x.NsZoneId } @@ -452,7 +452,7 @@ func (x *CountAllEnabledNSKeysRequest) GetNsZoneId() int64 { } // 列出单页密钥 -type ListEnabledNSKeysRequest struct { +type ListNSKeysRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -463,8 +463,8 @@ type ListEnabledNSKeysRequest struct { Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` } -func (x *ListEnabledNSKeysRequest) Reset() { - *x = ListEnabledNSKeysRequest{} +func (x *ListNSKeysRequest) Reset() { + *x = ListNSKeysRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_key_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -472,13 +472,13 @@ func (x *ListEnabledNSKeysRequest) Reset() { } } -func (x *ListEnabledNSKeysRequest) String() string { +func (x *ListNSKeysRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSKeysRequest) ProtoMessage() {} +func (*ListNSKeysRequest) ProtoMessage() {} -func (x *ListEnabledNSKeysRequest) ProtoReflect() protoreflect.Message { +func (x *ListNSKeysRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_key_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -490,40 +490,40 @@ func (x *ListEnabledNSKeysRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSKeysRequest.ProtoReflect.Descriptor instead. -func (*ListEnabledNSKeysRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSKeysRequest.ProtoReflect.Descriptor instead. +func (*ListNSKeysRequest) Descriptor() ([]byte, []int) { return file_service_ns_key_proto_rawDescGZIP(), []int{7} } -func (x *ListEnabledNSKeysRequest) GetNsDomainId() int64 { +func (x *ListNSKeysRequest) GetNsDomainId() int64 { if x != nil { return x.NsDomainId } return 0 } -func (x *ListEnabledNSKeysRequest) GetNsZoneId() int64 { +func (x *ListNSKeysRequest) GetNsZoneId() int64 { if x != nil { return x.NsZoneId } return 0 } -func (x *ListEnabledNSKeysRequest) GetOffset() int64 { +func (x *ListNSKeysRequest) GetOffset() int64 { if x != nil { return x.Offset } return 0 } -func (x *ListEnabledNSKeysRequest) GetSize() int64 { +func (x *ListNSKeysRequest) GetSize() int64 { if x != nil { return x.Size } return 0 } -type ListEnabledNSKeysResponse struct { +type ListNSKeysResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -531,8 +531,8 @@ type ListEnabledNSKeysResponse struct { NsKeys []*NSKey `protobuf:"bytes,1,rep,name=nsKeys,proto3" json:"nsKeys,omitempty"` } -func (x *ListEnabledNSKeysResponse) Reset() { - *x = ListEnabledNSKeysResponse{} +func (x *ListNSKeysResponse) Reset() { + *x = ListNSKeysResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_key_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -540,13 +540,13 @@ func (x *ListEnabledNSKeysResponse) Reset() { } } -func (x *ListEnabledNSKeysResponse) String() string { +func (x *ListNSKeysResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSKeysResponse) ProtoMessage() {} +func (*ListNSKeysResponse) ProtoMessage() {} -func (x *ListEnabledNSKeysResponse) ProtoReflect() protoreflect.Message { +func (x *ListNSKeysResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_key_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -558,12 +558,12 @@ func (x *ListEnabledNSKeysResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSKeysResponse.ProtoReflect.Descriptor instead. -func (*ListEnabledNSKeysResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSKeysResponse.ProtoReflect.Descriptor instead. +func (*ListNSKeysResponse) Descriptor() ([]byte, []int) { return file_service_ns_key_proto_rawDescGZIP(), []int{8} } -func (x *ListEnabledNSKeysResponse) GetNsKeys() []*NSKey { +func (x *ListNSKeysResponse) GetNsKeys() []*NSKey { if x != nil { return x.NsKeys } @@ -708,76 +708,70 @@ var file_service_ns_key_proto_rawDesc = []byte{ 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x2e, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x17, 0x46, 0x69, 0x6e, - 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x3b, - 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6e, 0x73, - 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e, - 0x53, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x22, 0x5a, 0x0a, 0x1c, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, - 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, - 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, - 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x82, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, - 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, 0x49, 0x64, - 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3e, 0x0a, 0x19, - 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b, + 0x52, 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x10, 0x46, 0x69, 0x6e, + 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x22, 0x34, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, + 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, + 0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x05, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x22, 0x53, 0x0a, + 0x15, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, + 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, + 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, 0x65, + 0x49, 0x64, 0x22, 0x7b, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, + 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, + 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, + 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x5a, 0x6f, 0x6e, + 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, + 0x37, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79, + 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x4d, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x4e, + 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x4e, - 0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x22, 0x4d, 0x0a, 0x1d, - 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x1e, 0x4c, - 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x21, 0x0a, - 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, - 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, - 0x32, 0x8f, 0x04, 0x0a, 0x0c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, - 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, - 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, - 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, - 0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, - 0x0a, 0x15, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, - 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, - 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x50, 0x0a, 0x11, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, - 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x2e, 0x70, 0x62, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, - 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, 0x66, - 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x53, 0x4b, 0x65, 0x79, 0x52, 0x06, 0x6e, 0x73, 0x4b, 0x65, 0x79, 0x73, 0x32, 0xd7, 0x03, 0x0a, + 0x0c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, 0x0a, + 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, + 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, + 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x12, 0x35, 0x0a, 0x0b, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, + 0x4b, 0x65, 0x79, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, + 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x66, + 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x6e, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, + 0x6c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x6c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, + 0x65, 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, 0x79, 0x73, 0x41, + 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4b, 0x65, + 0x79, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -798,11 +792,11 @@ var file_service_ns_key_proto_goTypes = []interface{}{ (*CreateNSKeyResponse)(nil), // 1: pb.CreateNSKeyResponse (*UpdateNSKeyRequest)(nil), // 2: pb.UpdateNSKeyRequest (*DeleteNSKeyRequest)(nil), // 3: pb.DeleteNSKeyRequest - (*FindEnabledNSKeyRequest)(nil), // 4: pb.FindEnabledNSKeyRequest - (*FindEnabledNSKeyResponse)(nil), // 5: pb.FindEnabledNSKeyResponse - (*CountAllEnabledNSKeysRequest)(nil), // 6: pb.CountAllEnabledNSKeysRequest - (*ListEnabledNSKeysRequest)(nil), // 7: pb.ListEnabledNSKeysRequest - (*ListEnabledNSKeysResponse)(nil), // 8: pb.ListEnabledNSKeysResponse + (*FindNSKeyRequest)(nil), // 4: pb.FindNSKeyRequest + (*FindNSKeyResponse)(nil), // 5: pb.FindNSKeyResponse + (*CountAllNSKeysRequest)(nil), // 6: pb.CountAllNSKeysRequest + (*ListNSKeysRequest)(nil), // 7: pb.ListNSKeysRequest + (*ListNSKeysResponse)(nil), // 8: pb.ListNSKeysResponse (*ListNSKeysAfterVersionRequest)(nil), // 9: pb.ListNSKeysAfterVersionRequest (*ListNSKeysAfterVersionResponse)(nil), // 10: pb.ListNSKeysAfterVersionResponse (*NSKey)(nil), // 11: pb.NSKey @@ -810,22 +804,22 @@ var file_service_ns_key_proto_goTypes = []interface{}{ (*RPCCountResponse)(nil), // 13: pb.RPCCountResponse } var file_service_ns_key_proto_depIdxs = []int32{ - 11, // 0: pb.FindEnabledNSKeyResponse.nsKey:type_name -> pb.NSKey - 11, // 1: pb.ListEnabledNSKeysResponse.nsKeys:type_name -> pb.NSKey + 11, // 0: pb.FindNSKeyResponse.nsKey:type_name -> pb.NSKey + 11, // 1: pb.ListNSKeysResponse.nsKeys:type_name -> pb.NSKey 11, // 2: pb.ListNSKeysAfterVersionResponse.nsKeys:type_name -> pb.NSKey 0, // 3: pb.NSKeyService.createNSKey:input_type -> pb.CreateNSKeyRequest 2, // 4: pb.NSKeyService.updateNSKey:input_type -> pb.UpdateNSKeyRequest 3, // 5: pb.NSKeyService.deleteNSKey:input_type -> pb.DeleteNSKeyRequest - 4, // 6: pb.NSKeyService.findEnabledNSKey:input_type -> pb.FindEnabledNSKeyRequest - 6, // 7: pb.NSKeyService.countAllEnabledNSKeys:input_type -> pb.CountAllEnabledNSKeysRequest - 7, // 8: pb.NSKeyService.listEnabledNSKeys:input_type -> pb.ListEnabledNSKeysRequest + 4, // 6: pb.NSKeyService.findNSKey:input_type -> pb.FindNSKeyRequest + 6, // 7: pb.NSKeyService.countAllNSKeys:input_type -> pb.CountAllNSKeysRequest + 7, // 8: pb.NSKeyService.listNSKeys:input_type -> pb.ListNSKeysRequest 9, // 9: pb.NSKeyService.listNSKeysAfterVersion:input_type -> pb.ListNSKeysAfterVersionRequest 1, // 10: pb.NSKeyService.createNSKey:output_type -> pb.CreateNSKeyResponse 12, // 11: pb.NSKeyService.updateNSKey:output_type -> pb.RPCSuccess 12, // 12: pb.NSKeyService.deleteNSKey:output_type -> pb.RPCSuccess - 5, // 13: pb.NSKeyService.findEnabledNSKey:output_type -> pb.FindEnabledNSKeyResponse - 13, // 14: pb.NSKeyService.countAllEnabledNSKeys:output_type -> pb.RPCCountResponse - 8, // 15: pb.NSKeyService.listEnabledNSKeys:output_type -> pb.ListEnabledNSKeysResponse + 5, // 13: pb.NSKeyService.findNSKey:output_type -> pb.FindNSKeyResponse + 13, // 14: pb.NSKeyService.countAllNSKeys:output_type -> pb.RPCCountResponse + 8, // 15: pb.NSKeyService.listNSKeys:output_type -> pb.ListNSKeysResponse 10, // 16: pb.NSKeyService.listNSKeysAfterVersion:output_type -> pb.ListNSKeysAfterVersionResponse 10, // [10:17] is the sub-list for method output_type 3, // [3:10] is the sub-list for method input_type @@ -891,7 +885,7 @@ func file_service_ns_key_proto_init() { } } file_service_ns_key_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSKeyRequest); i { + switch v := v.(*FindNSKeyRequest); i { case 0: return &v.state case 1: @@ -903,7 +897,7 @@ func file_service_ns_key_proto_init() { } } file_service_ns_key_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSKeyResponse); i { + switch v := v.(*FindNSKeyResponse); i { case 0: return &v.state case 1: @@ -915,7 +909,7 @@ func file_service_ns_key_proto_init() { } } file_service_ns_key_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledNSKeysRequest); i { + switch v := v.(*CountAllNSKeysRequest); i { case 0: return &v.state case 1: @@ -927,7 +921,7 @@ func file_service_ns_key_proto_init() { } } file_service_ns_key_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSKeysRequest); i { + switch v := v.(*ListNSKeysRequest); i { case 0: return &v.state case 1: @@ -939,7 +933,7 @@ func file_service_ns_key_proto_init() { } } file_service_ns_key_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSKeysResponse); i { + switch v := v.(*ListNSKeysResponse); i { case 0: return &v.state case 1: @@ -1014,11 +1008,11 @@ type NSKeyServiceClient interface { // 删除密钥 DeleteNSKey(ctx context.Context, in *DeleteNSKeyRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 查找单个密钥 - FindEnabledNSKey(ctx context.Context, in *FindEnabledNSKeyRequest, opts ...grpc.CallOption) (*FindEnabledNSKeyResponse, error) + FindNSKey(ctx context.Context, in *FindNSKeyRequest, opts ...grpc.CallOption) (*FindNSKeyResponse, error) // 计算密钥数量 - CountAllEnabledNSKeys(ctx context.Context, in *CountAllEnabledNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllNSKeys(ctx context.Context, in *CountAllNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 列出单页密钥 - ListEnabledNSKeys(ctx context.Context, in *ListEnabledNSKeysRequest, opts ...grpc.CallOption) (*ListEnabledNSKeysResponse, error) + ListNSKeys(ctx context.Context, in *ListNSKeysRequest, opts ...grpc.CallOption) (*ListNSKeysResponse, error) // 根据版本列出一组密钥 ListNSKeysAfterVersion(ctx context.Context, in *ListNSKeysAfterVersionRequest, opts ...grpc.CallOption) (*ListNSKeysAfterVersionResponse, error) } @@ -1058,27 +1052,27 @@ func (c *nSKeyServiceClient) DeleteNSKey(ctx context.Context, in *DeleteNSKeyReq return out, nil } -func (c *nSKeyServiceClient) FindEnabledNSKey(ctx context.Context, in *FindEnabledNSKeyRequest, opts ...grpc.CallOption) (*FindEnabledNSKeyResponse, error) { - out := new(FindEnabledNSKeyResponse) - err := c.cc.Invoke(ctx, "/pb.NSKeyService/findEnabledNSKey", in, out, opts...) +func (c *nSKeyServiceClient) FindNSKey(ctx context.Context, in *FindNSKeyRequest, opts ...grpc.CallOption) (*FindNSKeyResponse, error) { + out := new(FindNSKeyResponse) + err := c.cc.Invoke(ctx, "/pb.NSKeyService/findNSKey", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSKeyServiceClient) CountAllEnabledNSKeys(ctx context.Context, in *CountAllEnabledNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nSKeyServiceClient) CountAllNSKeys(ctx context.Context, in *CountAllNSKeysRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NSKeyService/countAllEnabledNSKeys", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NSKeyService/countAllNSKeys", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSKeyServiceClient) ListEnabledNSKeys(ctx context.Context, in *ListEnabledNSKeysRequest, opts ...grpc.CallOption) (*ListEnabledNSKeysResponse, error) { - out := new(ListEnabledNSKeysResponse) - err := c.cc.Invoke(ctx, "/pb.NSKeyService/listEnabledNSKeys", in, out, opts...) +func (c *nSKeyServiceClient) ListNSKeys(ctx context.Context, in *ListNSKeysRequest, opts ...grpc.CallOption) (*ListNSKeysResponse, error) { + out := new(ListNSKeysResponse) + err := c.cc.Invoke(ctx, "/pb.NSKeyService/listNSKeys", in, out, opts...) if err != nil { return nil, err } @@ -1103,11 +1097,11 @@ type NSKeyServiceServer interface { // 删除密钥 DeleteNSKey(context.Context, *DeleteNSKeyRequest) (*RPCSuccess, error) // 查找单个密钥 - FindEnabledNSKey(context.Context, *FindEnabledNSKeyRequest) (*FindEnabledNSKeyResponse, error) + FindNSKey(context.Context, *FindNSKeyRequest) (*FindNSKeyResponse, error) // 计算密钥数量 - CountAllEnabledNSKeys(context.Context, *CountAllEnabledNSKeysRequest) (*RPCCountResponse, error) + CountAllNSKeys(context.Context, *CountAllNSKeysRequest) (*RPCCountResponse, error) // 列出单页密钥 - ListEnabledNSKeys(context.Context, *ListEnabledNSKeysRequest) (*ListEnabledNSKeysResponse, error) + ListNSKeys(context.Context, *ListNSKeysRequest) (*ListNSKeysResponse, error) // 根据版本列出一组密钥 ListNSKeysAfterVersion(context.Context, *ListNSKeysAfterVersionRequest) (*ListNSKeysAfterVersionResponse, error) } @@ -1125,14 +1119,14 @@ func (*UnimplementedNSKeyServiceServer) UpdateNSKey(context.Context, *UpdateNSKe func (*UnimplementedNSKeyServiceServer) DeleteNSKey(context.Context, *DeleteNSKeyRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNSKey not implemented") } -func (*UnimplementedNSKeyServiceServer) FindEnabledNSKey(context.Context, *FindEnabledNSKeyRequest) (*FindEnabledNSKeyResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSKey not implemented") +func (*UnimplementedNSKeyServiceServer) FindNSKey(context.Context, *FindNSKeyRequest) (*FindNSKeyResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSKey not implemented") } -func (*UnimplementedNSKeyServiceServer) CountAllEnabledNSKeys(context.Context, *CountAllEnabledNSKeysRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSKeys not implemented") +func (*UnimplementedNSKeyServiceServer) CountAllNSKeys(context.Context, *CountAllNSKeysRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSKeys not implemented") } -func (*UnimplementedNSKeyServiceServer) ListEnabledNSKeys(context.Context, *ListEnabledNSKeysRequest) (*ListEnabledNSKeysResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSKeys not implemented") +func (*UnimplementedNSKeyServiceServer) ListNSKeys(context.Context, *ListNSKeysRequest) (*ListNSKeysResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNSKeys not implemented") } func (*UnimplementedNSKeyServiceServer) ListNSKeysAfterVersion(context.Context, *ListNSKeysAfterVersionRequest) (*ListNSKeysAfterVersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListNSKeysAfterVersion not implemented") @@ -1196,56 +1190,56 @@ func _NSKeyService_DeleteNSKey_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _NSKeyService_FindEnabledNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSKeyRequest) +func _NSKeyService_FindNSKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSKeyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSKeyServiceServer).FindEnabledNSKey(ctx, in) + return srv.(NSKeyServiceServer).FindNSKey(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSKeyService/FindEnabledNSKey", + FullMethod: "/pb.NSKeyService/FindNSKey", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSKeyServiceServer).FindEnabledNSKey(ctx, req.(*FindEnabledNSKeyRequest)) + return srv.(NSKeyServiceServer).FindNSKey(ctx, req.(*FindNSKeyRequest)) } return interceptor(ctx, in, info, handler) } -func _NSKeyService_CountAllEnabledNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledNSKeysRequest) +func _NSKeyService_CountAllNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSKeysRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSKeyServiceServer).CountAllEnabledNSKeys(ctx, in) + return srv.(NSKeyServiceServer).CountAllNSKeys(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSKeyService/CountAllEnabledNSKeys", + FullMethod: "/pb.NSKeyService/CountAllNSKeys", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSKeyServiceServer).CountAllEnabledNSKeys(ctx, req.(*CountAllEnabledNSKeysRequest)) + return srv.(NSKeyServiceServer).CountAllNSKeys(ctx, req.(*CountAllNSKeysRequest)) } return interceptor(ctx, in, info, handler) } -func _NSKeyService_ListEnabledNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEnabledNSKeysRequest) +func _NSKeyService_ListNSKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNSKeysRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSKeyServiceServer).ListEnabledNSKeys(ctx, in) + return srv.(NSKeyServiceServer).ListNSKeys(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSKeyService/ListEnabledNSKeys", + FullMethod: "/pb.NSKeyService/ListNSKeys", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSKeyServiceServer).ListEnabledNSKeys(ctx, req.(*ListEnabledNSKeysRequest)) + return srv.(NSKeyServiceServer).ListNSKeys(ctx, req.(*ListNSKeysRequest)) } return interceptor(ctx, in, info, handler) } @@ -1285,16 +1279,16 @@ var _NSKeyService_serviceDesc = grpc.ServiceDesc{ Handler: _NSKeyService_DeleteNSKey_Handler, }, { - MethodName: "findEnabledNSKey", - Handler: _NSKeyService_FindEnabledNSKey_Handler, + MethodName: "findNSKey", + Handler: _NSKeyService_FindNSKey_Handler, }, { - MethodName: "countAllEnabledNSKeys", - Handler: _NSKeyService_CountAllEnabledNSKeys_Handler, + MethodName: "countAllNSKeys", + Handler: _NSKeyService_CountAllNSKeys_Handler, }, { - MethodName: "listEnabledNSKeys", - Handler: _NSKeyService_ListEnabledNSKeys_Handler, + MethodName: "listNSKeys", + Handler: _NSKeyService_ListNSKeys_Handler, }, { MethodName: "listNSKeysAfterVersion", diff --git a/pkg/rpc/pb/service_ns_node.pb.go b/pkg/rpc/pb/service_ns_node.pb.go index 7c1e5f9..6cdb8b2 100644 --- a/pkg/rpc/pb/service_ns_node.pb.go +++ b/pkg/rpc/pb/service_ns_node.pb.go @@ -30,7 +30,7 @@ const ( const _ = proto.ProtoPackageIsVersion4 // 根据集群查找所有节点 -type FindAllEnabledNSNodesWithNSClusterIdRequest struct { +type FindAllNSNodesWithNSClusterIdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -38,8 +38,8 @@ type FindAllEnabledNSNodesWithNSClusterIdRequest struct { NsClusterId int64 `protobuf:"varint,1,opt,name=nsClusterId,proto3" json:"nsClusterId,omitempty"` } -func (x *FindAllEnabledNSNodesWithNSClusterIdRequest) Reset() { - *x = FindAllEnabledNSNodesWithNSClusterIdRequest{} +func (x *FindAllNSNodesWithNSClusterIdRequest) Reset() { + *x = FindAllNSNodesWithNSClusterIdRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -47,13 +47,13 @@ func (x *FindAllEnabledNSNodesWithNSClusterIdRequest) Reset() { } } -func (x *FindAllEnabledNSNodesWithNSClusterIdRequest) String() string { +func (x *FindAllNSNodesWithNSClusterIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledNSNodesWithNSClusterIdRequest) ProtoMessage() {} +func (*FindAllNSNodesWithNSClusterIdRequest) ProtoMessage() {} -func (x *FindAllEnabledNSNodesWithNSClusterIdRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllNSNodesWithNSClusterIdRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -65,19 +65,19 @@ func (x *FindAllEnabledNSNodesWithNSClusterIdRequest) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledNSNodesWithNSClusterIdRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledNSNodesWithNSClusterIdRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllNSNodesWithNSClusterIdRequest.ProtoReflect.Descriptor instead. +func (*FindAllNSNodesWithNSClusterIdRequest) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{0} } -func (x *FindAllEnabledNSNodesWithNSClusterIdRequest) GetNsClusterId() int64 { +func (x *FindAllNSNodesWithNSClusterIdRequest) GetNsClusterId() int64 { if x != nil { return x.NsClusterId } return 0 } -type FindAllEnabledNSNodesWithNSClusterIdResponse struct { +type FindAllNSNodesWithNSClusterIdResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -85,8 +85,8 @@ type FindAllEnabledNSNodesWithNSClusterIdResponse struct { NsNodes []*NSNode `protobuf:"bytes,1,rep,name=nsNodes,proto3" json:"nsNodes,omitempty"` } -func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) Reset() { - *x = FindAllEnabledNSNodesWithNSClusterIdResponse{} +func (x *FindAllNSNodesWithNSClusterIdResponse) Reset() { + *x = FindAllNSNodesWithNSClusterIdResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -94,13 +94,13 @@ func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) Reset() { } } -func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) String() string { +func (x *FindAllNSNodesWithNSClusterIdResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledNSNodesWithNSClusterIdResponse) ProtoMessage() {} +func (*FindAllNSNodesWithNSClusterIdResponse) ProtoMessage() {} -func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllNSNodesWithNSClusterIdResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -112,12 +112,12 @@ func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledNSNodesWithNSClusterIdResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledNSNodesWithNSClusterIdResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllNSNodesWithNSClusterIdResponse.ProtoReflect.Descriptor instead. +func (*FindAllNSNodesWithNSClusterIdResponse) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{1} } -func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) GetNsNodes() []*NSNode { +func (x *FindAllNSNodesWithNSClusterIdResponse) GetNsNodes() []*NSNode { if x != nil { return x.NsNodes } @@ -125,14 +125,14 @@ func (x *FindAllEnabledNSNodesWithNSClusterIdResponse) GetNsNodes() []*NSNode { } // 所有可用的节点数量 -type CountAllEnabledNSNodesRequest struct { +type CountAllNSNodesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *CountAllEnabledNSNodesRequest) Reset() { - *x = CountAllEnabledNSNodesRequest{} +func (x *CountAllNSNodesRequest) Reset() { + *x = CountAllNSNodesRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -140,13 +140,13 @@ func (x *CountAllEnabledNSNodesRequest) Reset() { } } -func (x *CountAllEnabledNSNodesRequest) String() string { +func (x *CountAllNSNodesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledNSNodesRequest) ProtoMessage() {} +func (*CountAllNSNodesRequest) ProtoMessage() {} -func (x *CountAllEnabledNSNodesRequest) ProtoReflect() protoreflect.Message { +func (x *CountAllNSNodesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -158,13 +158,13 @@ func (x *CountAllEnabledNSNodesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledNSNodesRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledNSNodesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CountAllNSNodesRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSNodesRequest) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{2} } // 计算匹配的节点数量 -type CountAllEnabledNSNodesMatchRequest struct { +type CountAllNSNodesMatchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -175,8 +175,8 @@ type CountAllEnabledNSNodesMatchRequest struct { Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` } -func (x *CountAllEnabledNSNodesMatchRequest) Reset() { - *x = CountAllEnabledNSNodesMatchRequest{} +func (x *CountAllNSNodesMatchRequest) Reset() { + *x = CountAllNSNodesMatchRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -184,13 +184,13 @@ func (x *CountAllEnabledNSNodesMatchRequest) Reset() { } } -func (x *CountAllEnabledNSNodesMatchRequest) String() string { +func (x *CountAllNSNodesMatchRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledNSNodesMatchRequest) ProtoMessage() {} +func (*CountAllNSNodesMatchRequest) ProtoMessage() {} -func (x *CountAllEnabledNSNodesMatchRequest) ProtoReflect() protoreflect.Message { +func (x *CountAllNSNodesMatchRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -202,33 +202,33 @@ func (x *CountAllEnabledNSNodesMatchRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledNSNodesMatchRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledNSNodesMatchRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CountAllNSNodesMatchRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSNodesMatchRequest) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{3} } -func (x *CountAllEnabledNSNodesMatchRequest) GetNsClusterId() int64 { +func (x *CountAllNSNodesMatchRequest) GetNsClusterId() int64 { if x != nil { return x.NsClusterId } return 0 } -func (x *CountAllEnabledNSNodesMatchRequest) GetInstallState() int32 { +func (x *CountAllNSNodesMatchRequest) GetInstallState() int32 { if x != nil { return x.InstallState } return 0 } -func (x *CountAllEnabledNSNodesMatchRequest) GetActiveState() int32 { +func (x *CountAllNSNodesMatchRequest) GetActiveState() int32 { if x != nil { return x.ActiveState } return 0 } -func (x *CountAllEnabledNSNodesMatchRequest) GetKeyword() string { +func (x *CountAllNSNodesMatchRequest) GetKeyword() string { if x != nil { return x.Keyword } @@ -236,7 +236,7 @@ func (x *CountAllEnabledNSNodesMatchRequest) GetKeyword() string { } // 列出单页节点 -type ListEnabledNSNodesMatchRequest struct { +type ListNSNodesMatchRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -249,8 +249,8 @@ type ListEnabledNSNodesMatchRequest struct { Keyword string `protobuf:"bytes,6,opt,name=keyword,proto3" json:"keyword,omitempty"` } -func (x *ListEnabledNSNodesMatchRequest) Reset() { - *x = ListEnabledNSNodesMatchRequest{} +func (x *ListNSNodesMatchRequest) Reset() { + *x = ListNSNodesMatchRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -258,13 +258,13 @@ func (x *ListEnabledNSNodesMatchRequest) Reset() { } } -func (x *ListEnabledNSNodesMatchRequest) String() string { +func (x *ListNSNodesMatchRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSNodesMatchRequest) ProtoMessage() {} +func (*ListNSNodesMatchRequest) ProtoMessage() {} -func (x *ListEnabledNSNodesMatchRequest) ProtoReflect() protoreflect.Message { +func (x *ListNSNodesMatchRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -276,54 +276,54 @@ func (x *ListEnabledNSNodesMatchRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSNodesMatchRequest.ProtoReflect.Descriptor instead. -func (*ListEnabledNSNodesMatchRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSNodesMatchRequest.ProtoReflect.Descriptor instead. +func (*ListNSNodesMatchRequest) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{4} } -func (x *ListEnabledNSNodesMatchRequest) GetOffset() int64 { +func (x *ListNSNodesMatchRequest) GetOffset() int64 { if x != nil { return x.Offset } return 0 } -func (x *ListEnabledNSNodesMatchRequest) GetSize() int64 { +func (x *ListNSNodesMatchRequest) GetSize() int64 { if x != nil { return x.Size } return 0 } -func (x *ListEnabledNSNodesMatchRequest) GetNsClusterId() int64 { +func (x *ListNSNodesMatchRequest) GetNsClusterId() int64 { if x != nil { return x.NsClusterId } return 0 } -func (x *ListEnabledNSNodesMatchRequest) GetInstallState() int32 { +func (x *ListNSNodesMatchRequest) GetInstallState() int32 { if x != nil { return x.InstallState } return 0 } -func (x *ListEnabledNSNodesMatchRequest) GetActiveState() int32 { +func (x *ListNSNodesMatchRequest) GetActiveState() int32 { if x != nil { return x.ActiveState } return 0 } -func (x *ListEnabledNSNodesMatchRequest) GetKeyword() string { +func (x *ListNSNodesMatchRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } -type ListEnabledNSNodesMatchResponse struct { +type ListNSNodesMatchResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -331,8 +331,8 @@ type ListEnabledNSNodesMatchResponse struct { NsNodes []*NSNode `protobuf:"bytes,1,rep,name=nsNodes,proto3" json:"nsNodes,omitempty"` } -func (x *ListEnabledNSNodesMatchResponse) Reset() { - *x = ListEnabledNSNodesMatchResponse{} +func (x *ListNSNodesMatchResponse) Reset() { + *x = ListNSNodesMatchResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -340,13 +340,13 @@ func (x *ListEnabledNSNodesMatchResponse) Reset() { } } -func (x *ListEnabledNSNodesMatchResponse) String() string { +func (x *ListNSNodesMatchResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledNSNodesMatchResponse) ProtoMessage() {} +func (*ListNSNodesMatchResponse) ProtoMessage() {} -func (x *ListEnabledNSNodesMatchResponse) ProtoReflect() protoreflect.Message { +func (x *ListNSNodesMatchResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -358,12 +358,12 @@ func (x *ListEnabledNSNodesMatchResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledNSNodesMatchResponse.ProtoReflect.Descriptor instead. -func (*ListEnabledNSNodesMatchResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSNodesMatchResponse.ProtoReflect.Descriptor instead. +func (*ListNSNodesMatchResponse) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{5} } -func (x *ListEnabledNSNodesMatchResponse) GetNsNodes() []*NSNode { +func (x *ListNSNodesMatchResponse) GetNsNodes() []*NSNode { if x != nil { return x.NsNodes } @@ -578,7 +578,7 @@ func (x *DeleteNSNodeRequest) GetNsNodeId() int64 { } // 获取单个节点信息 -type FindEnabledNSNodeRequest struct { +type FindNSNodeRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -586,8 +586,8 @@ type FindEnabledNSNodeRequest struct { NsNodeId int64 `protobuf:"varint,1,opt,name=nsNodeId,proto3" json:"nsNodeId,omitempty"` } -func (x *FindEnabledNSNodeRequest) Reset() { - *x = FindEnabledNSNodeRequest{} +func (x *FindNSNodeRequest) Reset() { + *x = FindNSNodeRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -595,13 +595,13 @@ func (x *FindEnabledNSNodeRequest) Reset() { } } -func (x *FindEnabledNSNodeRequest) String() string { +func (x *FindNSNodeRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSNodeRequest) ProtoMessage() {} +func (*FindNSNodeRequest) ProtoMessage() {} -func (x *FindEnabledNSNodeRequest) ProtoReflect() protoreflect.Message { +func (x *FindNSNodeRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -613,19 +613,19 @@ func (x *FindEnabledNSNodeRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSNodeRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSNodeRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSNodeRequest.ProtoReflect.Descriptor instead. +func (*FindNSNodeRequest) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{10} } -func (x *FindEnabledNSNodeRequest) GetNsNodeId() int64 { +func (x *FindNSNodeRequest) GetNsNodeId() int64 { if x != nil { return x.NsNodeId } return 0 } -type FindEnabledNSNodeResponse struct { +type FindNSNodeResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -633,8 +633,8 @@ type FindEnabledNSNodeResponse struct { NsNode *NSNode `protobuf:"bytes,1,opt,name=nsNode,proto3" json:"nsNode,omitempty"` } -func (x *FindEnabledNSNodeResponse) Reset() { - *x = FindEnabledNSNodeResponse{} +func (x *FindNSNodeResponse) Reset() { + *x = FindNSNodeResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_node_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -642,13 +642,13 @@ func (x *FindEnabledNSNodeResponse) Reset() { } } -func (x *FindEnabledNSNodeResponse) String() string { +func (x *FindNSNodeResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSNodeResponse) ProtoMessage() {} +func (*FindNSNodeResponse) ProtoMessage() {} -func (x *FindEnabledNSNodeResponse) ProtoReflect() protoreflect.Message { +func (x *FindNSNodeResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_node_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -660,12 +660,12 @@ func (x *FindEnabledNSNodeResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSNodeResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSNodeResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSNodeResponse.ProtoReflect.Descriptor instead. +func (*FindNSNodeResponse) Descriptor() ([]byte, []int) { return file_service_ns_node_proto_rawDescGZIP(), []int{11} } -func (x *FindEnabledNSNodeResponse) GetNsNode() *NSNode { +func (x *FindNSNodeResponse) GetNsNode() *NSNode { if x != nil { return x.NsNode } @@ -1811,306 +1811,296 @@ var file_service_ns_node_proto_rawDesc = []byte{ 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, 0x1d, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x6f, - 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x2b, 0x46, 0x69, 0x6e, - 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, - 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, - 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x2c, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, 0x6e, 0x73, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, - 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x73, - 0x22, 0x1f, 0x0a, 0x1d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0xa6, 0x01, 0x0a, 0x22, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, - 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, - 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xce, 0x01, 0x0a, 0x1e, 0x4c, - 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, - 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, - 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x69, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x47, 0x0a, 0x1f, 0x4c, - 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, - 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, - 0x0a, 0x07, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x4e, - 0x6f, 0x64, 0x65, 0x73, 0x22, 0x50, 0x0a, 0x2c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, - 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, - 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, - 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, - 0x6f, 0x67, 0x69, 0x6e, 0x22, 0x32, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, - 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x36, 0x0a, 0x18, 0x46, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x22, 0x0a, 0x06, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x6e, 0x73, - 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xa8, 0x01, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2b, - 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, - 0x73, 0x4f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, - 0x32, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x0a, 0x1e, - 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, - 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x1f, 0x46, 0x69, - 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, - 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0d, 0x69, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x5e, 0x0a, 0x1e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x73, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, - 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, - 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x49, 0x6e, - 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, - 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x22, 0x53, 0x0a, 0x19, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, - 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, - 0x20, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x41, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, - 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x4a, 0x53, - 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, - 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x6d, 0x0a, 0x1f, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, - 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x63, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x63, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x63, - 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x22, 0x68, 0x0a, 0x20, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x4e, 0x65, - 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, - 0x68, 0x61, 0x73, 0x4e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, - 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x6d, 0x0a, - 0x25, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x63, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x68, - 0x75, 0x6e, 0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0b, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0xa6, 0x01, 0x0a, - 0x26, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, - 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x75, 0x6e, - 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, - 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, - 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, - 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd5, 0x01, 0x0a, 0x13, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, - 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, - 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x6f, - 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, - 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, 0x12, - 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, - 0x73, 0x4f, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x46, 0x0a, - 0x24, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x64, 0x73, 0x22, 0x63, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x22, 0x30, 0x0a, 0x12, 0x53, 0x74, - 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x13, - 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x2f, 0x0a, - 0x11, 0x53, 0x74, 0x6f, 0x70, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x3e, - 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x70, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xd3, - 0x0e, 0x0a, 0x0d, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x89, 0x01, 0x0a, 0x24, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x46, - 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, + 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x48, 0x0a, 0x24, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, + 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x4d, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, + 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, + 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, + 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x4e, 0x6f, 0x64, + 0x65, 0x73, 0x22, 0x18, 0x0a, 0x16, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, + 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x9f, 0x01, 0x0a, + 0x1b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, + 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, + 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, + 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc7, + 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, + 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, + 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x69, 0x6e, 0x73, 0x74, + 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, + 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, + 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x0b, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x40, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x07, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x07, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x50, 0x0a, 0x2c, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x62, 0x2e, - 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x16, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, - 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, - 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, - 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x5b, 0x0a, 0x1b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x26, - 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, - 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, - 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, - 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, - 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x6f, 0x0a, 0x25, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x55, 0x70, 0x67, 0x72, - 0x61, 0x64, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x43, - 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, - 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, - 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, - 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, - 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x50, 0x0a, - 0x11, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x37, 0x0a, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, - 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, - 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x49, - 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, - 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, - 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, - 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x2e, - 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x43, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, - 0x6e, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, + 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x13, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, + 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2b, 0x0a, + 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, + 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x22, 0x32, 0x0a, 0x14, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x31, + 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x22, 0x2f, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x22, 0x38, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x6e, 0x73, 0x4e, 0x6f, + 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x22, 0xa8, 0x01, 0x0a, + 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, + 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, + 0x67, 0x69, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22, 0x32, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3c, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x22, 0x5e, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x70, + 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x22, 0x5e, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, + 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x65, 0x64, 0x22, 0x53, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x20, 0x0a, 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x63, 0x68, - 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, - 0x6b, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, - 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, - 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, - 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, - 0x69, 0x6c, 0x65, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x41, 0x0a, 0x1f, 0x46, 0x69, 0x6e, + 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, + 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0a, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x6d, 0x0a, 0x1f, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, + 0x72, 0x63, 0x68, 0x12, 0x26, 0x0a, 0x0e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x63, 0x75, 0x72, + 0x72, 0x65, 0x6e, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x68, 0x0a, 0x20, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x24, 0x0a, 0x0d, 0x68, 0x61, 0x73, 0x4e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x68, 0x61, 0x73, 0x4e, 0x65, 0x77, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x65, 0x77, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x6d, 0x0a, 0x25, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, - 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x6e, 0x73, - 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, - 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, - 0x12, 0x47, 0x0a, 0x13, 0x73, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, - 0x6f, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, - 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x59, 0x0a, 0x1d, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x65, 0x64, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, + 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x61, 0x72, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, + 0x63, 0x68, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x4f, 0x66, 0x66, 0x73, 0x65, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x4f, 0x66, + 0x66, 0x73, 0x65, 0x74, 0x22, 0xa6, 0x01, 0x0a, 0x26, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x44, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, + 0x03, 0x73, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x75, 0x6d, 0x12, + 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x6c, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd5, 0x01, + 0x0a, 0x13, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, + 0x26, 0x0a, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, + 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x64, + 0x61, 0x74, 0x61, 0x4a, 0x53, 0x4f, 0x4e, 0x12, 0x12, 0x0a, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x46, 0x0a, 0x24, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x50, + 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, + 0x0a, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x73, 0x22, 0x63, 0x0a, + 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, + 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, + 0x69, 0x6e, 0x22, 0x30, 0x0a, 0x12, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 0x22, 0x3f, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x69, + 0x73, 0x4f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x2f, 0x0a, 0x11, 0x53, 0x74, 0x6f, 0x70, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x73, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6e, 0x73, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x3e, 0x0a, 0x12, 0x53, 0x74, 0x6f, 0x70, 0x4e, 0x53, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x69, 0x73, 0x4f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0xf7, 0x0d, 0x0a, 0x0d, 0x4e, 0x53, 0x4e, 0x6f, 0x64, + 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x74, 0x0a, 0x1d, 0x66, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, + 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, + 0x0a, 0x0f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, + 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1f, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, + 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, + 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x73, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x6f, 0x0a, 0x25, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x55, 0x70, 0x67, + 0x72, 0x61, 0x64, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, + 0x53, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30, 0x2e, 0x70, 0x62, 0x2e, + 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x53, 0x43, 0x6c, 0x75, 0x73, + 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x41, 0x0a, 0x0c, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, + 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, + 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, + 0x0a, 0x0a, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0c, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, - 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, - 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, - 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, - 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x4e, - 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4e, - 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, - 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 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, + 0x63, 0x65, 0x73, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, + 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, + 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, + 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x73, + 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x73, 0x49, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x43, 0x0a, + 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x62, 0x0a, 0x17, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, + 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x22, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x4e, 0x53, + 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x75, 0x72, 0x72, 0x65, + 0x6e, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, + 0x1e, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, + 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, + 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x6e, + 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x6e, 0x73, 0x4e, 0x6f, 0x64, 0x65, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, + 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x12, 0x47, 0x0a, 0x13, + 0x73, 0x65, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x54, 0x6f, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x17, 0x2e, 0x70, + 0x62, 0x2e, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x59, 0x0a, 0x1d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x41, 0x50, + 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, + 0x64, 0x41, 0x50, 0x49, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, + 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, + 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, + 0x53, 0x74, 0x61, 0x72, 0x74, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x4e, 0x53, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4e, 0x53, 0x4e, 0x6f, 0x64, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x74, + 0x6f, 0x70, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 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, } var ( @@ -2127,18 +2117,18 @@ func file_service_ns_node_proto_rawDescGZIP() []byte { var file_service_ns_node_proto_msgTypes = make([]protoimpl.MessageInfo, 32) var file_service_ns_node_proto_goTypes = []interface{}{ - (*FindAllEnabledNSNodesWithNSClusterIdRequest)(nil), // 0: pb.FindAllEnabledNSNodesWithNSClusterIdRequest - (*FindAllEnabledNSNodesWithNSClusterIdResponse)(nil), // 1: pb.FindAllEnabledNSNodesWithNSClusterIdResponse - (*CountAllEnabledNSNodesRequest)(nil), // 2: pb.CountAllEnabledNSNodesRequest - (*CountAllEnabledNSNodesMatchRequest)(nil), // 3: pb.CountAllEnabledNSNodesMatchRequest - (*ListEnabledNSNodesMatchRequest)(nil), // 4: pb.ListEnabledNSNodesMatchRequest - (*ListEnabledNSNodesMatchResponse)(nil), // 5: pb.ListEnabledNSNodesMatchResponse + (*FindAllNSNodesWithNSClusterIdRequest)(nil), // 0: pb.FindAllNSNodesWithNSClusterIdRequest + (*FindAllNSNodesWithNSClusterIdResponse)(nil), // 1: pb.FindAllNSNodesWithNSClusterIdResponse + (*CountAllNSNodesRequest)(nil), // 2: pb.CountAllNSNodesRequest + (*CountAllNSNodesMatchRequest)(nil), // 3: pb.CountAllNSNodesMatchRequest + (*ListNSNodesMatchRequest)(nil), // 4: pb.ListNSNodesMatchRequest + (*ListNSNodesMatchResponse)(nil), // 5: pb.ListNSNodesMatchResponse (*CountAllUpgradeNSNodesWithNSClusterIdRequest)(nil), // 6: pb.CountAllUpgradeNSNodesWithNSClusterIdRequest (*CreateNSNodeRequest)(nil), // 7: pb.CreateNSNodeRequest (*CreateNSNodeResponse)(nil), // 8: pb.CreateNSNodeResponse (*DeleteNSNodeRequest)(nil), // 9: pb.DeleteNSNodeRequest - (*FindEnabledNSNodeRequest)(nil), // 10: pb.FindEnabledNSNodeRequest - (*FindEnabledNSNodeResponse)(nil), // 11: pb.FindEnabledNSNodeResponse + (*FindNSNodeRequest)(nil), // 10: pb.FindNSNodeRequest + (*FindNSNodeResponse)(nil), // 11: pb.FindNSNodeResponse (*UpdateNSNodeRequest)(nil), // 12: pb.UpdateNSNodeRequest (*InstallNSNodeRequest)(nil), // 13: pb.InstallNSNodeRequest (*InstallNSNodeResponse)(nil), // 14: pb.InstallNSNodeResponse @@ -2166,21 +2156,21 @@ var file_service_ns_node_proto_goTypes = []interface{}{ (*RPCSuccess)(nil), // 36: pb.RPCSuccess } var file_service_ns_node_proto_depIdxs = []int32{ - 32, // 0: pb.FindAllEnabledNSNodesWithNSClusterIdResponse.nsNodes:type_name -> pb.NSNode - 32, // 1: pb.ListEnabledNSNodesMatchResponse.nsNodes:type_name -> pb.NSNode + 32, // 0: pb.FindAllNSNodesWithNSClusterIdResponse.nsNodes:type_name -> pb.NSNode + 32, // 1: pb.ListNSNodesMatchResponse.nsNodes:type_name -> pb.NSNode 33, // 2: pb.CreateNSNodeRequest.nodeLogin:type_name -> pb.NodeLogin - 32, // 3: pb.FindEnabledNSNodeResponse.nsNode:type_name -> pb.NSNode + 32, // 3: pb.FindNSNodeResponse.nsNode:type_name -> pb.NSNode 33, // 4: pb.UpdateNSNodeRequest.nodeLogin:type_name -> pb.NodeLogin 34, // 5: pb.FindNSNodeInstallStatusResponse.installStatus:type_name -> pb.NodeInstallStatus 33, // 6: pb.UpdateNSNodeLoginRequest.nodeLogin:type_name -> pb.NodeLogin - 0, // 7: pb.NSNodeService.findAllEnabledNSNodesWithNSClusterId:input_type -> pb.FindAllEnabledNSNodesWithNSClusterIdRequest - 2, // 8: pb.NSNodeService.countAllEnabledNSNodes:input_type -> pb.CountAllEnabledNSNodesRequest - 3, // 9: pb.NSNodeService.countAllEnabledNSNodesMatch:input_type -> pb.CountAllEnabledNSNodesMatchRequest - 4, // 10: pb.NSNodeService.listEnabledNSNodesMatch:input_type -> pb.ListEnabledNSNodesMatchRequest + 0, // 7: pb.NSNodeService.findAllNSNodesWithNSClusterId:input_type -> pb.FindAllNSNodesWithNSClusterIdRequest + 2, // 8: pb.NSNodeService.countAllNSNodes:input_type -> pb.CountAllNSNodesRequest + 3, // 9: pb.NSNodeService.countAllNSNodesMatch:input_type -> pb.CountAllNSNodesMatchRequest + 4, // 10: pb.NSNodeService.listNSNodesMatch:input_type -> pb.ListNSNodesMatchRequest 6, // 11: pb.NSNodeService.countAllUpgradeNSNodesWithNSClusterId:input_type -> pb.CountAllUpgradeNSNodesWithNSClusterIdRequest 7, // 12: pb.NSNodeService.createNSNode:input_type -> pb.CreateNSNodeRequest 9, // 13: pb.NSNodeService.deleteNSNode:input_type -> pb.DeleteNSNodeRequest - 10, // 14: pb.NSNodeService.findEnabledNSNode:input_type -> pb.FindEnabledNSNodeRequest + 10, // 14: pb.NSNodeService.findNSNode:input_type -> pb.FindNSNodeRequest 12, // 15: pb.NSNodeService.updateNSNode:input_type -> pb.UpdateNSNodeRequest 13, // 16: pb.NSNodeService.installNSNode:input_type -> pb.InstallNSNodeRequest 15, // 17: pb.NSNodeService.findNSNodeInstallStatus:input_type -> pb.FindNSNodeInstallStatusRequest @@ -2195,14 +2185,14 @@ var file_service_ns_node_proto_depIdxs = []int32{ 27, // 26: pb.NSNodeService.updateNSNodeLogin:input_type -> pb.UpdateNSNodeLoginRequest 28, // 27: pb.NSNodeService.startNSNode:input_type -> pb.StartNSNodeRequest 30, // 28: pb.NSNodeService.stopNSNode:input_type -> pb.StopNSNodeRequest - 1, // 29: pb.NSNodeService.findAllEnabledNSNodesWithNSClusterId:output_type -> pb.FindAllEnabledNSNodesWithNSClusterIdResponse - 35, // 30: pb.NSNodeService.countAllEnabledNSNodes:output_type -> pb.RPCCountResponse - 35, // 31: pb.NSNodeService.countAllEnabledNSNodesMatch:output_type -> pb.RPCCountResponse - 5, // 32: pb.NSNodeService.listEnabledNSNodesMatch:output_type -> pb.ListEnabledNSNodesMatchResponse + 1, // 29: pb.NSNodeService.findAllNSNodesWithNSClusterId:output_type -> pb.FindAllNSNodesWithNSClusterIdResponse + 35, // 30: pb.NSNodeService.countAllNSNodes:output_type -> pb.RPCCountResponse + 35, // 31: pb.NSNodeService.countAllNSNodesMatch:output_type -> pb.RPCCountResponse + 5, // 32: pb.NSNodeService.listNSNodesMatch:output_type -> pb.ListNSNodesMatchResponse 35, // 33: pb.NSNodeService.countAllUpgradeNSNodesWithNSClusterId:output_type -> pb.RPCCountResponse 8, // 34: pb.NSNodeService.createNSNode:output_type -> pb.CreateNSNodeResponse 36, // 35: pb.NSNodeService.deleteNSNode:output_type -> pb.RPCSuccess - 11, // 36: pb.NSNodeService.findEnabledNSNode:output_type -> pb.FindEnabledNSNodeResponse + 11, // 36: pb.NSNodeService.findNSNode:output_type -> pb.FindNSNodeResponse 36, // 37: pb.NSNodeService.updateNSNode:output_type -> pb.RPCSuccess 14, // 38: pb.NSNodeService.installNSNode:output_type -> pb.InstallNSNodeResponse 16, // 39: pb.NSNodeService.findNSNodeInstallStatus:output_type -> pb.FindNSNodeInstallStatusResponse @@ -2235,7 +2225,7 @@ func file_service_ns_node_proto_init() { file_models_model_node_login_proto_init() if !protoimpl.UnsafeEnabled { file_service_ns_node_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledNSNodesWithNSClusterIdRequest); i { + switch v := v.(*FindAllNSNodesWithNSClusterIdRequest); i { case 0: return &v.state case 1: @@ -2247,7 +2237,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledNSNodesWithNSClusterIdResponse); i { + switch v := v.(*FindAllNSNodesWithNSClusterIdResponse); i { case 0: return &v.state case 1: @@ -2259,7 +2249,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledNSNodesRequest); i { + switch v := v.(*CountAllNSNodesRequest); i { case 0: return &v.state case 1: @@ -2271,7 +2261,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledNSNodesMatchRequest); i { + switch v := v.(*CountAllNSNodesMatchRequest); i { case 0: return &v.state case 1: @@ -2283,7 +2273,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSNodesMatchRequest); i { + switch v := v.(*ListNSNodesMatchRequest); i { case 0: return &v.state case 1: @@ -2295,7 +2285,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSNodesMatchResponse); i { + switch v := v.(*ListNSNodesMatchResponse); i { case 0: return &v.state case 1: @@ -2355,7 +2345,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSNodeRequest); i { + switch v := v.(*FindNSNodeRequest); i { case 0: return &v.state case 1: @@ -2367,7 +2357,7 @@ func file_service_ns_node_proto_init() { } } file_service_ns_node_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSNodeResponse); i { + switch v := v.(*FindNSNodeResponse); i { case 0: return &v.state case 1: @@ -2652,13 +2642,13 @@ 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 NSNodeServiceClient interface { // 根据集群查找所有节点 - FindAllEnabledNSNodesWithNSClusterId(ctx context.Context, in *FindAllEnabledNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNSNodesWithNSClusterIdResponse, error) + FindAllNSNodesWithNSClusterId(ctx context.Context, in *FindAllNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllNSNodesWithNSClusterIdResponse, error) // 所有可用的节点数量 - CountAllEnabledNSNodes(ctx context.Context, in *CountAllEnabledNSNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllNSNodes(ctx context.Context, in *CountAllNSNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 计算匹配的节点数量 - CountAllEnabledNSNodesMatch(ctx context.Context, in *CountAllEnabledNSNodesMatchRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllNSNodesMatch(ctx context.Context, in *CountAllNSNodesMatchRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 列出单页节点 - ListEnabledNSNodesMatch(ctx context.Context, in *ListEnabledNSNodesMatchRequest, opts ...grpc.CallOption) (*ListEnabledNSNodesMatchResponse, error) + ListNSNodesMatch(ctx context.Context, in *ListNSNodesMatchRequest, opts ...grpc.CallOption) (*ListNSNodesMatchResponse, error) // 计算需要升级的节点数量 CountAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *CountAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 创建节点 @@ -2666,7 +2656,7 @@ type NSNodeServiceClient interface { // 删除节点 DeleteNSNode(ctx context.Context, in *DeleteNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 获取单个节点信息 - FindEnabledNSNode(ctx context.Context, in *FindEnabledNSNodeRequest, opts ...grpc.CallOption) (*FindEnabledNSNodeResponse, error) + FindNSNode(ctx context.Context, in *FindNSNodeRequest, opts ...grpc.CallOption) (*FindNSNodeResponse, error) // 修改节点 UpdateNSNode(ctx context.Context, in *UpdateNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 安装节点 @@ -2705,36 +2695,36 @@ func NewNSNodeServiceClient(cc grpc.ClientConnInterface) NSNodeServiceClient { return &nSNodeServiceClient{cc} } -func (c *nSNodeServiceClient) FindAllEnabledNSNodesWithNSClusterId(ctx context.Context, in *FindAllEnabledNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNSNodesWithNSClusterIdResponse, error) { - out := new(FindAllEnabledNSNodesWithNSClusterIdResponse) - err := c.cc.Invoke(ctx, "/pb.NSNodeService/findAllEnabledNSNodesWithNSClusterId", in, out, opts...) +func (c *nSNodeServiceClient) FindAllNSNodesWithNSClusterId(ctx context.Context, in *FindAllNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllNSNodesWithNSClusterIdResponse, error) { + out := new(FindAllNSNodesWithNSClusterIdResponse) + err := c.cc.Invoke(ctx, "/pb.NSNodeService/findAllNSNodesWithNSClusterId", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSNodeServiceClient) CountAllEnabledNSNodes(ctx context.Context, in *CountAllEnabledNSNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nSNodeServiceClient) CountAllNSNodes(ctx context.Context, in *CountAllNSNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NSNodeService/countAllEnabledNSNodes", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NSNodeService/countAllNSNodes", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSNodeServiceClient) CountAllEnabledNSNodesMatch(ctx context.Context, in *CountAllEnabledNSNodesMatchRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nSNodeServiceClient) CountAllNSNodesMatch(ctx context.Context, in *CountAllNSNodesMatchRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NSNodeService/countAllEnabledNSNodesMatch", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NSNodeService/countAllNSNodesMatch", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSNodeServiceClient) ListEnabledNSNodesMatch(ctx context.Context, in *ListEnabledNSNodesMatchRequest, opts ...grpc.CallOption) (*ListEnabledNSNodesMatchResponse, error) { - out := new(ListEnabledNSNodesMatchResponse) - err := c.cc.Invoke(ctx, "/pb.NSNodeService/listEnabledNSNodesMatch", in, out, opts...) +func (c *nSNodeServiceClient) ListNSNodesMatch(ctx context.Context, in *ListNSNodesMatchRequest, opts ...grpc.CallOption) (*ListNSNodesMatchResponse, error) { + out := new(ListNSNodesMatchResponse) + err := c.cc.Invoke(ctx, "/pb.NSNodeService/listNSNodesMatch", in, out, opts...) if err != nil { return nil, err } @@ -2768,9 +2758,9 @@ func (c *nSNodeServiceClient) DeleteNSNode(ctx context.Context, in *DeleteNSNode return out, nil } -func (c *nSNodeServiceClient) FindEnabledNSNode(ctx context.Context, in *FindEnabledNSNodeRequest, opts ...grpc.CallOption) (*FindEnabledNSNodeResponse, error) { - out := new(FindEnabledNSNodeResponse) - err := c.cc.Invoke(ctx, "/pb.NSNodeService/findEnabledNSNode", in, out, opts...) +func (c *nSNodeServiceClient) FindNSNode(ctx context.Context, in *FindNSNodeRequest, opts ...grpc.CallOption) (*FindNSNodeResponse, error) { + out := new(FindNSNodeResponse) + err := c.cc.Invoke(ctx, "/pb.NSNodeService/findNSNode", in, out, opts...) if err != nil { return nil, err } @@ -2928,13 +2918,13 @@ func (c *nSNodeServiceClient) StopNSNode(ctx context.Context, in *StopNSNodeRequ // NSNodeServiceServer is the server API for NSNodeService service. type NSNodeServiceServer interface { // 根据集群查找所有节点 - FindAllEnabledNSNodesWithNSClusterId(context.Context, *FindAllEnabledNSNodesWithNSClusterIdRequest) (*FindAllEnabledNSNodesWithNSClusterIdResponse, error) + FindAllNSNodesWithNSClusterId(context.Context, *FindAllNSNodesWithNSClusterIdRequest) (*FindAllNSNodesWithNSClusterIdResponse, error) // 所有可用的节点数量 - CountAllEnabledNSNodes(context.Context, *CountAllEnabledNSNodesRequest) (*RPCCountResponse, error) + CountAllNSNodes(context.Context, *CountAllNSNodesRequest) (*RPCCountResponse, error) // 计算匹配的节点数量 - CountAllEnabledNSNodesMatch(context.Context, *CountAllEnabledNSNodesMatchRequest) (*RPCCountResponse, error) + CountAllNSNodesMatch(context.Context, *CountAllNSNodesMatchRequest) (*RPCCountResponse, error) // 列出单页节点 - ListEnabledNSNodesMatch(context.Context, *ListEnabledNSNodesMatchRequest) (*ListEnabledNSNodesMatchResponse, error) + ListNSNodesMatch(context.Context, *ListNSNodesMatchRequest) (*ListNSNodesMatchResponse, error) // 计算需要升级的节点数量 CountAllUpgradeNSNodesWithNSClusterId(context.Context, *CountAllUpgradeNSNodesWithNSClusterIdRequest) (*RPCCountResponse, error) // 创建节点 @@ -2942,7 +2932,7 @@ type NSNodeServiceServer interface { // 删除节点 DeleteNSNode(context.Context, *DeleteNSNodeRequest) (*RPCSuccess, error) // 获取单个节点信息 - FindEnabledNSNode(context.Context, *FindEnabledNSNodeRequest) (*FindEnabledNSNodeResponse, error) + FindNSNode(context.Context, *FindNSNodeRequest) (*FindNSNodeResponse, error) // 修改节点 UpdateNSNode(context.Context, *UpdateNSNodeRequest) (*RPCSuccess, error) // 安装节点 @@ -2977,17 +2967,17 @@ type NSNodeServiceServer interface { type UnimplementedNSNodeServiceServer struct { } -func (*UnimplementedNSNodeServiceServer) FindAllEnabledNSNodesWithNSClusterId(context.Context, *FindAllEnabledNSNodesWithNSClusterIdRequest) (*FindAllEnabledNSNodesWithNSClusterIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNSNodesWithNSClusterId not implemented") +func (*UnimplementedNSNodeServiceServer) FindAllNSNodesWithNSClusterId(context.Context, *FindAllNSNodesWithNSClusterIdRequest) (*FindAllNSNodesWithNSClusterIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllNSNodesWithNSClusterId not implemented") } -func (*UnimplementedNSNodeServiceServer) CountAllEnabledNSNodes(context.Context, *CountAllEnabledNSNodesRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSNodes not implemented") +func (*UnimplementedNSNodeServiceServer) CountAllNSNodes(context.Context, *CountAllNSNodesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSNodes not implemented") } -func (*UnimplementedNSNodeServiceServer) CountAllEnabledNSNodesMatch(context.Context, *CountAllEnabledNSNodesMatchRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSNodesMatch not implemented") +func (*UnimplementedNSNodeServiceServer) CountAllNSNodesMatch(context.Context, *CountAllNSNodesMatchRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSNodesMatch not implemented") } -func (*UnimplementedNSNodeServiceServer) ListEnabledNSNodesMatch(context.Context, *ListEnabledNSNodesMatchRequest) (*ListEnabledNSNodesMatchResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSNodesMatch not implemented") +func (*UnimplementedNSNodeServiceServer) ListNSNodesMatch(context.Context, *ListNSNodesMatchRequest) (*ListNSNodesMatchResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNSNodesMatch not implemented") } func (*UnimplementedNSNodeServiceServer) CountAllUpgradeNSNodesWithNSClusterId(context.Context, *CountAllUpgradeNSNodesWithNSClusterIdRequest) (*RPCCountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CountAllUpgradeNSNodesWithNSClusterId not implemented") @@ -2998,8 +2988,8 @@ func (*UnimplementedNSNodeServiceServer) CreateNSNode(context.Context, *CreateNS func (*UnimplementedNSNodeServiceServer) DeleteNSNode(context.Context, *DeleteNSNodeRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNSNode not implemented") } -func (*UnimplementedNSNodeServiceServer) FindEnabledNSNode(context.Context, *FindEnabledNSNodeRequest) (*FindEnabledNSNodeResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSNode not implemented") +func (*UnimplementedNSNodeServiceServer) FindNSNode(context.Context, *FindNSNodeRequest) (*FindNSNodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSNode not implemented") } func (*UnimplementedNSNodeServiceServer) UpdateNSNode(context.Context, *UpdateNSNodeRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNode not implemented") @@ -3048,74 +3038,74 @@ func RegisterNSNodeServiceServer(s *grpc.Server, srv NSNodeServiceServer) { s.RegisterService(&_NSNodeService_serviceDesc, srv) } -func _NSNodeService_FindAllEnabledNSNodesWithNSClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledNSNodesWithNSClusterIdRequest) +func _NSNodeService_FindAllNSNodesWithNSClusterId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllNSNodesWithNSClusterIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSNodeServiceServer).FindAllEnabledNSNodesWithNSClusterId(ctx, in) + return srv.(NSNodeServiceServer).FindAllNSNodesWithNSClusterId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSNodeService/FindAllEnabledNSNodesWithNSClusterId", + FullMethod: "/pb.NSNodeService/FindAllNSNodesWithNSClusterId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSNodeServiceServer).FindAllEnabledNSNodesWithNSClusterId(ctx, req.(*FindAllEnabledNSNodesWithNSClusterIdRequest)) + return srv.(NSNodeServiceServer).FindAllNSNodesWithNSClusterId(ctx, req.(*FindAllNSNodesWithNSClusterIdRequest)) } return interceptor(ctx, in, info, handler) } -func _NSNodeService_CountAllEnabledNSNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledNSNodesRequest) +func _NSNodeService_CountAllNSNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSNodesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSNodeServiceServer).CountAllEnabledNSNodes(ctx, in) + return srv.(NSNodeServiceServer).CountAllNSNodes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSNodeService/CountAllEnabledNSNodes", + FullMethod: "/pb.NSNodeService/CountAllNSNodes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSNodeServiceServer).CountAllEnabledNSNodes(ctx, req.(*CountAllEnabledNSNodesRequest)) + return srv.(NSNodeServiceServer).CountAllNSNodes(ctx, req.(*CountAllNSNodesRequest)) } return interceptor(ctx, in, info, handler) } -func _NSNodeService_CountAllEnabledNSNodesMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledNSNodesMatchRequest) +func _NSNodeService_CountAllNSNodesMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSNodesMatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSNodeServiceServer).CountAllEnabledNSNodesMatch(ctx, in) + return srv.(NSNodeServiceServer).CountAllNSNodesMatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSNodeService/CountAllEnabledNSNodesMatch", + FullMethod: "/pb.NSNodeService/CountAllNSNodesMatch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSNodeServiceServer).CountAllEnabledNSNodesMatch(ctx, req.(*CountAllEnabledNSNodesMatchRequest)) + return srv.(NSNodeServiceServer).CountAllNSNodesMatch(ctx, req.(*CountAllNSNodesMatchRequest)) } return interceptor(ctx, in, info, handler) } -func _NSNodeService_ListEnabledNSNodesMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEnabledNSNodesMatchRequest) +func _NSNodeService_ListNSNodesMatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNSNodesMatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSNodeServiceServer).ListEnabledNSNodesMatch(ctx, in) + return srv.(NSNodeServiceServer).ListNSNodesMatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSNodeService/ListEnabledNSNodesMatch", + FullMethod: "/pb.NSNodeService/ListNSNodesMatch", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSNodeServiceServer).ListEnabledNSNodesMatch(ctx, req.(*ListEnabledNSNodesMatchRequest)) + return srv.(NSNodeServiceServer).ListNSNodesMatch(ctx, req.(*ListNSNodesMatchRequest)) } return interceptor(ctx, in, info, handler) } @@ -3174,20 +3164,20 @@ func _NSNodeService_DeleteNSNode_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _NSNodeService_FindEnabledNSNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSNodeRequest) +func _NSNodeService_FindNSNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSNodeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSNodeServiceServer).FindEnabledNSNode(ctx, in) + return srv.(NSNodeServiceServer).FindNSNode(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSNodeService/FindEnabledNSNode", + FullMethod: "/pb.NSNodeService/FindNSNode", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSNodeServiceServer).FindEnabledNSNode(ctx, req.(*FindEnabledNSNodeRequest)) + return srv.(NSNodeServiceServer).FindNSNode(ctx, req.(*FindNSNodeRequest)) } return interceptor(ctx, in, info, handler) } @@ -3457,20 +3447,20 @@ var _NSNodeService_serviceDesc = grpc.ServiceDesc{ HandlerType: (*NSNodeServiceServer)(nil), Methods: []grpc.MethodDesc{ { - MethodName: "findAllEnabledNSNodesWithNSClusterId", - Handler: _NSNodeService_FindAllEnabledNSNodesWithNSClusterId_Handler, + MethodName: "findAllNSNodesWithNSClusterId", + Handler: _NSNodeService_FindAllNSNodesWithNSClusterId_Handler, }, { - MethodName: "countAllEnabledNSNodes", - Handler: _NSNodeService_CountAllEnabledNSNodes_Handler, + MethodName: "countAllNSNodes", + Handler: _NSNodeService_CountAllNSNodes_Handler, }, { - MethodName: "countAllEnabledNSNodesMatch", - Handler: _NSNodeService_CountAllEnabledNSNodesMatch_Handler, + MethodName: "countAllNSNodesMatch", + Handler: _NSNodeService_CountAllNSNodesMatch_Handler, }, { - MethodName: "listEnabledNSNodesMatch", - Handler: _NSNodeService_ListEnabledNSNodesMatch_Handler, + MethodName: "listNSNodesMatch", + Handler: _NSNodeService_ListNSNodesMatch_Handler, }, { MethodName: "countAllUpgradeNSNodesWithNSClusterId", @@ -3485,8 +3475,8 @@ var _NSNodeService_serviceDesc = grpc.ServiceDesc{ Handler: _NSNodeService_DeleteNSNode_Handler, }, { - MethodName: "findEnabledNSNode", - Handler: _NSNodeService_FindEnabledNSNode_Handler, + MethodName: "findNSNode", + Handler: _NSNodeService_FindNSNode_Handler, }, { MethodName: "updateNSNode", diff --git a/pkg/rpc/pb/service_ns_record.pb.go b/pkg/rpc/pb/service_ns_record.pb.go index fc8a91e..8b5c617 100644 --- a/pkg/rpc/pb/service_ns_record.pb.go +++ b/pkg/rpc/pb/service_ns_record.pb.go @@ -182,6 +182,149 @@ func (x *CreateNSRecordResponse) GetNsRecordId() int64 { return 0 } +// 批量创建记录 +type CreateNSRecordsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsDomainId int64 `protobuf:"varint,1,opt,name=nsDomainId,proto3" json:"nsDomainId,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Names []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` + Ttl int32 `protobuf:"varint,6,opt,name=ttl,proto3" json:"ttl,omitempty"` + NsRouteCodes []string `protobuf:"bytes,7,rep,name=nsRouteCodes,proto3" json:"nsRouteCodes,omitempty"` // 路线代号 +} + +func (x *CreateNSRecordsRequest) Reset() { + *x = CreateNSRecordsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_record_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSRecordsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSRecordsRequest) ProtoMessage() {} + +func (x *CreateNSRecordsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_record_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 CreateNSRecordsRequest.ProtoReflect.Descriptor instead. +func (*CreateNSRecordsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_record_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateNSRecordsRequest) GetNsDomainId() int64 { + if x != nil { + return x.NsDomainId + } + return 0 +} + +func (x *CreateNSRecordsRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateNSRecordsRequest) GetNames() []string { + if x != nil { + return x.Names + } + return nil +} + +func (x *CreateNSRecordsRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *CreateNSRecordsRequest) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *CreateNSRecordsRequest) GetTtl() int32 { + if x != nil { + return x.Ttl + } + return 0 +} + +func (x *CreateNSRecordsRequest) GetNsRouteCodes() []string { + if x != nil { + return x.NsRouteCodes + } + return nil +} + +type CreateNSRecordsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsRecordIds []int64 `protobuf:"varint,1,rep,packed,name=nsRecordIds,proto3" json:"nsRecordIds,omitempty"` +} + +func (x *CreateNSRecordsResponse) Reset() { + *x = CreateNSRecordsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_record_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateNSRecordsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNSRecordsResponse) ProtoMessage() {} + +func (x *CreateNSRecordsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_record_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 CreateNSRecordsResponse.ProtoReflect.Descriptor instead. +func (*CreateNSRecordsResponse) Descriptor() ([]byte, []int) { + return file_service_ns_record_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateNSRecordsResponse) GetNsRecordIds() []int64 { + if x != nil { + return x.NsRecordIds + } + return nil +} + // 修改记录 type UpdateNSRecordRequest struct { state protoimpl.MessageState @@ -203,7 +346,7 @@ type UpdateNSRecordRequest struct { func (x *UpdateNSRecordRequest) Reset() { *x = UpdateNSRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[2] + mi := &file_service_ns_record_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -216,7 +359,7 @@ func (x *UpdateNSRecordRequest) String() string { func (*UpdateNSRecordRequest) ProtoMessage() {} func (x *UpdateNSRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[2] + mi := &file_service_ns_record_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -229,7 +372,7 @@ func (x *UpdateNSRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNSRecordRequest.ProtoReflect.Descriptor instead. func (*UpdateNSRecordRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{2} + return file_service_ns_record_proto_rawDescGZIP(), []int{4} } func (x *UpdateNSRecordRequest) GetNsRecordId() int64 { @@ -308,7 +451,7 @@ type DeleteNSRecordRequest struct { func (x *DeleteNSRecordRequest) Reset() { *x = DeleteNSRecordRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[3] + mi := &file_service_ns_record_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -321,7 +464,7 @@ func (x *DeleteNSRecordRequest) String() string { func (*DeleteNSRecordRequest) ProtoMessage() {} func (x *DeleteNSRecordRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[3] + mi := &file_service_ns_record_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -334,7 +477,7 @@ func (x *DeleteNSRecordRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteNSRecordRequest.ProtoReflect.Descriptor instead. func (*DeleteNSRecordRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{3} + return file_service_ns_record_proto_rawDescGZIP(), []int{5} } func (x *DeleteNSRecordRequest) GetNsRecordId() int64 { @@ -345,7 +488,7 @@ func (x *DeleteNSRecordRequest) GetNsRecordId() int64 { } // 计算记录数量 -type CountAllEnabledNSRecordsRequest struct { +type CountAllNSRecordsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -358,23 +501,23 @@ type CountAllEnabledNSRecordsRequest struct { Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` } -func (x *CountAllEnabledNSRecordsRequest) Reset() { - *x = CountAllEnabledNSRecordsRequest{} +func (x *CountAllNSRecordsRequest) Reset() { + *x = CountAllNSRecordsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[4] + mi := &file_service_ns_record_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CountAllEnabledNSRecordsRequest) String() string { +func (x *CountAllNSRecordsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledNSRecordsRequest) ProtoMessage() {} +func (*CountAllNSRecordsRequest) ProtoMessage() {} -func (x *CountAllEnabledNSRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[4] +func (x *CountAllNSRecordsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_record_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -385,19 +528,19 @@ func (x *CountAllEnabledNSRecordsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledNSRecordsRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledNSRecordsRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{4} +// Deprecated: Use CountAllNSRecordsRequest.ProtoReflect.Descriptor instead. +func (*CountAllNSRecordsRequest) Descriptor() ([]byte, []int) { + return file_service_ns_record_proto_rawDescGZIP(), []int{6} } -func (x *CountAllEnabledNSRecordsRequest) GetNsDomainId() int64 { +func (x *CountAllNSRecordsRequest) GetNsDomainId() int64 { if x != nil { return x.NsDomainId } return 0 } -func (x *CountAllEnabledNSRecordsRequest) GetType() string { +func (x *CountAllNSRecordsRequest) GetType() string { if x != nil { return x.Type } @@ -405,21 +548,21 @@ func (x *CountAllEnabledNSRecordsRequest) GetType() string { } // Deprecated: Do not use. -func (x *CountAllEnabledNSRecordsRequest) GetNsRouteId() int64 { +func (x *CountAllNSRecordsRequest) GetNsRouteId() int64 { if x != nil { return x.NsRouteId } return 0 } -func (x *CountAllEnabledNSRecordsRequest) GetNsRouteCode() string { +func (x *CountAllNSRecordsRequest) GetNsRouteCode() string { if x != nil { return x.NsRouteCode } return "" } -func (x *CountAllEnabledNSRecordsRequest) GetKeyword() string { +func (x *CountAllNSRecordsRequest) GetKeyword() string { if x != nil { return x.Keyword } @@ -427,7 +570,7 @@ func (x *CountAllEnabledNSRecordsRequest) GetKeyword() string { } // 读取单页记录 -type ListEnabledNSRecordsRequest struct { +type ListNSRecordsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -442,146 +585,8 @@ type ListEnabledNSRecordsRequest struct { Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` } -func (x *ListEnabledNSRecordsRequest) Reset() { - *x = ListEnabledNSRecordsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListEnabledNSRecordsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListEnabledNSRecordsRequest) ProtoMessage() {} - -func (x *ListEnabledNSRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_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 ListEnabledNSRecordsRequest.ProtoReflect.Descriptor instead. -func (*ListEnabledNSRecordsRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{5} -} - -func (x *ListEnabledNSRecordsRequest) GetNsDomainId() int64 { - if x != nil { - return x.NsDomainId - } - return 0 -} - -func (x *ListEnabledNSRecordsRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -// Deprecated: Do not use. -func (x *ListEnabledNSRecordsRequest) GetNsRouteId() int64 { - if x != nil { - return x.NsRouteId - } - return 0 -} - -func (x *ListEnabledNSRecordsRequest) GetNsRouteCode() string { - if x != nil { - return x.NsRouteCode - } - return "" -} - -func (x *ListEnabledNSRecordsRequest) GetKeyword() string { - if x != nil { - return x.Keyword - } - return "" -} - -func (x *ListEnabledNSRecordsRequest) GetOffset() int64 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *ListEnabledNSRecordsRequest) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -type ListEnabledNSRecordsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NsRecords []*NSRecord `protobuf:"bytes,1,rep,name=nsRecords,proto3" json:"nsRecords,omitempty"` -} - -func (x *ListEnabledNSRecordsResponse) Reset() { - *x = ListEnabledNSRecordsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListEnabledNSRecordsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListEnabledNSRecordsResponse) ProtoMessage() {} - -func (x *ListEnabledNSRecordsResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_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 ListEnabledNSRecordsResponse.ProtoReflect.Descriptor instead. -func (*ListEnabledNSRecordsResponse) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{6} -} - -func (x *ListEnabledNSRecordsResponse) GetNsRecords() []*NSRecord { - if x != nil { - return x.NsRecords - } - return nil -} - -// 查询单个记录信息 -type FindEnabledNSRecordRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NsRecordId int64 `protobuf:"varint,1,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` -} - -func (x *FindEnabledNSRecordRequest) Reset() { - *x = FindEnabledNSRecordRequest{} +func (x *ListNSRecordsRequest) Reset() { + *x = ListNSRecordsRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_record_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -589,13 +594,13 @@ func (x *FindEnabledNSRecordRequest) Reset() { } } -func (x *FindEnabledNSRecordRequest) String() string { +func (x *ListNSRecordsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSRecordRequest) ProtoMessage() {} +func (*ListNSRecordsRequest) ProtoMessage() {} -func (x *FindEnabledNSRecordRequest) ProtoReflect() protoreflect.Message { +func (x *ListNSRecordsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_record_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -607,28 +612,71 @@ func (x *FindEnabledNSRecordRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSRecordRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSRecordRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSRecordsRequest.ProtoReflect.Descriptor instead. +func (*ListNSRecordsRequest) Descriptor() ([]byte, []int) { return file_service_ns_record_proto_rawDescGZIP(), []int{7} } -func (x *FindEnabledNSRecordRequest) GetNsRecordId() int64 { +func (x *ListNSRecordsRequest) GetNsDomainId() int64 { if x != nil { - return x.NsRecordId + return x.NsDomainId } return 0 } -type FindEnabledNSRecordResponse struct { +func (x *ListNSRecordsRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +// Deprecated: Do not use. +func (x *ListNSRecordsRequest) GetNsRouteId() int64 { + if x != nil { + return x.NsRouteId + } + return 0 +} + +func (x *ListNSRecordsRequest) GetNsRouteCode() string { + if x != nil { + return x.NsRouteCode + } + return "" +} + +func (x *ListNSRecordsRequest) GetKeyword() string { + if x != nil { + return x.Keyword + } + return "" +} + +func (x *ListNSRecordsRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListNSRecordsRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListNSRecordsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - NsRecord *NSRecord `protobuf:"bytes,1,opt,name=nsRecord,proto3" json:"nsRecord,omitempty"` + NsRecords []*NSRecord `protobuf:"bytes,1,rep,name=nsRecords,proto3" json:"nsRecords,omitempty"` } -func (x *FindEnabledNSRecordResponse) Reset() { - *x = FindEnabledNSRecordResponse{} +func (x *ListNSRecordsResponse) Reset() { + *x = ListNSRecordsResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_record_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -636,13 +684,13 @@ func (x *FindEnabledNSRecordResponse) Reset() { } } -func (x *FindEnabledNSRecordResponse) String() string { +func (x *ListNSRecordsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSRecordResponse) ProtoMessage() {} +func (*ListNSRecordsResponse) ProtoMessage() {} -func (x *FindEnabledNSRecordResponse) ProtoReflect() protoreflect.Message { +func (x *ListNSRecordsResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_record_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -654,12 +702,107 @@ func (x *FindEnabledNSRecordResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSRecordResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSRecordResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListNSRecordsResponse.ProtoReflect.Descriptor instead. +func (*ListNSRecordsResponse) Descriptor() ([]byte, []int) { return file_service_ns_record_proto_rawDescGZIP(), []int{8} } -func (x *FindEnabledNSRecordResponse) GetNsRecord() *NSRecord { +func (x *ListNSRecordsResponse) GetNsRecords() []*NSRecord { + if x != nil { + return x.NsRecords + } + return nil +} + +// 查询单个记录信息 +type FindNSRecordRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsRecordId int64 `protobuf:"varint,1,opt,name=nsRecordId,proto3" json:"nsRecordId,omitempty"` +} + +func (x *FindNSRecordRequest) Reset() { + *x = FindNSRecordRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_record_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSRecordRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSRecordRequest) ProtoMessage() {} + +func (x *FindNSRecordRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_record_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 FindNSRecordRequest.ProtoReflect.Descriptor instead. +func (*FindNSRecordRequest) Descriptor() ([]byte, []int) { + return file_service_ns_record_proto_rawDescGZIP(), []int{9} +} + +func (x *FindNSRecordRequest) GetNsRecordId() int64 { + if x != nil { + return x.NsRecordId + } + return 0 +} + +type FindNSRecordResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NsRecord *NSRecord `protobuf:"bytes,1,opt,name=nsRecord,proto3" json:"nsRecord,omitempty"` +} + +func (x *FindNSRecordResponse) Reset() { + *x = FindNSRecordResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_ns_record_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindNSRecordResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindNSRecordResponse) ProtoMessage() {} + +func (x *FindNSRecordResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_ns_record_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 FindNSRecordResponse.ProtoReflect.Descriptor instead. +func (*FindNSRecordResponse) Descriptor() ([]byte, []int) { + return file_service_ns_record_proto_rawDescGZIP(), []int{10} +} + +func (x *FindNSRecordResponse) GetNsRecord() *NSRecord { if x != nil { return x.NsRecord } @@ -679,7 +822,7 @@ type ListNSRecordsAfterVersionRequest struct { func (x *ListNSRecordsAfterVersionRequest) Reset() { *x = ListNSRecordsAfterVersionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[9] + mi := &file_service_ns_record_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -692,7 +835,7 @@ func (x *ListNSRecordsAfterVersionRequest) String() string { func (*ListNSRecordsAfterVersionRequest) ProtoMessage() {} func (x *ListNSRecordsAfterVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[9] + mi := &file_service_ns_record_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -705,7 +848,7 @@ func (x *ListNSRecordsAfterVersionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListNSRecordsAfterVersionRequest.ProtoReflect.Descriptor instead. func (*ListNSRecordsAfterVersionRequest) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{9} + return file_service_ns_record_proto_rawDescGZIP(), []int{11} } func (x *ListNSRecordsAfterVersionRequest) GetVersion() int64 { @@ -733,7 +876,7 @@ type ListNSRecordsAfterVersionResponse struct { func (x *ListNSRecordsAfterVersionResponse) Reset() { *x = ListNSRecordsAfterVersionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_service_ns_record_proto_msgTypes[10] + mi := &file_service_ns_record_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -746,7 +889,7 @@ func (x *ListNSRecordsAfterVersionResponse) String() string { func (*ListNSRecordsAfterVersionResponse) ProtoMessage() {} func (x *ListNSRecordsAfterVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_service_ns_record_proto_msgTypes[10] + mi := &file_service_ns_record_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -759,7 +902,7 @@ func (x *ListNSRecordsAfterVersionResponse) ProtoReflect() protoreflect.Message // Deprecated: Use ListNSRecordsAfterVersionResponse.ProtoReflect.Descriptor instead. func (*ListNSRecordsAfterVersionResponse) Descriptor() ([]byte, []int) { - return file_service_ns_record_proto_rawDescGZIP(), []int{10} + return file_service_ns_record_proto_rawDescGZIP(), []int{12} } func (x *ListNSRecordsAfterVersionResponse) GetNsRecords() []*NSRecord { @@ -796,7 +939,24 @@ var file_service_ns_record_proto_rawDesc = []byte{ 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x49, 0x64, 0x22, 0x85, 0x02, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x72, 0x64, 0x49, 0x64, 0x22, 0xd0, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x05, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, + 0x74, 0x74, 0x6c, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x73, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x3b, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x49, 0x64, 0x73, 0x22, 0x85, 0x02, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x12, 0x20, @@ -816,93 +976,92 @@ var file_service_ns_record_proto_rawDesc = []byte{ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0xb3, 0x01, 0x0a, 0x1f, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, - 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, - 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, - 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, - 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xdb, 0x01, 0x0a, 0x1b, - 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, - 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x20, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, - 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, - 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4a, 0x0a, 0x1c, 0x4c, 0x69, 0x73, - 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, - 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x73, 0x22, 0x3c, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x50, 0x0a, 0x20, - 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, - 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4f, - 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, - 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x32, - 0xc8, 0x04, 0x0a, 0x0f, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, - 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, - 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x55, 0x0a, 0x18, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, - 0x14, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, - 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, - 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0xac, 0x01, 0x0a, 0x18, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, + 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x6e, + 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, + 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, + 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, + 0x77, 0x6f, 0x72, 0x64, 0x22, 0xd4, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, + 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x42, 0x02, 0x18, 0x01, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x43, 0x6f, + 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, + 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x15, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x22, 0x35, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x64, 0x22, 0x40, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x28, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, + 0x08, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x50, 0x0a, 0x20, 0x4c, 0x69, 0x73, + 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4f, 0x0a, 0x21, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, + 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x2a, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x32, 0xdc, 0x04, 0x0a, + 0x0f, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x63, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1a, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, + 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, - 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x68, 0x0a, 0x19, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, - 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, + 0x47, 0x0a, 0x11, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, + 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, + 0x0a, 0x0c, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x17, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x68, 0x0a, 0x19, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, + 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, + 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -917,43 +1076,47 @@ func file_service_ns_record_proto_rawDescGZIP() []byte { return file_service_ns_record_proto_rawDescData } -var file_service_ns_record_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_service_ns_record_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_service_ns_record_proto_goTypes = []interface{}{ (*CreateNSRecordRequest)(nil), // 0: pb.CreateNSRecordRequest (*CreateNSRecordResponse)(nil), // 1: pb.CreateNSRecordResponse - (*UpdateNSRecordRequest)(nil), // 2: pb.UpdateNSRecordRequest - (*DeleteNSRecordRequest)(nil), // 3: pb.DeleteNSRecordRequest - (*CountAllEnabledNSRecordsRequest)(nil), // 4: pb.CountAllEnabledNSRecordsRequest - (*ListEnabledNSRecordsRequest)(nil), // 5: pb.ListEnabledNSRecordsRequest - (*ListEnabledNSRecordsResponse)(nil), // 6: pb.ListEnabledNSRecordsResponse - (*FindEnabledNSRecordRequest)(nil), // 7: pb.FindEnabledNSRecordRequest - (*FindEnabledNSRecordResponse)(nil), // 8: pb.FindEnabledNSRecordResponse - (*ListNSRecordsAfterVersionRequest)(nil), // 9: pb.ListNSRecordsAfterVersionRequest - (*ListNSRecordsAfterVersionResponse)(nil), // 10: pb.ListNSRecordsAfterVersionResponse - (*NSRecord)(nil), // 11: pb.NSRecord - (*RPCSuccess)(nil), // 12: pb.RPCSuccess - (*RPCCountResponse)(nil), // 13: pb.RPCCountResponse + (*CreateNSRecordsRequest)(nil), // 2: pb.CreateNSRecordsRequest + (*CreateNSRecordsResponse)(nil), // 3: pb.CreateNSRecordsResponse + (*UpdateNSRecordRequest)(nil), // 4: pb.UpdateNSRecordRequest + (*DeleteNSRecordRequest)(nil), // 5: pb.DeleteNSRecordRequest + (*CountAllNSRecordsRequest)(nil), // 6: pb.CountAllNSRecordsRequest + (*ListNSRecordsRequest)(nil), // 7: pb.ListNSRecordsRequest + (*ListNSRecordsResponse)(nil), // 8: pb.ListNSRecordsResponse + (*FindNSRecordRequest)(nil), // 9: pb.FindNSRecordRequest + (*FindNSRecordResponse)(nil), // 10: pb.FindNSRecordResponse + (*ListNSRecordsAfterVersionRequest)(nil), // 11: pb.ListNSRecordsAfterVersionRequest + (*ListNSRecordsAfterVersionResponse)(nil), // 12: pb.ListNSRecordsAfterVersionResponse + (*NSRecord)(nil), // 13: pb.NSRecord + (*RPCSuccess)(nil), // 14: pb.RPCSuccess + (*RPCCountResponse)(nil), // 15: pb.RPCCountResponse } var file_service_ns_record_proto_depIdxs = []int32{ - 11, // 0: pb.ListEnabledNSRecordsResponse.nsRecords:type_name -> pb.NSRecord - 11, // 1: pb.FindEnabledNSRecordResponse.nsRecord:type_name -> pb.NSRecord - 11, // 2: pb.ListNSRecordsAfterVersionResponse.nsRecords:type_name -> pb.NSRecord + 13, // 0: pb.ListNSRecordsResponse.nsRecords:type_name -> pb.NSRecord + 13, // 1: pb.FindNSRecordResponse.nsRecord:type_name -> pb.NSRecord + 13, // 2: pb.ListNSRecordsAfterVersionResponse.nsRecords:type_name -> pb.NSRecord 0, // 3: pb.NSRecordService.createNSRecord:input_type -> pb.CreateNSRecordRequest - 2, // 4: pb.NSRecordService.updateNSRecord:input_type -> pb.UpdateNSRecordRequest - 3, // 5: pb.NSRecordService.deleteNSRecord:input_type -> pb.DeleteNSRecordRequest - 4, // 6: pb.NSRecordService.countAllEnabledNSRecords:input_type -> pb.CountAllEnabledNSRecordsRequest - 5, // 7: pb.NSRecordService.listEnabledNSRecords:input_type -> pb.ListEnabledNSRecordsRequest - 7, // 8: pb.NSRecordService.findEnabledNSRecord:input_type -> pb.FindEnabledNSRecordRequest - 9, // 9: pb.NSRecordService.listNSRecordsAfterVersion:input_type -> pb.ListNSRecordsAfterVersionRequest - 1, // 10: pb.NSRecordService.createNSRecord:output_type -> pb.CreateNSRecordResponse - 12, // 11: pb.NSRecordService.updateNSRecord:output_type -> pb.RPCSuccess - 12, // 12: pb.NSRecordService.deleteNSRecord:output_type -> pb.RPCSuccess - 13, // 13: pb.NSRecordService.countAllEnabledNSRecords:output_type -> pb.RPCCountResponse - 6, // 14: pb.NSRecordService.listEnabledNSRecords:output_type -> pb.ListEnabledNSRecordsResponse - 8, // 15: pb.NSRecordService.findEnabledNSRecord:output_type -> pb.FindEnabledNSRecordResponse - 10, // 16: pb.NSRecordService.listNSRecordsAfterVersion:output_type -> pb.ListNSRecordsAfterVersionResponse - 10, // [10:17] is the sub-list for method output_type - 3, // [3:10] is the sub-list for method input_type + 2, // 4: pb.NSRecordService.createNSRecords:input_type -> pb.CreateNSRecordsRequest + 4, // 5: pb.NSRecordService.updateNSRecord:input_type -> pb.UpdateNSRecordRequest + 5, // 6: pb.NSRecordService.deleteNSRecord:input_type -> pb.DeleteNSRecordRequest + 6, // 7: pb.NSRecordService.countAllNSRecords:input_type -> pb.CountAllNSRecordsRequest + 7, // 8: pb.NSRecordService.listNSRecords:input_type -> pb.ListNSRecordsRequest + 9, // 9: pb.NSRecordService.findNSRecord:input_type -> pb.FindNSRecordRequest + 11, // 10: pb.NSRecordService.listNSRecordsAfterVersion:input_type -> pb.ListNSRecordsAfterVersionRequest + 1, // 11: pb.NSRecordService.createNSRecord:output_type -> pb.CreateNSRecordResponse + 3, // 12: pb.NSRecordService.createNSRecords:output_type -> pb.CreateNSRecordsResponse + 14, // 13: pb.NSRecordService.updateNSRecord:output_type -> pb.RPCSuccess + 14, // 14: pb.NSRecordService.deleteNSRecord:output_type -> pb.RPCSuccess + 15, // 15: pb.NSRecordService.countAllNSRecords:output_type -> pb.RPCCountResponse + 8, // 16: pb.NSRecordService.listNSRecords:output_type -> pb.ListNSRecordsResponse + 10, // 17: pb.NSRecordService.findNSRecord:output_type -> pb.FindNSRecordResponse + 12, // 18: pb.NSRecordService.listNSRecordsAfterVersion:output_type -> pb.ListNSRecordsAfterVersionResponse + 11, // [11:19] is the sub-list for method output_type + 3, // [3:11] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name @@ -992,7 +1155,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateNSRecordRequest); i { + switch v := v.(*CreateNSRecordsRequest); i { case 0: return &v.state case 1: @@ -1004,7 +1167,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteNSRecordRequest); i { + switch v := v.(*CreateNSRecordsResponse); i { case 0: return &v.state case 1: @@ -1016,7 +1179,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledNSRecordsRequest); i { + switch v := v.(*UpdateNSRecordRequest); i { case 0: return &v.state case 1: @@ -1028,7 +1191,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSRecordsRequest); i { + switch v := v.(*DeleteNSRecordRequest); i { case 0: return &v.state case 1: @@ -1040,7 +1203,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledNSRecordsResponse); i { + switch v := v.(*CountAllNSRecordsRequest); i { case 0: return &v.state case 1: @@ -1052,7 +1215,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSRecordRequest); i { + switch v := v.(*ListNSRecordsRequest); i { case 0: return &v.state case 1: @@ -1064,7 +1227,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSRecordResponse); i { + switch v := v.(*ListNSRecordsResponse); i { case 0: return &v.state case 1: @@ -1076,7 +1239,7 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNSRecordsAfterVersionRequest); i { + switch v := v.(*FindNSRecordRequest); i { case 0: return &v.state case 1: @@ -1088,6 +1251,30 @@ func file_service_ns_record_proto_init() { } } file_service_ns_record_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindNSRecordResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_record_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListNSRecordsAfterVersionRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_ns_record_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ListNSRecordsAfterVersionResponse); i { case 0: return &v.state @@ -1106,7 +1293,7 @@ func file_service_ns_record_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_ns_record_proto_rawDesc, NumEnums: 0, - NumMessages: 11, + NumMessages: 13, NumExtensions: 0, NumServices: 1, }, @@ -1134,16 +1321,18 @@ const _ = grpc.SupportPackageIsVersion6 type NSRecordServiceClient interface { // 创建记录 CreateNSRecord(ctx context.Context, in *CreateNSRecordRequest, opts ...grpc.CallOption) (*CreateNSRecordResponse, error) + // 批量创建记录 + CreateNSRecords(ctx context.Context, in *CreateNSRecordsRequest, opts ...grpc.CallOption) (*CreateNSRecordsResponse, error) // 修改记录 UpdateNSRecord(ctx context.Context, in *UpdateNSRecordRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 删除记录 DeleteNSRecord(ctx context.Context, in *DeleteNSRecordRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 计算记录数量 - CountAllEnabledNSRecords(ctx context.Context, in *CountAllEnabledNSRecordsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllNSRecords(ctx context.Context, in *CountAllNSRecordsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 读取单页记录 - ListEnabledNSRecords(ctx context.Context, in *ListEnabledNSRecordsRequest, opts ...grpc.CallOption) (*ListEnabledNSRecordsResponse, error) + ListNSRecords(ctx context.Context, in *ListNSRecordsRequest, opts ...grpc.CallOption) (*ListNSRecordsResponse, error) // 查询单个记录信息 - FindEnabledNSRecord(ctx context.Context, in *FindEnabledNSRecordRequest, opts ...grpc.CallOption) (*FindEnabledNSRecordResponse, error) + FindNSRecord(ctx context.Context, in *FindNSRecordRequest, opts ...grpc.CallOption) (*FindNSRecordResponse, error) // 根据版本列出一组记录 ListNSRecordsAfterVersion(ctx context.Context, in *ListNSRecordsAfterVersionRequest, opts ...grpc.CallOption) (*ListNSRecordsAfterVersionResponse, error) } @@ -1165,6 +1354,15 @@ func (c *nSRecordServiceClient) CreateNSRecord(ctx context.Context, in *CreateNS return out, nil } +func (c *nSRecordServiceClient) CreateNSRecords(ctx context.Context, in *CreateNSRecordsRequest, opts ...grpc.CallOption) (*CreateNSRecordsResponse, error) { + out := new(CreateNSRecordsResponse) + err := c.cc.Invoke(ctx, "/pb.NSRecordService/createNSRecords", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *nSRecordServiceClient) UpdateNSRecord(ctx context.Context, in *UpdateNSRecordRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { out := new(RPCSuccess) err := c.cc.Invoke(ctx, "/pb.NSRecordService/updateNSRecord", in, out, opts...) @@ -1183,27 +1381,27 @@ func (c *nSRecordServiceClient) DeleteNSRecord(ctx context.Context, in *DeleteNS return out, nil } -func (c *nSRecordServiceClient) CountAllEnabledNSRecords(ctx context.Context, in *CountAllEnabledNSRecordsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nSRecordServiceClient) CountAllNSRecords(ctx context.Context, in *CountAllNSRecordsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NSRecordService/countAllEnabledNSRecords", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NSRecordService/countAllNSRecords", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSRecordServiceClient) ListEnabledNSRecords(ctx context.Context, in *ListEnabledNSRecordsRequest, opts ...grpc.CallOption) (*ListEnabledNSRecordsResponse, error) { - out := new(ListEnabledNSRecordsResponse) - err := c.cc.Invoke(ctx, "/pb.NSRecordService/listEnabledNSRecords", in, out, opts...) +func (c *nSRecordServiceClient) ListNSRecords(ctx context.Context, in *ListNSRecordsRequest, opts ...grpc.CallOption) (*ListNSRecordsResponse, error) { + out := new(ListNSRecordsResponse) + err := c.cc.Invoke(ctx, "/pb.NSRecordService/listNSRecords", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSRecordServiceClient) FindEnabledNSRecord(ctx context.Context, in *FindEnabledNSRecordRequest, opts ...grpc.CallOption) (*FindEnabledNSRecordResponse, error) { - out := new(FindEnabledNSRecordResponse) - err := c.cc.Invoke(ctx, "/pb.NSRecordService/findEnabledNSRecord", in, out, opts...) +func (c *nSRecordServiceClient) FindNSRecord(ctx context.Context, in *FindNSRecordRequest, opts ...grpc.CallOption) (*FindNSRecordResponse, error) { + out := new(FindNSRecordResponse) + err := c.cc.Invoke(ctx, "/pb.NSRecordService/findNSRecord", in, out, opts...) if err != nil { return nil, err } @@ -1223,16 +1421,18 @@ func (c *nSRecordServiceClient) ListNSRecordsAfterVersion(ctx context.Context, i type NSRecordServiceServer interface { // 创建记录 CreateNSRecord(context.Context, *CreateNSRecordRequest) (*CreateNSRecordResponse, error) + // 批量创建记录 + CreateNSRecords(context.Context, *CreateNSRecordsRequest) (*CreateNSRecordsResponse, error) // 修改记录 UpdateNSRecord(context.Context, *UpdateNSRecordRequest) (*RPCSuccess, error) // 删除记录 DeleteNSRecord(context.Context, *DeleteNSRecordRequest) (*RPCSuccess, error) // 计算记录数量 - CountAllEnabledNSRecords(context.Context, *CountAllEnabledNSRecordsRequest) (*RPCCountResponse, error) + CountAllNSRecords(context.Context, *CountAllNSRecordsRequest) (*RPCCountResponse, error) // 读取单页记录 - ListEnabledNSRecords(context.Context, *ListEnabledNSRecordsRequest) (*ListEnabledNSRecordsResponse, error) + ListNSRecords(context.Context, *ListNSRecordsRequest) (*ListNSRecordsResponse, error) // 查询单个记录信息 - FindEnabledNSRecord(context.Context, *FindEnabledNSRecordRequest) (*FindEnabledNSRecordResponse, error) + FindNSRecord(context.Context, *FindNSRecordRequest) (*FindNSRecordResponse, error) // 根据版本列出一组记录 ListNSRecordsAfterVersion(context.Context, *ListNSRecordsAfterVersionRequest) (*ListNSRecordsAfterVersionResponse, error) } @@ -1244,20 +1444,23 @@ type UnimplementedNSRecordServiceServer struct { func (*UnimplementedNSRecordServiceServer) CreateNSRecord(context.Context, *CreateNSRecordRequest) (*CreateNSRecordResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateNSRecord not implemented") } +func (*UnimplementedNSRecordServiceServer) CreateNSRecords(context.Context, *CreateNSRecordsRequest) (*CreateNSRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateNSRecords not implemented") +} func (*UnimplementedNSRecordServiceServer) UpdateNSRecord(context.Context, *UpdateNSRecordRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNSRecord not implemented") } func (*UnimplementedNSRecordServiceServer) DeleteNSRecord(context.Context, *DeleteNSRecordRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNSRecord not implemented") } -func (*UnimplementedNSRecordServiceServer) CountAllEnabledNSRecords(context.Context, *CountAllEnabledNSRecordsRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNSRecords not implemented") +func (*UnimplementedNSRecordServiceServer) CountAllNSRecords(context.Context, *CountAllNSRecordsRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllNSRecords not implemented") } -func (*UnimplementedNSRecordServiceServer) ListEnabledNSRecords(context.Context, *ListEnabledNSRecordsRequest) (*ListEnabledNSRecordsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNSRecords not implemented") +func (*UnimplementedNSRecordServiceServer) ListNSRecords(context.Context, *ListNSRecordsRequest) (*ListNSRecordsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListNSRecords not implemented") } -func (*UnimplementedNSRecordServiceServer) FindEnabledNSRecord(context.Context, *FindEnabledNSRecordRequest) (*FindEnabledNSRecordResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSRecord not implemented") +func (*UnimplementedNSRecordServiceServer) FindNSRecord(context.Context, *FindNSRecordRequest) (*FindNSRecordResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSRecord not implemented") } func (*UnimplementedNSRecordServiceServer) ListNSRecordsAfterVersion(context.Context, *ListNSRecordsAfterVersionRequest) (*ListNSRecordsAfterVersionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListNSRecordsAfterVersion not implemented") @@ -1285,6 +1488,24 @@ func _NSRecordService_CreateNSRecord_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } +func _NSRecordService_CreateNSRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateNSRecordsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NSRecordServiceServer).CreateNSRecords(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NSRecordService/CreateNSRecords", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NSRecordServiceServer).CreateNSRecords(ctx, req.(*CreateNSRecordsRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _NSRecordService_UpdateNSRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateNSRecordRequest) if err := dec(in); err != nil { @@ -1321,56 +1542,56 @@ func _NSRecordService_DeleteNSRecord_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } -func _NSRecordService_CountAllEnabledNSRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledNSRecordsRequest) +func _NSRecordService_CountAllNSRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllNSRecordsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSRecordServiceServer).CountAllEnabledNSRecords(ctx, in) + return srv.(NSRecordServiceServer).CountAllNSRecords(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSRecordService/CountAllEnabledNSRecords", + FullMethod: "/pb.NSRecordService/CountAllNSRecords", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSRecordServiceServer).CountAllEnabledNSRecords(ctx, req.(*CountAllEnabledNSRecordsRequest)) + return srv.(NSRecordServiceServer).CountAllNSRecords(ctx, req.(*CountAllNSRecordsRequest)) } return interceptor(ctx, in, info, handler) } -func _NSRecordService_ListEnabledNSRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEnabledNSRecordsRequest) +func _NSRecordService_ListNSRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListNSRecordsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSRecordServiceServer).ListEnabledNSRecords(ctx, in) + return srv.(NSRecordServiceServer).ListNSRecords(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSRecordService/ListEnabledNSRecords", + FullMethod: "/pb.NSRecordService/ListNSRecords", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSRecordServiceServer).ListEnabledNSRecords(ctx, req.(*ListEnabledNSRecordsRequest)) + return srv.(NSRecordServiceServer).ListNSRecords(ctx, req.(*ListNSRecordsRequest)) } return interceptor(ctx, in, info, handler) } -func _NSRecordService_FindEnabledNSRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSRecordRequest) +func _NSRecordService_FindNSRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSRecordRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSRecordServiceServer).FindEnabledNSRecord(ctx, in) + return srv.(NSRecordServiceServer).FindNSRecord(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSRecordService/FindEnabledNSRecord", + FullMethod: "/pb.NSRecordService/FindNSRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSRecordServiceServer).FindEnabledNSRecord(ctx, req.(*FindEnabledNSRecordRequest)) + return srv.(NSRecordServiceServer).FindNSRecord(ctx, req.(*FindNSRecordRequest)) } return interceptor(ctx, in, info, handler) } @@ -1401,6 +1622,10 @@ var _NSRecordService_serviceDesc = grpc.ServiceDesc{ MethodName: "createNSRecord", Handler: _NSRecordService_CreateNSRecord_Handler, }, + { + MethodName: "createNSRecords", + Handler: _NSRecordService_CreateNSRecords_Handler, + }, { MethodName: "updateNSRecord", Handler: _NSRecordService_UpdateNSRecord_Handler, @@ -1410,16 +1635,16 @@ var _NSRecordService_serviceDesc = grpc.ServiceDesc{ Handler: _NSRecordService_DeleteNSRecord_Handler, }, { - MethodName: "countAllEnabledNSRecords", - Handler: _NSRecordService_CountAllEnabledNSRecords_Handler, + MethodName: "countAllNSRecords", + Handler: _NSRecordService_CountAllNSRecords_Handler, }, { - MethodName: "listEnabledNSRecords", - Handler: _NSRecordService_ListEnabledNSRecords_Handler, + MethodName: "listNSRecords", + Handler: _NSRecordService_ListNSRecords_Handler, }, { - MethodName: "findEnabledNSRecord", - Handler: _NSRecordService_FindEnabledNSRecord_Handler, + MethodName: "findNSRecord", + Handler: _NSRecordService_FindNSRecord_Handler, }, { MethodName: "listNSRecordsAfterVersion", diff --git a/pkg/rpc/pb/service_ns_route.pb.go b/pkg/rpc/pb/service_ns_route.pb.go index c319689..891cd1d 100644 --- a/pkg/rpc/pb/service_ns_route.pb.go +++ b/pkg/rpc/pb/service_ns_route.pb.go @@ -269,7 +269,7 @@ func (x *DeleteNSRouteRequest) GetNsRouteId() int64 { } // 获取单个路线信息 -type FindEnabledNSRouteRequest struct { +type FindNSRouteRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -277,8 +277,8 @@ type FindEnabledNSRouteRequest struct { NsRouteId int64 `protobuf:"varint,1,opt,name=nsRouteId,proto3" json:"nsRouteId,omitempty"` } -func (x *FindEnabledNSRouteRequest) Reset() { - *x = FindEnabledNSRouteRequest{} +func (x *FindNSRouteRequest) Reset() { + *x = FindNSRouteRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_route_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -286,13 +286,13 @@ func (x *FindEnabledNSRouteRequest) Reset() { } } -func (x *FindEnabledNSRouteRequest) String() string { +func (x *FindNSRouteRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSRouteRequest) ProtoMessage() {} +func (*FindNSRouteRequest) ProtoMessage() {} -func (x *FindEnabledNSRouteRequest) ProtoReflect() protoreflect.Message { +func (x *FindNSRouteRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_route_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -304,19 +304,19 @@ func (x *FindEnabledNSRouteRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSRouteRequest.ProtoReflect.Descriptor instead. -func (*FindEnabledNSRouteRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSRouteRequest.ProtoReflect.Descriptor instead. +func (*FindNSRouteRequest) Descriptor() ([]byte, []int) { return file_service_ns_route_proto_rawDescGZIP(), []int{4} } -func (x *FindEnabledNSRouteRequest) GetNsRouteId() int64 { +func (x *FindNSRouteRequest) GetNsRouteId() int64 { if x != nil { return x.NsRouteId } return 0 } -type FindEnabledNSRouteResponse struct { +type FindNSRouteResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -324,8 +324,8 @@ type FindEnabledNSRouteResponse struct { NsRoute *NSRoute `protobuf:"bytes,1,opt,name=nsRoute,proto3" json:"nsRoute,omitempty"` } -func (x *FindEnabledNSRouteResponse) Reset() { - *x = FindEnabledNSRouteResponse{} +func (x *FindNSRouteResponse) Reset() { + *x = FindNSRouteResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_route_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -333,13 +333,13 @@ func (x *FindEnabledNSRouteResponse) Reset() { } } -func (x *FindEnabledNSRouteResponse) String() string { +func (x *FindNSRouteResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindEnabledNSRouteResponse) ProtoMessage() {} +func (*FindNSRouteResponse) ProtoMessage() {} -func (x *FindEnabledNSRouteResponse) ProtoReflect() protoreflect.Message { +func (x *FindNSRouteResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_route_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -351,12 +351,12 @@ func (x *FindEnabledNSRouteResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindEnabledNSRouteResponse.ProtoReflect.Descriptor instead. -func (*FindEnabledNSRouteResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindNSRouteResponse.ProtoReflect.Descriptor instead. +func (*FindNSRouteResponse) Descriptor() ([]byte, []int) { return file_service_ns_route_proto_rawDescGZIP(), []int{5} } -func (x *FindEnabledNSRouteResponse) GetNsRoute() *NSRoute { +func (x *FindNSRouteResponse) GetNsRoute() *NSRoute { if x != nil { return x.NsRoute } @@ -364,7 +364,7 @@ func (x *FindEnabledNSRouteResponse) GetNsRoute() *NSRoute { } // 读取所有线路 -type FindAllEnabledNSRoutesRequest struct { +type FindAllNSRoutesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -374,8 +374,8 @@ type FindAllEnabledNSRoutesRequest struct { UserId int64 `protobuf:"varint,3,opt,name=userId,proto3" json:"userId,omitempty"` } -func (x *FindAllEnabledNSRoutesRequest) Reset() { - *x = FindAllEnabledNSRoutesRequest{} +func (x *FindAllNSRoutesRequest) Reset() { + *x = FindAllNSRoutesRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_route_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -383,13 +383,13 @@ func (x *FindAllEnabledNSRoutesRequest) Reset() { } } -func (x *FindAllEnabledNSRoutesRequest) String() string { +func (x *FindAllNSRoutesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledNSRoutesRequest) ProtoMessage() {} +func (*FindAllNSRoutesRequest) ProtoMessage() {} -func (x *FindAllEnabledNSRoutesRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllNSRoutesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_ns_route_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -401,33 +401,33 @@ func (x *FindAllEnabledNSRoutesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledNSRoutesRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledNSRoutesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllNSRoutesRequest.ProtoReflect.Descriptor instead. +func (*FindAllNSRoutesRequest) Descriptor() ([]byte, []int) { return file_service_ns_route_proto_rawDescGZIP(), []int{6} } -func (x *FindAllEnabledNSRoutesRequest) GetNsClusterId() int64 { +func (x *FindAllNSRoutesRequest) GetNsClusterId() int64 { if x != nil { return x.NsClusterId } return 0 } -func (x *FindAllEnabledNSRoutesRequest) GetNsDomainId() int64 { +func (x *FindAllNSRoutesRequest) GetNsDomainId() int64 { if x != nil { return x.NsDomainId } return 0 } -func (x *FindAllEnabledNSRoutesRequest) GetUserId() int64 { +func (x *FindAllNSRoutesRequest) GetUserId() int64 { if x != nil { return x.UserId } return 0 } -type FindAllEnabledNSRoutesResponse struct { +type FindAllNSRoutesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -435,8 +435,8 @@ type FindAllEnabledNSRoutesResponse struct { NsRoutes []*NSRoute `protobuf:"bytes,1,rep,name=nsRoutes,proto3" json:"nsRoutes,omitempty"` } -func (x *FindAllEnabledNSRoutesResponse) Reset() { - *x = FindAllEnabledNSRoutesResponse{} +func (x *FindAllNSRoutesResponse) Reset() { + *x = FindAllNSRoutesResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_ns_route_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -444,13 +444,13 @@ func (x *FindAllEnabledNSRoutesResponse) Reset() { } } -func (x *FindAllEnabledNSRoutesResponse) String() string { +func (x *FindAllNSRoutesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledNSRoutesResponse) ProtoMessage() {} +func (*FindAllNSRoutesResponse) ProtoMessage() {} -func (x *FindAllEnabledNSRoutesResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllNSRoutesResponse) ProtoReflect() protoreflect.Message { mi := &file_service_ns_route_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -462,12 +462,12 @@ func (x *FindAllEnabledNSRoutesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledNSRoutesResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledNSRoutesResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllNSRoutesResponse.ProtoReflect.Descriptor instead. +func (*FindAllNSRoutesResponse) Descriptor() ([]byte, []int) { return file_service_ns_route_proto_rawDescGZIP(), []int{7} } -func (x *FindAllEnabledNSRoutesResponse) GetNsRoutes() []*NSRoute { +func (x *FindAllNSRoutesResponse) GetNsRoutes() []*NSRoute { if x != nil { return x.NsRoutes } @@ -657,77 +657,73 @@ var file_service_ns_route_proto_rawDesc = []byte{ 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x49, 0x64, 0x22, 0x39, 0x0a, 0x19, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x43, 0x0a, - 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x07, 0x6e, - 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, - 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x22, 0x79, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, - 0x61, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x49, 0x0a, - 0x1e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, - 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x49, 0x64, 0x22, 0x32, 0x0a, 0x12, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x73, 0x52, 0x6f, + 0x75, 0x74, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6e, 0x73, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x22, 0x3c, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, + 0x07, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x07, 0x6e, 0x73, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x22, 0x72, 0x0a, 0x16, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, + 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, + 0x0a, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, + 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x49, 0x64, + 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x42, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x1a, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, + 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x1f, 0x4c, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x20, 0x4c, + 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, - 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0a, 0x6e, 0x73, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x49, 0x64, 0x73, 0x22, 0x4f, 0x0a, 0x1f, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x4b, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x4e, - 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x08, 0x6e, - 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x70, 0x62, 0x2e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x73, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x73, 0x32, 0xb0, 0x04, 0x0a, 0x0e, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, - 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, - 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, - 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, - 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, - 0x65, 0x73, 0x73, 0x12, 0x53, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, - 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, - 0x65, 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, - 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, - 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x12, 0x65, 0x0a, 0x18, 0x6c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, - 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, - 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, - 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x73, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x32, 0x86, 0x04, 0x0a, 0x0e, 0x4e, 0x53, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x63, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, + 0x74, 0x65, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, + 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, + 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0d, + 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, + 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, + 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3e, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x4e, + 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, + 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x65, 0x0a, 0x18, 0x6c, 0x69, + 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, 0x65, 0x72, 0x56, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x53, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x41, 0x66, 0x74, + 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -748,10 +744,10 @@ var file_service_ns_route_proto_goTypes = []interface{}{ (*CreateNSRouteResponse)(nil), // 1: pb.CreateNSRouteResponse (*UpdateNSRouteRequest)(nil), // 2: pb.UpdateNSRouteRequest (*DeleteNSRouteRequest)(nil), // 3: pb.DeleteNSRouteRequest - (*FindEnabledNSRouteRequest)(nil), // 4: pb.FindEnabledNSRouteRequest - (*FindEnabledNSRouteResponse)(nil), // 5: pb.FindEnabledNSRouteResponse - (*FindAllEnabledNSRoutesRequest)(nil), // 6: pb.FindAllEnabledNSRoutesRequest - (*FindAllEnabledNSRoutesResponse)(nil), // 7: pb.FindAllEnabledNSRoutesResponse + (*FindNSRouteRequest)(nil), // 4: pb.FindNSRouteRequest + (*FindNSRouteResponse)(nil), // 5: pb.FindNSRouteResponse + (*FindAllNSRoutesRequest)(nil), // 6: pb.FindAllNSRoutesRequest + (*FindAllNSRoutesResponse)(nil), // 7: pb.FindAllNSRoutesResponse (*UpdateNSRouteOrdersRequest)(nil), // 8: pb.UpdateNSRouteOrdersRequest (*ListNSRoutesAfterVersionRequest)(nil), // 9: pb.ListNSRoutesAfterVersionRequest (*ListNSRoutesAfterVersionResponse)(nil), // 10: pb.ListNSRoutesAfterVersionResponse @@ -759,21 +755,21 @@ var file_service_ns_route_proto_goTypes = []interface{}{ (*RPCSuccess)(nil), // 12: pb.RPCSuccess } var file_service_ns_route_proto_depIdxs = []int32{ - 11, // 0: pb.FindEnabledNSRouteResponse.nsRoute:type_name -> pb.NSRoute - 11, // 1: pb.FindAllEnabledNSRoutesResponse.nsRoutes:type_name -> pb.NSRoute + 11, // 0: pb.FindNSRouteResponse.nsRoute:type_name -> pb.NSRoute + 11, // 1: pb.FindAllNSRoutesResponse.nsRoutes:type_name -> pb.NSRoute 11, // 2: pb.ListNSRoutesAfterVersionResponse.nsRoutes:type_name -> pb.NSRoute 0, // 3: pb.NSRouteService.createNSRoute:input_type -> pb.CreateNSRouteRequest 2, // 4: pb.NSRouteService.updateNSRoute:input_type -> pb.UpdateNSRouteRequest 3, // 5: pb.NSRouteService.deleteNSRoute:input_type -> pb.DeleteNSRouteRequest - 4, // 6: pb.NSRouteService.findEnabledNSRoute:input_type -> pb.FindEnabledNSRouteRequest - 6, // 7: pb.NSRouteService.findAllEnabledNSRoutes:input_type -> pb.FindAllEnabledNSRoutesRequest + 4, // 6: pb.NSRouteService.findNSRoute:input_type -> pb.FindNSRouteRequest + 6, // 7: pb.NSRouteService.findAllNSRoutes:input_type -> pb.FindAllNSRoutesRequest 8, // 8: pb.NSRouteService.updateNSRouteOrders:input_type -> pb.UpdateNSRouteOrdersRequest 9, // 9: pb.NSRouteService.listNSRoutesAfterVersion:input_type -> pb.ListNSRoutesAfterVersionRequest 1, // 10: pb.NSRouteService.createNSRoute:output_type -> pb.CreateNSRouteResponse 12, // 11: pb.NSRouteService.updateNSRoute:output_type -> pb.RPCSuccess 12, // 12: pb.NSRouteService.deleteNSRoute:output_type -> pb.RPCSuccess - 5, // 13: pb.NSRouteService.findEnabledNSRoute:output_type -> pb.FindEnabledNSRouteResponse - 7, // 14: pb.NSRouteService.findAllEnabledNSRoutes:output_type -> pb.FindAllEnabledNSRoutesResponse + 5, // 13: pb.NSRouteService.findNSRoute:output_type -> pb.FindNSRouteResponse + 7, // 14: pb.NSRouteService.findAllNSRoutes:output_type -> pb.FindAllNSRoutesResponse 12, // 15: pb.NSRouteService.updateNSRouteOrders:output_type -> pb.RPCSuccess 10, // 16: pb.NSRouteService.listNSRoutesAfterVersion:output_type -> pb.ListNSRoutesAfterVersionResponse 10, // [10:17] is the sub-list for method output_type @@ -840,7 +836,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSRouteRequest); i { + switch v := v.(*FindNSRouteRequest); i { case 0: return &v.state case 1: @@ -852,7 +848,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindEnabledNSRouteResponse); i { + switch v := v.(*FindNSRouteResponse); i { case 0: return &v.state case 1: @@ -864,7 +860,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledNSRoutesRequest); i { + switch v := v.(*FindAllNSRoutesRequest); i { case 0: return &v.state case 1: @@ -876,7 +872,7 @@ func file_service_ns_route_proto_init() { } } file_service_ns_route_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledNSRoutesResponse); i { + switch v := v.(*FindAllNSRoutesResponse); i { case 0: return &v.state case 1: @@ -963,9 +959,9 @@ type NSRouteServiceClient interface { // 删除线路 DeleteNSRoute(ctx context.Context, in *DeleteNSRouteRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 获取单个路线信息 - FindEnabledNSRoute(ctx context.Context, in *FindEnabledNSRouteRequest, opts ...grpc.CallOption) (*FindEnabledNSRouteResponse, error) + FindNSRoute(ctx context.Context, in *FindNSRouteRequest, opts ...grpc.CallOption) (*FindNSRouteResponse, error) // 读取所有线路 - FindAllEnabledNSRoutes(ctx context.Context, in *FindAllEnabledNSRoutesRequest, opts ...grpc.CallOption) (*FindAllEnabledNSRoutesResponse, error) + FindAllNSRoutes(ctx context.Context, in *FindAllNSRoutesRequest, opts ...grpc.CallOption) (*FindAllNSRoutesResponse, error) // 设置线路排序 UpdateNSRouteOrders(ctx context.Context, in *UpdateNSRouteOrdersRequest, opts ...grpc.CallOption) (*RPCSuccess, error) // 根据版本列出一组线路 @@ -1007,18 +1003,18 @@ func (c *nSRouteServiceClient) DeleteNSRoute(ctx context.Context, in *DeleteNSRo return out, nil } -func (c *nSRouteServiceClient) FindEnabledNSRoute(ctx context.Context, in *FindEnabledNSRouteRequest, opts ...grpc.CallOption) (*FindEnabledNSRouteResponse, error) { - out := new(FindEnabledNSRouteResponse) - err := c.cc.Invoke(ctx, "/pb.NSRouteService/findEnabledNSRoute", in, out, opts...) +func (c *nSRouteServiceClient) FindNSRoute(ctx context.Context, in *FindNSRouteRequest, opts ...grpc.CallOption) (*FindNSRouteResponse, error) { + out := new(FindNSRouteResponse) + err := c.cc.Invoke(ctx, "/pb.NSRouteService/findNSRoute", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nSRouteServiceClient) FindAllEnabledNSRoutes(ctx context.Context, in *FindAllEnabledNSRoutesRequest, opts ...grpc.CallOption) (*FindAllEnabledNSRoutesResponse, error) { - out := new(FindAllEnabledNSRoutesResponse) - err := c.cc.Invoke(ctx, "/pb.NSRouteService/findAllEnabledNSRoutes", in, out, opts...) +func (c *nSRouteServiceClient) FindAllNSRoutes(ctx context.Context, in *FindAllNSRoutesRequest, opts ...grpc.CallOption) (*FindAllNSRoutesResponse, error) { + out := new(FindAllNSRoutesResponse) + err := c.cc.Invoke(ctx, "/pb.NSRouteService/findAllNSRoutes", in, out, opts...) if err != nil { return nil, err } @@ -1052,9 +1048,9 @@ type NSRouteServiceServer interface { // 删除线路 DeleteNSRoute(context.Context, *DeleteNSRouteRequest) (*RPCSuccess, error) // 获取单个路线信息 - FindEnabledNSRoute(context.Context, *FindEnabledNSRouteRequest) (*FindEnabledNSRouteResponse, error) + FindNSRoute(context.Context, *FindNSRouteRequest) (*FindNSRouteResponse, error) // 读取所有线路 - FindAllEnabledNSRoutes(context.Context, *FindAllEnabledNSRoutesRequest) (*FindAllEnabledNSRoutesResponse, error) + FindAllNSRoutes(context.Context, *FindAllNSRoutesRequest) (*FindAllNSRoutesResponse, error) // 设置线路排序 UpdateNSRouteOrders(context.Context, *UpdateNSRouteOrdersRequest) (*RPCSuccess, error) // 根据版本列出一组线路 @@ -1074,11 +1070,11 @@ func (*UnimplementedNSRouteServiceServer) UpdateNSRoute(context.Context, *Update func (*UnimplementedNSRouteServiceServer) DeleteNSRoute(context.Context, *DeleteNSRouteRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteNSRoute not implemented") } -func (*UnimplementedNSRouteServiceServer) FindEnabledNSRoute(context.Context, *FindEnabledNSRouteRequest) (*FindEnabledNSRouteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNSRoute not implemented") +func (*UnimplementedNSRouteServiceServer) FindNSRoute(context.Context, *FindNSRouteRequest) (*FindNSRouteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindNSRoute not implemented") } -func (*UnimplementedNSRouteServiceServer) FindAllEnabledNSRoutes(context.Context, *FindAllEnabledNSRoutesRequest) (*FindAllEnabledNSRoutesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNSRoutes not implemented") +func (*UnimplementedNSRouteServiceServer) FindAllNSRoutes(context.Context, *FindAllNSRoutesRequest) (*FindAllNSRoutesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllNSRoutes not implemented") } func (*UnimplementedNSRouteServiceServer) UpdateNSRouteOrders(context.Context, *UpdateNSRouteOrdersRequest) (*RPCSuccess, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateNSRouteOrders not implemented") @@ -1145,38 +1141,38 @@ func _NSRouteService_DeleteNSRoute_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _NSRouteService_FindEnabledNSRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindEnabledNSRouteRequest) +func _NSRouteService_FindNSRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindNSRouteRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSRouteServiceServer).FindEnabledNSRoute(ctx, in) + return srv.(NSRouteServiceServer).FindNSRoute(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSRouteService/FindEnabledNSRoute", + FullMethod: "/pb.NSRouteService/FindNSRoute", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSRouteServiceServer).FindEnabledNSRoute(ctx, req.(*FindEnabledNSRouteRequest)) + return srv.(NSRouteServiceServer).FindNSRoute(ctx, req.(*FindNSRouteRequest)) } return interceptor(ctx, in, info, handler) } -func _NSRouteService_FindAllEnabledNSRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledNSRoutesRequest) +func _NSRouteService_FindAllNSRoutes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllNSRoutesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NSRouteServiceServer).FindAllEnabledNSRoutes(ctx, in) + return srv.(NSRouteServiceServer).FindAllNSRoutes(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NSRouteService/FindAllEnabledNSRoutes", + FullMethod: "/pb.NSRouteService/FindAllNSRoutes", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NSRouteServiceServer).FindAllEnabledNSRoutes(ctx, req.(*FindAllEnabledNSRoutesRequest)) + return srv.(NSRouteServiceServer).FindAllNSRoutes(ctx, req.(*FindAllNSRoutesRequest)) } return interceptor(ctx, in, info, handler) } @@ -1234,12 +1230,12 @@ var _NSRouteService_serviceDesc = grpc.ServiceDesc{ Handler: _NSRouteService_DeleteNSRoute_Handler, }, { - MethodName: "findEnabledNSRoute", - Handler: _NSRouteService_FindEnabledNSRoute_Handler, + MethodName: "findNSRoute", + Handler: _NSRouteService_FindNSRoute_Handler, }, { - MethodName: "findAllEnabledNSRoutes", - Handler: _NSRouteService_FindAllEnabledNSRoutes_Handler, + MethodName: "findAllNSRoutes", + Handler: _NSRouteService_FindAllNSRoutes_Handler, }, { MethodName: "updateNSRouteOrders", diff --git a/pkg/rpc/pb/service_order_method.pb.go b/pkg/rpc/pb/service_order_method.pb.go index 79ee617..6c98f43 100644 --- a/pkg/rpc/pb/service_order_method.pb.go +++ b/pkg/rpc/pb/service_order_method.pb.go @@ -561,14 +561,14 @@ func (x *FindAllEnabledOrderMethodsResponse) GetOrderMethods() []*OrderMethod { } // 查找所有已启用的支付方式 -type FindAllEnabledAndOnOrderMethodsRequest struct { +type FindAllAvailableOrderMethodsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *FindAllEnabledAndOnOrderMethodsRequest) Reset() { - *x = FindAllEnabledAndOnOrderMethodsRequest{} +func (x *FindAllAvailableOrderMethodsRequest) Reset() { + *x = FindAllAvailableOrderMethodsRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_order_method_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -576,13 +576,13 @@ func (x *FindAllEnabledAndOnOrderMethodsRequest) Reset() { } } -func (x *FindAllEnabledAndOnOrderMethodsRequest) String() string { +func (x *FindAllAvailableOrderMethodsRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledAndOnOrderMethodsRequest) ProtoMessage() {} +func (*FindAllAvailableOrderMethodsRequest) ProtoMessage() {} -func (x *FindAllEnabledAndOnOrderMethodsRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableOrderMethodsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_order_method_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -594,12 +594,12 @@ func (x *FindAllEnabledAndOnOrderMethodsRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledAndOnOrderMethodsRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledAndOnOrderMethodsRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableOrderMethodsRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableOrderMethodsRequest) Descriptor() ([]byte, []int) { return file_service_order_method_proto_rawDescGZIP(), []int{10} } -type FindAllEnabledAndOnOrderMethodsResponse struct { +type FindAllAvailableOrderMethodsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -607,8 +607,8 @@ type FindAllEnabledAndOnOrderMethodsResponse struct { OrderMethods []*OrderMethod `protobuf:"bytes,1,rep,name=orderMethods,proto3" json:"orderMethods,omitempty"` } -func (x *FindAllEnabledAndOnOrderMethodsResponse) Reset() { - *x = FindAllEnabledAndOnOrderMethodsResponse{} +func (x *FindAllAvailableOrderMethodsResponse) Reset() { + *x = FindAllAvailableOrderMethodsResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_order_method_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -616,13 +616,13 @@ func (x *FindAllEnabledAndOnOrderMethodsResponse) Reset() { } } -func (x *FindAllEnabledAndOnOrderMethodsResponse) String() string { +func (x *FindAllAvailableOrderMethodsResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledAndOnOrderMethodsResponse) ProtoMessage() {} +func (*FindAllAvailableOrderMethodsResponse) ProtoMessage() {} -func (x *FindAllEnabledAndOnOrderMethodsResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableOrderMethodsResponse) ProtoReflect() protoreflect.Message { mi := &file_service_order_method_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -634,12 +634,12 @@ func (x *FindAllEnabledAndOnOrderMethodsResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledAndOnOrderMethodsResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledAndOnOrderMethodsResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableOrderMethodsResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableOrderMethodsResponse) Descriptor() ([]byte, []int) { return file_service_order_method_proto_rawDescGZIP(), []int{11} } -func (x *FindAllEnabledAndOnOrderMethodsResponse) GetOrderMethods() []*OrderMethod { +func (x *FindAllAvailableOrderMethodsResponse) GetOrderMethods() []*OrderMethod { if x != nil { return x.OrderMethods } @@ -709,59 +709,58 @@ var file_service_order_method_proto_rawDesc = []byte{ 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x73, 0x22, 0x28, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5e, 0x0a, 0x27, - 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, - 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, - 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0c, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x32, 0xaf, 0x05, 0x0a, - 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, - 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, - 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, - 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, + 0x64, 0x73, 0x22, 0x25, 0x0a, 0x23, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5b, 0x0a, 0x24, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x33, 0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x32, 0xa6, 0x05, 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, + 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x41, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x41, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, + 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x77, 0x0a, 0x1e, - 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x29, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, - 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, - 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 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, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x1f, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, - 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x6e, 0x64, 0x4f, 0x6e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, - 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x68, 0x6f, 0x64, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x57, + 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x6b, 0x0a, 0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x25, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 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, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x71, 0x0a, 0x1c, + 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x27, 0x2e, 0x70, + 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, + 0x6c, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -778,40 +777,40 @@ func file_service_order_method_proto_rawDescGZIP() []byte { var file_service_order_method_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_service_order_method_proto_goTypes = []interface{}{ - (*CreateOrderMethodRequest)(nil), // 0: pb.CreateOrderMethodRequest - (*CreateOrderMethodResponse)(nil), // 1: pb.CreateOrderMethodResponse - (*UpdateOrderMethodRequest)(nil), // 2: pb.UpdateOrderMethodRequest - (*DeleteOrderMethodRequest)(nil), // 3: pb.DeleteOrderMethodRequest - (*FindEnabledOrderMethodRequest)(nil), // 4: pb.FindEnabledOrderMethodRequest - (*FindEnabledOrderMethodResponse)(nil), // 5: pb.FindEnabledOrderMethodResponse - (*FindEnabledOrderMethodWithCodeRequest)(nil), // 6: pb.FindEnabledOrderMethodWithCodeRequest - (*FindEnabledOrderMethodWithCodeResponse)(nil), // 7: pb.FindEnabledOrderMethodWithCodeResponse - (*FindAllEnabledOrderMethodsRequest)(nil), // 8: pb.FindAllEnabledOrderMethodsRequest - (*FindAllEnabledOrderMethodsResponse)(nil), // 9: pb.FindAllEnabledOrderMethodsResponse - (*FindAllEnabledAndOnOrderMethodsRequest)(nil), // 10: pb.FindAllEnabledAndOnOrderMethodsRequest - (*FindAllEnabledAndOnOrderMethodsResponse)(nil), // 11: pb.FindAllEnabledAndOnOrderMethodsResponse - (*OrderMethod)(nil), // 12: pb.OrderMethod - (*RPCSuccess)(nil), // 13: pb.RPCSuccess + (*CreateOrderMethodRequest)(nil), // 0: pb.CreateOrderMethodRequest + (*CreateOrderMethodResponse)(nil), // 1: pb.CreateOrderMethodResponse + (*UpdateOrderMethodRequest)(nil), // 2: pb.UpdateOrderMethodRequest + (*DeleteOrderMethodRequest)(nil), // 3: pb.DeleteOrderMethodRequest + (*FindEnabledOrderMethodRequest)(nil), // 4: pb.FindEnabledOrderMethodRequest + (*FindEnabledOrderMethodResponse)(nil), // 5: pb.FindEnabledOrderMethodResponse + (*FindEnabledOrderMethodWithCodeRequest)(nil), // 6: pb.FindEnabledOrderMethodWithCodeRequest + (*FindEnabledOrderMethodWithCodeResponse)(nil), // 7: pb.FindEnabledOrderMethodWithCodeResponse + (*FindAllEnabledOrderMethodsRequest)(nil), // 8: pb.FindAllEnabledOrderMethodsRequest + (*FindAllEnabledOrderMethodsResponse)(nil), // 9: pb.FindAllEnabledOrderMethodsResponse + (*FindAllAvailableOrderMethodsRequest)(nil), // 10: pb.FindAllAvailableOrderMethodsRequest + (*FindAllAvailableOrderMethodsResponse)(nil), // 11: pb.FindAllAvailableOrderMethodsResponse + (*OrderMethod)(nil), // 12: pb.OrderMethod + (*RPCSuccess)(nil), // 13: pb.RPCSuccess } var file_service_order_method_proto_depIdxs = []int32{ 12, // 0: pb.FindEnabledOrderMethodResponse.orderMethod:type_name -> pb.OrderMethod 12, // 1: pb.FindEnabledOrderMethodWithCodeResponse.orderMethod:type_name -> pb.OrderMethod 12, // 2: pb.FindAllEnabledOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod - 12, // 3: pb.FindAllEnabledAndOnOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod + 12, // 3: pb.FindAllAvailableOrderMethodsResponse.orderMethods:type_name -> pb.OrderMethod 0, // 4: pb.OrderMethodService.createOrderMethod:input_type -> pb.CreateOrderMethodRequest 2, // 5: pb.OrderMethodService.updateOrderMethod:input_type -> pb.UpdateOrderMethodRequest 3, // 6: pb.OrderMethodService.deleteOrderMethod:input_type -> pb.DeleteOrderMethodRequest 4, // 7: pb.OrderMethodService.findEnabledOrderMethod:input_type -> pb.FindEnabledOrderMethodRequest 6, // 8: pb.OrderMethodService.findEnabledOrderMethodWithCode:input_type -> pb.FindEnabledOrderMethodWithCodeRequest 8, // 9: pb.OrderMethodService.findAllEnabledOrderMethods:input_type -> pb.FindAllEnabledOrderMethodsRequest - 10, // 10: pb.OrderMethodService.findAllEnabledAndOnOrderMethods:input_type -> pb.FindAllEnabledAndOnOrderMethodsRequest + 10, // 10: pb.OrderMethodService.findAllAvailableOrderMethods:input_type -> pb.FindAllAvailableOrderMethodsRequest 1, // 11: pb.OrderMethodService.createOrderMethod:output_type -> pb.CreateOrderMethodResponse 13, // 12: pb.OrderMethodService.updateOrderMethod:output_type -> pb.RPCSuccess 13, // 13: pb.OrderMethodService.deleteOrderMethod:output_type -> pb.RPCSuccess 5, // 14: pb.OrderMethodService.findEnabledOrderMethod:output_type -> pb.FindEnabledOrderMethodResponse 7, // 15: pb.OrderMethodService.findEnabledOrderMethodWithCode:output_type -> pb.FindEnabledOrderMethodWithCodeResponse 9, // 16: pb.OrderMethodService.findAllEnabledOrderMethods:output_type -> pb.FindAllEnabledOrderMethodsResponse - 11, // 17: pb.OrderMethodService.findAllEnabledAndOnOrderMethods:output_type -> pb.FindAllEnabledAndOnOrderMethodsResponse + 11, // 17: pb.OrderMethodService.findAllAvailableOrderMethods:output_type -> pb.FindAllAvailableOrderMethodsResponse 11, // [11:18] is the sub-list for method output_type 4, // [4:11] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name @@ -948,7 +947,7 @@ func file_service_order_method_proto_init() { } } file_service_order_method_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledAndOnOrderMethodsRequest); i { + switch v := v.(*FindAllAvailableOrderMethodsRequest); i { case 0: return &v.state case 1: @@ -960,7 +959,7 @@ func file_service_order_method_proto_init() { } } file_service_order_method_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledAndOnOrderMethodsResponse); i { + switch v := v.(*FindAllAvailableOrderMethodsResponse); i { case 0: return &v.state case 1: @@ -1017,7 +1016,7 @@ type OrderMethodServiceClient interface { // 查找所有支付方式 FindAllEnabledOrderMethods(ctx context.Context, in *FindAllEnabledOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllEnabledOrderMethodsResponse, error) // 查找所有已启用的支付方式 - FindAllEnabledAndOnOrderMethods(ctx context.Context, in *FindAllEnabledAndOnOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnOrderMethodsResponse, error) + FindAllAvailableOrderMethods(ctx context.Context, in *FindAllAvailableOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllAvailableOrderMethodsResponse, error) } type orderMethodServiceClient struct { @@ -1082,9 +1081,9 @@ func (c *orderMethodServiceClient) FindAllEnabledOrderMethods(ctx context.Contex return out, nil } -func (c *orderMethodServiceClient) FindAllEnabledAndOnOrderMethods(ctx context.Context, in *FindAllEnabledAndOnOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllEnabledAndOnOrderMethodsResponse, error) { - out := new(FindAllEnabledAndOnOrderMethodsResponse) - err := c.cc.Invoke(ctx, "/pb.OrderMethodService/findAllEnabledAndOnOrderMethods", in, out, opts...) +func (c *orderMethodServiceClient) FindAllAvailableOrderMethods(ctx context.Context, in *FindAllAvailableOrderMethodsRequest, opts ...grpc.CallOption) (*FindAllAvailableOrderMethodsResponse, error) { + out := new(FindAllAvailableOrderMethodsResponse) + err := c.cc.Invoke(ctx, "/pb.OrderMethodService/findAllAvailableOrderMethods", in, out, opts...) if err != nil { return nil, err } @@ -1106,7 +1105,7 @@ type OrderMethodServiceServer interface { // 查找所有支付方式 FindAllEnabledOrderMethods(context.Context, *FindAllEnabledOrderMethodsRequest) (*FindAllEnabledOrderMethodsResponse, error) // 查找所有已启用的支付方式 - FindAllEnabledAndOnOrderMethods(context.Context, *FindAllEnabledAndOnOrderMethodsRequest) (*FindAllEnabledAndOnOrderMethodsResponse, error) + FindAllAvailableOrderMethods(context.Context, *FindAllAvailableOrderMethodsRequest) (*FindAllAvailableOrderMethodsResponse, error) } // UnimplementedOrderMethodServiceServer can be embedded to have forward compatible implementations. @@ -1131,8 +1130,8 @@ func (*UnimplementedOrderMethodServiceServer) FindEnabledOrderMethodWithCode(con func (*UnimplementedOrderMethodServiceServer) FindAllEnabledOrderMethods(context.Context, *FindAllEnabledOrderMethodsRequest) (*FindAllEnabledOrderMethodsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledOrderMethods not implemented") } -func (*UnimplementedOrderMethodServiceServer) FindAllEnabledAndOnOrderMethods(context.Context, *FindAllEnabledAndOnOrderMethodsRequest) (*FindAllEnabledAndOnOrderMethodsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledAndOnOrderMethods not implemented") +func (*UnimplementedOrderMethodServiceServer) FindAllAvailableOrderMethods(context.Context, *FindAllAvailableOrderMethodsRequest) (*FindAllAvailableOrderMethodsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableOrderMethods not implemented") } func RegisterOrderMethodServiceServer(s *grpc.Server, srv OrderMethodServiceServer) { @@ -1247,20 +1246,20 @@ func _OrderMethodService_FindAllEnabledOrderMethods_Handler(srv interface{}, ctx return interceptor(ctx, in, info, handler) } -func _OrderMethodService_FindAllEnabledAndOnOrderMethods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledAndOnOrderMethodsRequest) +func _OrderMethodService_FindAllAvailableOrderMethods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableOrderMethodsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(OrderMethodServiceServer).FindAllEnabledAndOnOrderMethods(ctx, in) + return srv.(OrderMethodServiceServer).FindAllAvailableOrderMethods(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.OrderMethodService/FindAllEnabledAndOnOrderMethods", + FullMethod: "/pb.OrderMethodService/FindAllAvailableOrderMethods", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(OrderMethodServiceServer).FindAllEnabledAndOnOrderMethods(ctx, req.(*FindAllEnabledAndOnOrderMethodsRequest)) + return srv.(OrderMethodServiceServer).FindAllAvailableOrderMethods(ctx, req.(*FindAllAvailableOrderMethodsRequest)) } return interceptor(ctx, in, info, handler) } @@ -1294,8 +1293,8 @@ var _OrderMethodService_serviceDesc = grpc.ServiceDesc{ Handler: _OrderMethodService_FindAllEnabledOrderMethods_Handler, }, { - MethodName: "findAllEnabledAndOnOrderMethods", - Handler: _OrderMethodService_FindAllEnabledAndOnOrderMethods_Handler, + MethodName: "findAllAvailableOrderMethods", + Handler: _OrderMethodService_FindAllAvailableOrderMethods_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/pkg/rpc/pb/service_user_ticket_category.pb.go b/pkg/rpc/pb/service_user_ticket_category.pb.go index d1bf21f..92002a0 100644 --- a/pkg/rpc/pb/service_user_ticket_category.pb.go +++ b/pkg/rpc/pb/service_user_ticket_category.pb.go @@ -323,14 +323,14 @@ func (x *FindAllUserTicketCategoriesResponse) GetUserTicketCategories() []*UserT } // 查找所有启用中的分类 -type FindAllOnUserTicketCategoriesRequest struct { +type FindAllAvailableUserTicketCategoriesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *FindAllOnUserTicketCategoriesRequest) Reset() { - *x = FindAllOnUserTicketCategoriesRequest{} +func (x *FindAllAvailableUserTicketCategoriesRequest) Reset() { + *x = FindAllAvailableUserTicketCategoriesRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_user_ticket_category_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -338,13 +338,13 @@ func (x *FindAllOnUserTicketCategoriesRequest) Reset() { } } -func (x *FindAllOnUserTicketCategoriesRequest) String() string { +func (x *FindAllAvailableUserTicketCategoriesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllOnUserTicketCategoriesRequest) ProtoMessage() {} +func (*FindAllAvailableUserTicketCategoriesRequest) ProtoMessage() {} -func (x *FindAllOnUserTicketCategoriesRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableUserTicketCategoriesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_user_ticket_category_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -356,12 +356,12 @@ func (x *FindAllOnUserTicketCategoriesRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use FindAllOnUserTicketCategoriesRequest.ProtoReflect.Descriptor instead. -func (*FindAllOnUserTicketCategoriesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableUserTicketCategoriesRequest.ProtoReflect.Descriptor instead. +func (*FindAllAvailableUserTicketCategoriesRequest) Descriptor() ([]byte, []int) { return file_service_user_ticket_category_proto_rawDescGZIP(), []int{6} } -type FindAllOnUserTicketCategoriesResponse struct { +type FindAllAvailableUserTicketCategoriesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -369,8 +369,8 @@ type FindAllOnUserTicketCategoriesResponse struct { UserTicketCategories []*UserTicketCategory `protobuf:"bytes,1,rep,name=userTicketCategories,proto3" json:"userTicketCategories,omitempty"` } -func (x *FindAllOnUserTicketCategoriesResponse) Reset() { - *x = FindAllOnUserTicketCategoriesResponse{} +func (x *FindAllAvailableUserTicketCategoriesResponse) Reset() { + *x = FindAllAvailableUserTicketCategoriesResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_user_ticket_category_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -378,13 +378,13 @@ func (x *FindAllOnUserTicketCategoriesResponse) Reset() { } } -func (x *FindAllOnUserTicketCategoriesResponse) String() string { +func (x *FindAllAvailableUserTicketCategoriesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllOnUserTicketCategoriesResponse) ProtoMessage() {} +func (*FindAllAvailableUserTicketCategoriesResponse) ProtoMessage() {} -func (x *FindAllOnUserTicketCategoriesResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllAvailableUserTicketCategoriesResponse) ProtoReflect() protoreflect.Message { mi := &file_service_user_ticket_category_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -396,12 +396,12 @@ func (x *FindAllOnUserTicketCategoriesResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use FindAllOnUserTicketCategoriesResponse.ProtoReflect.Descriptor instead. -func (*FindAllOnUserTicketCategoriesResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllAvailableUserTicketCategoriesResponse.ProtoReflect.Descriptor instead. +func (*FindAllAvailableUserTicketCategoriesResponse) Descriptor() ([]byte, []int) { return file_service_user_ticket_category_proto_rawDescGZIP(), []int{7} } -func (x *FindAllOnUserTicketCategoriesResponse) GetUserTicketCategories() []*UserTicketCategory { +func (x *FindAllAvailableUserTicketCategoriesResponse) GetUserTicketCategories() []*UserTicketCategory { if x != nil { return x.UserTicketCategories } @@ -544,69 +544,71 @@ var file_service_user_ticket_category_proto_rawDesc = []byte{ 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x26, 0x0a, 0x24, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x73, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x75, - 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, - 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x53, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, - 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x72, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x1e, - 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, - 0x0a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, - 0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, - 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, - 0x72, 0x79, 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x32, 0xeb, 0x04, 0x0a, 0x19, 0x55, 0x73, 0x65, 0x72, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, - 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, - 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, - 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x18, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, - 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, - 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, - 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4f, 0x0a, 0x18, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, - 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, - 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, - 0x1b, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x70, - 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, - 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, - 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x74, 0x0a, - 0x1d, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x2d, 0x0a, 0x2b, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, + 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7a, 0x0a, 0x2c, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x4f, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x21, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 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, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x14, 0x75, 0x73, 0x65, + 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, + 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, + 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x53, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, + 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x32, 0x0a, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x14, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x1e, 0x46, 0x69, + 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x12, + 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, + 0x52, 0x12, 0x75, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x32, 0x81, 0x05, 0x0a, 0x19, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, + 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, + 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, + 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4f, 0x0a, 0x18, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, + 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x4f, 0x0a, 0x18, 0x64, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, + 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, + 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, + 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x6e, 0x0a, 0x1b, 0x66, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x26, 0x2e, 0x70, 0x62, 0x2e, + 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, + 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x55, + 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x89, 0x01, 0x0a, 0x24, + 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69, + 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, + 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x66, 0x69, 0x6e, 0x64, 0x55, + 0x73, 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, + 0x79, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x54, + 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, + 0x65, 0x72, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 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, } var ( @@ -623,34 +625,34 @@ func file_service_user_ticket_category_proto_rawDescGZIP() []byte { var file_service_user_ticket_category_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_service_user_ticket_category_proto_goTypes = []interface{}{ - (*CreateUserTicketCategoryRequest)(nil), // 0: pb.CreateUserTicketCategoryRequest - (*CreateUserTicketCategoryResponse)(nil), // 1: pb.CreateUserTicketCategoryResponse - (*UpdateUserTicketCategoryRequest)(nil), // 2: pb.UpdateUserTicketCategoryRequest - (*DeleteUserTicketCategoryRequest)(nil), // 3: pb.DeleteUserTicketCategoryRequest - (*FindAllUserTicketCategoriesRequest)(nil), // 4: pb.FindAllUserTicketCategoriesRequest - (*FindAllUserTicketCategoriesResponse)(nil), // 5: pb.FindAllUserTicketCategoriesResponse - (*FindAllOnUserTicketCategoriesRequest)(nil), // 6: pb.FindAllOnUserTicketCategoriesRequest - (*FindAllOnUserTicketCategoriesResponse)(nil), // 7: pb.FindAllOnUserTicketCategoriesResponse - (*FindUserTicketCategoryRequest)(nil), // 8: pb.FindUserTicketCategoryRequest - (*FindUserTicketCategoryResponse)(nil), // 9: pb.FindUserTicketCategoryResponse - (*UserTicketCategory)(nil), // 10: pb.UserTicketCategory - (*RPCSuccess)(nil), // 11: pb.RPCSuccess + (*CreateUserTicketCategoryRequest)(nil), // 0: pb.CreateUserTicketCategoryRequest + (*CreateUserTicketCategoryResponse)(nil), // 1: pb.CreateUserTicketCategoryResponse + (*UpdateUserTicketCategoryRequest)(nil), // 2: pb.UpdateUserTicketCategoryRequest + (*DeleteUserTicketCategoryRequest)(nil), // 3: pb.DeleteUserTicketCategoryRequest + (*FindAllUserTicketCategoriesRequest)(nil), // 4: pb.FindAllUserTicketCategoriesRequest + (*FindAllUserTicketCategoriesResponse)(nil), // 5: pb.FindAllUserTicketCategoriesResponse + (*FindAllAvailableUserTicketCategoriesRequest)(nil), // 6: pb.FindAllAvailableUserTicketCategoriesRequest + (*FindAllAvailableUserTicketCategoriesResponse)(nil), // 7: pb.FindAllAvailableUserTicketCategoriesResponse + (*FindUserTicketCategoryRequest)(nil), // 8: pb.FindUserTicketCategoryRequest + (*FindUserTicketCategoryResponse)(nil), // 9: pb.FindUserTicketCategoryResponse + (*UserTicketCategory)(nil), // 10: pb.UserTicketCategory + (*RPCSuccess)(nil), // 11: pb.RPCSuccess } var file_service_user_ticket_category_proto_depIdxs = []int32{ 10, // 0: pb.FindAllUserTicketCategoriesResponse.userTicketCategories:type_name -> pb.UserTicketCategory - 10, // 1: pb.FindAllOnUserTicketCategoriesResponse.userTicketCategories:type_name -> pb.UserTicketCategory + 10, // 1: pb.FindAllAvailableUserTicketCategoriesResponse.userTicketCategories:type_name -> pb.UserTicketCategory 10, // 2: pb.FindUserTicketCategoryResponse.userTicketCategory:type_name -> pb.UserTicketCategory 0, // 3: pb.UserTicketCategoryService.createUserTicketCategory:input_type -> pb.CreateUserTicketCategoryRequest 2, // 4: pb.UserTicketCategoryService.updateUserTicketCategory:input_type -> pb.UpdateUserTicketCategoryRequest 3, // 5: pb.UserTicketCategoryService.deleteUserTicketCategory:input_type -> pb.DeleteUserTicketCategoryRequest 4, // 6: pb.UserTicketCategoryService.findAllUserTicketCategories:input_type -> pb.FindAllUserTicketCategoriesRequest - 6, // 7: pb.UserTicketCategoryService.findAllOnUserTicketCategories:input_type -> pb.FindAllOnUserTicketCategoriesRequest + 6, // 7: pb.UserTicketCategoryService.findAllAvailableUserTicketCategories:input_type -> pb.FindAllAvailableUserTicketCategoriesRequest 8, // 8: pb.UserTicketCategoryService.findUserTicketCategory:input_type -> pb.FindUserTicketCategoryRequest 1, // 9: pb.UserTicketCategoryService.createUserTicketCategory:output_type -> pb.CreateUserTicketCategoryResponse 11, // 10: pb.UserTicketCategoryService.updateUserTicketCategory:output_type -> pb.RPCSuccess 11, // 11: pb.UserTicketCategoryService.deleteUserTicketCategory:output_type -> pb.RPCSuccess 5, // 12: pb.UserTicketCategoryService.findAllUserTicketCategories:output_type -> pb.FindAllUserTicketCategoriesResponse - 7, // 13: pb.UserTicketCategoryService.findAllOnUserTicketCategories:output_type -> pb.FindAllOnUserTicketCategoriesResponse + 7, // 13: pb.UserTicketCategoryService.findAllAvailableUserTicketCategories:output_type -> pb.FindAllAvailableUserTicketCategoriesResponse 9, // 14: pb.UserTicketCategoryService.findUserTicketCategory:output_type -> pb.FindUserTicketCategoryResponse 9, // [9:15] is the sub-list for method output_type 3, // [3:9] is the sub-list for method input_type @@ -740,7 +742,7 @@ func file_service_user_ticket_category_proto_init() { } } file_service_user_ticket_category_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllOnUserTicketCategoriesRequest); i { + switch v := v.(*FindAllAvailableUserTicketCategoriesRequest); i { case 0: return &v.state case 1: @@ -752,7 +754,7 @@ func file_service_user_ticket_category_proto_init() { } } file_service_user_ticket_category_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllOnUserTicketCategoriesResponse); i { + switch v := v.(*FindAllAvailableUserTicketCategoriesResponse); i { case 0: return &v.state case 1: @@ -829,7 +831,7 @@ type UserTicketCategoryServiceClient interface { // 查找所有分类 FindAllUserTicketCategories(ctx context.Context, in *FindAllUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllUserTicketCategoriesResponse, error) // 查找所有启用中的分类 - FindAllOnUserTicketCategories(ctx context.Context, in *FindAllOnUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllOnUserTicketCategoriesResponse, error) + FindAllAvailableUserTicketCategories(ctx context.Context, in *FindAllAvailableUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllAvailableUserTicketCategoriesResponse, error) // 查询单个分类 FindUserTicketCategory(ctx context.Context, in *FindUserTicketCategoryRequest, opts ...grpc.CallOption) (*FindUserTicketCategoryResponse, error) } @@ -878,9 +880,9 @@ func (c *userTicketCategoryServiceClient) FindAllUserTicketCategories(ctx contex return out, nil } -func (c *userTicketCategoryServiceClient) FindAllOnUserTicketCategories(ctx context.Context, in *FindAllOnUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllOnUserTicketCategoriesResponse, error) { - out := new(FindAllOnUserTicketCategoriesResponse) - err := c.cc.Invoke(ctx, "/pb.UserTicketCategoryService/findAllOnUserTicketCategories", in, out, opts...) +func (c *userTicketCategoryServiceClient) FindAllAvailableUserTicketCategories(ctx context.Context, in *FindAllAvailableUserTicketCategoriesRequest, opts ...grpc.CallOption) (*FindAllAvailableUserTicketCategoriesResponse, error) { + out := new(FindAllAvailableUserTicketCategoriesResponse) + err := c.cc.Invoke(ctx, "/pb.UserTicketCategoryService/findAllAvailableUserTicketCategories", in, out, opts...) if err != nil { return nil, err } @@ -907,7 +909,7 @@ type UserTicketCategoryServiceServer interface { // 查找所有分类 FindAllUserTicketCategories(context.Context, *FindAllUserTicketCategoriesRequest) (*FindAllUserTicketCategoriesResponse, error) // 查找所有启用中的分类 - FindAllOnUserTicketCategories(context.Context, *FindAllOnUserTicketCategoriesRequest) (*FindAllOnUserTicketCategoriesResponse, error) + FindAllAvailableUserTicketCategories(context.Context, *FindAllAvailableUserTicketCategoriesRequest) (*FindAllAvailableUserTicketCategoriesResponse, error) // 查询单个分类 FindUserTicketCategory(context.Context, *FindUserTicketCategoryRequest) (*FindUserTicketCategoryResponse, error) } @@ -928,8 +930,8 @@ func (*UnimplementedUserTicketCategoryServiceServer) DeleteUserTicketCategory(co func (*UnimplementedUserTicketCategoryServiceServer) FindAllUserTicketCategories(context.Context, *FindAllUserTicketCategoriesRequest) (*FindAllUserTicketCategoriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAllUserTicketCategories not implemented") } -func (*UnimplementedUserTicketCategoryServiceServer) FindAllOnUserTicketCategories(context.Context, *FindAllOnUserTicketCategoriesRequest) (*FindAllOnUserTicketCategoriesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllOnUserTicketCategories not implemented") +func (*UnimplementedUserTicketCategoryServiceServer) FindAllAvailableUserTicketCategories(context.Context, *FindAllAvailableUserTicketCategoriesRequest) (*FindAllAvailableUserTicketCategoriesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllAvailableUserTicketCategories not implemented") } func (*UnimplementedUserTicketCategoryServiceServer) FindUserTicketCategory(context.Context, *FindUserTicketCategoryRequest) (*FindUserTicketCategoryResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindUserTicketCategory not implemented") @@ -1011,20 +1013,20 @@ func _UserTicketCategoryService_FindAllUserTicketCategories_Handler(srv interfac return interceptor(ctx, in, info, handler) } -func _UserTicketCategoryService_FindAllOnUserTicketCategories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllOnUserTicketCategoriesRequest) +func _UserTicketCategoryService_FindAllAvailableUserTicketCategories_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllAvailableUserTicketCategoriesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(UserTicketCategoryServiceServer).FindAllOnUserTicketCategories(ctx, in) + return srv.(UserTicketCategoryServiceServer).FindAllAvailableUserTicketCategories(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.UserTicketCategoryService/FindAllOnUserTicketCategories", + FullMethod: "/pb.UserTicketCategoryService/FindAllAvailableUserTicketCategories", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UserTicketCategoryServiceServer).FindAllOnUserTicketCategories(ctx, req.(*FindAllOnUserTicketCategoriesRequest)) + return srv.(UserTicketCategoryServiceServer).FindAllAvailableUserTicketCategories(ctx, req.(*FindAllAvailableUserTicketCategoriesRequest)) } return interceptor(ctx, in, info, handler) } @@ -1068,8 +1070,8 @@ var _UserTicketCategoryService_serviceDesc = grpc.ServiceDesc{ Handler: _UserTicketCategoryService_FindAllUserTicketCategories_Handler, }, { - MethodName: "findAllOnUserTicketCategories", - Handler: _UserTicketCategoryService_FindAllOnUserTicketCategories_Handler, + MethodName: "findAllAvailableUserTicketCategories", + Handler: _UserTicketCategoryService_FindAllAvailableUserTicketCategories_Handler, }, { MethodName: "findUserTicketCategory", diff --git a/pkg/rpc/protos/models/model_ns_domain.proto b/pkg/rpc/protos/models/model_ns_domain.proto index cb62d60..c212cfb 100644 --- a/pkg/rpc/protos/models/model_ns_domain.proto +++ b/pkg/rpc/protos/models/model_ns_domain.proto @@ -4,6 +4,7 @@ option go_package = "./pb"; package pb; import "models/model_ns_cluster.proto"; +import "models/model_ns_domain_group.proto"; import "models/model_user.proto"; // DNS域名 @@ -15,7 +16,9 @@ message NSDomain { bool isDeleted = 5; int64 version = 6; bytes tsigJSON = 7; + repeated int64 nsDomainGroupIds = 8; NSCluster nsCluster = 30; User user = 31; + repeated NSDomainGroup nsDomainGroups = 32; } \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_ns_domain_group.proto b/pkg/rpc/protos/models/model_ns_domain_group.proto new file mode 100644 index 0000000..e029ea1 --- /dev/null +++ b/pkg/rpc/protos/models/model_ns_domain_group.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +// 域名分组 +message NSDomainGroup { + int64 id = 1; + string name = 2; + bool isOn = 3; + int64 userId = 4; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_node_price_item.proto b/pkg/rpc/protos/service_node_price_item.proto index 6ccdbe8..5e339dc 100644 --- a/pkg/rpc/protos/service_node_price_item.proto +++ b/pkg/rpc/protos/service_node_price_item.proto @@ -21,7 +21,7 @@ service NodePriceItemService { rpc findAllEnabledNodePriceItems (FindAllEnabledNodePriceItemsRequest) returns (FindAllEnabledNodePriceItemsResponse); // 查找所有启用的区域价格 - rpc findAllEnabledAndOnNodePriceItems (FindAllEnabledAndOnNodePriceItemsRequest) returns (FindAllEnabledAndOnNodePriceItemsResponse); + rpc findAllAvailableNodePriceItems (FindAllAvailableNodePriceItemsRequest) returns (FindAllAvailableNodePriceItemsResponse); // 查找单个区域信息 rpc findEnabledNodePriceItem (FindEnabledNodePriceItemRequest) returns (FindEnabledNodePriceItemResponse); @@ -63,11 +63,11 @@ message FindAllEnabledNodePriceItemsResponse { } // 查找所有启用的区域价格 -message FindAllEnabledAndOnNodePriceItemsRequest { +message FindAllAvailableNodePriceItemsRequest { string type = 1; } -message FindAllEnabledAndOnNodePriceItemsResponse { +message FindAllAvailableNodePriceItemsResponse { repeated NodePriceItem NodePriceItems = 1; } diff --git a/pkg/rpc/protos/service_node_region.proto b/pkg/rpc/protos/service_node_region.proto index 951fe7c..b095ad1 100644 --- a/pkg/rpc/protos/service_node_region.proto +++ b/pkg/rpc/protos/service_node_region.proto @@ -21,7 +21,7 @@ service NodeRegionService { rpc findAllEnabledNodeRegions (FindAllEnabledNodeRegionsRequest) returns (FindAllEnabledNodeRegionsResponse); // 查找所有启用的区域 - rpc findAllEnabledAndOnNodeRegions (FindAllEnabledAndOnNodeRegionsRequest) returns (FindAllEnabledAndOnNodeRegionsResponse); + rpc findAllAvailableNodeRegions (FindAllAvailableNodeRegionsRequest) returns (FindAllAvailableNodeRegionsResponse); // 排序 rpc updateNodeRegionOrders (UpdateNodeRegionOrdersRequest) returns (RPCSuccess); @@ -66,11 +66,11 @@ message FindAllEnabledNodeRegionsResponse { } // 查找所有启用的区域 -message FindAllEnabledAndOnNodeRegionsRequest { +message FindAllAvailableNodeRegionsRequest { } -message FindAllEnabledAndOnNodeRegionsResponse { +message FindAllAvailableNodeRegionsResponse { repeated NodeRegion nodeRegions = 1; } diff --git a/pkg/rpc/protos/service_ns_cluster.proto b/pkg/rpc/protos/service_ns_cluster.proto index 13fde46..f0eb1cc 100644 --- a/pkg/rpc/protos/service_ns_cluster.proto +++ b/pkg/rpc/protos/service_ns_cluster.proto @@ -24,16 +24,16 @@ service NSClusterService { rpc deleteNSCluster (DeleteNSCluster) returns (RPCSuccess); // 查找单个可用集群信息 - rpc findEnabledNSCluster (FindEnabledNSClusterRequest) returns (FindEnabledNSClusterResponse); + rpc findNSCluster (FindNSClusterRequest) returns (FindNSClusterResponse); // 计算所有可用集群的数量 - rpc countAllEnabledNSClusters (CountAllEnabledNSClustersRequest) returns (RPCCountResponse); + rpc countAllNSClusters (CountAllNSClustersRequest) returns (RPCCountResponse); // 列出单页可用集群 - rpc listEnabledNSClusters (ListEnabledNSClustersRequest) returns (ListEnabledNSClustersResponse); + rpc listNSClusters (ListNSClustersRequest) returns (ListNSClustersResponse); // 查找所有可用集群 - rpc findAllEnabledNSClusters (FindAllEnabledNSClustersRequest) returns (FindAllEnabledNSClustersResponse); + rpc findAllNSClusters (FindAllNSClustersRequest) returns (FindAllNSClustersResponse); // 设置递归DNS配置 rpc updateNSClusterRecursionConfig(UpdateNSClusterRecursionConfigRequest) returns (RPCSuccess); @@ -101,34 +101,34 @@ message DeleteNSCluster { } // 查找单个可用集群信息 -message FindEnabledNSClusterRequest { +message FindNSClusterRequest { int64 nsClusterId = 1; } -message FindEnabledNSClusterResponse { +message FindNSClusterResponse { NSCluster nsCluster = 1; } // 计算所有可用集群的数量 -message CountAllEnabledNSClustersRequest { +message CountAllNSClustersRequest { } // 列出单页可用集群 -message ListEnabledNSClustersRequest { +message ListNSClustersRequest { int64 offset = 1; int64 size = 2; } -message ListEnabledNSClustersResponse { +message ListNSClustersResponse { repeated NSCluster nsClusters = 1; } // 查找所有可用集群 -message FindAllEnabledNSClustersRequest { +message FindAllNSClustersRequest { } -message FindAllEnabledNSClustersResponse { +message FindAllNSClustersResponse { repeated NSCluster nsClusters = 1; } diff --git a/pkg/rpc/protos/service_ns_domain.proto b/pkg/rpc/protos/service_ns_domain.proto index 098caf9..33a77c2 100644 --- a/pkg/rpc/protos/service_ns_domain.proto +++ b/pkg/rpc/protos/service_ns_domain.proto @@ -8,9 +8,12 @@ import "models/rpc_messages.proto"; // 域名相关服务 service NSDomainService { - // 创建域名 + // 创建单个域名 rpc createNSDomain (CreateNSDomainRequest) returns (CreateNSDomainResponse); + // 批量创建域名 + rpc createNSDomains(CreateNSDomainsRequest) returns (CreateNSDomainsResponse); + // 修改域名 rpc updateNSDomain (UpdateNSDomainRequest) returns (RPCSuccess); @@ -18,41 +21,58 @@ service NSDomainService { rpc deleteNSDomain (DeleteNSDomainRequest) returns (RPCSuccess); // 查找单个域名 - rpc findEnabledNSDomain (FindEnabledNSDomainRequest) returns (FindEnabledNSDomainResponse); + rpc findNSDomain (FindNSDomainRequest) returns (FindNSDomainResponse); // 计算域名数量 - rpc countAllEnabledNSDomains (CountAllEnabledNSDomainsRequest) returns (RPCCountResponse); + rpc countAllNSDomains (CountAllNSDomainsRequest) returns (RPCCountResponse); // 列出单页域名 - rpc listEnabledNSDomains (ListEnabledNSDomainsRequest) returns (ListEnabledNSDomainsResponse); + rpc listNSDomains (ListNSDomainsRequest) returns (ListNSDomainsResponse); // 根据版本列出一组域名 rpc listNSDomainsAfterVersion (ListNSDomainsAfterVersionRequest) returns (ListNSDomainsAfterVersionResponse); // 查找TSIG配置 - rpc findEnabledNSDomainTSIG (FindEnabledNSDomainTSIGRequest) returns (FindEnabledNSDomainTSIGResponse); + rpc findNSDomainTSIG (FindNSDomainTSIGRequest) returns (FindNSDomainTSIGResponse); // 修改TSIG配置 rpc updateNSDomainTSIG (UpdateNSDomainTSIGRequest) returns (RPCSuccess); + + // 检查一组域名是否存在 + rpc existNSDomains(ExistNSDomainsRequest) returns (ExistNSDomainsResponse); } -// 创建域名 +// 创建单个域名 message CreateNSDomainRequest { - int64 nsClusterId = 1; - int64 userId = 2; - string name = 3; + int64 nsClusterId = 1; // 所属集群 + int64 userId = 2; // 所属用户 + string name = 3; // 域名 + repeated int64 nsDomainGroupIds = 4; // 域名分组ID } message CreateNSDomainResponse { int64 nsDomainId = 1; } +// 批量创建域名 +message CreateNSDomainsRequest { + int64 nsClusterId = 1; // 所属集群 + int64 userId = 2; // 所属用户 + repeated string names = 3; // 一组域名 + repeated int64 nsDomainGroupIds = 4; // 域名分组ID +} + +message CreateNSDomainsResponse { + repeated int64 nsDomainIds = 1; +} + // 修改域名 // 注意:名称不能修改 message UpdateNSDomainRequest { int64 nsDomainId = 1; int64 nsClusterId = 2; int64 userId = 3; + repeated int64 nsDomainGroupIds = 5; // 域名分组ID bool isOn = 4; } @@ -62,31 +82,33 @@ message DeleteNSDomainRequest { } // 查找单个域名 -message FindEnabledNSDomainRequest { +message FindNSDomainRequest { int64 nsDomainId = 1; } -message FindEnabledNSDomainResponse { +message FindNSDomainResponse { NSDomain nsDomain = 1; } // 计算域名数量 -message CountAllEnabledNSDomainsRequest { +message CountAllNSDomainsRequest { int64 userId = 1; int64 nsClusterId = 2; string keyword = 3; + int64 nsDomainGroupId = 4; } // 列出单页域名 -message ListEnabledNSDomainsRequest { +message ListNSDomainsRequest { int64 userId = 1; int64 nsClusterId = 2; string keyword = 3; + int64 nsDomainGroupId = 6; int64 offset = 4; int64 size = 5; } -message ListEnabledNSDomainsResponse { +message ListNSDomainsResponse { repeated NSDomain nsDomains = 1; } @@ -101,11 +123,11 @@ message ListNSDomainsAfterVersionResponse { } // 查找TSIG配置 -message FindEnabledNSDomainTSIGRequest { +message FindNSDomainTSIGRequest { int64 nsDomainId = 1; } -message FindEnabledNSDomainTSIGResponse { +message FindNSDomainTSIGResponse { bytes tsigJSON = 1; } @@ -113,4 +135,14 @@ message FindEnabledNSDomainTSIGResponse { message UpdateNSDomainTSIGRequest { int64 nsDomainId = 1; bytes tsigJSON = 2; +} + +// 检查一组域名是否存在 +message ExistNSDomainsRequest { + repeated string names = 1; + int64 userId = 2; +} + +message ExistNSDomainsResponse { + repeated string existingNames = 1; } \ No newline at end of file diff --git a/pkg/rpc/protos/service_ns_domain_group.proto b/pkg/rpc/protos/service_ns_domain_group.proto new file mode 100644 index 0000000..be0fe13 --- /dev/null +++ b/pkg/rpc/protos/service_ns_domain_group.proto @@ -0,0 +1,84 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_ns_domain_group.proto"; +import "models/rpc_messages.proto"; + +// 域名分组服务 +service NSDomainGroupService { + // 创建分组 + rpc createNSDomainGroup(CreateNSDomainGroupRequest) returns (CreateNSDomainGroupResponse); + + // 修改分组 + rpc updateNSDomainGroup(UpdateNSDomainGroupRequest) returns (RPCSuccess); + + // 删除分组 + rpc deleteNSDomainGroup(DeleteNSDomainGroupRequest) returns (RPCSuccess); + + // 查询所有分组 + rpc findAllNSDomainGroups(FindAllNSDomainGroupsRequest) returns (FindAllNSDomainGroupsResponse); + + // 查询可用分组数量 + rpc countAllAvailableNSDomainGroups(CountAllAvailableNSDomainGroupsRequest) returns (RPCCountResponse); + + // 查询所有启用分组 + rpc findAllAvailableNSDomainGroups(FindAllAvailableNSDomainGroupsRequest) returns (FindAllAvailableNSDomainGroupsResponse); + + // 查找单个分组 + rpc findNSDomainGroup(FindNSDomainGroupRequest) returns (FindNSDomainGroupResponse); +} + +// 创建分组 +message CreateNSDomainGroupRequest { + string name = 1; +} + +message CreateNSDomainGroupResponse { + int64 nsDomainGroupId = 1; +} + +// 修改分组 +message UpdateNSDomainGroupRequest { + int64 nsDomainGroupId = 1; + string name = 2; + bool isOn = 3; +} + +// 删除分组 +message DeleteNSDomainGroupRequest { + int64 nsDomainGroupId = 1; +} + +// 查询所有分组 +message FindAllNSDomainGroupsRequest { + int64 userId = 1; +} + +message FindAllNSDomainGroupsResponse { + repeated NSDomainGroup nsDomainGroups = 1; +} + +// 查询可用分组数量 +message CountAllAvailableNSDomainGroupsRequest { + int64 userId = 1; +} + +// 查询所有启用分组 +message FindAllAvailableNSDomainGroupsRequest { + int64 userId = 1; +} + +message FindAllAvailableNSDomainGroupsResponse { + repeated NSDomainGroup nsDomainGroups = 1; +} + +// 查找单个分组 +message FindNSDomainGroupRequest { + int64 nsDomainGroupId = 1; +} + +message FindNSDomainGroupResponse { + NSDomainGroup nsDomainGroup = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_ns_key.proto b/pkg/rpc/protos/service_ns_key.proto index 96cb761..a8424d7 100644 --- a/pkg/rpc/protos/service_ns_key.proto +++ b/pkg/rpc/protos/service_ns_key.proto @@ -18,13 +18,13 @@ service NSKeyService { rpc deleteNSKey (DeleteNSKeyRequest) returns (RPCSuccess); // 查找单个密钥 - rpc findEnabledNSKey (FindEnabledNSKeyRequest) returns (FindEnabledNSKeyResponse); + rpc findNSKey (FindNSKeyRequest) returns (FindNSKeyResponse); // 计算密钥数量 - rpc countAllEnabledNSKeys (CountAllEnabledNSKeysRequest) returns (RPCCountResponse); + rpc countAllNSKeys (CountAllNSKeysRequest) returns (RPCCountResponse); // 列出单页密钥 - rpc listEnabledNSKeys (ListEnabledNSKeysRequest) returns (ListEnabledNSKeysResponse); + rpc listNSKeys (ListNSKeysRequest) returns (ListNSKeysResponse); // 根据版本列出一组密钥 rpc listNSKeysAfterVersion (ListNSKeysAfterVersionRequest) returns (ListNSKeysAfterVersionResponse); @@ -60,29 +60,29 @@ message DeleteNSKeyRequest { } // 查找单个密钥 -message FindEnabledNSKeyRequest { +message FindNSKeyRequest { int64 nsKeyId = 1; } -message FindEnabledNSKeyResponse { +message FindNSKeyResponse { NSKey nsKey = 1; } // 计算密钥数量 -message CountAllEnabledNSKeysRequest { +message CountAllNSKeysRequest { int64 nsDomainId = 1; int64 nsZoneId = 2; } // 列出单页密钥 -message ListEnabledNSKeysRequest { +message ListNSKeysRequest { int64 nsDomainId = 1; int64 nsZoneId = 2; int64 offset = 3; int64 size = 4; } -message ListEnabledNSKeysResponse { +message ListNSKeysResponse { repeated NSKey nsKeys = 1; } diff --git a/pkg/rpc/protos/service_ns_node.proto b/pkg/rpc/protos/service_ns_node.proto index 3adcf21..482c951 100644 --- a/pkg/rpc/protos/service_ns_node.proto +++ b/pkg/rpc/protos/service_ns_node.proto @@ -11,16 +11,16 @@ import "models/model_node_login.proto"; // 域名服务器节点服务 service NSNodeService { // 根据集群查找所有节点 - rpc findAllEnabledNSNodesWithNSClusterId (FindAllEnabledNSNodesWithNSClusterIdRequest) returns (FindAllEnabledNSNodesWithNSClusterIdResponse); + rpc findAllNSNodesWithNSClusterId (FindAllNSNodesWithNSClusterIdRequest) returns (FindAllNSNodesWithNSClusterIdResponse); // 所有可用的节点数量 - rpc countAllEnabledNSNodes (CountAllEnabledNSNodesRequest) returns (RPCCountResponse); + rpc countAllNSNodes (CountAllNSNodesRequest) returns (RPCCountResponse); // 计算匹配的节点数量 - rpc countAllEnabledNSNodesMatch (CountAllEnabledNSNodesMatchRequest) returns (RPCCountResponse); + rpc countAllNSNodesMatch (CountAllNSNodesMatchRequest) returns (RPCCountResponse); // 列出单页节点 - rpc listEnabledNSNodesMatch (ListEnabledNSNodesMatchRequest) returns (ListEnabledNSNodesMatchResponse); + rpc listNSNodesMatch (ListNSNodesMatchRequest) returns (ListNSNodesMatchResponse); // 计算需要升级的节点数量 rpc countAllUpgradeNSNodesWithNSClusterId (CountAllUpgradeNSNodesWithNSClusterIdRequest) returns (RPCCountResponse); @@ -32,7 +32,7 @@ service NSNodeService { rpc deleteNSNode (DeleteNSNodeRequest) returns (RPCSuccess); // 获取单个节点信息 - rpc findEnabledNSNode (FindEnabledNSNodeRequest) returns (FindEnabledNSNodeResponse); + rpc findNSNode (FindNSNodeRequest) returns (FindNSNodeResponse); // 修改节点 rpc updateNSNode (UpdateNSNodeRequest) returns (RPCSuccess); @@ -78,21 +78,21 @@ service NSNodeService { } // 根据集群查找所有节点 -message FindAllEnabledNSNodesWithNSClusterIdRequest { +message FindAllNSNodesWithNSClusterIdRequest { int64 nsClusterId = 1; } -message FindAllEnabledNSNodesWithNSClusterIdResponse { +message FindAllNSNodesWithNSClusterIdResponse { repeated NSNode nsNodes = 1; } // 所有可用的节点数量 -message CountAllEnabledNSNodesRequest { +message CountAllNSNodesRequest { } // 计算匹配的节点数量 -message CountAllEnabledNSNodesMatchRequest { +message CountAllNSNodesMatchRequest { int64 nsClusterId = 1; int32 installState = 2; int32 activeState = 3; @@ -102,7 +102,7 @@ message CountAllEnabledNSNodesMatchRequest { } // 列出单页节点 -message ListEnabledNSNodesMatchRequest { +message ListNSNodesMatchRequest { int64 offset = 1; int64 size = 2; int64 nsClusterId = 3; @@ -113,7 +113,7 @@ message ListEnabledNSNodesMatchRequest { //int64 nodeRegionId = 8; } -message ListEnabledNSNodesMatchResponse { +message ListNSNodesMatchResponse { repeated NSNode nsNodes = 1; } @@ -139,11 +139,11 @@ message DeleteNSNodeRequest { } // 获取单个节点信息 -message FindEnabledNSNodeRequest { +message FindNSNodeRequest { int64 nsNodeId = 1; } -message FindEnabledNSNodeResponse { +message FindNSNodeResponse { NSNode nsNode = 1; } diff --git a/pkg/rpc/protos/service_ns_record.proto b/pkg/rpc/protos/service_ns_record.proto index 937ac5c..018ad53 100644 --- a/pkg/rpc/protos/service_ns_record.proto +++ b/pkg/rpc/protos/service_ns_record.proto @@ -11,6 +11,9 @@ service NSRecordService { // 创建记录 rpc createNSRecord (CreateNSRecordRequest) returns (CreateNSRecordResponse); + // 批量创建记录 + rpc createNSRecords(CreateNSRecordsRequest) returns (CreateNSRecordsResponse); + // 修改记录 rpc updateNSRecord (UpdateNSRecordRequest) returns (RPCSuccess); @@ -18,13 +21,13 @@ service NSRecordService { rpc deleteNSRecord (DeleteNSRecordRequest) returns (RPCSuccess); // 计算记录数量 - rpc countAllEnabledNSRecords (CountAllEnabledNSRecordsRequest) returns (RPCCountResponse); + rpc countAllNSRecords (CountAllNSRecordsRequest) returns (RPCCountResponse); // 读取单页记录 - rpc listEnabledNSRecords (ListEnabledNSRecordsRequest) returns (ListEnabledNSRecordsResponse); + rpc listNSRecords (ListNSRecordsRequest) returns (ListNSRecordsResponse); // 查询单个记录信息 - rpc findEnabledNSRecord (FindEnabledNSRecordRequest) returns (FindEnabledNSRecordResponse); + rpc findNSRecord (FindNSRecordRequest) returns (FindNSRecordResponse); // 根据版本列出一组记录 rpc listNSRecordsAfterVersion (ListNSRecordsAfterVersionRequest) returns (ListNSRecordsAfterVersionResponse); @@ -46,6 +49,21 @@ message CreateNSRecordResponse { int64 nsRecordId = 1; } +// 批量创建记录 +message CreateNSRecordsRequest { + int64 nsDomainId = 1; + string description = 2; + repeated string names = 3; + string type = 4; + string value = 5; + int32 ttl = 6; + repeated string nsRouteCodes = 7; // 路线代号 +} + +message CreateNSRecordsResponse { + repeated int64 nsRecordIds = 1; +} + // 修改记录 message UpdateNSRecordRequest { int64 nsRecordId = 1; @@ -65,7 +83,7 @@ message DeleteNSRecordRequest { } // 计算记录数量 -message CountAllEnabledNSRecordsRequest { +message CountAllNSRecordsRequest { int64 nsDomainId = 1; string type = 2; int64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替 @@ -74,7 +92,7 @@ message CountAllEnabledNSRecordsRequest { } // 读取单页记录 -message ListEnabledNSRecordsRequest { +message ListNSRecordsRequest { int64 nsDomainId = 1; string type = 2; int64 nsRouteId = 3 [deprecated = true]; // 使用nsRouteCode代替 @@ -84,16 +102,16 @@ message ListEnabledNSRecordsRequest { int64 size = 6; } -message ListEnabledNSRecordsResponse { +message ListNSRecordsResponse { repeated NSRecord nsRecords = 1; } // 查询单个记录信息 -message FindEnabledNSRecordRequest { +message FindNSRecordRequest { int64 nsRecordId = 1; } -message FindEnabledNSRecordResponse { +message FindNSRecordResponse { NSRecord nsRecord = 1; } diff --git a/pkg/rpc/protos/service_ns_route.proto b/pkg/rpc/protos/service_ns_route.proto index 6ece969..6e1cfd2 100644 --- a/pkg/rpc/protos/service_ns_route.proto +++ b/pkg/rpc/protos/service_ns_route.proto @@ -18,10 +18,10 @@ service NSRouteService { rpc deleteNSRoute (DeleteNSRouteRequest) returns (RPCSuccess); // 获取单个路线信息 - rpc findEnabledNSRoute (FindEnabledNSRouteRequest) returns (FindEnabledNSRouteResponse); + rpc findNSRoute (FindNSRouteRequest) returns (FindNSRouteResponse); // 读取所有线路 - rpc findAllEnabledNSRoutes (FindAllEnabledNSRoutesRequest) returns (FindAllEnabledNSRoutesResponse); + rpc findAllNSRoutes (FindAllNSRoutesRequest) returns (FindAllNSRoutesResponse); // 设置线路排序 rpc updateNSRouteOrders (UpdateNSRouteOrdersRequest) returns (RPCSuccess); @@ -56,22 +56,22 @@ message DeleteNSRouteRequest { } // 获取单个路线信息 -message FindEnabledNSRouteRequest { +message FindNSRouteRequest { int64 nsRouteId = 1; } -message FindEnabledNSRouteResponse { +message FindNSRouteResponse { NSRoute nsRoute = 1; } // 读取所有线路 -message FindAllEnabledNSRoutesRequest { +message FindAllNSRoutesRequest { int64 nsClusterId = 1; int64 nsDomainId = 2; int64 userId = 3; } -message FindAllEnabledNSRoutesResponse { +message FindAllNSRoutesResponse { repeated NSRoute nsRoutes = 1; } diff --git a/pkg/rpc/protos/service_order_method.proto b/pkg/rpc/protos/service_order_method.proto index c403838..ede5e22 100644 --- a/pkg/rpc/protos/service_order_method.proto +++ b/pkg/rpc/protos/service_order_method.proto @@ -27,7 +27,7 @@ service OrderMethodService { rpc findAllEnabledOrderMethods(FindAllEnabledOrderMethodsRequest) returns (FindAllEnabledOrderMethodsResponse); // 查找所有已启用的支付方式 - rpc findAllEnabledAndOnOrderMethods(FindAllEnabledAndOnOrderMethodsRequest) returns (FindAllEnabledAndOnOrderMethodsResponse); + rpc findAllAvailableOrderMethods(FindAllAvailableOrderMethodsRequest) returns (FindAllAvailableOrderMethodsResponse); } // 创建支付方式 @@ -85,10 +85,10 @@ message FindAllEnabledOrderMethodsResponse { } // 查找所有已启用的支付方式 -message FindAllEnabledAndOnOrderMethodsRequest { +message FindAllAvailableOrderMethodsRequest { } -message FindAllEnabledAndOnOrderMethodsResponse { +message FindAllAvailableOrderMethodsResponse { repeated OrderMethod orderMethods = 1; } \ No newline at end of file diff --git a/pkg/rpc/protos/service_user_ticket_category.proto b/pkg/rpc/protos/service_user_ticket_category.proto index 5b773be..db07b72 100644 --- a/pkg/rpc/protos/service_user_ticket_category.proto +++ b/pkg/rpc/protos/service_user_ticket_category.proto @@ -21,7 +21,7 @@ service UserTicketCategoryService { rpc findAllUserTicketCategories(FindAllUserTicketCategoriesRequest) returns (FindAllUserTicketCategoriesResponse); // 查找所有启用中的分类 - rpc findAllOnUserTicketCategories(FindAllOnUserTicketCategoriesRequest) returns (FindAllOnUserTicketCategoriesResponse); + rpc findAllAvailableUserTicketCategories(FindAllAvailableUserTicketCategoriesRequest) returns (FindAllAvailableUserTicketCategoriesResponse); // 查询单个分类 rpc findUserTicketCategory(FindUserTicketCategoryRequest) returns (FindUserTicketCategoryResponse); @@ -58,11 +58,11 @@ message FindAllUserTicketCategoriesResponse { } // 查找所有启用中的分类 -message FindAllOnUserTicketCategoriesRequest { +message FindAllAvailableUserTicketCategoriesRequest { } -message FindAllOnUserTicketCategoriesResponse { +message FindAllAvailableUserTicketCategoriesResponse { repeated UserTicketCategory userTicketCategories = 1; }