diff --git a/pkg/rpc/pb/service_node_ip_address.pb.go b/pkg/rpc/pb/service_node_ip_address.pb.go index 3d32ff3..41ca8ef 100644 --- a/pkg/rpc/pb/service_node_ip_address.pb.go +++ b/pkg/rpc/pb/service_node_ip_address.pb.go @@ -379,7 +379,7 @@ func (*DisableNodeIPAddressResponse) Descriptor() ([]byte, []int) { } // 禁用节点的所有IP地址 -type DisableAllIPAddressesWithNodeIdRequest struct { +type DisableAllNodeIPAddressesWithNodeIdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -388,8 +388,8 @@ type DisableAllIPAddressesWithNodeIdRequest struct { Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` } -func (x *DisableAllIPAddressesWithNodeIdRequest) Reset() { - *x = DisableAllIPAddressesWithNodeIdRequest{} +func (x *DisableAllNodeIPAddressesWithNodeIdRequest) Reset() { + *x = DisableAllNodeIPAddressesWithNodeIdRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -397,13 +397,13 @@ func (x *DisableAllIPAddressesWithNodeIdRequest) Reset() { } } -func (x *DisableAllIPAddressesWithNodeIdRequest) String() string { +func (x *DisableAllNodeIPAddressesWithNodeIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DisableAllIPAddressesWithNodeIdRequest) ProtoMessage() {} +func (*DisableAllNodeIPAddressesWithNodeIdRequest) ProtoMessage() {} -func (x *DisableAllIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message { +func (x *DisableAllNodeIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -415,33 +415,33 @@ func (x *DisableAllIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use DisableAllIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead. -func (*DisableAllIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use DisableAllNodeIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead. +func (*DisableAllNodeIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{6} } -func (x *DisableAllIPAddressesWithNodeIdRequest) GetNodeId() int64 { +func (x *DisableAllNodeIPAddressesWithNodeIdRequest) GetNodeId() int64 { if x != nil { return x.NodeId } return 0 } -func (x *DisableAllIPAddressesWithNodeIdRequest) GetRole() string { +func (x *DisableAllNodeIPAddressesWithNodeIdRequest) GetRole() string { if x != nil { return x.Role } return "" } -type DisableAllIPAddressesWithNodeIdResponse struct { +type DisableAllNodeIPAddressesWithNodeIdResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } -func (x *DisableAllIPAddressesWithNodeIdResponse) Reset() { - *x = DisableAllIPAddressesWithNodeIdResponse{} +func (x *DisableAllNodeIPAddressesWithNodeIdResponse) Reset() { + *x = DisableAllNodeIPAddressesWithNodeIdResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -449,13 +449,13 @@ func (x *DisableAllIPAddressesWithNodeIdResponse) Reset() { } } -func (x *DisableAllIPAddressesWithNodeIdResponse) String() string { +func (x *DisableAllNodeIPAddressesWithNodeIdResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*DisableAllIPAddressesWithNodeIdResponse) ProtoMessage() {} +func (*DisableAllNodeIPAddressesWithNodeIdResponse) ProtoMessage() {} -func (x *DisableAllIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message { +func (x *DisableAllNodeIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -467,8 +467,8 @@ func (x *DisableAllIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use DisableAllIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead. -func (*DisableAllIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use DisableAllNodeIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead. +func (*DisableAllNodeIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{7} } @@ -568,7 +568,7 @@ func (x *FindEnabledNodeIPAddressResponse) GetNodeIPAddress() *NodeIPAddress { } // 查找节点的所有地址 -type FindAllEnabledIPAddressesWithNodeIdRequest struct { +type FindAllEnabledNodeIPAddressesWithNodeIdRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -577,8 +577,8 @@ type FindAllEnabledIPAddressesWithNodeIdRequest struct { Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` } -func (x *FindAllEnabledIPAddressesWithNodeIdRequest) Reset() { - *x = FindAllEnabledIPAddressesWithNodeIdRequest{} +func (x *FindAllEnabledNodeIPAddressesWithNodeIdRequest) Reset() { + *x = FindAllEnabledNodeIPAddressesWithNodeIdRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -586,13 +586,13 @@ func (x *FindAllEnabledIPAddressesWithNodeIdRequest) Reset() { } } -func (x *FindAllEnabledIPAddressesWithNodeIdRequest) String() string { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledIPAddressesWithNodeIdRequest) ProtoMessage() {} +func (*FindAllEnabledNodeIPAddressesWithNodeIdRequest) ProtoMessage() {} -func (x *FindAllEnabledIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -604,35 +604,35 @@ func (x *FindAllEnabledIPAddressesWithNodeIdRequest) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead. -func (*FindAllEnabledIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllEnabledNodeIPAddressesWithNodeIdRequest.ProtoReflect.Descriptor instead. +func (*FindAllEnabledNodeIPAddressesWithNodeIdRequest) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{10} } -func (x *FindAllEnabledIPAddressesWithNodeIdRequest) GetNodeId() int64 { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdRequest) GetNodeId() int64 { if x != nil { return x.NodeId } return 0 } -func (x *FindAllEnabledIPAddressesWithNodeIdRequest) GetRole() string { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdRequest) GetRole() string { if x != nil { return x.Role } return "" } -type FindAllEnabledIPAddressesWithNodeIdResponse struct { +type FindAllEnabledNodeIPAddressesWithNodeIdResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Addresses []*NodeIPAddress `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` + NodeIPAddresses []*NodeIPAddress `protobuf:"bytes,1,rep,name=nodeIPAddresses,proto3" json:"nodeIPAddresses,omitempty"` } -func (x *FindAllEnabledIPAddressesWithNodeIdResponse) Reset() { - *x = FindAllEnabledIPAddressesWithNodeIdResponse{} +func (x *FindAllEnabledNodeIPAddressesWithNodeIdResponse) Reset() { + *x = FindAllEnabledNodeIPAddressesWithNodeIdResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -640,13 +640,13 @@ func (x *FindAllEnabledIPAddressesWithNodeIdResponse) Reset() { } } -func (x *FindAllEnabledIPAddressesWithNodeIdResponse) String() string { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*FindAllEnabledIPAddressesWithNodeIdResponse) ProtoMessage() {} +func (*FindAllEnabledNodeIPAddressesWithNodeIdResponse) ProtoMessage() {} -func (x *FindAllEnabledIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -658,20 +658,20 @@ func (x *FindAllEnabledIPAddressesWithNodeIdResponse) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use FindAllEnabledIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead. -func (*FindAllEnabledIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use FindAllEnabledNodeIPAddressesWithNodeIdResponse.ProtoReflect.Descriptor instead. +func (*FindAllEnabledNodeIPAddressesWithNodeIdResponse) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{11} } -func (x *FindAllEnabledIPAddressesWithNodeIdResponse) GetAddresses() []*NodeIPAddress { +func (x *FindAllEnabledNodeIPAddressesWithNodeIdResponse) GetNodeIPAddresses() []*NodeIPAddress { if x != nil { - return x.Addresses + return x.NodeIPAddresses } return nil } // 计算IP地址数量 -type CountAllEnabledIPAddressesRequest struct { +type CountAllEnabledNodeIPAddressesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -682,8 +682,8 @@ type CountAllEnabledIPAddressesRequest struct { Keyword string `protobuf:"bytes,4,opt,name=keyword,proto3" json:"keyword,omitempty"` } -func (x *CountAllEnabledIPAddressesRequest) Reset() { - *x = CountAllEnabledIPAddressesRequest{} +func (x *CountAllEnabledNodeIPAddressesRequest) Reset() { + *x = CountAllEnabledNodeIPAddressesRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -691,13 +691,13 @@ func (x *CountAllEnabledIPAddressesRequest) Reset() { } } -func (x *CountAllEnabledIPAddressesRequest) String() string { +func (x *CountAllEnabledNodeIPAddressesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CountAllEnabledIPAddressesRequest) ProtoMessage() {} +func (*CountAllEnabledNodeIPAddressesRequest) ProtoMessage() {} -func (x *CountAllEnabledIPAddressesRequest) ProtoReflect() protoreflect.Message { +func (x *CountAllEnabledNodeIPAddressesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -709,33 +709,33 @@ func (x *CountAllEnabledIPAddressesRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use CountAllEnabledIPAddressesRequest.ProtoReflect.Descriptor instead. -func (*CountAllEnabledIPAddressesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use CountAllEnabledNodeIPAddressesRequest.ProtoReflect.Descriptor instead. +func (*CountAllEnabledNodeIPAddressesRequest) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{12} } -func (x *CountAllEnabledIPAddressesRequest) GetNodeClusterId() int64 { +func (x *CountAllEnabledNodeIPAddressesRequest) GetNodeClusterId() int64 { if x != nil { return x.NodeClusterId } return 0 } -func (x *CountAllEnabledIPAddressesRequest) GetRole() string { +func (x *CountAllEnabledNodeIPAddressesRequest) GetRole() string { if x != nil { return x.Role } return "" } -func (x *CountAllEnabledIPAddressesRequest) GetUpState() int32 { +func (x *CountAllEnabledNodeIPAddressesRequest) GetUpState() int32 { if x != nil { return x.UpState } return 0 } -func (x *CountAllEnabledIPAddressesRequest) GetKeyword() string { +func (x *CountAllEnabledNodeIPAddressesRequest) GetKeyword() string { if x != nil { return x.Keyword } @@ -743,7 +743,7 @@ func (x *CountAllEnabledIPAddressesRequest) GetKeyword() string { } // 列出单页IP地址 -type ListEnabledIPAddressesRequest struct { +type ListEnabledNodeIPAddressesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -756,8 +756,8 @@ type ListEnabledIPAddressesRequest struct { Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` } -func (x *ListEnabledIPAddressesRequest) Reset() { - *x = ListEnabledIPAddressesRequest{} +func (x *ListEnabledNodeIPAddressesRequest) Reset() { + *x = ListEnabledNodeIPAddressesRequest{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -765,13 +765,13 @@ func (x *ListEnabledIPAddressesRequest) Reset() { } } -func (x *ListEnabledIPAddressesRequest) String() string { +func (x *ListEnabledNodeIPAddressesRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledIPAddressesRequest) ProtoMessage() {} +func (*ListEnabledNodeIPAddressesRequest) ProtoMessage() {} -func (x *ListEnabledIPAddressesRequest) ProtoReflect() protoreflect.Message { +func (x *ListEnabledNodeIPAddressesRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -783,54 +783,54 @@ func (x *ListEnabledIPAddressesRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledIPAddressesRequest.ProtoReflect.Descriptor instead. -func (*ListEnabledIPAddressesRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use ListEnabledNodeIPAddressesRequest.ProtoReflect.Descriptor instead. +func (*ListEnabledNodeIPAddressesRequest) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{13} } -func (x *ListEnabledIPAddressesRequest) GetNodeClusterId() int64 { +func (x *ListEnabledNodeIPAddressesRequest) GetNodeClusterId() int64 { if x != nil { return x.NodeClusterId } return 0 } -func (x *ListEnabledIPAddressesRequest) GetRole() string { +func (x *ListEnabledNodeIPAddressesRequest) GetRole() string { if x != nil { return x.Role } return "" } -func (x *ListEnabledIPAddressesRequest) GetUpState() int32 { +func (x *ListEnabledNodeIPAddressesRequest) GetUpState() int32 { if x != nil { return x.UpState } return 0 } -func (x *ListEnabledIPAddressesRequest) GetKeyword() string { +func (x *ListEnabledNodeIPAddressesRequest) GetKeyword() string { if x != nil { return x.Keyword } return "" } -func (x *ListEnabledIPAddressesRequest) GetOffset() int64 { +func (x *ListEnabledNodeIPAddressesRequest) GetOffset() int64 { if x != nil { return x.Offset } return 0 } -func (x *ListEnabledIPAddressesRequest) GetSize() int64 { +func (x *ListEnabledNodeIPAddressesRequest) GetSize() int64 { if x != nil { return x.Size } return 0 } -type ListEnabledIPAddressesResponse struct { +type ListEnabledNodeIPAddressesResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -838,8 +838,8 @@ type ListEnabledIPAddressesResponse struct { NodeIPAddresses []*NodeIPAddress `protobuf:"bytes,1,rep,name=nodeIPAddresses,proto3" json:"nodeIPAddresses,omitempty"` } -func (x *ListEnabledIPAddressesResponse) Reset() { - *x = ListEnabledIPAddressesResponse{} +func (x *ListEnabledNodeIPAddressesResponse) Reset() { + *x = ListEnabledNodeIPAddressesResponse{} if protoimpl.UnsafeEnabled { mi := &file_service_node_ip_address_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -847,13 +847,13 @@ func (x *ListEnabledIPAddressesResponse) Reset() { } } -func (x *ListEnabledIPAddressesResponse) String() string { +func (x *ListEnabledNodeIPAddressesResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ListEnabledIPAddressesResponse) ProtoMessage() {} +func (*ListEnabledNodeIPAddressesResponse) ProtoMessage() {} -func (x *ListEnabledIPAddressesResponse) ProtoReflect() protoreflect.Message { +func (x *ListEnabledNodeIPAddressesResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_ip_address_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -865,18 +865,122 @@ func (x *ListEnabledIPAddressesResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEnabledIPAddressesResponse.ProtoReflect.Descriptor instead. -func (*ListEnabledIPAddressesResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use ListEnabledNodeIPAddressesResponse.ProtoReflect.Descriptor instead. +func (*ListEnabledNodeIPAddressesResponse) Descriptor() ([]byte, []int) { return file_service_node_ip_address_proto_rawDescGZIP(), []int{14} } -func (x *ListEnabledIPAddressesResponse) GetNodeIPAddresses() []*NodeIPAddress { +func (x *ListEnabledNodeIPAddressesResponse) GetNodeIPAddresses() []*NodeIPAddress { if x != nil { return x.NodeIPAddresses } return nil } +// 设置上下线状态 +type UpdateNodeIPAddressIsUpRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"` + IsUp bool `protobuf:"varint,2,opt,name=isUp,proto3" json:"isUp,omitempty"` +} + +func (x *UpdateNodeIPAddressIsUpRequest) Reset() { + *x = UpdateNodeIPAddressIsUpRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_node_ip_address_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateNodeIPAddressIsUpRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNodeIPAddressIsUpRequest) ProtoMessage() {} + +func (x *UpdateNodeIPAddressIsUpRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_node_ip_address_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateNodeIPAddressIsUpRequest.ProtoReflect.Descriptor instead. +func (*UpdateNodeIPAddressIsUpRequest) Descriptor() ([]byte, []int) { + return file_service_node_ip_address_proto_rawDescGZIP(), []int{15} +} + +func (x *UpdateNodeIPAddressIsUpRequest) GetNodeIPAddressId() int64 { + if x != nil { + return x.NodeIPAddressId + } + return 0 +} + +func (x *UpdateNodeIPAddressIsUpRequest) GetIsUp() bool { + if x != nil { + return x.IsUp + } + return false +} + +// 还原备用IP状态 +type RestoreNodeIPAddressBackupIPRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeIPAddressId int64 `protobuf:"varint,1,opt,name=nodeIPAddressId,proto3" json:"nodeIPAddressId,omitempty"` +} + +func (x *RestoreNodeIPAddressBackupIPRequest) Reset() { + *x = RestoreNodeIPAddressBackupIPRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_node_ip_address_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RestoreNodeIPAddressBackupIPRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RestoreNodeIPAddressBackupIPRequest) ProtoMessage() {} + +func (x *RestoreNodeIPAddressBackupIPRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_node_ip_address_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 RestoreNodeIPAddressBackupIPRequest.ProtoReflect.Descriptor instead. +func (*RestoreNodeIPAddressBackupIPRequest) Descriptor() ([]byte, []int) { + return file_service_node_ip_address_proto_rawDescGZIP(), []int{16} +} + +func (x *RestoreNodeIPAddressBackupIPRequest) GetNodeIPAddressId() int64 { + if x != nil { + return x.NodeIPAddressId + } + return 0 +} + var File_service_node_ip_address_proto protoreflect.FileDescriptor var file_service_node_ip_address_proto_rawDesc = []byte{ @@ -922,38 +1026,40 @@ var file_service_node_ip_address_proto_rawDesc = []byte{ 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x1e, 0x0a, 0x1c, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x26, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, - 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, - 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 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, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x29, 0x0a, 0x27, - 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, - 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, - 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x22, 0x58, 0x0a, 0x2a, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, - 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 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, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x5e, 0x0a, 0x2b, 0x46, - 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0x0a, 0x2a, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, + 0x65, 0x41, 0x6c, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 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, 0x12, 0x0a, 0x04, + 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, + 0x22, 0x2d, 0x0a, 0x2b, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, + 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x4b, 0x0a, 0x1f, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, + 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x22, 0x5b, 0x0a, 0x20, + 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x37, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, + 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, + 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x5c, 0x0a, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x64, 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, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x22, 0x6e, 0x0a, 0x2f, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x09, 0x61, 0x64, - 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x52, 0x09, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x91, 0x01, 0x0a, 0x21, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, + 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x6e, 0x6f, + 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x22, 0x95, 0x01, 0x0a, 0x25, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, @@ -962,82 +1068,107 @@ var file_service_node_ip_address_proto_rawDesc = []byte{ 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x70, 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, - 0xb9, 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, - 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x70, - 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, 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, 0x5d, 0x0a, 0x1e, 0x4c, - 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, - 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x32, 0x8b, 0x07, 0x0a, 0x14, 0x4e, - 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, + 0xbd, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x64, 0x65, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x6f, + 0x64, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x72, + 0x6f, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x75, 0x70, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x75, 0x70, 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, 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, + 0x61, 0x0a, 0x22, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x65, 0x73, 0x22, 0x5e, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x73, 0x55, 0x70, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x6e, + 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x69, 0x73, 0x55, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, + 0x55, 0x70, 0x22, 0x4f, 0x0a, 0x23, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4e, 0x6f, 0x64, + 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, + 0x49, 0x50, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0f, 0x6e, 0x6f, 0x64, + 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0f, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x49, 0x64, 0x32, 0xe0, 0x08, 0x0a, 0x14, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x56, 0x0a, 0x13, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x13, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, + 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, + 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 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, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 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, 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, - 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, - 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 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, 0x59, 0x0a, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, - 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x2e, - 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, - 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x7a, 0x0a, 0x1f, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, 0x50, - 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x12, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, - 0x41, 0x6c, 0x6c, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, - 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x2b, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x64, 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, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, - 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, - 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x23, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, - 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2e, 0x2e, 0x70, 0x62, - 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62, - 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, - 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x1a, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, - 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, - 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x16, 0x6c, 0x69, 0x73, 0x74, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, - 0x73, 0x12, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, - 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x64, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x4e, 0x6f, 0x64, 0x65, 0x49, 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, 0x59, + 0x0a, 0x14, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x23, 0x64, 0x69, + 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, + 0x64, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, + 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x2f, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x41, 0x6c, + 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 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, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x23, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x92, 0x01, 0x0a, 0x27, 0x66, 0x69, + 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x32, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, + 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x6f, 0x64, 0x65, + 0x49, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x70, 0x62, 0x2e, 0x46, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, + 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x57, 0x69, 0x74, 0x68, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, + 0x0a, 0x1e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, + 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 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, 0x6b, 0x0a, 0x1a, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, + 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, + 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, + 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, + 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x49, 0x73, 0x55, 0x70, 0x12, 0x22, 0x2e, 0x70, 0x62, 0x2e, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x49, 0x73, 0x55, 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, 0x57, 0x0a, + 0x1c, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, 0x41, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x50, 0x12, 0x27, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x49, 0x50, + 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x61, 0x63, 0x6b, 0x75, 0x70, 0x49, 0x50, 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 ( @@ -1052,51 +1183,57 @@ func file_service_node_ip_address_proto_rawDescGZIP() []byte { return file_service_node_ip_address_proto_rawDescData } -var file_service_node_ip_address_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_service_node_ip_address_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_service_node_ip_address_proto_goTypes = []interface{}{ - (*CreateNodeIPAddressRequest)(nil), // 0: pb.CreateNodeIPAddressRequest - (*CreateNodeIPAddressResponse)(nil), // 1: pb.CreateNodeIPAddressResponse - (*UpdateNodeIPAddressRequest)(nil), // 2: pb.UpdateNodeIPAddressRequest - (*UpdateNodeIPAddressNodeIdRequest)(nil), // 3: pb.UpdateNodeIPAddressNodeIdRequest - (*DisableNodeIPAddressRequest)(nil), // 4: pb.DisableNodeIPAddressRequest - (*DisableNodeIPAddressResponse)(nil), // 5: pb.DisableNodeIPAddressResponse - (*DisableAllIPAddressesWithNodeIdRequest)(nil), // 6: pb.DisableAllIPAddressesWithNodeIdRequest - (*DisableAllIPAddressesWithNodeIdResponse)(nil), // 7: pb.DisableAllIPAddressesWithNodeIdResponse - (*FindEnabledNodeIPAddressRequest)(nil), // 8: pb.FindEnabledNodeIPAddressRequest - (*FindEnabledNodeIPAddressResponse)(nil), // 9: pb.FindEnabledNodeIPAddressResponse - (*FindAllEnabledIPAddressesWithNodeIdRequest)(nil), // 10: pb.FindAllEnabledIPAddressesWithNodeIdRequest - (*FindAllEnabledIPAddressesWithNodeIdResponse)(nil), // 11: pb.FindAllEnabledIPAddressesWithNodeIdResponse - (*CountAllEnabledIPAddressesRequest)(nil), // 12: pb.CountAllEnabledIPAddressesRequest - (*ListEnabledIPAddressesRequest)(nil), // 13: pb.ListEnabledIPAddressesRequest - (*ListEnabledIPAddressesResponse)(nil), // 14: pb.ListEnabledIPAddressesResponse - (*NodeIPAddress)(nil), // 15: pb.NodeIPAddress - (*RPCSuccess)(nil), // 16: pb.RPCSuccess - (*RPCCountResponse)(nil), // 17: pb.RPCCountResponse + (*CreateNodeIPAddressRequest)(nil), // 0: pb.CreateNodeIPAddressRequest + (*CreateNodeIPAddressResponse)(nil), // 1: pb.CreateNodeIPAddressResponse + (*UpdateNodeIPAddressRequest)(nil), // 2: pb.UpdateNodeIPAddressRequest + (*UpdateNodeIPAddressNodeIdRequest)(nil), // 3: pb.UpdateNodeIPAddressNodeIdRequest + (*DisableNodeIPAddressRequest)(nil), // 4: pb.DisableNodeIPAddressRequest + (*DisableNodeIPAddressResponse)(nil), // 5: pb.DisableNodeIPAddressResponse + (*DisableAllNodeIPAddressesWithNodeIdRequest)(nil), // 6: pb.DisableAllNodeIPAddressesWithNodeIdRequest + (*DisableAllNodeIPAddressesWithNodeIdResponse)(nil), // 7: pb.DisableAllNodeIPAddressesWithNodeIdResponse + (*FindEnabledNodeIPAddressRequest)(nil), // 8: pb.FindEnabledNodeIPAddressRequest + (*FindEnabledNodeIPAddressResponse)(nil), // 9: pb.FindEnabledNodeIPAddressResponse + (*FindAllEnabledNodeIPAddressesWithNodeIdRequest)(nil), // 10: pb.FindAllEnabledNodeIPAddressesWithNodeIdRequest + (*FindAllEnabledNodeIPAddressesWithNodeIdResponse)(nil), // 11: pb.FindAllEnabledNodeIPAddressesWithNodeIdResponse + (*CountAllEnabledNodeIPAddressesRequest)(nil), // 12: pb.CountAllEnabledNodeIPAddressesRequest + (*ListEnabledNodeIPAddressesRequest)(nil), // 13: pb.ListEnabledNodeIPAddressesRequest + (*ListEnabledNodeIPAddressesResponse)(nil), // 14: pb.ListEnabledNodeIPAddressesResponse + (*UpdateNodeIPAddressIsUpRequest)(nil), // 15: pb.UpdateNodeIPAddressIsUpRequest + (*RestoreNodeIPAddressBackupIPRequest)(nil), // 16: pb.RestoreNodeIPAddressBackupIPRequest + (*NodeIPAddress)(nil), // 17: pb.NodeIPAddress + (*RPCSuccess)(nil), // 18: pb.RPCSuccess + (*RPCCountResponse)(nil), // 19: pb.RPCCountResponse } var file_service_node_ip_address_proto_depIdxs = []int32{ - 15, // 0: pb.FindEnabledNodeIPAddressResponse.nodeIPAddress:type_name -> pb.NodeIPAddress - 15, // 1: pb.FindAllEnabledIPAddressesWithNodeIdResponse.addresses:type_name -> pb.NodeIPAddress - 15, // 2: pb.ListEnabledIPAddressesResponse.nodeIPAddresses:type_name -> pb.NodeIPAddress + 17, // 0: pb.FindEnabledNodeIPAddressResponse.nodeIPAddress:type_name -> pb.NodeIPAddress + 17, // 1: pb.FindAllEnabledNodeIPAddressesWithNodeIdResponse.nodeIPAddresses:type_name -> pb.NodeIPAddress + 17, // 2: pb.ListEnabledNodeIPAddressesResponse.nodeIPAddresses:type_name -> pb.NodeIPAddress 0, // 3: pb.NodeIPAddressService.createNodeIPAddress:input_type -> pb.CreateNodeIPAddressRequest 2, // 4: pb.NodeIPAddressService.updateNodeIPAddress:input_type -> pb.UpdateNodeIPAddressRequest 3, // 5: pb.NodeIPAddressService.updateNodeIPAddressNodeId:input_type -> pb.UpdateNodeIPAddressNodeIdRequest 4, // 6: pb.NodeIPAddressService.disableNodeIPAddress:input_type -> pb.DisableNodeIPAddressRequest - 6, // 7: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:input_type -> pb.DisableAllIPAddressesWithNodeIdRequest + 6, // 7: pb.NodeIPAddressService.disableAllNodeIPAddressesWithNodeId:input_type -> pb.DisableAllNodeIPAddressesWithNodeIdRequest 8, // 8: pb.NodeIPAddressService.findEnabledNodeIPAddress:input_type -> pb.FindEnabledNodeIPAddressRequest - 10, // 9: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:input_type -> pb.FindAllEnabledIPAddressesWithNodeIdRequest - 12, // 10: pb.NodeIPAddressService.countAllEnabledIPAddresses:input_type -> pb.CountAllEnabledIPAddressesRequest - 13, // 11: pb.NodeIPAddressService.listEnabledIPAddresses:input_type -> pb.ListEnabledIPAddressesRequest - 1, // 12: pb.NodeIPAddressService.createNodeIPAddress:output_type -> pb.CreateNodeIPAddressResponse - 16, // 13: pb.NodeIPAddressService.updateNodeIPAddress:output_type -> pb.RPCSuccess - 16, // 14: pb.NodeIPAddressService.updateNodeIPAddressNodeId:output_type -> pb.RPCSuccess - 5, // 15: pb.NodeIPAddressService.disableNodeIPAddress:output_type -> pb.DisableNodeIPAddressResponse - 7, // 16: pb.NodeIPAddressService.disableAllIPAddressesWithNodeId:output_type -> pb.DisableAllIPAddressesWithNodeIdResponse - 9, // 17: pb.NodeIPAddressService.findEnabledNodeIPAddress:output_type -> pb.FindEnabledNodeIPAddressResponse - 11, // 18: pb.NodeIPAddressService.findAllEnabledIPAddressesWithNodeId:output_type -> pb.FindAllEnabledIPAddressesWithNodeIdResponse - 17, // 19: pb.NodeIPAddressService.countAllEnabledIPAddresses:output_type -> pb.RPCCountResponse - 14, // 20: pb.NodeIPAddressService.listEnabledIPAddresses:output_type -> pb.ListEnabledIPAddressesResponse - 12, // [12:21] is the sub-list for method output_type - 3, // [3:12] is the sub-list for method input_type + 10, // 9: pb.NodeIPAddressService.findAllEnabledNodeIPAddressesWithNodeId:input_type -> pb.FindAllEnabledNodeIPAddressesWithNodeIdRequest + 12, // 10: pb.NodeIPAddressService.countAllEnabledNodeIPAddresses:input_type -> pb.CountAllEnabledNodeIPAddressesRequest + 13, // 11: pb.NodeIPAddressService.listEnabledNodeIPAddresses:input_type -> pb.ListEnabledNodeIPAddressesRequest + 15, // 12: pb.NodeIPAddressService.updateNodeIPAddressIsUp:input_type -> pb.UpdateNodeIPAddressIsUpRequest + 16, // 13: pb.NodeIPAddressService.restoreNodeIPAddressBackupIP:input_type -> pb.RestoreNodeIPAddressBackupIPRequest + 1, // 14: pb.NodeIPAddressService.createNodeIPAddress:output_type -> pb.CreateNodeIPAddressResponse + 18, // 15: pb.NodeIPAddressService.updateNodeIPAddress:output_type -> pb.RPCSuccess + 18, // 16: pb.NodeIPAddressService.updateNodeIPAddressNodeId:output_type -> pb.RPCSuccess + 5, // 17: pb.NodeIPAddressService.disableNodeIPAddress:output_type -> pb.DisableNodeIPAddressResponse + 7, // 18: pb.NodeIPAddressService.disableAllNodeIPAddressesWithNodeId:output_type -> pb.DisableAllNodeIPAddressesWithNodeIdResponse + 9, // 19: pb.NodeIPAddressService.findEnabledNodeIPAddress:output_type -> pb.FindEnabledNodeIPAddressResponse + 11, // 20: pb.NodeIPAddressService.findAllEnabledNodeIPAddressesWithNodeId:output_type -> pb.FindAllEnabledNodeIPAddressesWithNodeIdResponse + 19, // 21: pb.NodeIPAddressService.countAllEnabledNodeIPAddresses:output_type -> pb.RPCCountResponse + 14, // 22: pb.NodeIPAddressService.listEnabledNodeIPAddresses:output_type -> pb.ListEnabledNodeIPAddressesResponse + 18, // 23: pb.NodeIPAddressService.updateNodeIPAddressIsUp:output_type -> pb.RPCSuccess + 18, // 24: pb.NodeIPAddressService.restoreNodeIPAddressBackupIP:output_type -> pb.RPCSuccess + 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 @@ -1183,7 +1320,7 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DisableAllIPAddressesWithNodeIdRequest); i { + switch v := v.(*DisableAllNodeIPAddressesWithNodeIdRequest); i { case 0: return &v.state case 1: @@ -1195,7 +1332,7 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DisableAllIPAddressesWithNodeIdResponse); i { + switch v := v.(*DisableAllNodeIPAddressesWithNodeIdResponse); i { case 0: return &v.state case 1: @@ -1231,7 +1368,7 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledIPAddressesWithNodeIdRequest); i { + switch v := v.(*FindAllEnabledNodeIPAddressesWithNodeIdRequest); i { case 0: return &v.state case 1: @@ -1243,7 +1380,7 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindAllEnabledIPAddressesWithNodeIdResponse); i { + switch v := v.(*FindAllEnabledNodeIPAddressesWithNodeIdResponse); i { case 0: return &v.state case 1: @@ -1255,7 +1392,7 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CountAllEnabledIPAddressesRequest); i { + switch v := v.(*CountAllEnabledNodeIPAddressesRequest); i { case 0: return &v.state case 1: @@ -1267,7 +1404,7 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledIPAddressesRequest); i { + switch v := v.(*ListEnabledNodeIPAddressesRequest); i { case 0: return &v.state case 1: @@ -1279,7 +1416,31 @@ func file_service_node_ip_address_proto_init() { } } file_service_node_ip_address_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnabledIPAddressesResponse); i { + switch v := v.(*ListEnabledNodeIPAddressesResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_node_ip_address_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateNodeIPAddressIsUpRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_node_ip_address_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RestoreNodeIPAddressBackupIPRequest); i { case 0: return &v.state case 1: @@ -1297,7 +1458,7 @@ func file_service_node_ip_address_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_service_node_ip_address_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 17, NumExtensions: 0, NumServices: 1, }, @@ -1332,15 +1493,19 @@ type NodeIPAddressServiceClient interface { // 禁用单个IP地址 DisableNodeIPAddress(ctx context.Context, in *DisableNodeIPAddressRequest, opts ...grpc.CallOption) (*DisableNodeIPAddressResponse, error) // 禁用节点的所有IP地址 - DisableAllIPAddressesWithNodeId(ctx context.Context, in *DisableAllIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*DisableAllIPAddressesWithNodeIdResponse, error) + DisableAllNodeIPAddressesWithNodeId(ctx context.Context, in *DisableAllNodeIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*DisableAllNodeIPAddressesWithNodeIdResponse, error) // 查找单个IP地址 FindEnabledNodeIPAddress(ctx context.Context, in *FindEnabledNodeIPAddressRequest, opts ...grpc.CallOption) (*FindEnabledNodeIPAddressResponse, error) // 查找节点的所有地址 - FindAllEnabledIPAddressesWithNodeId(ctx context.Context, in *FindAllEnabledIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*FindAllEnabledIPAddressesWithNodeIdResponse, error) + FindAllEnabledNodeIPAddressesWithNodeId(ctx context.Context, in *FindAllEnabledNodeIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeIPAddressesWithNodeIdResponse, error) // 计算IP地址数量 - CountAllEnabledIPAddresses(ctx context.Context, in *CountAllEnabledIPAddressesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + CountAllEnabledNodeIPAddresses(ctx context.Context, in *CountAllEnabledNodeIPAddressesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) // 列出单页IP地址 - ListEnabledIPAddresses(ctx context.Context, in *ListEnabledIPAddressesRequest, opts ...grpc.CallOption) (*ListEnabledIPAddressesResponse, error) + ListEnabledNodeIPAddresses(ctx context.Context, in *ListEnabledNodeIPAddressesRequest, opts ...grpc.CallOption) (*ListEnabledNodeIPAddressesResponse, error) + // 设置上下线状态 + UpdateNodeIPAddressIsUp(ctx context.Context, in *UpdateNodeIPAddressIsUpRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 还原备用IP状态 + RestoreNodeIPAddressBackupIP(ctx context.Context, in *RestoreNodeIPAddressBackupIPRequest, opts ...grpc.CallOption) (*RPCSuccess, error) } type nodeIPAddressServiceClient struct { @@ -1387,9 +1552,9 @@ func (c *nodeIPAddressServiceClient) DisableNodeIPAddress(ctx context.Context, i return out, nil } -func (c *nodeIPAddressServiceClient) DisableAllIPAddressesWithNodeId(ctx context.Context, in *DisableAllIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*DisableAllIPAddressesWithNodeIdResponse, error) { - out := new(DisableAllIPAddressesWithNodeIdResponse) - err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/disableAllIPAddressesWithNodeId", in, out, opts...) +func (c *nodeIPAddressServiceClient) DisableAllNodeIPAddressesWithNodeId(ctx context.Context, in *DisableAllNodeIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*DisableAllNodeIPAddressesWithNodeIdResponse, error) { + out := new(DisableAllNodeIPAddressesWithNodeIdResponse) + err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/disableAllNodeIPAddressesWithNodeId", in, out, opts...) if err != nil { return nil, err } @@ -1405,27 +1570,45 @@ func (c *nodeIPAddressServiceClient) FindEnabledNodeIPAddress(ctx context.Contex return out, nil } -func (c *nodeIPAddressServiceClient) FindAllEnabledIPAddressesWithNodeId(ctx context.Context, in *FindAllEnabledIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*FindAllEnabledIPAddressesWithNodeIdResponse, error) { - out := new(FindAllEnabledIPAddressesWithNodeIdResponse) - err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/findAllEnabledIPAddressesWithNodeId", in, out, opts...) +func (c *nodeIPAddressServiceClient) FindAllEnabledNodeIPAddressesWithNodeId(ctx context.Context, in *FindAllEnabledNodeIPAddressesWithNodeIdRequest, opts ...grpc.CallOption) (*FindAllEnabledNodeIPAddressesWithNodeIdResponse, error) { + out := new(FindAllEnabledNodeIPAddressesWithNodeIdResponse) + err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/findAllEnabledNodeIPAddressesWithNodeId", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nodeIPAddressServiceClient) CountAllEnabledIPAddresses(ctx context.Context, in *CountAllEnabledIPAddressesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { +func (c *nodeIPAddressServiceClient) CountAllEnabledNodeIPAddresses(ctx context.Context, in *CountAllEnabledNodeIPAddressesRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { out := new(RPCCountResponse) - err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/countAllEnabledIPAddresses", in, out, opts...) + err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/countAllEnabledNodeIPAddresses", in, out, opts...) if err != nil { return nil, err } return out, nil } -func (c *nodeIPAddressServiceClient) ListEnabledIPAddresses(ctx context.Context, in *ListEnabledIPAddressesRequest, opts ...grpc.CallOption) (*ListEnabledIPAddressesResponse, error) { - out := new(ListEnabledIPAddressesResponse) - err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/listEnabledIPAddresses", in, out, opts...) +func (c *nodeIPAddressServiceClient) ListEnabledNodeIPAddresses(ctx context.Context, in *ListEnabledNodeIPAddressesRequest, opts ...grpc.CallOption) (*ListEnabledNodeIPAddressesResponse, error) { + out := new(ListEnabledNodeIPAddressesResponse) + err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/listEnabledNodeIPAddresses", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeIPAddressServiceClient) UpdateNodeIPAddressIsUp(ctx context.Context, in *UpdateNodeIPAddressIsUpRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/updateNodeIPAddressIsUp", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *nodeIPAddressServiceClient) RestoreNodeIPAddressBackupIP(ctx context.Context, in *RestoreNodeIPAddressBackupIPRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.NodeIPAddressService/restoreNodeIPAddressBackupIP", in, out, opts...) if err != nil { return nil, err } @@ -1443,15 +1626,19 @@ type NodeIPAddressServiceServer interface { // 禁用单个IP地址 DisableNodeIPAddress(context.Context, *DisableNodeIPAddressRequest) (*DisableNodeIPAddressResponse, error) // 禁用节点的所有IP地址 - DisableAllIPAddressesWithNodeId(context.Context, *DisableAllIPAddressesWithNodeIdRequest) (*DisableAllIPAddressesWithNodeIdResponse, error) + DisableAllNodeIPAddressesWithNodeId(context.Context, *DisableAllNodeIPAddressesWithNodeIdRequest) (*DisableAllNodeIPAddressesWithNodeIdResponse, error) // 查找单个IP地址 FindEnabledNodeIPAddress(context.Context, *FindEnabledNodeIPAddressRequest) (*FindEnabledNodeIPAddressResponse, error) // 查找节点的所有地址 - FindAllEnabledIPAddressesWithNodeId(context.Context, *FindAllEnabledIPAddressesWithNodeIdRequest) (*FindAllEnabledIPAddressesWithNodeIdResponse, error) + FindAllEnabledNodeIPAddressesWithNodeId(context.Context, *FindAllEnabledNodeIPAddressesWithNodeIdRequest) (*FindAllEnabledNodeIPAddressesWithNodeIdResponse, error) // 计算IP地址数量 - CountAllEnabledIPAddresses(context.Context, *CountAllEnabledIPAddressesRequest) (*RPCCountResponse, error) + CountAllEnabledNodeIPAddresses(context.Context, *CountAllEnabledNodeIPAddressesRequest) (*RPCCountResponse, error) // 列出单页IP地址 - ListEnabledIPAddresses(context.Context, *ListEnabledIPAddressesRequest) (*ListEnabledIPAddressesResponse, error) + ListEnabledNodeIPAddresses(context.Context, *ListEnabledNodeIPAddressesRequest) (*ListEnabledNodeIPAddressesResponse, error) + // 设置上下线状态 + UpdateNodeIPAddressIsUp(context.Context, *UpdateNodeIPAddressIsUpRequest) (*RPCSuccess, error) + // 还原备用IP状态 + RestoreNodeIPAddressBackupIP(context.Context, *RestoreNodeIPAddressBackupIPRequest) (*RPCSuccess, error) } // UnimplementedNodeIPAddressServiceServer can be embedded to have forward compatible implementations. @@ -1470,20 +1657,26 @@ func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddressNodeId(contex func (*UnimplementedNodeIPAddressServiceServer) DisableNodeIPAddress(context.Context, *DisableNodeIPAddressRequest) (*DisableNodeIPAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DisableNodeIPAddress not implemented") } -func (*UnimplementedNodeIPAddressServiceServer) DisableAllIPAddressesWithNodeId(context.Context, *DisableAllIPAddressesWithNodeIdRequest) (*DisableAllIPAddressesWithNodeIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DisableAllIPAddressesWithNodeId not implemented") +func (*UnimplementedNodeIPAddressServiceServer) DisableAllNodeIPAddressesWithNodeId(context.Context, *DisableAllNodeIPAddressesWithNodeIdRequest) (*DisableAllNodeIPAddressesWithNodeIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method DisableAllNodeIPAddressesWithNodeId not implemented") } func (*UnimplementedNodeIPAddressServiceServer) FindEnabledNodeIPAddress(context.Context, *FindEnabledNodeIPAddressRequest) (*FindEnabledNodeIPAddressResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method FindEnabledNodeIPAddress not implemented") } -func (*UnimplementedNodeIPAddressServiceServer) FindAllEnabledIPAddressesWithNodeId(context.Context, *FindAllEnabledIPAddressesWithNodeIdRequest) (*FindAllEnabledIPAddressesWithNodeIdResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledIPAddressesWithNodeId not implemented") +func (*UnimplementedNodeIPAddressServiceServer) FindAllEnabledNodeIPAddressesWithNodeId(context.Context, *FindAllEnabledNodeIPAddressesWithNodeIdRequest) (*FindAllEnabledNodeIPAddressesWithNodeIdResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllEnabledNodeIPAddressesWithNodeId not implemented") } -func (*UnimplementedNodeIPAddressServiceServer) CountAllEnabledIPAddresses(context.Context, *CountAllEnabledIPAddressesRequest) (*RPCCountResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledIPAddresses not implemented") +func (*UnimplementedNodeIPAddressServiceServer) CountAllEnabledNodeIPAddresses(context.Context, *CountAllEnabledNodeIPAddressesRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledNodeIPAddresses not implemented") } -func (*UnimplementedNodeIPAddressServiceServer) ListEnabledIPAddresses(context.Context, *ListEnabledIPAddressesRequest) (*ListEnabledIPAddressesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListEnabledIPAddresses not implemented") +func (*UnimplementedNodeIPAddressServiceServer) ListEnabledNodeIPAddresses(context.Context, *ListEnabledNodeIPAddressesRequest) (*ListEnabledNodeIPAddressesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEnabledNodeIPAddresses not implemented") +} +func (*UnimplementedNodeIPAddressServiceServer) UpdateNodeIPAddressIsUp(context.Context, *UpdateNodeIPAddressIsUpRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateNodeIPAddressIsUp not implemented") +} +func (*UnimplementedNodeIPAddressServiceServer) RestoreNodeIPAddressBackupIP(context.Context, *RestoreNodeIPAddressBackupIPRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method RestoreNodeIPAddressBackupIP not implemented") } func RegisterNodeIPAddressServiceServer(s *grpc.Server, srv NodeIPAddressServiceServer) { @@ -1562,20 +1755,20 @@ func _NodeIPAddressService_DisableNodeIPAddress_Handler(srv interface{}, ctx con return interceptor(ctx, in, info, handler) } -func _NodeIPAddressService_DisableAllIPAddressesWithNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DisableAllIPAddressesWithNodeIdRequest) +func _NodeIPAddressService_DisableAllNodeIPAddressesWithNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DisableAllNodeIPAddressesWithNodeIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NodeIPAddressServiceServer).DisableAllIPAddressesWithNodeId(ctx, in) + return srv.(NodeIPAddressServiceServer).DisableAllNodeIPAddressesWithNodeId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NodeIPAddressService/DisableAllIPAddressesWithNodeId", + FullMethod: "/pb.NodeIPAddressService/DisableAllNodeIPAddressesWithNodeId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NodeIPAddressServiceServer).DisableAllIPAddressesWithNodeId(ctx, req.(*DisableAllIPAddressesWithNodeIdRequest)) + return srv.(NodeIPAddressServiceServer).DisableAllNodeIPAddressesWithNodeId(ctx, req.(*DisableAllNodeIPAddressesWithNodeIdRequest)) } return interceptor(ctx, in, info, handler) } @@ -1598,56 +1791,92 @@ func _NodeIPAddressService_FindEnabledNodeIPAddress_Handler(srv interface{}, ctx return interceptor(ctx, in, info, handler) } -func _NodeIPAddressService_FindAllEnabledIPAddressesWithNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindAllEnabledIPAddressesWithNodeIdRequest) +func _NodeIPAddressService_FindAllEnabledNodeIPAddressesWithNodeId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllEnabledNodeIPAddressesWithNodeIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NodeIPAddressServiceServer).FindAllEnabledIPAddressesWithNodeId(ctx, in) + return srv.(NodeIPAddressServiceServer).FindAllEnabledNodeIPAddressesWithNodeId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NodeIPAddressService/FindAllEnabledIPAddressesWithNodeId", + FullMethod: "/pb.NodeIPAddressService/FindAllEnabledNodeIPAddressesWithNodeId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NodeIPAddressServiceServer).FindAllEnabledIPAddressesWithNodeId(ctx, req.(*FindAllEnabledIPAddressesWithNodeIdRequest)) + return srv.(NodeIPAddressServiceServer).FindAllEnabledNodeIPAddressesWithNodeId(ctx, req.(*FindAllEnabledNodeIPAddressesWithNodeIdRequest)) } return interceptor(ctx, in, info, handler) } -func _NodeIPAddressService_CountAllEnabledIPAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CountAllEnabledIPAddressesRequest) +func _NodeIPAddressService_CountAllEnabledNodeIPAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllEnabledNodeIPAddressesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NodeIPAddressServiceServer).CountAllEnabledIPAddresses(ctx, in) + return srv.(NodeIPAddressServiceServer).CountAllEnabledNodeIPAddresses(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NodeIPAddressService/CountAllEnabledIPAddresses", + FullMethod: "/pb.NodeIPAddressService/CountAllEnabledNodeIPAddresses", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NodeIPAddressServiceServer).CountAllEnabledIPAddresses(ctx, req.(*CountAllEnabledIPAddressesRequest)) + return srv.(NodeIPAddressServiceServer).CountAllEnabledNodeIPAddresses(ctx, req.(*CountAllEnabledNodeIPAddressesRequest)) } return interceptor(ctx, in, info, handler) } -func _NodeIPAddressService_ListEnabledIPAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListEnabledIPAddressesRequest) +func _NodeIPAddressService_ListEnabledNodeIPAddresses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEnabledNodeIPAddressesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(NodeIPAddressServiceServer).ListEnabledIPAddresses(ctx, in) + return srv.(NodeIPAddressServiceServer).ListEnabledNodeIPAddresses(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/pb.NodeIPAddressService/ListEnabledIPAddresses", + FullMethod: "/pb.NodeIPAddressService/ListEnabledNodeIPAddresses", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(NodeIPAddressServiceServer).ListEnabledIPAddresses(ctx, req.(*ListEnabledIPAddressesRequest)) + return srv.(NodeIPAddressServiceServer).ListEnabledNodeIPAddresses(ctx, req.(*ListEnabledNodeIPAddressesRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeIPAddressService_UpdateNodeIPAddressIsUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateNodeIPAddressIsUpRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeIPAddressServiceServer).UpdateNodeIPAddressIsUp(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NodeIPAddressService/UpdateNodeIPAddressIsUp", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeIPAddressServiceServer).UpdateNodeIPAddressIsUp(ctx, req.(*UpdateNodeIPAddressIsUpRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _NodeIPAddressService_RestoreNodeIPAddressBackupIP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RestoreNodeIPAddressBackupIPRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeIPAddressServiceServer).RestoreNodeIPAddressBackupIP(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.NodeIPAddressService/RestoreNodeIPAddressBackupIP", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeIPAddressServiceServer).RestoreNodeIPAddressBackupIP(ctx, req.(*RestoreNodeIPAddressBackupIPRequest)) } return interceptor(ctx, in, info, handler) } @@ -1673,24 +1902,32 @@ var _NodeIPAddressService_serviceDesc = grpc.ServiceDesc{ Handler: _NodeIPAddressService_DisableNodeIPAddress_Handler, }, { - MethodName: "disableAllIPAddressesWithNodeId", - Handler: _NodeIPAddressService_DisableAllIPAddressesWithNodeId_Handler, + MethodName: "disableAllNodeIPAddressesWithNodeId", + Handler: _NodeIPAddressService_DisableAllNodeIPAddressesWithNodeId_Handler, }, { MethodName: "findEnabledNodeIPAddress", Handler: _NodeIPAddressService_FindEnabledNodeIPAddress_Handler, }, { - MethodName: "findAllEnabledIPAddressesWithNodeId", - Handler: _NodeIPAddressService_FindAllEnabledIPAddressesWithNodeId_Handler, + MethodName: "findAllEnabledNodeIPAddressesWithNodeId", + Handler: _NodeIPAddressService_FindAllEnabledNodeIPAddressesWithNodeId_Handler, }, { - MethodName: "countAllEnabledIPAddresses", - Handler: _NodeIPAddressService_CountAllEnabledIPAddresses_Handler, + MethodName: "countAllEnabledNodeIPAddresses", + Handler: _NodeIPAddressService_CountAllEnabledNodeIPAddresses_Handler, }, { - MethodName: "listEnabledIPAddresses", - Handler: _NodeIPAddressService_ListEnabledIPAddresses_Handler, + MethodName: "listEnabledNodeIPAddresses", + Handler: _NodeIPAddressService_ListEnabledNodeIPAddresses_Handler, + }, + { + MethodName: "updateNodeIPAddressIsUp", + Handler: _NodeIPAddressService_UpdateNodeIPAddressIsUp_Handler, + }, + { + MethodName: "restoreNodeIPAddressBackupIP", + Handler: _NodeIPAddressService_RestoreNodeIPAddressBackupIP_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/pkg/rpc/protos/service_node_ip_address.proto b/pkg/rpc/protos/service_node_ip_address.proto index abeff81..8643f3c 100644 --- a/pkg/rpc/protos/service_node_ip_address.proto +++ b/pkg/rpc/protos/service_node_ip_address.proto @@ -20,19 +20,25 @@ service NodeIPAddressService { rpc disableNodeIPAddress (DisableNodeIPAddressRequest) returns (DisableNodeIPAddressResponse); // 禁用节点的所有IP地址 - rpc disableAllIPAddressesWithNodeId (DisableAllIPAddressesWithNodeIdRequest) returns (DisableAllIPAddressesWithNodeIdResponse); + rpc disableAllNodeIPAddressesWithNodeId (DisableAllNodeIPAddressesWithNodeIdRequest) returns (DisableAllNodeIPAddressesWithNodeIdResponse); // 查找单个IP地址 rpc findEnabledNodeIPAddress (FindEnabledNodeIPAddressRequest) returns (FindEnabledNodeIPAddressResponse); // 查找节点的所有地址 - rpc findAllEnabledIPAddressesWithNodeId (FindAllEnabledIPAddressesWithNodeIdRequest) returns (FindAllEnabledIPAddressesWithNodeIdResponse); + rpc findAllEnabledNodeIPAddressesWithNodeId (FindAllEnabledNodeIPAddressesWithNodeIdRequest) returns (FindAllEnabledNodeIPAddressesWithNodeIdResponse); // 计算IP地址数量 - rpc countAllEnabledIPAddresses(CountAllEnabledIPAddressesRequest) returns (RPCCountResponse); + rpc countAllEnabledNodeIPAddresses(CountAllEnabledNodeIPAddressesRequest) returns (RPCCountResponse); // 列出单页IP地址 - rpc listEnabledIPAddresses(ListEnabledIPAddressesRequest) returns (ListEnabledIPAddressesResponse); + rpc listEnabledNodeIPAddresses(ListEnabledNodeIPAddressesRequest) returns (ListEnabledNodeIPAddressesResponse); + + // 设置上下线状态 + rpc updateNodeIPAddressIsUp(UpdateNodeIPAddressIsUpRequest) returns (RPCSuccess); + + // 还原备用IP状态 + rpc restoreNodeIPAddressBackupIP(RestoreNodeIPAddressBackupIPRequest) returns (RPCSuccess); } // 创建IP地址 @@ -73,12 +79,12 @@ message DisableNodeIPAddressResponse { } // 禁用节点的所有IP地址 -message DisableAllIPAddressesWithNodeIdRequest { +message DisableAllNodeIPAddressesWithNodeIdRequest { int64 nodeId = 1; string role = 2; } -message DisableAllIPAddressesWithNodeIdResponse { +message DisableAllNodeIPAddressesWithNodeIdResponse { } @@ -92,17 +98,17 @@ message FindEnabledNodeIPAddressResponse { } // 查找节点的所有地址 -message FindAllEnabledIPAddressesWithNodeIdRequest { +message FindAllEnabledNodeIPAddressesWithNodeIdRequest { int64 nodeId = 1; string role = 2; } -message FindAllEnabledIPAddressesWithNodeIdResponse { - repeated NodeIPAddress addresses = 1; +message FindAllEnabledNodeIPAddressesWithNodeIdResponse { + repeated NodeIPAddress nodeIPAddresses = 1; } // 计算IP地址数量 -message CountAllEnabledIPAddressesRequest { +message CountAllEnabledNodeIPAddressesRequest { int64 nodeClusterId = 1; string role = 2; int32 upState = 3; @@ -110,7 +116,7 @@ message CountAllEnabledIPAddressesRequest { } // 列出单页IP地址 -message ListEnabledIPAddressesRequest { +message ListEnabledNodeIPAddressesRequest { int64 nodeClusterId = 1; string role = 2; int32 upState = 3; @@ -119,6 +125,17 @@ message ListEnabledIPAddressesRequest { int64 size = 6; } -message ListEnabledIPAddressesResponse { +message ListEnabledNodeIPAddressesResponse { repeated NodeIPAddress nodeIPAddresses = 1; +} + +// 设置上下线状态 +message UpdateNodeIPAddressIsUpRequest { + int64 nodeIPAddressId = 1; + bool isUp = 2; +} + +// 还原备用IP状态 +message RestoreNodeIPAddressBackupIPRequest { + int64 nodeIPAddressId = 1; } \ No newline at end of file