NS节点基本的DDoS防护

This commit is contained in:
GoEdgeLab
2022-08-22 15:10:48 +08:00
parent 6abdf13e2e
commit 5b14b02df8
11 changed files with 4540 additions and 3820 deletions

View File

@@ -29,7 +29,7 @@ const (
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// 根据集群查找所有节点
// 根据集群查找所有NS节点
type FindAllNSNodesWithNSClusterIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -124,7 +124,7 @@ func (x *FindAllNSNodesWithNSClusterIdResponse) GetNsNodes() []*NSNode {
return nil
}
// 所有可用的节点数量
// 所有可用的NS节点数量
type CountAllNSNodesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -163,7 +163,7 @@ func (*CountAllNSNodesRequest) Descriptor() ([]byte, []int) {
return file_service_ns_node_proto_rawDescGZIP(), []int{2}
}
// 计算匹配的节点数量
// 计算匹配的NS节点数量
type CountAllNSNodesMatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -235,7 +235,7 @@ func (x *CountAllNSNodesMatchRequest) GetKeyword() string {
return ""
}
// 列出单页节点
// 列出单页NS节点
type ListNSNodesMatchRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -370,7 +370,7 @@ func (x *ListNSNodesMatchResponse) GetNsNodes() []*NSNode {
return nil
}
// 计算需要升级的节点数量
// 计算需要升级的NS节点数量
type CountAllUpgradeNSNodesWithNSClusterIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -418,7 +418,7 @@ func (x *CountAllUpgradeNSNodesWithNSClusterIdRequest) GetNsClusterId() int64 {
return 0
}
// 创建节点
// 创建NS节点
type CreateNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -529,7 +529,7 @@ func (x *CreateNSNodeResponse) GetNsNodeId() int64 {
return 0
}
// 删除节点
// 删除NS节点
type DeleteNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -577,7 +577,7 @@ func (x *DeleteNSNodeRequest) GetNsNodeId() int64 {
return 0
}
// 获取单个节点信息
// 获取单个NS节点信息
type FindNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -672,7 +672,7 @@ func (x *FindNSNodeResponse) GetNsNode() *NSNode {
return nil
}
// 修改节点
// 修改NS节点
type UpdateNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -752,7 +752,7 @@ func (x *UpdateNSNodeRequest) GetIsOn() bool {
return false
}
// 安装节点
// 安装NS节点
type InstallNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -838,7 +838,7 @@ func (*InstallNSNodeResponse) Descriptor() ([]byte, []int) {
return file_service_ns_node_proto_rawDescGZIP(), []int{14}
}
// 读取节点安装状态
// 读取NS节点安装状态
type FindNSNodeInstallStatusRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -933,7 +933,7 @@ func (x *FindNSNodeInstallStatusResponse) GetInstallStatus() *NodeInstallStatus
return nil
}
// 修改节点安装状态
// 修改NS节点安装状态
type UpdateNSNodeIsInstalledRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -989,7 +989,7 @@ func (x *UpdateNSNodeIsInstalledRequest) GetIsInstalled() bool {
return false
}
// 更新节点状态
// 更新NS节点状态
type UpdateNSNodeStatusRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1045,7 +1045,7 @@ func (x *UpdateNSNodeStatusRequest) GetStatusJSON() []byte {
return nil
}
// 获取当前节点信息
// 获取当前NS节点信息
type FindCurrentNSNodeConfigRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1131,7 +1131,7 @@ func (x *FindCurrentNSNodeConfigResponse) GetNsNodeJSON() []byte {
return nil
}
// 检查新版本
// 检查NS节点新版本
type CheckNSNodeLatestVersionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1250,7 +1250,7 @@ func (x *CheckNSNodeLatestVersionResponse) GetNewVersion() string {
return ""
}
// 下载最新DNS节点安装文件
// 下载最新NS节点安装文件
type DownloadNSNodeInstallationFileRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1393,7 +1393,7 @@ func (x *DownloadNSNodeInstallationFileResponse) GetFilename() string {
return ""
}
// 节点stream
// NS节点stream
type NSNodeStreamMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1489,7 +1489,7 @@ func (x *NSNodeStreamMessage) GetMessage() string {
return ""
}
// 更改节点连接的API节点信息
// 更改NS节点连接的API节点信息
type UpdateNSNodeConnectedAPINodesRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1537,7 +1537,7 @@ func (x *UpdateNSNodeConnectedAPINodesRequest) GetApiNodeIds() []int64 {
return nil
}
// 修改节点登录信息
// 修改NS节点登录信息
type UpdateNSNodeLoginRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1593,7 +1593,7 @@ func (x *UpdateNSNodeLoginRequest) GetNodeLogin() *NodeLogin {
return nil
}
// 启动节点
// 启动NS节点
type StartNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1696,7 +1696,7 @@ func (x *StartNSNodeResponse) GetError() string {
return ""
}
// 停止节点
// 停止NS节点
type StopNSNodeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1799,6 +1799,157 @@ func (x *StopNSNodeResponse) GetError() string {
return ""
}
// 获取NS节点的DDoS设置
type FindNSNodeDDoSProtectionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsNodeId int64 `protobuf:"varint,1,opt,name=nsNodeId,proto3" json:"nsNodeId,omitempty"`
}
func (x *FindNSNodeDDoSProtectionRequest) Reset() {
*x = FindNSNodeDDoSProtectionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_node_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindNSNodeDDoSProtectionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindNSNodeDDoSProtectionRequest) ProtoMessage() {}
func (x *FindNSNodeDDoSProtectionRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_node_proto_msgTypes[32]
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 FindNSNodeDDoSProtectionRequest.ProtoReflect.Descriptor instead.
func (*FindNSNodeDDoSProtectionRequest) Descriptor() ([]byte, []int) {
return file_service_ns_node_proto_rawDescGZIP(), []int{32}
}
func (x *FindNSNodeDDoSProtectionRequest) GetNsNodeId() int64 {
if x != nil {
return x.NsNodeId
}
return 0
}
type FindNSNodeDDoSProtectionResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DdosProtectionJSON []byte `protobuf:"bytes,1,opt,name=ddosProtectionJSON,proto3" json:"ddosProtectionJSON,omitempty"`
}
func (x *FindNSNodeDDoSProtectionResponse) Reset() {
*x = FindNSNodeDDoSProtectionResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_node_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FindNSNodeDDoSProtectionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FindNSNodeDDoSProtectionResponse) ProtoMessage() {}
func (x *FindNSNodeDDoSProtectionResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_node_proto_msgTypes[33]
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 FindNSNodeDDoSProtectionResponse.ProtoReflect.Descriptor instead.
func (*FindNSNodeDDoSProtectionResponse) Descriptor() ([]byte, []int) {
return file_service_ns_node_proto_rawDescGZIP(), []int{33}
}
func (x *FindNSNodeDDoSProtectionResponse) GetDdosProtectionJSON() []byte {
if x != nil {
return x.DdosProtectionJSON
}
return nil
}
// 修改NS节点的DDoS设置
type UpdateNSNodeDDoSProtectionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NsNodeId int64 `protobuf:"varint,1,opt,name=nsNodeId,proto3" json:"nsNodeId,omitempty"`
DdosProtectionJSON []byte `protobuf:"bytes,2,opt,name=ddosProtectionJSON,proto3" json:"ddosProtectionJSON,omitempty"`
}
func (x *UpdateNSNodeDDoSProtectionRequest) Reset() {
*x = UpdateNSNodeDDoSProtectionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_ns_node_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateNSNodeDDoSProtectionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateNSNodeDDoSProtectionRequest) ProtoMessage() {}
func (x *UpdateNSNodeDDoSProtectionRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_ns_node_proto_msgTypes[34]
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 UpdateNSNodeDDoSProtectionRequest.ProtoReflect.Descriptor instead.
func (*UpdateNSNodeDDoSProtectionRequest) Descriptor() ([]byte, []int) {
return file_service_ns_node_proto_rawDescGZIP(), []int{34}
}
func (x *UpdateNSNodeDDoSProtectionRequest) GetNsNodeId() int64 {
if x != nil {
return x.NsNodeId
}
return 0
}
func (x *UpdateNSNodeDDoSProtectionRequest) GetDdosProtectionJSON() []byte {
if x != nil {
return x.DdosProtectionJSON
}
return nil
}
var File_service_ns_node_proto protoreflect.FileDescriptor
var file_service_ns_node_proto_rawDesc = []byte{
@@ -1988,118 +2139,146 @@ var file_service_ns_node_proto_rawDesc = []byte{
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, 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,
0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x3d, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53,
0x4e, 0x6f, 0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69,
0x6f, 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, 0x22, 0x52, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e,
0x6f, 0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x64, 0x6f,
0x73, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x64, 0x64, 0x6f, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x65,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x22, 0x6f, 0x0a, 0x21, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50, 0x72, 0x6f,
0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 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, 0x2e, 0x0a, 0x12, 0x64, 0x64,
0x6f, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x12, 0x64, 0x64, 0x6f, 0x73, 0x50, 0x72, 0x6f, 0x74,
0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4a, 0x53, 0x4f, 0x4e, 0x32, 0xb3, 0x0f, 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, 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,
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, 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,
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,
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, 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,
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, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f,
0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65,
0x44, 0x44, 0x6f, 0x53, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4e,
0x53, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50, 0x72, 0x6f, 0x74, 0x65, 0x63, 0x74,
0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x1a, 0x75,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50,
0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x53, 0x4e, 0x6f, 0x64, 0x65, 0x44, 0x44, 0x6f, 0x53, 0x50,
0x72, 0x6f, 0x74, 0x65, 0x63, 0x74, 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, 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,
}
@@ -2115,7 +2294,7 @@ func file_service_ns_node_proto_rawDescGZIP() []byte {
return file_service_ns_node_proto_rawDescData
}
var file_service_ns_node_proto_msgTypes = make([]protoimpl.MessageInfo, 32)
var file_service_ns_node_proto_msgTypes = make([]protoimpl.MessageInfo, 35)
var file_service_ns_node_proto_goTypes = []interface{}{
(*FindAllNSNodesWithNSClusterIdRequest)(nil), // 0: pb.FindAllNSNodesWithNSClusterIdRequest
(*FindAllNSNodesWithNSClusterIdResponse)(nil), // 1: pb.FindAllNSNodesWithNSClusterIdResponse
@@ -2149,20 +2328,23 @@ var file_service_ns_node_proto_goTypes = []interface{}{
(*StartNSNodeResponse)(nil), // 29: pb.StartNSNodeResponse
(*StopNSNodeRequest)(nil), // 30: pb.StopNSNodeRequest
(*StopNSNodeResponse)(nil), // 31: pb.StopNSNodeResponse
(*NSNode)(nil), // 32: pb.NSNode
(*NodeLogin)(nil), // 33: pb.NodeLogin
(*NodeInstallStatus)(nil), // 34: pb.NodeInstallStatus
(*RPCCountResponse)(nil), // 35: pb.RPCCountResponse
(*RPCSuccess)(nil), // 36: pb.RPCSuccess
(*FindNSNodeDDoSProtectionRequest)(nil), // 32: pb.FindNSNodeDDoSProtectionRequest
(*FindNSNodeDDoSProtectionResponse)(nil), // 33: pb.FindNSNodeDDoSProtectionResponse
(*UpdateNSNodeDDoSProtectionRequest)(nil), // 34: pb.UpdateNSNodeDDoSProtectionRequest
(*NSNode)(nil), // 35: pb.NSNode
(*NodeLogin)(nil), // 36: pb.NodeLogin
(*NodeInstallStatus)(nil), // 37: pb.NodeInstallStatus
(*RPCCountResponse)(nil), // 38: pb.RPCCountResponse
(*RPCSuccess)(nil), // 39: pb.RPCSuccess
}
var file_service_ns_node_proto_depIdxs = []int32{
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.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
35, // 0: pb.FindAllNSNodesWithNSClusterIdResponse.nsNodes:type_name -> pb.NSNode
35, // 1: pb.ListNSNodesMatchResponse.nsNodes:type_name -> pb.NSNode
36, // 2: pb.CreateNSNodeRequest.nodeLogin:type_name -> pb.NodeLogin
35, // 3: pb.FindNSNodeResponse.nsNode:type_name -> pb.NSNode
36, // 4: pb.UpdateNSNodeRequest.nodeLogin:type_name -> pb.NodeLogin
37, // 5: pb.FindNSNodeInstallStatusResponse.installStatus:type_name -> pb.NodeInstallStatus
36, // 6: pb.UpdateNSNodeLoginRequest.nodeLogin:type_name -> pb.NodeLogin
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
@@ -2185,30 +2367,34 @@ 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.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.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
36, // 40: pb.NSNodeService.updateNSNodeIsInstalled:output_type -> pb.RPCSuccess
36, // 41: pb.NSNodeService.updateNSNodeStatus:output_type -> pb.RPCSuccess
20, // 42: pb.NSNodeService.findCurrentNSNodeConfig:output_type -> pb.FindCurrentNSNodeConfigResponse
22, // 43: pb.NSNodeService.checkNSNodeLatestVersion:output_type -> pb.CheckNSNodeLatestVersionResponse
24, // 44: pb.NSNodeService.downloadNSNodeInstallationFile:output_type -> pb.DownloadNSNodeInstallationFileResponse
25, // 45: pb.NSNodeService.nsNodeStream:output_type -> pb.NSNodeStreamMessage
25, // 46: pb.NSNodeService.sendCommandToNSNode:output_type -> pb.NSNodeStreamMessage
36, // 47: pb.NSNodeService.updateNSNodeConnectedAPINodes:output_type -> pb.RPCSuccess
36, // 48: pb.NSNodeService.updateNSNodeLogin:output_type -> pb.RPCSuccess
29, // 49: pb.NSNodeService.startNSNode:output_type -> pb.StartNSNodeResponse
31, // 50: pb.NSNodeService.stopNSNode:output_type -> pb.StopNSNodeResponse
29, // [29:51] is the sub-list for method output_type
7, // [7:29] is the sub-list for method input_type
32, // 29: pb.NSNodeService.findNSNodeDDoSProtection:input_type -> pb.FindNSNodeDDoSProtectionRequest
34, // 30: pb.NSNodeService.updateNSNodeDDoSProtection:input_type -> pb.UpdateNSNodeDDoSProtectionRequest
1, // 31: pb.NSNodeService.findAllNSNodesWithNSClusterId:output_type -> pb.FindAllNSNodesWithNSClusterIdResponse
38, // 32: pb.NSNodeService.countAllNSNodes:output_type -> pb.RPCCountResponse
38, // 33: pb.NSNodeService.countAllNSNodesMatch:output_type -> pb.RPCCountResponse
5, // 34: pb.NSNodeService.listNSNodesMatch:output_type -> pb.ListNSNodesMatchResponse
38, // 35: pb.NSNodeService.countAllUpgradeNSNodesWithNSClusterId:output_type -> pb.RPCCountResponse
8, // 36: pb.NSNodeService.createNSNode:output_type -> pb.CreateNSNodeResponse
39, // 37: pb.NSNodeService.deleteNSNode:output_type -> pb.RPCSuccess
11, // 38: pb.NSNodeService.findNSNode:output_type -> pb.FindNSNodeResponse
39, // 39: pb.NSNodeService.updateNSNode:output_type -> pb.RPCSuccess
14, // 40: pb.NSNodeService.installNSNode:output_type -> pb.InstallNSNodeResponse
16, // 41: pb.NSNodeService.findNSNodeInstallStatus:output_type -> pb.FindNSNodeInstallStatusResponse
39, // 42: pb.NSNodeService.updateNSNodeIsInstalled:output_type -> pb.RPCSuccess
39, // 43: pb.NSNodeService.updateNSNodeStatus:output_type -> pb.RPCSuccess
20, // 44: pb.NSNodeService.findCurrentNSNodeConfig:output_type -> pb.FindCurrentNSNodeConfigResponse
22, // 45: pb.NSNodeService.checkNSNodeLatestVersion:output_type -> pb.CheckNSNodeLatestVersionResponse
24, // 46: pb.NSNodeService.downloadNSNodeInstallationFile:output_type -> pb.DownloadNSNodeInstallationFileResponse
25, // 47: pb.NSNodeService.nsNodeStream:output_type -> pb.NSNodeStreamMessage
25, // 48: pb.NSNodeService.sendCommandToNSNode:output_type -> pb.NSNodeStreamMessage
39, // 49: pb.NSNodeService.updateNSNodeConnectedAPINodes:output_type -> pb.RPCSuccess
39, // 50: pb.NSNodeService.updateNSNodeLogin:output_type -> pb.RPCSuccess
29, // 51: pb.NSNodeService.startNSNode:output_type -> pb.StartNSNodeResponse
31, // 52: pb.NSNodeService.stopNSNode:output_type -> pb.StopNSNodeResponse
33, // 53: pb.NSNodeService.findNSNodeDDoSProtection:output_type -> pb.FindNSNodeDDoSProtectionResponse
39, // 54: pb.NSNodeService.updateNSNodeDDoSProtection:output_type -> pb.RPCSuccess
31, // [31:55] is the sub-list for method output_type
7, // [7:31] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
@@ -2608,6 +2794,42 @@ func file_service_ns_node_proto_init() {
return nil
}
}
file_service_ns_node_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSNodeDDoSProtectionRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_node_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindNSNodeDDoSProtectionResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_ns_node_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateNSNodeDDoSProtectionRequest); 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{
@@ -2615,7 +2837,7 @@ func file_service_ns_node_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_ns_node_proto_rawDesc,
NumEnums: 0,
NumMessages: 32,
NumMessages: 35,
NumExtensions: 0,
NumServices: 1,
},
@@ -2641,50 +2863,54 @@ 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 {
// 根据集群查找所有节点
// 根据集群查找所有NS节点
FindAllNSNodesWithNSClusterId(ctx context.Context, in *FindAllNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*FindAllNSNodesWithNSClusterIdResponse, error)
// 所有可用的节点数量
// 所有可用的NS节点数量
CountAllNSNodes(ctx context.Context, in *CountAllNSNodesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 计算匹配的节点数量
// 计算匹配的NS节点数量
CountAllNSNodesMatch(ctx context.Context, in *CountAllNSNodesMatchRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 列出单页节点
// 列出单页NS节点
ListNSNodesMatch(ctx context.Context, in *ListNSNodesMatchRequest, opts ...grpc.CallOption) (*ListNSNodesMatchResponse, error)
// 计算需要升级的节点数量
// 计算需要升级的NS节点数量
CountAllUpgradeNSNodesWithNSClusterId(ctx context.Context, in *CountAllUpgradeNSNodesWithNSClusterIdRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
// 创建节点
// 创建NS节点
CreateNSNode(ctx context.Context, in *CreateNSNodeRequest, opts ...grpc.CallOption) (*CreateNSNodeResponse, error)
// 删除节点
// 删除NS节点
DeleteNSNode(ctx context.Context, in *DeleteNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 获取单个节点信息
// 获取单个NS节点信息
FindNSNode(ctx context.Context, in *FindNSNodeRequest, opts ...grpc.CallOption) (*FindNSNodeResponse, error)
// 修改节点
// 修改NS节点
UpdateNSNode(ctx context.Context, in *UpdateNSNodeRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 安装节点
// 安装NS节点
InstallNSNode(ctx context.Context, in *InstallNSNodeRequest, opts ...grpc.CallOption) (*InstallNSNodeResponse, error)
// 读取节点安装状态
// 读取NS节点安装状态
FindNSNodeInstallStatus(ctx context.Context, in *FindNSNodeInstallStatusRequest, opts ...grpc.CallOption) (*FindNSNodeInstallStatusResponse, error)
// 修改节点安装状态
// 修改NS节点安装状态
UpdateNSNodeIsInstalled(ctx context.Context, in *UpdateNSNodeIsInstalledRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 更新节点状态
// 更新NS节点状态
UpdateNSNodeStatus(ctx context.Context, in *UpdateNSNodeStatusRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 获取当前节点信息
// 获取当前NS节点信息
FindCurrentNSNodeConfig(ctx context.Context, in *FindCurrentNSNodeConfigRequest, opts ...grpc.CallOption) (*FindCurrentNSNodeConfigResponse, error)
// 检查新版本
// 检查NS节点新版本
CheckNSNodeLatestVersion(ctx context.Context, in *CheckNSNodeLatestVersionRequest, opts ...grpc.CallOption) (*CheckNSNodeLatestVersionResponse, error)
// 下载最新DNS节点安装文件
// 下载最新NS节点安装文件
DownloadNSNodeInstallationFile(ctx context.Context, in *DownloadNSNodeInstallationFileRequest, opts ...grpc.CallOption) (*DownloadNSNodeInstallationFileResponse, error)
// 节点stream
// NS节点stream
NsNodeStream(ctx context.Context, opts ...grpc.CallOption) (NSNodeService_NsNodeStreamClient, error)
// 向节点发送命令
// 向NS节点发送命令
SendCommandToNSNode(ctx context.Context, in *NSNodeStreamMessage, opts ...grpc.CallOption) (*NSNodeStreamMessage, error)
// 更改节点连接的API节点信息
// 更改NS节点连接的API节点信息
UpdateNSNodeConnectedAPINodes(ctx context.Context, in *UpdateNSNodeConnectedAPINodesRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 修改节点登录信息
// 修改NS节点登录信息
UpdateNSNodeLogin(ctx context.Context, in *UpdateNSNodeLoginRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 启动节点
// 启动NS节点
StartNSNode(ctx context.Context, in *StartNSNodeRequest, opts ...grpc.CallOption) (*StartNSNodeResponse, error)
// 停止节点
// 停止NS节点
StopNSNode(ctx context.Context, in *StopNSNodeRequest, opts ...grpc.CallOption) (*StopNSNodeResponse, error)
// 获取NS节点的DDoS设置
FindNSNodeDDoSProtection(ctx context.Context, in *FindNSNodeDDoSProtectionRequest, opts ...grpc.CallOption) (*FindNSNodeDDoSProtectionResponse, error)
// 修改NS节点的DDoS设置
UpdateNSNodeDDoSProtection(ctx context.Context, in *UpdateNSNodeDDoSProtectionRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
}
type nSNodeServiceClient struct {
@@ -2915,52 +3141,74 @@ func (c *nSNodeServiceClient) StopNSNode(ctx context.Context, in *StopNSNodeRequ
return out, nil
}
func (c *nSNodeServiceClient) FindNSNodeDDoSProtection(ctx context.Context, in *FindNSNodeDDoSProtectionRequest, opts ...grpc.CallOption) (*FindNSNodeDDoSProtectionResponse, error) {
out := new(FindNSNodeDDoSProtectionResponse)
err := c.cc.Invoke(ctx, "/pb.NSNodeService/findNSNodeDDoSProtection", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *nSNodeServiceClient) UpdateNSNodeDDoSProtection(ctx context.Context, in *UpdateNSNodeDDoSProtectionRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.NSNodeService/updateNSNodeDDoSProtection", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// NSNodeServiceServer is the server API for NSNodeService service.
type NSNodeServiceServer interface {
// 根据集群查找所有节点
// 根据集群查找所有NS节点
FindAllNSNodesWithNSClusterId(context.Context, *FindAllNSNodesWithNSClusterIdRequest) (*FindAllNSNodesWithNSClusterIdResponse, error)
// 所有可用的节点数量
// 所有可用的NS节点数量
CountAllNSNodes(context.Context, *CountAllNSNodesRequest) (*RPCCountResponse, error)
// 计算匹配的节点数量
// 计算匹配的NS节点数量
CountAllNSNodesMatch(context.Context, *CountAllNSNodesMatchRequest) (*RPCCountResponse, error)
// 列出单页节点
// 列出单页NS节点
ListNSNodesMatch(context.Context, *ListNSNodesMatchRequest) (*ListNSNodesMatchResponse, error)
// 计算需要升级的节点数量
// 计算需要升级的NS节点数量
CountAllUpgradeNSNodesWithNSClusterId(context.Context, *CountAllUpgradeNSNodesWithNSClusterIdRequest) (*RPCCountResponse, error)
// 创建节点
// 创建NS节点
CreateNSNode(context.Context, *CreateNSNodeRequest) (*CreateNSNodeResponse, error)
// 删除节点
// 删除NS节点
DeleteNSNode(context.Context, *DeleteNSNodeRequest) (*RPCSuccess, error)
// 获取单个节点信息
// 获取单个NS节点信息
FindNSNode(context.Context, *FindNSNodeRequest) (*FindNSNodeResponse, error)
// 修改节点
// 修改NS节点
UpdateNSNode(context.Context, *UpdateNSNodeRequest) (*RPCSuccess, error)
// 安装节点
// 安装NS节点
InstallNSNode(context.Context, *InstallNSNodeRequest) (*InstallNSNodeResponse, error)
// 读取节点安装状态
// 读取NS节点安装状态
FindNSNodeInstallStatus(context.Context, *FindNSNodeInstallStatusRequest) (*FindNSNodeInstallStatusResponse, error)
// 修改节点安装状态
// 修改NS节点安装状态
UpdateNSNodeIsInstalled(context.Context, *UpdateNSNodeIsInstalledRequest) (*RPCSuccess, error)
// 更新节点状态
// 更新NS节点状态
UpdateNSNodeStatus(context.Context, *UpdateNSNodeStatusRequest) (*RPCSuccess, error)
// 获取当前节点信息
// 获取当前NS节点信息
FindCurrentNSNodeConfig(context.Context, *FindCurrentNSNodeConfigRequest) (*FindCurrentNSNodeConfigResponse, error)
// 检查新版本
// 检查NS节点新版本
CheckNSNodeLatestVersion(context.Context, *CheckNSNodeLatestVersionRequest) (*CheckNSNodeLatestVersionResponse, error)
// 下载最新DNS节点安装文件
// 下载最新NS节点安装文件
DownloadNSNodeInstallationFile(context.Context, *DownloadNSNodeInstallationFileRequest) (*DownloadNSNodeInstallationFileResponse, error)
// 节点stream
// NS节点stream
NsNodeStream(NSNodeService_NsNodeStreamServer) error
// 向节点发送命令
// 向NS节点发送命令
SendCommandToNSNode(context.Context, *NSNodeStreamMessage) (*NSNodeStreamMessage, error)
// 更改节点连接的API节点信息
// 更改NS节点连接的API节点信息
UpdateNSNodeConnectedAPINodes(context.Context, *UpdateNSNodeConnectedAPINodesRequest) (*RPCSuccess, error)
// 修改节点登录信息
// 修改NS节点登录信息
UpdateNSNodeLogin(context.Context, *UpdateNSNodeLoginRequest) (*RPCSuccess, error)
// 启动节点
// 启动NS节点
StartNSNode(context.Context, *StartNSNodeRequest) (*StartNSNodeResponse, error)
// 停止节点
// 停止NS节点
StopNSNode(context.Context, *StopNSNodeRequest) (*StopNSNodeResponse, error)
// 获取NS节点的DDoS设置
FindNSNodeDDoSProtection(context.Context, *FindNSNodeDDoSProtectionRequest) (*FindNSNodeDDoSProtectionResponse, error)
// 修改NS节点的DDoS设置
UpdateNSNodeDDoSProtection(context.Context, *UpdateNSNodeDDoSProtectionRequest) (*RPCSuccess, error)
}
// UnimplementedNSNodeServiceServer can be embedded to have forward compatible implementations.
@@ -3033,6 +3281,12 @@ func (*UnimplementedNSNodeServiceServer) StartNSNode(context.Context, *StartNSNo
func (*UnimplementedNSNodeServiceServer) StopNSNode(context.Context, *StopNSNodeRequest) (*StopNSNodeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StopNSNode not implemented")
}
func (*UnimplementedNSNodeServiceServer) FindNSNodeDDoSProtection(context.Context, *FindNSNodeDDoSProtectionRequest) (*FindNSNodeDDoSProtectionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindNSNodeDDoSProtection not implemented")
}
func (*UnimplementedNSNodeServiceServer) UpdateNSNodeDDoSProtection(context.Context, *UpdateNSNodeDDoSProtectionRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateNSNodeDDoSProtection not implemented")
}
func RegisterNSNodeServiceServer(s *grpc.Server, srv NSNodeServiceServer) {
s.RegisterService(&_NSNodeService_serviceDesc, srv)
@@ -3442,6 +3696,42 @@ func _NSNodeService_StopNSNode_Handler(srv interface{}, ctx context.Context, dec
return interceptor(ctx, in, info, handler)
}
func _NSNodeService_FindNSNodeDDoSProtection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FindNSNodeDDoSProtectionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSNodeServiceServer).FindNSNodeDDoSProtection(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSNodeService/FindNSNodeDDoSProtection",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSNodeServiceServer).FindNSNodeDDoSProtection(ctx, req.(*FindNSNodeDDoSProtectionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NSNodeService_UpdateNSNodeDDoSProtection_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateNSNodeDDoSProtectionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NSNodeServiceServer).UpdateNSNodeDDoSProtection(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.NSNodeService/UpdateNSNodeDDoSProtection",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NSNodeServiceServer).UpdateNSNodeDDoSProtection(ctx, req.(*UpdateNSNodeDDoSProtectionRequest))
}
return interceptor(ctx, in, info, handler)
}
var _NSNodeService_serviceDesc = grpc.ServiceDesc{
ServiceName: "pb.NSNodeService",
HandlerType: (*NSNodeServiceServer)(nil),
@@ -3530,6 +3820,14 @@ var _NSNodeService_serviceDesc = grpc.ServiceDesc{
MethodName: "stopNSNode",
Handler: _NSNodeService_StopNSNode_Handler,
},
{
MethodName: "findNSNodeDDoSProtection",
Handler: _NSNodeService_FindNSNodeDDoSProtection_Handler,
},
{
MethodName: "updateNSNodeDDoSProtection",
Handler: _NSNodeService_UpdateNSNodeDDoSProtection_Handler,
},
},
Streams: []grpc.StreamDesc{
{