// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_node_action.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // 添加动作 type CreateNodeActionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"` // 节点ID Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // 节点角色 CondsJSON []byte `protobuf:"bytes,3,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"` // 条件设置 ActionJSON []byte `protobuf:"bytes,4,opt,name=actionJSON,proto3" json:"actionJSON,omitempty"` // 动作设置 DurationJSON []byte `protobuf:"bytes,5,opt,name=durationJSON,proto3" json:"durationJSON,omitempty"` // 持续时间 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateNodeActionRequest) Reset() { *x = CreateNodeActionRequest{} mi := &file_service_node_action_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateNodeActionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateNodeActionRequest) ProtoMessage() {} func (x *CreateNodeActionRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateNodeActionRequest.ProtoReflect.Descriptor instead. func (*CreateNodeActionRequest) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{0} } func (x *CreateNodeActionRequest) GetNodeId() int64 { if x != nil { return x.NodeId } return 0 } func (x *CreateNodeActionRequest) GetRole() string { if x != nil { return x.Role } return "" } func (x *CreateNodeActionRequest) GetCondsJSON() []byte { if x != nil { return x.CondsJSON } return nil } func (x *CreateNodeActionRequest) GetActionJSON() []byte { if x != nil { return x.ActionJSON } return nil } func (x *CreateNodeActionRequest) GetDurationJSON() []byte { if x != nil { return x.DurationJSON } return nil } type CreateNodeActionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` NodeActionId int64 `protobuf:"varint,1,opt,name=nodeActionId,proto3" json:"nodeActionId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateNodeActionResponse) Reset() { *x = CreateNodeActionResponse{} mi := &file_service_node_action_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateNodeActionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateNodeActionResponse) ProtoMessage() {} func (x *CreateNodeActionResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateNodeActionResponse.ProtoReflect.Descriptor instead. func (*CreateNodeActionResponse) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{1} } func (x *CreateNodeActionResponse) GetNodeActionId() int64 { if x != nil { return x.NodeActionId } return 0 } // 删除动作 type DeleteNodeActionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeActionId int64 `protobuf:"varint,1,opt,name=nodeActionId,proto3" json:"nodeActionId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteNodeActionRequest) Reset() { *x = DeleteNodeActionRequest{} mi := &file_service_node_action_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteNodeActionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteNodeActionRequest) ProtoMessage() {} func (x *DeleteNodeActionRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteNodeActionRequest.ProtoReflect.Descriptor instead. func (*DeleteNodeActionRequest) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{2} } func (x *DeleteNodeActionRequest) GetNodeActionId() int64 { if x != nil { return x.NodeActionId } return 0 } // 修改动作 type UpdateNodeActionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeActionId int64 `protobuf:"varint,1,opt,name=nodeActionId,proto3" json:"nodeActionId,omitempty"` // 动作ID CondsJSON []byte `protobuf:"bytes,2,opt,name=condsJSON,proto3" json:"condsJSON,omitempty"` ActionJSON []byte `protobuf:"bytes,3,opt,name=actionJSON,proto3" json:"actionJSON,omitempty"` DurationJSON []byte `protobuf:"bytes,4,opt,name=durationJSON,proto3" json:"durationJSON,omitempty"` // 持续时间 IsOn bool `protobuf:"varint,5,opt,name=isOn,proto3" json:"isOn,omitempty"` // 是否启用 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateNodeActionRequest) Reset() { *x = UpdateNodeActionRequest{} mi := &file_service_node_action_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateNodeActionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateNodeActionRequest) ProtoMessage() {} func (x *UpdateNodeActionRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateNodeActionRequest.ProtoReflect.Descriptor instead. func (*UpdateNodeActionRequest) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{3} } func (x *UpdateNodeActionRequest) GetNodeActionId() int64 { if x != nil { return x.NodeActionId } return 0 } func (x *UpdateNodeActionRequest) GetCondsJSON() []byte { if x != nil { return x.CondsJSON } return nil } func (x *UpdateNodeActionRequest) GetActionJSON() []byte { if x != nil { return x.ActionJSON } return nil } func (x *UpdateNodeActionRequest) GetDurationJSON() []byte { if x != nil { return x.DurationJSON } return nil } func (x *UpdateNodeActionRequest) GetIsOn() bool { if x != nil { return x.IsOn } return false } // 列出某个节点的所有动作 type FindAllNodeActionsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"` // 节点ID Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // 节点角色 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindAllNodeActionsRequest) Reset() { *x = FindAllNodeActionsRequest{} mi := &file_service_node_action_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindAllNodeActionsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAllNodeActionsRequest) ProtoMessage() {} func (x *FindAllNodeActionsRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindAllNodeActionsRequest.ProtoReflect.Descriptor instead. func (*FindAllNodeActionsRequest) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{4} } func (x *FindAllNodeActionsRequest) GetNodeId() int64 { if x != nil { return x.NodeId } return 0 } func (x *FindAllNodeActionsRequest) GetRole() string { if x != nil { return x.Role } return "" } type FindAllNodeActionsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` NodeActions []*NodeAction `protobuf:"bytes,1,rep,name=nodeActions,proto3" json:"nodeActions,omitempty"` // 动作列表 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindAllNodeActionsResponse) Reset() { *x = FindAllNodeActionsResponse{} mi := &file_service_node_action_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindAllNodeActionsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindAllNodeActionsResponse) ProtoMessage() {} func (x *FindAllNodeActionsResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindAllNodeActionsResponse.ProtoReflect.Descriptor instead. func (*FindAllNodeActionsResponse) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{5} } func (x *FindAllNodeActionsResponse) GetNodeActions() []*NodeAction { if x != nil { return x.NodeActions } return nil } // 查找单个节点动作 type FindNodeActionRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeActionId int64 `protobuf:"varint,1,opt,name=nodeActionId,proto3" json:"nodeActionId,omitempty"` // 动作ID unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindNodeActionRequest) Reset() { *x = FindNodeActionRequest{} mi := &file_service_node_action_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindNodeActionRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindNodeActionRequest) ProtoMessage() {} func (x *FindNodeActionRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindNodeActionRequest.ProtoReflect.Descriptor instead. func (*FindNodeActionRequest) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{6} } func (x *FindNodeActionRequest) GetNodeActionId() int64 { if x != nil { return x.NodeActionId } return 0 } type FindNodeActionResponse struct { state protoimpl.MessageState `protogen:"open.v1"` NodeAction *NodeAction `protobuf:"bytes,1,opt,name=nodeAction,proto3" json:"nodeAction,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *FindNodeActionResponse) Reset() { *x = FindNodeActionResponse{} mi := &file_service_node_action_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *FindNodeActionResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindNodeActionResponse) ProtoMessage() {} func (x *FindNodeActionResponse) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use FindNodeActionResponse.ProtoReflect.Descriptor instead. func (*FindNodeActionResponse) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{7} } func (x *FindNodeActionResponse) GetNodeAction() *NodeAction { if x != nil { return x.NodeAction } return nil } // 设置节点动作排序 type UpdateNodeActionOrdersRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeActionIds []int64 `protobuf:"varint,1,rep,packed,name=nodeActionIds,proto3" json:"nodeActionIds,omitempty"` // 节点动作ID列表 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateNodeActionOrdersRequest) Reset() { *x = UpdateNodeActionOrdersRequest{} mi := &file_service_node_action_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateNodeActionOrdersRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateNodeActionOrdersRequest) ProtoMessage() {} func (x *UpdateNodeActionOrdersRequest) ProtoReflect() protoreflect.Message { mi := &file_service_node_action_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateNodeActionOrdersRequest.ProtoReflect.Descriptor instead. func (*UpdateNodeActionOrdersRequest) Descriptor() ([]byte, []int) { return file_service_node_action_proto_rawDescGZIP(), []int{8} } func (x *UpdateNodeActionOrdersRequest) GetNodeActionIds() []int64 { if x != nil { return x.NodeActionIds } return nil } var File_service_node_action_proto protoreflect.FileDescriptor const file_service_node_action_proto_rawDesc = "" + "\n" + "\x19service_node_action.proto\x12\x02pb\x1a\x1emodels/model_node_action.proto\x1a\x19models/rpc_messages.proto\"\xa7\x01\n" + "\x17CreateNodeActionRequest\x12\x16\n" + "\x06nodeId\x18\x01 \x01(\x03R\x06nodeId\x12\x12\n" + "\x04role\x18\x02 \x01(\tR\x04role\x12\x1c\n" + "\tcondsJSON\x18\x03 \x01(\fR\tcondsJSON\x12\x1e\n" + "\n" + "actionJSON\x18\x04 \x01(\fR\n" + "actionJSON\x12\"\n" + "\fdurationJSON\x18\x05 \x01(\fR\fdurationJSON\">\n" + "\x18CreateNodeActionResponse\x12\"\n" + "\fnodeActionId\x18\x01 \x01(\x03R\fnodeActionId\"=\n" + "\x17DeleteNodeActionRequest\x12\"\n" + "\fnodeActionId\x18\x01 \x01(\x03R\fnodeActionId\"\xb3\x01\n" + "\x17UpdateNodeActionRequest\x12\"\n" + "\fnodeActionId\x18\x01 \x01(\x03R\fnodeActionId\x12\x1c\n" + "\tcondsJSON\x18\x02 \x01(\fR\tcondsJSON\x12\x1e\n" + "\n" + "actionJSON\x18\x03 \x01(\fR\n" + "actionJSON\x12\"\n" + "\fdurationJSON\x18\x04 \x01(\fR\fdurationJSON\x12\x12\n" + "\x04isOn\x18\x05 \x01(\bR\x04isOn\"G\n" + "\x19FindAllNodeActionsRequest\x12\x16\n" + "\x06nodeId\x18\x01 \x01(\x03R\x06nodeId\x12\x12\n" + "\x04role\x18\x02 \x01(\tR\x04role\"N\n" + "\x1aFindAllNodeActionsResponse\x120\n" + "\vnodeActions\x18\x01 \x03(\v2\x0e.pb.NodeActionR\vnodeActions\";\n" + "\x15FindNodeActionRequest\x12\"\n" + "\fnodeActionId\x18\x01 \x01(\x03R\fnodeActionId\"H\n" + "\x16FindNodeActionResponse\x12.\n" + "\n" + "nodeAction\x18\x01 \x01(\v2\x0e.pb.NodeActionR\n" + "nodeAction\"E\n" + "\x1dUpdateNodeActionOrdersRequest\x12$\n" + "\rnodeActionIds\x18\x01 \x03(\x03R\rnodeActionIds2\xcf\x03\n" + "\x11NodeActionService\x12M\n" + "\x10createNodeAction\x12\x1b.pb.CreateNodeActionRequest\x1a\x1c.pb.CreateNodeActionResponse\x12?\n" + "\x10deleteNodeAction\x12\x1b.pb.DeleteNodeActionRequest\x1a\x0e.pb.RPCSuccess\x12?\n" + "\x10updateNodeAction\x12\x1b.pb.UpdateNodeActionRequest\x1a\x0e.pb.RPCSuccess\x12S\n" + "\x12findAllNodeActions\x12\x1d.pb.FindAllNodeActionsRequest\x1a\x1e.pb.FindAllNodeActionsResponse\x12G\n" + "\x0efindNodeAction\x12\x19.pb.FindNodeActionRequest\x1a\x1a.pb.FindNodeActionResponse\x12K\n" + "\x16updateNodeActionOrders\x12!.pb.UpdateNodeActionOrdersRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3" var ( file_service_node_action_proto_rawDescOnce sync.Once file_service_node_action_proto_rawDescData []byte ) func file_service_node_action_proto_rawDescGZIP() []byte { file_service_node_action_proto_rawDescOnce.Do(func() { file_service_node_action_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_node_action_proto_rawDesc), len(file_service_node_action_proto_rawDesc))) }) return file_service_node_action_proto_rawDescData } var file_service_node_action_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_service_node_action_proto_goTypes = []any{ (*CreateNodeActionRequest)(nil), // 0: pb.CreateNodeActionRequest (*CreateNodeActionResponse)(nil), // 1: pb.CreateNodeActionResponse (*DeleteNodeActionRequest)(nil), // 2: pb.DeleteNodeActionRequest (*UpdateNodeActionRequest)(nil), // 3: pb.UpdateNodeActionRequest (*FindAllNodeActionsRequest)(nil), // 4: pb.FindAllNodeActionsRequest (*FindAllNodeActionsResponse)(nil), // 5: pb.FindAllNodeActionsResponse (*FindNodeActionRequest)(nil), // 6: pb.FindNodeActionRequest (*FindNodeActionResponse)(nil), // 7: pb.FindNodeActionResponse (*UpdateNodeActionOrdersRequest)(nil), // 8: pb.UpdateNodeActionOrdersRequest (*NodeAction)(nil), // 9: pb.NodeAction (*RPCSuccess)(nil), // 10: pb.RPCSuccess } var file_service_node_action_proto_depIdxs = []int32{ 9, // 0: pb.FindAllNodeActionsResponse.nodeActions:type_name -> pb.NodeAction 9, // 1: pb.FindNodeActionResponse.nodeAction:type_name -> pb.NodeAction 0, // 2: pb.NodeActionService.createNodeAction:input_type -> pb.CreateNodeActionRequest 2, // 3: pb.NodeActionService.deleteNodeAction:input_type -> pb.DeleteNodeActionRequest 3, // 4: pb.NodeActionService.updateNodeAction:input_type -> pb.UpdateNodeActionRequest 4, // 5: pb.NodeActionService.findAllNodeActions:input_type -> pb.FindAllNodeActionsRequest 6, // 6: pb.NodeActionService.findNodeAction:input_type -> pb.FindNodeActionRequest 8, // 7: pb.NodeActionService.updateNodeActionOrders:input_type -> pb.UpdateNodeActionOrdersRequest 1, // 8: pb.NodeActionService.createNodeAction:output_type -> pb.CreateNodeActionResponse 10, // 9: pb.NodeActionService.deleteNodeAction:output_type -> pb.RPCSuccess 10, // 10: pb.NodeActionService.updateNodeAction:output_type -> pb.RPCSuccess 5, // 11: pb.NodeActionService.findAllNodeActions:output_type -> pb.FindAllNodeActionsResponse 7, // 12: pb.NodeActionService.findNodeAction:output_type -> pb.FindNodeActionResponse 10, // 13: pb.NodeActionService.updateNodeActionOrders:output_type -> pb.RPCSuccess 8, // [8:14] is the sub-list for method output_type 2, // [2:8] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_service_node_action_proto_init() } func file_service_node_action_proto_init() { if File_service_node_action_proto != nil { return } file_models_model_node_action_proto_init() file_models_rpc_messages_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_node_action_proto_rawDesc), len(file_service_node_action_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_node_action_proto_goTypes, DependencyIndexes: file_service_node_action_proto_depIdxs, MessageInfos: file_service_node_action_proto_msgTypes, }.Build() File_service_node_action_proto = out.File file_service_node_action_proto_goTypes = nil file_service_node_action_proto_depIdxs = nil }