// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.2 // protoc v5.26.1 // source: et_rpc.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // 枚举定义 type NodeState int32 const ( NodeState_UNKNOWN NodeState = 0 NodeState_ACTIVE NodeState = 1 NodeState_INACTIVE NodeState = 2 ) // Enum value maps for NodeState. var ( NodeState_name = map[int32]string{ 0: "UNKNOWN", 1: "ACTIVE", 2: "INACTIVE", } NodeState_value = map[string]int32{ "UNKNOWN": 0, "ACTIVE": 1, "INACTIVE": 2, } ) func (x NodeState) Enum() *NodeState { p := new(NodeState) *p = x return p } func (x NodeState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (NodeState) Descriptor() protoreflect.EnumDescriptor { return file_et_rpc_proto_enumTypes[0].Descriptor() } func (NodeState) Type() protoreflect.EnumType { return &file_et_rpc_proto_enumTypes[0] } func (x NodeState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use NodeState.Descriptor instead. func (NodeState) EnumDescriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{0} } type RPCReplyCode int32 const ( RPCReplyCode_SUCCESS RPCReplyCode = 0 RPCReplyCode_FAILURE RPCReplyCode = 1 ) // Enum value maps for RPCReplyCode. var ( RPCReplyCode_name = map[int32]string{ 0: "SUCCESS", 1: "FAILURE", } RPCReplyCode_value = map[string]int32{ "SUCCESS": 0, "FAILURE": 1, } ) func (x RPCReplyCode) Enum() *RPCReplyCode { p := new(RPCReplyCode) *p = x return p } func (x RPCReplyCode) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (RPCReplyCode) Descriptor() protoreflect.EnumDescriptor { return file_et_rpc_proto_enumTypes[1].Descriptor() } func (RPCReplyCode) Type() protoreflect.EnumType { return &file_et_rpc_proto_enumTypes[1] } func (x RPCReplyCode) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use RPCReplyCode.Descriptor instead. func (RPCReplyCode) EnumDescriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{1} } type RpcResponse_Status int32 const ( RpcResponse_SUCCESS RpcResponse_Status = 0 // 请求成功 RpcResponse_FAILURE RpcResponse_Status = 1 // 请求失败 RpcResponse_INVALID_ARGUMENT RpcResponse_Status = 2 // 无效参数 RpcResponse_NOT_FOUND RpcResponse_Status = 3 // 未找到 RpcResponse_INTERNAL_ERROR RpcResponse_Status = 4 // 内部错误 ) // Enum value maps for RpcResponse_Status. var ( RpcResponse_Status_name = map[int32]string{ 0: "SUCCESS", 1: "FAILURE", 2: "INVALID_ARGUMENT", 3: "NOT_FOUND", 4: "INTERNAL_ERROR", } RpcResponse_Status_value = map[string]int32{ "SUCCESS": 0, "FAILURE": 1, "INVALID_ARGUMENT": 2, "NOT_FOUND": 3, "INTERNAL_ERROR": 4, } ) func (x RpcResponse_Status) Enum() *RpcResponse_Status { p := new(RpcResponse_Status) *p = x return p } func (x RpcResponse_Status) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (RpcResponse_Status) Descriptor() protoreflect.EnumDescriptor { return file_et_rpc_proto_enumTypes[2].Descriptor() } func (RpcResponse_Status) Type() protoreflect.EnumType { return &file_et_rpc_proto_enumTypes[2] } func (x RpcResponse_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use RpcResponse_Status.Descriptor instead. func (RpcResponse_Status) EnumDescriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{8, 0} } type HandleDataResponse_Status int32 const ( HandleDataResponse_SUCCESS HandleDataResponse_Status = 0 // 请求成功 HandleDataResponse_FAILURE HandleDataResponse_Status = 1 // 请求失败 HandleDataResponse_INVALID_ARGUMENT HandleDataResponse_Status = 2 // 无效参数 HandleDataResponse_INTERNAL_ERROR HandleDataResponse_Status = 4 // 内部错误 ) // Enum value maps for HandleDataResponse_Status. var ( HandleDataResponse_Status_name = map[int32]string{ 0: "SUCCESS", 1: "FAILURE", 2: "INVALID_ARGUMENT", 4: "INTERNAL_ERROR", } HandleDataResponse_Status_value = map[string]int32{ "SUCCESS": 0, "FAILURE": 1, "INVALID_ARGUMENT": 2, "INTERNAL_ERROR": 4, } ) func (x HandleDataResponse_Status) Enum() *HandleDataResponse_Status { p := new(HandleDataResponse_Status) *p = x return p } func (x HandleDataResponse_Status) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (HandleDataResponse_Status) Descriptor() protoreflect.EnumDescriptor { return file_et_rpc_proto_enumTypes[3].Descriptor() } func (HandleDataResponse_Status) Type() protoreflect.EnumType { return &file_et_rpc_proto_enumTypes[3] } func (x HandleDataResponse_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use HandleDataResponse_Status.Descriptor instead. func (HandleDataResponse_Status) EnumDescriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{9, 0} } type NodeArgs struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 节点ID Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` // 节点地址 Load int32 `protobuf:"varint,3,opt,name=load,proto3" json:"load,omitempty"` // 节点荷载 ResourceJson string `protobuf:"bytes,4,opt,name=resource_json,json=resourceJson,proto3" json:"resource_json,omitempty"` // 资源使用情况JSON Weight int32 `protobuf:"varint,5,opt,name=weight,proto3" json:"weight,omitempty"` // 权重 Status NodeState `protobuf:"varint,6,opt,name=status,proto3,enum=et_rpc.NodeState" json:"status,omitempty"` // 节点状态 ErrCode RPCReplyCode `protobuf:"varint,7,opt,name=err_code,json=errCode,proto3,enum=et_rpc.RPCReplyCode" json:"err_code,omitempty"` // 错误代码 ErrMessage string `protobuf:"bytes,8,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"` // 错误信息 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeArgs) Reset() { *x = NodeArgs{} mi := &file_et_rpc_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeArgs) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeArgs) ProtoMessage() {} func (x *NodeArgs) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 NodeArgs.ProtoReflect.Descriptor instead. func (*NodeArgs) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{0} } func (x *NodeArgs) GetId() string { if x != nil { return x.Id } return "" } func (x *NodeArgs) GetAddr() string { if x != nil { return x.Addr } return "" } func (x *NodeArgs) GetLoad() int32 { if x != nil { return x.Load } return 0 } func (x *NodeArgs) GetResourceJson() string { if x != nil { return x.ResourceJson } return "" } func (x *NodeArgs) GetWeight() int32 { if x != nil { return x.Weight } return 0 } func (x *NodeArgs) GetStatus() NodeState { if x != nil { return x.Status } return NodeState_UNKNOWN } func (x *NodeArgs) GetErrCode() RPCReplyCode { if x != nil { return x.ErrCode } return RPCReplyCode_SUCCESS } func (x *NodeArgs) GetErrMessage() string { if x != nil { return x.ErrMessage } return "" } type NodeResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` ErrCode RPCReplyCode `protobuf:"varint,3,opt,name=err_code,json=errCode,proto3,enum=et_rpc.RPCReplyCode" json:"err_code,omitempty"` ErrMessage string `protobuf:"bytes,4,opt,name=err_message,json=errMessage,proto3" json:"err_message,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeResponse) Reset() { *x = NodeResponse{} mi := &file_et_rpc_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeResponse) ProtoMessage() {} func (x *NodeResponse) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 NodeResponse.ProtoReflect.Descriptor instead. func (*NodeResponse) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{1} } func (x *NodeResponse) GetId() string { if x != nil { return x.Id } return "" } func (x *NodeResponse) GetAddr() string { if x != nil { return x.Addr } return "" } func (x *NodeResponse) GetErrCode() RPCReplyCode { if x != nil { return x.ErrCode } return RPCReplyCode_SUCCESS } func (x *NodeResponse) GetErrMessage() string { if x != nil { return x.ErrMessage } return "" } type NodeRegistrationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` NodeAddr string `protobuf:"bytes,2,opt,name=node_addr,json=nodeAddr,proto3" json:"node_addr,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeRegistrationRequest) Reset() { *x = NodeRegistrationRequest{} mi := &file_et_rpc_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeRegistrationRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeRegistrationRequest) ProtoMessage() {} func (x *NodeRegistrationRequest) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 NodeRegistrationRequest.ProtoReflect.Descriptor instead. func (*NodeRegistrationRequest) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{2} } func (x *NodeRegistrationRequest) GetNodeId() string { if x != nil { return x.NodeId } return "" } func (x *NodeRegistrationRequest) GetNodeAddr() string { if x != nil { return x.NodeAddr } return "" } type NodeStatusRequest struct { state protoimpl.MessageState `protogen:"open.v1"` NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeStatusRequest) Reset() { *x = NodeStatusRequest{} mi := &file_et_rpc_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeStatusRequest) ProtoMessage() {} func (x *NodeStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 NodeStatusRequest.ProtoReflect.Descriptor instead. func (*NodeStatusRequest) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{3} } func (x *NodeStatusRequest) GetNodeId() string { if x != nil { return x.NodeId } return "" } type NodeStatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 例如 "active", "inactive" unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeStatusResponse) Reset() { *x = NodeStatusResponse{} mi := &file_et_rpc_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeStatusResponse) ProtoMessage() {} func (x *NodeStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 NodeStatusResponse.ProtoReflect.Descriptor instead. func (*NodeStatusResponse) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{4} } func (x *NodeStatusResponse) GetNodeId() string { if x != nil { return x.NodeId } return "" } func (x *NodeStatusResponse) GetStatus() string { if x != nil { return x.Status } return "" } // 定义键值对消息 type KeyValue struct { state protoimpl.MessageState `protogen:"open.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 键 Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // 值 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *KeyValue) Reset() { *x = KeyValue{} mi := &file_et_rpc_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *KeyValue) String() string { return protoimpl.X.MessageStringOf(x) } func (*KeyValue) ProtoMessage() {} func (x *KeyValue) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 KeyValue.ProtoReflect.Descriptor instead. func (*KeyValue) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{5} } func (x *KeyValue) GetKey() string { if x != nil { return x.Key } return "" } func (x *KeyValue) GetValue() float64 { if x != nil { return x.Value } return 0 } // 定义AggData消息 type AggData struct { state protoimpl.MessageState `protogen:"open.v1"` Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` // 使用protobuf的时间戳类型 SensorId int32 `protobuf:"varint,2,opt,name=sensor_id,json=sensorId,proto3" json:"sensor_id,omitempty"` // SensorId StructId int32 `protobuf:"varint,3,opt,name=struct_id,json=structId,proto3" json:"struct_id,omitempty"` // StructId FactorId int32 `protobuf:"varint,4,opt,name=factor_id,json=factorId,proto3" json:"factor_id,omitempty"` // FactorId AggTypeId int32 `protobuf:"varint,5,opt,name=agg_type_id,json=aggTypeId,proto3" json:"agg_type_id,omitempty"` // 聚集类型 AggMethodId int32 `protobuf:"varint,6,opt,name=agg_method_id,json=aggMethodId,proto3" json:"agg_method_id,omitempty"` // 聚集方法 Agg []*KeyValue `protobuf:"bytes,7,rep,name=agg,proto3" json:"agg,omitempty"` // 聚集数据 Changed []*KeyValue `protobuf:"bytes,8,rep,name=changed,proto3" json:"changed,omitempty"` // 变化量 ThingId string `protobuf:"bytes,9,opt,name=thing_id,json=thingId,proto3" json:"thing_id,omitempty"` // ThingId unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AggData) Reset() { *x = AggData{} mi := &file_et_rpc_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AggData) String() string { return protoimpl.X.MessageStringOf(x) } func (*AggData) ProtoMessage() {} func (x *AggData) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 AggData.ProtoReflect.Descriptor instead. func (*AggData) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{6} } func (x *AggData) GetDate() string { if x != nil { return x.Date } return "" } func (x *AggData) GetSensorId() int32 { if x != nil { return x.SensorId } return 0 } func (x *AggData) GetStructId() int32 { if x != nil { return x.StructId } return 0 } func (x *AggData) GetFactorId() int32 { if x != nil { return x.FactorId } return 0 } func (x *AggData) GetAggTypeId() int32 { if x != nil { return x.AggTypeId } return 0 } func (x *AggData) GetAggMethodId() int32 { if x != nil { return x.AggMethodId } return 0 } func (x *AggData) GetAgg() []*KeyValue { if x != nil { return x.Agg } return nil } func (x *AggData) GetChanged() []*KeyValue { if x != nil { return x.Changed } return nil } func (x *AggData) GetThingId() string { if x != nil { return x.ThingId } return "" } type NodeRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` ThingIds []string `protobuf:"bytes,3,rep,name=thing_ids,json=thingIds,proto3" json:"thing_ids,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NodeRequest) Reset() { *x = NodeRequest{} mi := &file_et_rpc_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NodeRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*NodeRequest) ProtoMessage() {} func (x *NodeRequest) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 NodeRequest.ProtoReflect.Descriptor instead. func (*NodeRequest) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{7} } func (x *NodeRequest) GetId() string { if x != nil { return x.Id } return "" } func (x *NodeRequest) GetAddress() string { if x != nil { return x.Address } return "" } func (x *NodeRequest) GetThingIds() []string { if x != nil { return x.ThingIds } return nil } type RpcResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Status RpcResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=et_rpc.RpcResponse_Status" json:"status,omitempty"` // 请求状态 ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // 错误信息,如果请求失败则返回具体的错误信息 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RpcResponse) Reset() { *x = RpcResponse{} mi := &file_et_rpc_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RpcResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RpcResponse) ProtoMessage() {} func (x *RpcResponse) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_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 RpcResponse.ProtoReflect.Descriptor instead. func (*RpcResponse) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{8} } func (x *RpcResponse) GetStatus() RpcResponse_Status { if x != nil { return x.Status } return RpcResponse_SUCCESS } func (x *RpcResponse) GetErrorMessage() string { if x != nil { return x.ErrorMessage } return "" } type HandleDataResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` // 节点地址 Load int32 `protobuf:"varint,2,opt,name=load,proto3" json:"load,omitempty"` // 节点荷载 Status HandleDataResponse_Status `protobuf:"varint,3,opt,name=status,proto3,enum=et_rpc.HandleDataResponse_Status" json:"status,omitempty"` // 请求状态 ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // 错误信息,如果请求失败则返回具体的错误信息 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HandleDataResponse) Reset() { *x = HandleDataResponse{} mi := &file_et_rpc_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HandleDataResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*HandleDataResponse) ProtoMessage() {} func (x *HandleDataResponse) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_proto_msgTypes[9] 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 HandleDataResponse.ProtoReflect.Descriptor instead. func (*HandleDataResponse) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{9} } func (x *HandleDataResponse) GetAddr() string { if x != nil { return x.Addr } return "" } func (x *HandleDataResponse) GetLoad() int32 { if x != nil { return x.Load } return 0 } func (x *HandleDataResponse) GetStatus() HandleDataResponse_Status { if x != nil { return x.Status } return HandleDataResponse_SUCCESS } func (x *HandleDataResponse) GetErrorMessage() string { if x != nil { return x.ErrorMessage } return "" } type HandleDataRequest struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Messages []string `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HandleDataRequest) Reset() { *x = HandleDataRequest{} mi := &file_et_rpc_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HandleDataRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*HandleDataRequest) ProtoMessage() {} func (x *HandleDataRequest) ProtoReflect() protoreflect.Message { mi := &file_et_rpc_proto_msgTypes[10] 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 HandleDataRequest.ProtoReflect.Descriptor instead. func (*HandleDataRequest) Descriptor() ([]byte, []int) { return file_et_rpc_proto_rawDescGZIP(), []int{10} } func (x *HandleDataRequest) GetId() string { if x != nil { return x.Id } return "" } func (x *HandleDataRequest) GetMessages() []string { if x != nil { return x.Messages } return nil } var File_et_rpc_proto protoreflect.FileDescriptor var file_et_rpc_proto_rawDesc = []byte{ 0x0a, 0x0c, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x22, 0xfc, 0x01, 0x0a, 0x08, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x72, 0x67, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x29, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x65, 0x72, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x50, 0x43, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x65, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x2f, 0x0a, 0x08, 0x65, 0x72, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x50, 0x43, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x07, 0x65, 0x72, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x72, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4f, 0x0a, 0x17, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x41, 0x64, 0x64, 0x72, 0x22, 0x2c, 0x0a, 0x11, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x12, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa3, 0x02, 0x0a, 0x07, 0x41, 0x67, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x73, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x61, 0x67, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x61, 0x67, 0x67, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d, 0x61, 0x67, 0x67, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x61, 0x67, 0x67, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x03, 0x61, 0x67, 0x67, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x61, 0x67, 0x67, 0x12, 0x2a, 0x0a, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x74, 0x68, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x73, 0x22, 0xc3, 0x01, 0x0a, 0x0b, 0x52, 0x70, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x70, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5b, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0xea, 0x01, 0x0a, 0x12, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x4c, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x22, 0x3f, 0x0a, 0x11, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2a, 0x32, 0x0a, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x2a, 0x28, 0x0a, 0x0c, 0x52, 0x50, 0x43, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x01, 0x32, 0x9e, 0x01, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x49, 0x6f, 0x74, 0x61, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0d, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x41, 0x67, 0x67, 0x44, 0x61, 0x74, 0x61, 0x12, 0x19, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xc0, 0x01, 0x0a, 0x0d, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x38, 0x0a, 0x0c, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x70, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0d, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x70, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x0e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x65, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x70, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x05, 0x5a, 0x03, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_et_rpc_proto_rawDescOnce sync.Once file_et_rpc_proto_rawDescData = file_et_rpc_proto_rawDesc ) func file_et_rpc_proto_rawDescGZIP() []byte { file_et_rpc_proto_rawDescOnce.Do(func() { file_et_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_et_rpc_proto_rawDescData) }) return file_et_rpc_proto_rawDescData } var file_et_rpc_proto_enumTypes = make([]protoimpl.EnumInfo, 4) var file_et_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_et_rpc_proto_goTypes = []any{ (NodeState)(0), // 0: et_rpc.NodeState (RPCReplyCode)(0), // 1: et_rpc.RPCReplyCode (RpcResponse_Status)(0), // 2: et_rpc.RpcResponse.Status (HandleDataResponse_Status)(0), // 3: et_rpc.HandleDataResponse.Status (*NodeArgs)(nil), // 4: et_rpc.NodeArgs (*NodeResponse)(nil), // 5: et_rpc.NodeResponse (*NodeRegistrationRequest)(nil), // 6: et_rpc.NodeRegistrationRequest (*NodeStatusRequest)(nil), // 7: et_rpc.NodeStatusRequest (*NodeStatusResponse)(nil), // 8: et_rpc.NodeStatusResponse (*KeyValue)(nil), // 9: et_rpc.KeyValue (*AggData)(nil), // 10: et_rpc.AggData (*NodeRequest)(nil), // 11: et_rpc.NodeRequest (*RpcResponse)(nil), // 12: et_rpc.RpcResponse (*HandleDataResponse)(nil), // 13: et_rpc.HandleDataResponse (*HandleDataRequest)(nil), // 14: et_rpc.HandleDataRequest } var file_et_rpc_proto_depIdxs = []int32{ 0, // 0: et_rpc.NodeArgs.status:type_name -> et_rpc.NodeState 1, // 1: et_rpc.NodeArgs.err_code:type_name -> et_rpc.RPCReplyCode 1, // 2: et_rpc.NodeResponse.err_code:type_name -> et_rpc.RPCReplyCode 9, // 3: et_rpc.AggData.agg:type_name -> et_rpc.KeyValue 9, // 4: et_rpc.AggData.changed:type_name -> et_rpc.KeyValue 2, // 5: et_rpc.RpcResponse.status:type_name -> et_rpc.RpcResponse.Status 3, // 6: et_rpc.HandleDataResponse.status:type_name -> et_rpc.HandleDataResponse.Status 14, // 7: et_rpc.NodeService.HandleIotaData:input_type -> et_rpc.HandleDataRequest 14, // 8: et_rpc.NodeService.HandleAggData:input_type -> et_rpc.HandleDataRequest 11, // 9: et_rpc.MasterService.RegisterNode:input_type -> et_rpc.NodeRequest 11, // 10: et_rpc.MasterService.HeartbeatNode:input_type -> et_rpc.NodeRequest 11, // 11: et_rpc.MasterService.UnregisterNode:input_type -> et_rpc.NodeRequest 13, // 12: et_rpc.NodeService.HandleIotaData:output_type -> et_rpc.HandleDataResponse 13, // 13: et_rpc.NodeService.HandleAggData:output_type -> et_rpc.HandleDataResponse 12, // 14: et_rpc.MasterService.RegisterNode:output_type -> et_rpc.RpcResponse 12, // 15: et_rpc.MasterService.HeartbeatNode:output_type -> et_rpc.RpcResponse 12, // 16: et_rpc.MasterService.UnregisterNode:output_type -> et_rpc.RpcResponse 12, // [12:17] is the sub-list for method output_type 7, // [7:12] is the sub-list for method input_type 7, // [7:7] is the sub-list for extension type_name 7, // [7:7] is the sub-list for extension extendee 0, // [0:7] is the sub-list for field type_name } func init() { file_et_rpc_proto_init() } func file_et_rpc_proto_init() { if File_et_rpc_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_et_rpc_proto_rawDesc, NumEnums: 4, NumMessages: 11, NumExtensions: 0, NumServices: 2, }, GoTypes: file_et_rpc_proto_goTypes, DependencyIndexes: file_et_rpc_proto_depIdxs, EnumInfos: file_et_rpc_proto_enumTypes, MessageInfos: file_et_rpc_proto_msgTypes, }.Build() File_et_rpc_proto = out.File file_et_rpc_proto_rawDesc = nil file_et_rpc_proto_goTypes = nil file_et_rpc_proto_depIdxs = nil }