diff --git a/release/go/go.mod b/release/go/go.mod index 6c3859dd..e01f6614 100644 --- a/release/go/go.mod +++ b/release/go/go.mod @@ -4,8 +4,8 @@ go 1.20 require ( github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 - google.golang.org/genproto/googleapis/api v0.0.0-20230920204549-e6e6cdab5c13 - google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 + google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b + google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b google.golang.org/grpc v1.59.0 google.golang.org/protobuf v1.31.0 ) @@ -15,5 +15,5 @@ require ( golang.org/x/net v0.17.0 // indirect golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect - google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 // indirect + google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect ) diff --git a/release/go/go.sum b/release/go/go.sum index 38a6e089..0d5beaac 100644 --- a/release/go/go.sum +++ b/release/go/go.sum @@ -13,12 +13,12 @@ golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13 h1:vlzZttNJGVqTsRFU9AmdnrcO1Znh8Ew9kCD//yjigk0= -google.golang.org/genproto v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:CCviP9RmpZ1mxVr8MUjCnSiY09IbAXZxhLE6EhHIdPU= -google.golang.org/genproto/googleapis/api v0.0.0-20230920204549-e6e6cdab5c13 h1:U7+wNaVuSTaUqNvK2+osJ9ejEZxbjHHk8F2b6Hpx0AE= -google.golang.org/genproto/googleapis/api v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:RdyHbowztCGQySiCvQPgWQWgWhGnouTdCflKoDBt32U= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13 h1:N3bU/SQDCDyD6R528GJ/PwW9KjYcJA3dgyH+MovAkIM= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230920204549-e6e6cdab5c13/go.mod h1:KSqppvjFjtoCI+KGd4PELB0qLNxdJHRGqRI09mB6pQA= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b h1:+YaDE2r2OG8t/z5qmsh7Y+XXwCbvadxxZ0YY6mTdrVA= +google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:CgAqfJo+Xmu0GwA0411Ht3OU3OntXwsGmrmjI8ioGXI= +google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b h1:CIC2YMXmIhYw6evmhPxBKJ4fmLbOFtXQN/GV3XOZR8k= +google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:IBQ646DjkDkvUIsVq/cc03FUFQ9wbZu7yE396YcL870= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b h1:ZlWIi1wSK56/8hn4QcBp/j9M7Gt3U/3hZw3mC7vDICo= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b/go.mod h1:swOH3j0KzcDDgGUWr+SNpyTen5YrXjS3eyPzFYKc6lc= google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= diff --git a/release/go/spacemesh/v1/admin_types.pb.go b/release/go/spacemesh/v1/admin_types.pb.go index beedac99..8af42936 100644 --- a/release/go/spacemesh/v1/admin_types.pb.go +++ b/release/go/spacemesh/v1/admin_types.pb.go @@ -204,6 +204,8 @@ type Event struct { // *Event_Proposal // *Event_InitFailed // *Event_Malfeasance + // *Event_PostServiceStarted + // *Event_PostServiceStopped Details isEvent_Details `protobuf_oneof:"details"` } @@ -351,6 +353,20 @@ func (x *Event) GetMalfeasance() *EventMalfeasance { return nil } +func (x *Event) GetPostServiceStarted() *EventPostServiceStarted { + if x, ok := x.GetDetails().(*Event_PostServiceStarted); ok { + return x.PostServiceStarted + } + return nil +} + +func (x *Event) GetPostServiceStopped() *EventPostServiceStopped { + if x, ok := x.GetDetails().(*Event_PostServiceStopped); ok { + return x.PostServiceStopped + } + return nil +} + type isEvent_Details interface { isEvent_Details() } @@ -403,6 +419,14 @@ type Event_Malfeasance struct { Malfeasance *EventMalfeasance `protobuf:"bytes,15,opt,name=malfeasance,proto3,oneof"` } +type Event_PostServiceStarted struct { + PostServiceStarted *EventPostServiceStarted `protobuf:"bytes,16,opt,name=post_service_started,json=postServiceStarted,proto3,oneof"` +} + +type Event_PostServiceStopped struct { + PostServiceStopped *EventPostServiceStopped `protobuf:"bytes,17,opt,name=post_service_stopped,json=postServiceStopped,proto3,oneof"` +} + func (*Event_Beacon) isEvent_Details() {} func (*Event_InitStart) isEvent_Details() {} @@ -427,6 +451,10 @@ func (*Event_InitFailed) isEvent_Details() {} func (*Event_Malfeasance) isEvent_Details() {} +func (*Event_PostServiceStarted) isEvent_Details() {} + +func (*Event_PostServiceStopped) isEvent_Details() {} + type EventBeacon struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -638,6 +666,82 @@ func (*EventInitComplete) Descriptor() ([]byte, []int) { return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{7} } +type EventPostServiceStarted struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EventPostServiceStarted) Reset() { + *x = EventPostServiceStarted{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventPostServiceStarted) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventPostServiceStarted) ProtoMessage() {} + +func (x *EventPostServiceStarted) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventPostServiceStarted.ProtoReflect.Descriptor instead. +func (*EventPostServiceStarted) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{8} +} + +type EventPostServiceStopped struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *EventPostServiceStopped) Reset() { + *x = EventPostServiceStopped{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *EventPostServiceStopped) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventPostServiceStopped) ProtoMessage() {} + +func (x *EventPostServiceStopped) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EventPostServiceStopped.ProtoReflect.Descriptor instead. +func (*EventPostServiceStopped) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{9} +} + type EventPostStart struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -649,7 +753,7 @@ type EventPostStart struct { func (x *EventPostStart) Reset() { *x = EventPostStart{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[8] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -662,7 +766,7 @@ func (x *EventPostStart) String() string { func (*EventPostStart) ProtoMessage() {} func (x *EventPostStart) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[8] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -675,7 +779,7 @@ func (x *EventPostStart) ProtoReflect() protoreflect.Message { // Deprecated: Use EventPostStart.ProtoReflect.Descriptor instead. func (*EventPostStart) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{8} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{10} } func (x *EventPostStart) GetChallenge() []byte { @@ -696,7 +800,7 @@ type EventPostComplete struct { func (x *EventPostComplete) Reset() { *x = EventPostComplete{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[9] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -709,7 +813,7 @@ func (x *EventPostComplete) String() string { func (*EventPostComplete) ProtoMessage() {} func (x *EventPostComplete) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[9] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -722,7 +826,7 @@ func (x *EventPostComplete) ProtoReflect() protoreflect.Message { // Deprecated: Use EventPostComplete.ProtoReflect.Descriptor instead. func (*EventPostComplete) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{9} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{11} } func (x *EventPostComplete) GetChallenge() []byte { @@ -745,7 +849,7 @@ type EventPoetWaitRound struct { func (x *EventPoetWaitRound) Reset() { *x = EventPoetWaitRound{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[10] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -758,7 +862,7 @@ func (x *EventPoetWaitRound) String() string { func (*EventPoetWaitRound) ProtoMessage() {} func (x *EventPoetWaitRound) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[10] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -771,7 +875,7 @@ func (x *EventPoetWaitRound) ProtoReflect() protoreflect.Message { // Deprecated: Use EventPoetWaitRound.ProtoReflect.Descriptor instead. func (*EventPoetWaitRound) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{10} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{12} } func (x *EventPoetWaitRound) GetCurrent() uint32 { @@ -808,7 +912,7 @@ type EventPoetWaitProof struct { func (x *EventPoetWaitProof) Reset() { *x = EventPoetWaitProof{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[11] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -821,7 +925,7 @@ func (x *EventPoetWaitProof) String() string { func (*EventPoetWaitProof) ProtoMessage() {} func (x *EventPoetWaitProof) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[11] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -834,7 +938,7 @@ func (x *EventPoetWaitProof) ProtoReflect() protoreflect.Message { // Deprecated: Use EventPoetWaitProof.ProtoReflect.Descriptor instead. func (*EventPoetWaitProof) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{11} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{13} } func (x *EventPoetWaitProof) GetPublish() uint32 { @@ -872,7 +976,7 @@ type EventAtxPubished struct { func (x *EventAtxPubished) Reset() { *x = EventAtxPubished{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[12] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -885,7 +989,7 @@ func (x *EventAtxPubished) String() string { func (*EventAtxPubished) ProtoMessage() {} func (x *EventAtxPubished) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[12] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -898,7 +1002,7 @@ func (x *EventAtxPubished) ProtoReflect() protoreflect.Message { // Deprecated: Use EventAtxPubished.ProtoReflect.Descriptor instead. func (*EventAtxPubished) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{12} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{14} } func (x *EventAtxPubished) GetCurrent() uint32 { @@ -944,7 +1048,7 @@ type EventEligibilities struct { func (x *EventEligibilities) Reset() { *x = EventEligibilities{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[13] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -957,7 +1061,7 @@ func (x *EventEligibilities) String() string { func (*EventEligibilities) ProtoMessage() {} func (x *EventEligibilities) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[13] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -970,7 +1074,7 @@ func (x *EventEligibilities) ProtoReflect() protoreflect.Message { // Deprecated: Use EventEligibilities.ProtoReflect.Descriptor instead. func (*EventEligibilities) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{13} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{15} } func (x *EventEligibilities) GetEpoch() uint32 { @@ -1020,7 +1124,7 @@ type ProposalEligibility struct { func (x *ProposalEligibility) Reset() { *x = ProposalEligibility{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[14] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1033,7 +1137,7 @@ func (x *ProposalEligibility) String() string { func (*ProposalEligibility) ProtoMessage() {} func (x *ProposalEligibility) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[14] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1046,7 +1150,7 @@ func (x *ProposalEligibility) ProtoReflect() protoreflect.Message { // Deprecated: Use ProposalEligibility.ProtoReflect.Descriptor instead. func (*ProposalEligibility) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{14} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{16} } func (x *ProposalEligibility) GetLayer() uint32 { @@ -1076,7 +1180,7 @@ type EventProposal struct { func (x *EventProposal) Reset() { *x = EventProposal{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[15] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1089,7 +1193,7 @@ func (x *EventProposal) String() string { func (*EventProposal) ProtoMessage() {} func (x *EventProposal) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[15] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1102,7 +1206,7 @@ func (x *EventProposal) ProtoReflect() protoreflect.Message { // Deprecated: Use EventProposal.ProtoReflect.Descriptor instead. func (*EventProposal) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{15} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{17} } func (x *EventProposal) GetLayer() uint32 { @@ -1130,7 +1234,7 @@ type EventMalfeasance struct { func (x *EventMalfeasance) Reset() { *x = EventMalfeasance{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[16] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1143,7 +1247,7 @@ func (x *EventMalfeasance) String() string { func (*EventMalfeasance) ProtoMessage() {} func (x *EventMalfeasance) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[16] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1156,7 +1260,7 @@ func (x *EventMalfeasance) ProtoReflect() protoreflect.Message { // Deprecated: Use EventMalfeasance.ProtoReflect.Descriptor instead. func (*EventMalfeasance) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{16} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{18} } func (x *EventMalfeasance) GetProof() *MalfeasanceProof { @@ -1175,7 +1279,7 @@ type EventStreamRequest struct { func (x *EventStreamRequest) Reset() { *x = EventStreamRequest{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[17] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1188,7 +1292,7 @@ func (x *EventStreamRequest) String() string { func (*EventStreamRequest) ProtoMessage() {} func (x *EventStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[17] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1201,7 +1305,7 @@ func (x *EventStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EventStreamRequest.ProtoReflect.Descriptor instead. func (*EventStreamRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{17} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{19} } type ConnectionInfo struct { @@ -1217,7 +1321,7 @@ type ConnectionInfo struct { func (x *ConnectionInfo) Reset() { *x = ConnectionInfo{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[18] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1230,7 +1334,7 @@ func (x *ConnectionInfo) String() string { func (*ConnectionInfo) ProtoMessage() {} func (x *ConnectionInfo) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[18] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1243,7 +1347,7 @@ func (x *ConnectionInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectionInfo.ProtoReflect.Descriptor instead. func (*ConnectionInfo) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{18} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{20} } func (x *ConnectionInfo) GetAddress() string { @@ -1280,7 +1384,7 @@ type PeerInfo struct { func (x *PeerInfo) Reset() { *x = PeerInfo{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[19] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1293,7 +1397,7 @@ func (x *PeerInfo) String() string { func (*PeerInfo) ProtoMessage() {} func (x *PeerInfo) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_admin_types_proto_msgTypes[19] + mi := &file_spacemesh_v1_admin_types_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1306,7 +1410,7 @@ func (x *PeerInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use PeerInfo.ProtoReflect.Descriptor instead. func (*PeerInfo) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{19} + return file_spacemesh_v1_admin_types_proto_rawDescGZIP(), []int{21} } func (x *PeerInfo) GetId() string { @@ -1355,7 +1459,7 @@ var file_spacemesh_v1_admin_types_proto_rawDesc = []byte{ 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x22, - 0xa7, 0x07, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, + 0xdd, 0x08, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, @@ -1412,107 +1516,122 @@ var file_spacemesh_v1_admin_types_proto_rawDesc = []byte{ 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x48, - 0x00, 0x52, 0x0b, 0x6d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x09, - 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x3b, 0x0a, 0x0b, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, - 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, - 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, - 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x22, 0x4a, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, - 0x6e, 0x69, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, - 0x68, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, - 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, - 0x6e, 0x74, 0x22, 0x61, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x46, - 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x12, - 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x13, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, - 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x22, 0x2e, 0x0a, 0x0e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x09, - 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x31, 0x0a, 0x11, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, - 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x77, 0x0a, - 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x52, 0x6f, - 0x75, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x22, 0x75, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, - 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x18, 0x0a, 0x07, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, - 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x22, 0x83, 0x01, - 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x50, 0x75, 0x62, 0x69, 0x73, 0x68, - 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, - 0x61, 0x69, 0x74, 0x22, 0xc5, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6c, 0x69, - 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, - 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, - 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x74, 0x78, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x61, 0x74, 0x78, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x47, 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, - 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x41, 0x0a, 0x13, 0x50, - 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x41, - 0x0a, 0x0d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, - 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, - 0x6c, 0x22, 0x48, 0x0a, 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, - 0x73, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, - 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x50, - 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x14, 0x0a, 0x12, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x79, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, - 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x6e, 0x0a, 0x08, - 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0xb4, 0x01, 0x0a, - 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, - 0x31, 0x42, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, - 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, - 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x00, 0x52, 0x0b, 0x6d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x59, + 0x0a, 0x14, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x65, 0x64, 0x48, 0x00, 0x52, 0x12, 0x70, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x59, 0x0a, 0x14, 0x70, 0x6f, 0x73, + 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, + 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x48, 0x00, + 0x52, 0x12, 0x70, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x6f, + 0x70, 0x70, 0x65, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, + 0x3b, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x14, + 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, + 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x22, 0x4a, 0x0a, 0x0e, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x18, + 0x0a, 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x07, 0x73, 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, + 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, + 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x61, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, + 0x74, 0x49, 0x6e, 0x69, 0x74, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, + 0x6d, 0x65, 0x73, 0x68, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x73, 0x6d, + 0x65, 0x73, 0x68, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, + 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x69, + 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x13, 0x0a, 0x11, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, + 0x22, 0x19, 0x0a, 0x17, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x22, 0x19, 0x0a, 0x17, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x53, + 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0x2e, 0x0a, 0x0e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, + 0x6f, 0x73, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, + 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, + 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x31, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, + 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, + 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, + 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x22, 0x77, 0x0a, 0x12, 0x45, 0x76, 0x65, + 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, 0x61, 0x69, 0x74, 0x52, 0x6f, 0x75, 0x6e, 0x64, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x62, + 0x6c, 0x69, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, + 0x69, 0x74, 0x22, 0x75, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x6f, 0x65, 0x74, 0x57, + 0x61, 0x69, 0x74, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x75, 0x62, 0x6c, + 0x69, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x70, 0x75, 0x62, 0x6c, 0x69, + 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, + 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x10, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x50, 0x75, 0x62, 0x69, 0x73, 0x68, 0x65, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x07, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x2d, 0x0a, 0x04, 0x77, 0x61, 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x77, 0x61, 0x69, 0x74, 0x22, + 0xc5, 0x01, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, + 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x65, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x16, 0x0a, 0x06, + 0x62, 0x65, 0x61, 0x63, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x62, 0x65, + 0x61, 0x63, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x74, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x03, 0x61, 0x74, 0x78, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, + 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x0d, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x65, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x47, + 0x0a, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, + 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x6c, 0x69, 0x67, 0x69, 0x62, + 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x41, 0x0a, 0x13, 0x50, 0x72, 0x6f, 0x70, 0x6f, + 0x73, 0x61, 0x6c, 0x45, 0x6c, 0x69, 0x67, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x41, 0x0a, 0x0d, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x61, 0x79, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x61, 0x79, 0x65, + 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x6f, 0x73, 0x61, 0x6c, 0x22, 0x48, 0x0a, + 0x10, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x34, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x61, 0x6c, 0x66, 0x65, 0x61, 0x73, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x6f, 0x66, + 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x22, 0x14, 0x0a, 0x12, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x79, 0x0a, + 0x0e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x31, 0x0a, 0x06, 0x75, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, + 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, + 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x22, 0x6e, 0x0a, 0x08, 0x50, 0x65, 0x65, 0x72, + 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x02, 0x69, 0x64, 0x12, 0x3e, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, + 0x64, 0x6d, 0x69, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, + 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1527,7 +1646,7 @@ func file_spacemesh_v1_admin_types_proto_rawDescGZIP() []byte { return file_spacemesh_v1_admin_types_proto_rawDescData } -var file_spacemesh_v1_admin_types_proto_msgTypes = make([]protoimpl.MessageInfo, 20) +var file_spacemesh_v1_admin_types_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_spacemesh_v1_admin_types_proto_goTypes = []interface{}{ (*CheckpointStreamRequest)(nil), // 0: spacemesh.v1.CheckpointStreamRequest (*CheckpointStreamResponse)(nil), // 1: spacemesh.v1.CheckpointStreamResponse @@ -1537,48 +1656,52 @@ var file_spacemesh_v1_admin_types_proto_goTypes = []interface{}{ (*EventInitStart)(nil), // 5: spacemesh.v1.EventInitStart (*EventInitFailed)(nil), // 6: spacemesh.v1.EventInitFailed (*EventInitComplete)(nil), // 7: spacemesh.v1.EventInitComplete - (*EventPostStart)(nil), // 8: spacemesh.v1.EventPostStart - (*EventPostComplete)(nil), // 9: spacemesh.v1.EventPostComplete - (*EventPoetWaitRound)(nil), // 10: spacemesh.v1.EventPoetWaitRound - (*EventPoetWaitProof)(nil), // 11: spacemesh.v1.EventPoetWaitProof - (*EventAtxPubished)(nil), // 12: spacemesh.v1.EventAtxPubished - (*EventEligibilities)(nil), // 13: spacemesh.v1.EventEligibilities - (*ProposalEligibility)(nil), // 14: spacemesh.v1.ProposalEligibility - (*EventProposal)(nil), // 15: spacemesh.v1.EventProposal - (*EventMalfeasance)(nil), // 16: spacemesh.v1.EventMalfeasance - (*EventStreamRequest)(nil), // 17: spacemesh.v1.EventStreamRequest - (*ConnectionInfo)(nil), // 18: spacemesh.v1.ConnectionInfo - (*PeerInfo)(nil), // 19: spacemesh.v1.PeerInfo - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 21: google.protobuf.Duration - (*MalfeasanceProof)(nil), // 22: spacemesh.v1.MalfeasanceProof + (*EventPostServiceStarted)(nil), // 8: spacemesh.v1.EventPostServiceStarted + (*EventPostServiceStopped)(nil), // 9: spacemesh.v1.EventPostServiceStopped + (*EventPostStart)(nil), // 10: spacemesh.v1.EventPostStart + (*EventPostComplete)(nil), // 11: spacemesh.v1.EventPostComplete + (*EventPoetWaitRound)(nil), // 12: spacemesh.v1.EventPoetWaitRound + (*EventPoetWaitProof)(nil), // 13: spacemesh.v1.EventPoetWaitProof + (*EventAtxPubished)(nil), // 14: spacemesh.v1.EventAtxPubished + (*EventEligibilities)(nil), // 15: spacemesh.v1.EventEligibilities + (*ProposalEligibility)(nil), // 16: spacemesh.v1.ProposalEligibility + (*EventProposal)(nil), // 17: spacemesh.v1.EventProposal + (*EventMalfeasance)(nil), // 18: spacemesh.v1.EventMalfeasance + (*EventStreamRequest)(nil), // 19: spacemesh.v1.EventStreamRequest + (*ConnectionInfo)(nil), // 20: spacemesh.v1.ConnectionInfo + (*PeerInfo)(nil), // 21: spacemesh.v1.PeerInfo + (*timestamppb.Timestamp)(nil), // 22: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 23: google.protobuf.Duration + (*MalfeasanceProof)(nil), // 24: spacemesh.v1.MalfeasanceProof } var file_spacemesh_v1_admin_types_proto_depIdxs = []int32{ - 20, // 0: spacemesh.v1.Event.timestamp:type_name -> google.protobuf.Timestamp + 22, // 0: spacemesh.v1.Event.timestamp:type_name -> google.protobuf.Timestamp 4, // 1: spacemesh.v1.Event.beacon:type_name -> spacemesh.v1.EventBeacon 5, // 2: spacemesh.v1.Event.init_start:type_name -> spacemesh.v1.EventInitStart 7, // 3: spacemesh.v1.Event.init_complete:type_name -> spacemesh.v1.EventInitComplete - 8, // 4: spacemesh.v1.Event.post_start:type_name -> spacemesh.v1.EventPostStart - 9, // 5: spacemesh.v1.Event.post_complete:type_name -> spacemesh.v1.EventPostComplete - 10, // 6: spacemesh.v1.Event.poet_wait_round:type_name -> spacemesh.v1.EventPoetWaitRound - 11, // 7: spacemesh.v1.Event.poet_wait_proof:type_name -> spacemesh.v1.EventPoetWaitProof - 12, // 8: spacemesh.v1.Event.atx_published:type_name -> spacemesh.v1.EventAtxPubished - 13, // 9: spacemesh.v1.Event.eligibilities:type_name -> spacemesh.v1.EventEligibilities - 15, // 10: spacemesh.v1.Event.proposal:type_name -> spacemesh.v1.EventProposal + 10, // 4: spacemesh.v1.Event.post_start:type_name -> spacemesh.v1.EventPostStart + 11, // 5: spacemesh.v1.Event.post_complete:type_name -> spacemesh.v1.EventPostComplete + 12, // 6: spacemesh.v1.Event.poet_wait_round:type_name -> spacemesh.v1.EventPoetWaitRound + 13, // 7: spacemesh.v1.Event.poet_wait_proof:type_name -> spacemesh.v1.EventPoetWaitProof + 14, // 8: spacemesh.v1.Event.atx_published:type_name -> spacemesh.v1.EventAtxPubished + 15, // 9: spacemesh.v1.Event.eligibilities:type_name -> spacemesh.v1.EventEligibilities + 17, // 10: spacemesh.v1.Event.proposal:type_name -> spacemesh.v1.EventProposal 6, // 11: spacemesh.v1.Event.init_failed:type_name -> spacemesh.v1.EventInitFailed - 16, // 12: spacemesh.v1.Event.malfeasance:type_name -> spacemesh.v1.EventMalfeasance - 21, // 13: spacemesh.v1.EventPoetWaitRound.wait:type_name -> google.protobuf.Duration - 21, // 14: spacemesh.v1.EventPoetWaitProof.wait:type_name -> google.protobuf.Duration - 21, // 15: spacemesh.v1.EventAtxPubished.wait:type_name -> google.protobuf.Duration - 14, // 16: spacemesh.v1.EventEligibilities.eligibilities:type_name -> spacemesh.v1.ProposalEligibility - 22, // 17: spacemesh.v1.EventMalfeasance.proof:type_name -> spacemesh.v1.MalfeasanceProof - 21, // 18: spacemesh.v1.ConnectionInfo.uptime:type_name -> google.protobuf.Duration - 18, // 19: spacemesh.v1.PeerInfo.connections:type_name -> spacemesh.v1.ConnectionInfo - 20, // [20:20] is the sub-list for method output_type - 20, // [20:20] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name + 18, // 12: spacemesh.v1.Event.malfeasance:type_name -> spacemesh.v1.EventMalfeasance + 8, // 13: spacemesh.v1.Event.post_service_started:type_name -> spacemesh.v1.EventPostServiceStarted + 9, // 14: spacemesh.v1.Event.post_service_stopped:type_name -> spacemesh.v1.EventPostServiceStopped + 23, // 15: spacemesh.v1.EventPoetWaitRound.wait:type_name -> google.protobuf.Duration + 23, // 16: spacemesh.v1.EventPoetWaitProof.wait:type_name -> google.protobuf.Duration + 23, // 17: spacemesh.v1.EventAtxPubished.wait:type_name -> google.protobuf.Duration + 16, // 18: spacemesh.v1.EventEligibilities.eligibilities:type_name -> spacemesh.v1.ProposalEligibility + 24, // 19: spacemesh.v1.EventMalfeasance.proof:type_name -> spacemesh.v1.MalfeasanceProof + 23, // 20: spacemesh.v1.ConnectionInfo.uptime:type_name -> google.protobuf.Duration + 20, // 21: spacemesh.v1.PeerInfo.connections:type_name -> spacemesh.v1.ConnectionInfo + 22, // [22:22] is the sub-list for method output_type + 22, // [22:22] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name } func init() { file_spacemesh_v1_admin_types_proto_init() } @@ -1685,7 +1808,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventPostStart); i { + switch v := v.(*EventPostServiceStarted); i { case 0: return &v.state case 1: @@ -1697,7 +1820,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventPostComplete); i { + switch v := v.(*EventPostServiceStopped); i { case 0: return &v.state case 1: @@ -1709,7 +1832,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventPoetWaitRound); i { + switch v := v.(*EventPostStart); i { case 0: return &v.state case 1: @@ -1721,7 +1844,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventPoetWaitProof); i { + switch v := v.(*EventPostComplete); i { case 0: return &v.state case 1: @@ -1733,7 +1856,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventAtxPubished); i { + switch v := v.(*EventPoetWaitRound); i { case 0: return &v.state case 1: @@ -1745,7 +1868,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventEligibilities); i { + switch v := v.(*EventPoetWaitProof); i { case 0: return &v.state case 1: @@ -1757,7 +1880,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProposalEligibility); i { + switch v := v.(*EventAtxPubished); i { case 0: return &v.state case 1: @@ -1769,7 +1892,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventProposal); i { + switch v := v.(*EventEligibilities); i { case 0: return &v.state case 1: @@ -1781,7 +1904,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventMalfeasance); i { + switch v := v.(*ProposalEligibility); i { case 0: return &v.state case 1: @@ -1793,7 +1916,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EventStreamRequest); i { + switch v := v.(*EventProposal); i { case 0: return &v.state case 1: @@ -1805,7 +1928,7 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ConnectionInfo); i { + switch v := v.(*EventMalfeasance); i { case 0: return &v.state case 1: @@ -1817,6 +1940,30 @@ func file_spacemesh_v1_admin_types_proto_init() { } } file_spacemesh_v1_admin_types_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*EventStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_admin_types_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ConnectionInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_admin_types_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PeerInfo); i { case 0: return &v.state @@ -1842,6 +1989,8 @@ func file_spacemesh_v1_admin_types_proto_init() { (*Event_Proposal)(nil), (*Event_InitFailed)(nil), (*Event_Malfeasance)(nil), + (*Event_PostServiceStarted)(nil), + (*Event_PostServiceStopped)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -1849,7 +1998,7 @@ func file_spacemesh_v1_admin_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_admin_types_proto_rawDesc, NumEnums: 0, - NumMessages: 20, + NumMessages: 22, NumExtensions: 0, NumServices: 0, }, diff --git a/release/go/spacemesh/v1/post.pb.go b/release/go/spacemesh/v1/post.pb.go new file mode 100644 index 00000000..319a6fb8 --- /dev/null +++ b/release/go/spacemesh/v1/post.pb.go @@ -0,0 +1,86 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: spacemesh/v1/post.proto + +package spacemeshv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +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) +) + +var File_spacemesh_v1_post_proto protoreflect.FileDescriptor + +var file_spacemesh_v1_post_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x6f, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x1d, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x57, 0x0a, 0x0b, 0x50, 0x6f, 0x73, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x08, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, + 0x72, 0x12, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, + 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x1a, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, + 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x28, 0x01, 0x30, 0x01, 0x42, + 0xae, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x2e, 0x76, 0x31, 0x42, 0x09, 0x50, 0x6f, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, + 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, + 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, + 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_spacemesh_v1_post_proto_goTypes = []interface{}{ + (*ServiceResponse)(nil), // 0: spacemesh.v1.ServiceResponse + (*NodeRequest)(nil), // 1: spacemesh.v1.NodeRequest +} +var file_spacemesh_v1_post_proto_depIdxs = []int32{ + 0, // 0: spacemesh.v1.PostService.Register:input_type -> spacemesh.v1.ServiceResponse + 1, // 1: spacemesh.v1.PostService.Register:output_type -> spacemesh.v1.NodeRequest + 1, // [1:2] is the sub-list for method output_type + 0, // [0:1] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_spacemesh_v1_post_proto_init() } +func file_spacemesh_v1_post_proto_init() { + if File_spacemesh_v1_post_proto != nil { + return + } + file_spacemesh_v1_post_types_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spacemesh_v1_post_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_spacemesh_v1_post_proto_goTypes, + DependencyIndexes: file_spacemesh_v1_post_proto_depIdxs, + }.Build() + File_spacemesh_v1_post_proto = out.File + file_spacemesh_v1_post_proto_rawDesc = nil + file_spacemesh_v1_post_proto_goTypes = nil + file_spacemesh_v1_post_proto_depIdxs = nil +} diff --git a/release/go/spacemesh/v1/post.pb.gw.go b/release/go/spacemesh/v1/post.pb.gw.go new file mode 100644 index 00000000..2ab3a69e --- /dev/null +++ b/release/go/spacemesh/v1/post.pb.gw.go @@ -0,0 +1,162 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: spacemesh/v1/post.proto + +/* +Package spacemeshv1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package spacemeshv1 + +import ( + "context" + "io" + "net/http" + + "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" + "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" + "google.golang.org/protobuf/proto" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = metadata.Join + +func request_PostService_Register_0(ctx context.Context, marshaler runtime.Marshaler, client PostServiceClient, req *http.Request, pathParams map[string]string) (PostService_RegisterClient, runtime.ServerMetadata, error) { + var metadata runtime.ServerMetadata + stream, err := client.Register(ctx) + if err != nil { + grpclog.Infof("Failed to start streaming: %v", err) + return nil, metadata, err + } + dec := marshaler.NewDecoder(req.Body) + handleSend := func() error { + var protoReq ServiceResponse + err := dec.Decode(&protoReq) + if err == io.EOF { + return err + } + if err != nil { + grpclog.Infof("Failed to decode request: %v", err) + return err + } + if err := stream.Send(&protoReq); err != nil { + grpclog.Infof("Failed to send request: %v", err) + return err + } + return nil + } + go func() { + for { + if err := handleSend(); err != nil { + break + } + } + if err := stream.CloseSend(); err != nil { + grpclog.Infof("Failed to terminate client stream: %v", err) + } + }() + header, err := stream.Header() + if err != nil { + grpclog.Infof("Failed to get header from client: %v", err) + return nil, metadata, err + } + metadata.HeaderMD = header + return stream, metadata, nil +} + +// RegisterPostServiceHandlerServer registers the http handlers for service PostService to "mux". +// UnaryRPC :call PostServiceServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPostServiceHandlerFromEndpoint instead. +func RegisterPostServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PostServiceServer) error { + + mux.Handle("POST", pattern_PostService_Register_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") + _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + }) + + return nil +} + +// RegisterPostServiceHandlerFromEndpoint is same as RegisterPostServiceHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterPostServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.DialContext(ctx, endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterPostServiceHandler(ctx, mux, conn) +} + +// RegisterPostServiceHandler registers the http handlers for service PostService to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterPostServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterPostServiceHandlerClient(ctx, mux, NewPostServiceClient(conn)) +} + +// RegisterPostServiceHandlerClient registers the http handlers for service PostService +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PostServiceClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PostServiceClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "PostServiceClient" to call the correct interceptors. +func RegisterPostServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PostServiceClient) error { + + mux.Handle("POST", pattern_PostService_Register_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + var err error + var annotatedContext context.Context + annotatedContext, err = runtime.AnnotateContext(ctx, mux, req, "/spacemesh.v1.PostService/Register", runtime.WithHTTPPathPattern("/spacemesh.v1.PostService/Register")) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_PostService_Register_0(annotatedContext, inboundMarshaler, client, req, pathParams) + annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) + if err != nil { + runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) + return + } + + forward_PostService_Register_0(annotatedContext, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_PostService_Register_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"spacemesh.v1.PostService", "Register"}, "")) +) + +var ( + forward_PostService_Register_0 = runtime.ForwardResponseStream +) diff --git a/release/go/spacemesh/v1/post_grpc.pb.go b/release/go/spacemesh/v1/post_grpc.pb.go new file mode 100644 index 00000000..7ddf05ac --- /dev/null +++ b/release/go/spacemesh/v1/post_grpc.pb.go @@ -0,0 +1,143 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: spacemesh/v1/post.proto + +package spacemeshv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + PostService_Register_FullMethodName = "/spacemesh.v1.PostService/Register" +) + +// PostServiceClient is the client API for PostService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PostServiceClient interface { + // Register is a bi-directional stream that allows a dedicated PoST node to connect to the spacemesh node. + // The node will send NodeRequets to PoST and the service will respond with ServiceResponses. + Register(ctx context.Context, opts ...grpc.CallOption) (PostService_RegisterClient, error) +} + +type postServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPostServiceClient(cc grpc.ClientConnInterface) PostServiceClient { + return &postServiceClient{cc} +} + +func (c *postServiceClient) Register(ctx context.Context, opts ...grpc.CallOption) (PostService_RegisterClient, error) { + stream, err := c.cc.NewStream(ctx, &PostService_ServiceDesc.Streams[0], PostService_Register_FullMethodName, opts...) + if err != nil { + return nil, err + } + x := &postServiceRegisterClient{stream} + return x, nil +} + +type PostService_RegisterClient interface { + Send(*ServiceResponse) error + Recv() (*NodeRequest, error) + grpc.ClientStream +} + +type postServiceRegisterClient struct { + grpc.ClientStream +} + +func (x *postServiceRegisterClient) Send(m *ServiceResponse) error { + return x.ClientStream.SendMsg(m) +} + +func (x *postServiceRegisterClient) Recv() (*NodeRequest, error) { + m := new(NodeRequest) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// PostServiceServer is the server API for PostService service. +// All implementations should embed UnimplementedPostServiceServer +// for forward compatibility +type PostServiceServer interface { + // Register is a bi-directional stream that allows a dedicated PoST node to connect to the spacemesh node. + // The node will send NodeRequets to PoST and the service will respond with ServiceResponses. + Register(PostService_RegisterServer) error +} + +// UnimplementedPostServiceServer should be embedded to have forward compatible implementations. +type UnimplementedPostServiceServer struct { +} + +func (UnimplementedPostServiceServer) Register(PostService_RegisterServer) error { + return status.Errorf(codes.Unimplemented, "method Register not implemented") +} + +// UnsafePostServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PostServiceServer will +// result in compilation errors. +type UnsafePostServiceServer interface { + mustEmbedUnimplementedPostServiceServer() +} + +func RegisterPostServiceServer(s grpc.ServiceRegistrar, srv PostServiceServer) { + s.RegisterService(&PostService_ServiceDesc, srv) +} + +func _PostService_Register_Handler(srv interface{}, stream grpc.ServerStream) error { + return srv.(PostServiceServer).Register(&postServiceRegisterServer{stream}) +} + +type PostService_RegisterServer interface { + Send(*NodeRequest) error + Recv() (*ServiceResponse, error) + grpc.ServerStream +} + +type postServiceRegisterServer struct { + grpc.ServerStream +} + +func (x *postServiceRegisterServer) Send(m *NodeRequest) error { + return x.ServerStream.SendMsg(m) +} + +func (x *postServiceRegisterServer) Recv() (*ServiceResponse, error) { + m := new(ServiceResponse) + if err := x.ServerStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// PostService_ServiceDesc is the grpc.ServiceDesc for PostService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PostService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "spacemesh.v1.PostService", + HandlerType: (*PostServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "Register", + Handler: _PostService_Register_Handler, + ServerStreams: true, + ClientStreams: true, + }, + }, + Metadata: "spacemesh/v1/post.proto", +} diff --git a/release/go/spacemesh/v1/post_types.pb.go b/release/go/spacemesh/v1/post_types.pb.go new file mode 100644 index 00000000..22b4bdc6 --- /dev/null +++ b/release/go/spacemesh/v1/post_types.pb.go @@ -0,0 +1,903 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.31.0 +// protoc (unknown) +// source: spacemesh/v1/post_types.proto + +package spacemeshv1 + +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 GenProofStatus int32 + +const ( + GenProofStatus_GEN_PROOF_STATUS_UNSPECIFIED GenProofStatus = 0 + GenProofStatus_GEN_PROOF_STATUS_OK GenProofStatus = 1 + GenProofStatus_GEN_PROOF_STATUS_ERROR GenProofStatus = 2 +) + +// Enum value maps for GenProofStatus. +var ( + GenProofStatus_name = map[int32]string{ + 0: "GEN_PROOF_STATUS_UNSPECIFIED", + 1: "GEN_PROOF_STATUS_OK", + 2: "GEN_PROOF_STATUS_ERROR", + } + GenProofStatus_value = map[string]int32{ + "GEN_PROOF_STATUS_UNSPECIFIED": 0, + "GEN_PROOF_STATUS_OK": 1, + "GEN_PROOF_STATUS_ERROR": 2, + } +) + +func (x GenProofStatus) Enum() *GenProofStatus { + p := new(GenProofStatus) + *p = x + return p +} + +func (x GenProofStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (GenProofStatus) Descriptor() protoreflect.EnumDescriptor { + return file_spacemesh_v1_post_types_proto_enumTypes[0].Descriptor() +} + +func (GenProofStatus) Type() protoreflect.EnumType { + return &file_spacemesh_v1_post_types_proto_enumTypes[0] +} + +func (x GenProofStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use GenProofStatus.Descriptor instead. +func (GenProofStatus) EnumDescriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{0} +} + +// NodeRequest is a request sent from the node to the post service. +type NodeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Kind: + // + // *NodeRequest_Metadata + // *NodeRequest_GenProof + Kind isNodeRequest_Kind `protobuf_oneof:"kind"` +} + +func (x *NodeRequest) Reset() { + *x = NodeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[0] + 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_spacemesh_v1_post_types_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NodeRequest.ProtoReflect.Descriptor instead. +func (*NodeRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{0} +} + +func (m *NodeRequest) GetKind() isNodeRequest_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (x *NodeRequest) GetMetadata() *MetadataRequest { + if x, ok := x.GetKind().(*NodeRequest_Metadata); ok { + return x.Metadata + } + return nil +} + +func (x *NodeRequest) GetGenProof() *GenProofRequest { + if x, ok := x.GetKind().(*NodeRequest_GenProof); ok { + return x.GenProof + } + return nil +} + +type isNodeRequest_Kind interface { + isNodeRequest_Kind() +} + +type NodeRequest_Metadata struct { + Metadata *MetadataRequest `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` +} + +type NodeRequest_GenProof struct { + GenProof *GenProofRequest `protobuf:"bytes,2,opt,name=gen_proof,json=genProof,proto3,oneof"` +} + +func (*NodeRequest_Metadata) isNodeRequest_Kind() {} + +func (*NodeRequest_GenProof) isNodeRequest_Kind() {} + +// ServiceResponse is a response sent from the post service to the node. +type ServiceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Kind: + // + // *ServiceResponse_Metadata + // *ServiceResponse_GenProof + Kind isServiceResponse_Kind `protobuf_oneof:"kind"` +} + +func (x *ServiceResponse) Reset() { + *x = ServiceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ServiceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ServiceResponse) ProtoMessage() {} + +func (x *ServiceResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ServiceResponse.ProtoReflect.Descriptor instead. +func (*ServiceResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{1} +} + +func (m *ServiceResponse) GetKind() isServiceResponse_Kind { + if m != nil { + return m.Kind + } + return nil +} + +func (x *ServiceResponse) GetMetadata() *MetadataResponse { + if x, ok := x.GetKind().(*ServiceResponse_Metadata); ok { + return x.Metadata + } + return nil +} + +func (x *ServiceResponse) GetGenProof() *GenProofResponse { + if x, ok := x.GetKind().(*ServiceResponse_GenProof); ok { + return x.GenProof + } + return nil +} + +type isServiceResponse_Kind interface { + isServiceResponse_Kind() +} + +type ServiceResponse_Metadata struct { + Metadata *MetadataResponse `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` +} + +type ServiceResponse_GenProof struct { + GenProof *GenProofResponse `protobuf:"bytes,2,opt,name=gen_proof,json=genProof,proto3,oneof"` +} + +func (*ServiceResponse_Metadata) isServiceResponse_Kind() {} + +func (*ServiceResponse_GenProof) isServiceResponse_Kind() {} + +type GenProofRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` +} + +func (x *GenProofRequest) Reset() { + *x = GenProofRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenProofRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenProofRequest) ProtoMessage() {} + +func (x *GenProofRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenProofRequest.ProtoReflect.Descriptor instead. +func (*GenProofRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{2} +} + +func (x *GenProofRequest) GetChallenge() []byte { + if x != nil { + return x.Challenge + } + return nil +} + +type Proof struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Nonce uint32 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` + Indices []byte `protobuf:"bytes,2,opt,name=indices,proto3" json:"indices,omitempty"` + Pow uint64 `protobuf:"varint,3,opt,name=pow,proto3" json:"pow,omitempty"` +} + +func (x *Proof) Reset() { + *x = Proof{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Proof) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Proof) ProtoMessage() {} + +func (x *Proof) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Proof.ProtoReflect.Descriptor instead. +func (*Proof) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{3} +} + +func (x *Proof) GetNonce() uint32 { + if x != nil { + return x.Nonce + } + return 0 +} + +func (x *Proof) GetIndices() []byte { + if x != nil { + return x.Indices + } + return nil +} + +func (x *Proof) GetPow() uint64 { + if x != nil { + return x.Pow + } + return 0 +} + +type Metadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NodeId []byte `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + CommitmentAtxId []byte `protobuf:"bytes,2,opt,name=commitment_atx_id,json=commitmentAtxId,proto3" json:"commitment_atx_id,omitempty"` + Nonce *uint64 `protobuf:"varint,3,opt,name=nonce,proto3,oneof" json:"nonce,omitempty"` + NumUnits uint32 `protobuf:"varint,4,opt,name=num_units,json=numUnits,proto3" json:"num_units,omitempty"` + LabelsPerUnit uint64 `protobuf:"varint,5,opt,name=labels_per_unit,json=labelsPerUnit,proto3" json:"labels_per_unit,omitempty"` +} + +func (x *Metadata) Reset() { + *x = Metadata{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Metadata) ProtoMessage() {} + +func (x *Metadata) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Metadata.ProtoReflect.Descriptor instead. +func (*Metadata) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{4} +} + +func (x *Metadata) GetNodeId() []byte { + if x != nil { + return x.NodeId + } + return nil +} + +func (x *Metadata) GetCommitmentAtxId() []byte { + if x != nil { + return x.CommitmentAtxId + } + return nil +} + +func (x *Metadata) GetNonce() uint64 { + if x != nil && x.Nonce != nil { + return *x.Nonce + } + return 0 +} + +func (x *Metadata) GetNumUnits() uint32 { + if x != nil { + return x.NumUnits + } + return 0 +} + +func (x *Metadata) GetLabelsPerUnit() uint64 { + if x != nil { + return x.LabelsPerUnit + } + return 0 +} + +type ProofMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Challenge []byte `protobuf:"bytes,1,opt,name=challenge,proto3" json:"challenge,omitempty"` + Meta *Metadata `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (x *ProofMetadata) Reset() { + *x = ProofMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProofMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProofMetadata) ProtoMessage() {} + +func (x *ProofMetadata) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ProofMetadata.ProtoReflect.Descriptor instead. +func (*ProofMetadata) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{5} +} + +func (x *ProofMetadata) GetChallenge() []byte { + if x != nil { + return x.Challenge + } + return nil +} + +func (x *ProofMetadata) GetMeta() *Metadata { + if x != nil { + return x.Meta + } + return nil +} + +type GenProofResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status GenProofStatus `protobuf:"varint,1,opt,name=status,proto3,enum=spacemesh.v1.GenProofStatus" json:"status,omitempty"` + Proof *Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` + Metadata *ProofMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` +} + +func (x *GenProofResponse) Reset() { + *x = GenProofResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GenProofResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GenProofResponse) ProtoMessage() {} + +func (x *GenProofResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GenProofResponse.ProtoReflect.Descriptor instead. +func (*GenProofResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{6} +} + +func (x *GenProofResponse) GetStatus() GenProofStatus { + if x != nil { + return x.Status + } + return GenProofStatus_GEN_PROOF_STATUS_UNSPECIFIED +} + +func (x *GenProofResponse) GetProof() *Proof { + if x != nil { + return x.Proof + } + return nil +} + +func (x *GenProofResponse) GetMetadata() *ProofMetadata { + if x != nil { + return x.Metadata + } + return nil +} + +type MetadataRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *MetadataRequest) Reset() { + *x = MetadataRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataRequest) ProtoMessage() {} + +func (x *MetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MetadataRequest.ProtoReflect.Descriptor instead. +func (*MetadataRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{7} +} + +type MetadataResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Meta *Metadata `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` +} + +func (x *MetadataResponse) Reset() { + *x = MetadataResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *MetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MetadataResponse) ProtoMessage() {} + +func (x *MetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_post_types_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MetadataResponse.ProtoReflect.Descriptor instead. +func (*MetadataResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_post_types_proto_rawDescGZIP(), []int{8} +} + +func (x *MetadataResponse) GetMeta() *Metadata { + if x != nil { + return x.Meta + } + return nil +} + +var File_spacemesh_v1_post_types_proto protoreflect.FileDescriptor + +var file_spacemesh_v1_post_types_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x6f, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x0c, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x90, 0x01, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, + 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x09, 0x67, 0x65, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x6f, + 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, 0x67, 0x65, 0x6e, 0x50, 0x72, 0x6f, + 0x6f, 0x66, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x96, 0x01, 0x0a, 0x0f, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, + 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x09, + 0x67, 0x65, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, + 0x00, 0x52, 0x08, 0x67, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x42, 0x06, 0x0a, 0x04, 0x6b, + 0x69, 0x6e, 0x64, 0x22, 0x2f, 0x0a, 0x0f, 0x47, 0x65, 0x6e, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, + 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, + 0x65, 0x6e, 0x67, 0x65, 0x22, 0x49, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x14, 0x0a, + 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6e, 0x6f, + 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x69, 0x6e, 0x64, 0x69, 0x63, 0x65, 0x73, 0x12, 0x10, 0x0a, + 0x03, 0x70, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x70, 0x6f, 0x77, 0x22, + 0xb9, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x17, 0x0a, 0x07, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6e, + 0x6f, 0x64, 0x65, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, + 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x74, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x0f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x41, 0x74, 0x78, 0x49, + 0x64, 0x12, 0x19, 0x0a, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, + 0x48, 0x00, 0x52, 0x05, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, + 0x6e, 0x75, 0x6d, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x08, 0x6e, 0x75, 0x6d, 0x55, 0x6e, 0x69, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0d, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x50, 0x65, 0x72, 0x55, 0x6e, 0x69, + 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6e, 0x6f, 0x6e, 0x63, 0x65, 0x22, 0x59, 0x0a, 0x0d, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x09, 0x63, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6d, 0x65, + 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, + 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x22, 0xac, 0x01, 0x0a, 0x10, 0x47, 0x65, 0x6e, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x6e, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x29, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x6f, 0x6f, 0x66, 0x52, 0x05, 0x70, 0x72, 0x6f, 0x6f, 0x66, 0x12, 0x37, 0x0a, 0x08, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, + 0x6f, 0x6f, 0x66, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x11, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3e, 0x0a, 0x10, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, + 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x2a, 0x67, 0x0a, 0x0e, 0x47, 0x65, 0x6e, 0x50, + 0x72, 0x6f, 0x6f, 0x66, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x0a, 0x1c, 0x47, 0x45, + 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x4f, 0x46, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, + 0x47, 0x45, 0x4e, 0x5f, 0x50, 0x52, 0x4f, 0x4f, 0x46, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x45, 0x4e, 0x5f, 0x50, 0x52, 0x4f, + 0x4f, 0x46, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, + 0x02, 0x42, 0xb3, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x50, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, + 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x6f, 0x73, + 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x2f, 0x67, 0x6f, 0x2f, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x53, 0x58, 0x58, 0xaa, 0x02, + 0x0c, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, + 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x53, + 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0d, 0x53, 0x70, 0x61, 0x63, 0x65, 0x6d, + 0x65, 0x73, 0x68, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_spacemesh_v1_post_types_proto_rawDescOnce sync.Once + file_spacemesh_v1_post_types_proto_rawDescData = file_spacemesh_v1_post_types_proto_rawDesc +) + +func file_spacemesh_v1_post_types_proto_rawDescGZIP() []byte { + file_spacemesh_v1_post_types_proto_rawDescOnce.Do(func() { + file_spacemesh_v1_post_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_spacemesh_v1_post_types_proto_rawDescData) + }) + return file_spacemesh_v1_post_types_proto_rawDescData +} + +var file_spacemesh_v1_post_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_spacemesh_v1_post_types_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_spacemesh_v1_post_types_proto_goTypes = []interface{}{ + (GenProofStatus)(0), // 0: spacemesh.v1.GenProofStatus + (*NodeRequest)(nil), // 1: spacemesh.v1.NodeRequest + (*ServiceResponse)(nil), // 2: spacemesh.v1.ServiceResponse + (*GenProofRequest)(nil), // 3: spacemesh.v1.GenProofRequest + (*Proof)(nil), // 4: spacemesh.v1.Proof + (*Metadata)(nil), // 5: spacemesh.v1.Metadata + (*ProofMetadata)(nil), // 6: spacemesh.v1.ProofMetadata + (*GenProofResponse)(nil), // 7: spacemesh.v1.GenProofResponse + (*MetadataRequest)(nil), // 8: spacemesh.v1.MetadataRequest + (*MetadataResponse)(nil), // 9: spacemesh.v1.MetadataResponse +} +var file_spacemesh_v1_post_types_proto_depIdxs = []int32{ + 8, // 0: spacemesh.v1.NodeRequest.metadata:type_name -> spacemesh.v1.MetadataRequest + 3, // 1: spacemesh.v1.NodeRequest.gen_proof:type_name -> spacemesh.v1.GenProofRequest + 9, // 2: spacemesh.v1.ServiceResponse.metadata:type_name -> spacemesh.v1.MetadataResponse + 7, // 3: spacemesh.v1.ServiceResponse.gen_proof:type_name -> spacemesh.v1.GenProofResponse + 5, // 4: spacemesh.v1.ProofMetadata.meta:type_name -> spacemesh.v1.Metadata + 0, // 5: spacemesh.v1.GenProofResponse.status:type_name -> spacemesh.v1.GenProofStatus + 4, // 6: spacemesh.v1.GenProofResponse.proof:type_name -> spacemesh.v1.Proof + 6, // 7: spacemesh.v1.GenProofResponse.metadata:type_name -> spacemesh.v1.ProofMetadata + 5, // 8: spacemesh.v1.MetadataResponse.meta:type_name -> spacemesh.v1.Metadata + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name +} + +func init() { file_spacemesh_v1_post_types_proto_init() } +func file_spacemesh_v1_post_types_proto_init() { + if File_spacemesh_v1_post_types_proto != nil { + return + } + file_spacemesh_v1_types_proto_init() + if !protoimpl.UnsafeEnabled { + file_spacemesh_v1_post_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServiceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenProofRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Proof); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Metadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProofMetadata); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GenProofResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_post_types_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*MetadataResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_spacemesh_v1_post_types_proto_msgTypes[0].OneofWrappers = []interface{}{ + (*NodeRequest_Metadata)(nil), + (*NodeRequest_GenProof)(nil), + } + file_spacemesh_v1_post_types_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*ServiceResponse_Metadata)(nil), + (*ServiceResponse_GenProof)(nil), + } + file_spacemesh_v1_post_types_proto_msgTypes[4].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_spacemesh_v1_post_types_proto_rawDesc, + NumEnums: 1, + NumMessages: 9, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_spacemesh_v1_post_types_proto_goTypes, + DependencyIndexes: file_spacemesh_v1_post_types_proto_depIdxs, + EnumInfos: file_spacemesh_v1_post_types_proto_enumTypes, + MessageInfos: file_spacemesh_v1_post_types_proto_msgTypes, + }.Build() + File_spacemesh_v1_post_types_proto = out.File + file_spacemesh_v1_post_types_proto_rawDesc = nil + file_spacemesh_v1_post_types_proto_goTypes = nil + file_spacemesh_v1_post_types_proto_depIdxs = nil +} diff --git a/spacemesh/v1/admin_types.proto b/spacemesh/v1/admin_types.proto index 2c69214b..9c2368ec 100644 --- a/spacemesh/v1/admin_types.proto +++ b/spacemesh/v1/admin_types.proto @@ -40,6 +40,8 @@ message Event { EventProposal proposal = 13; EventInitFailed init_failed = 14; EventMalfeasance malfeasance = 15; + EventPostServiceStarted post_service_started = 16; + EventPostServiceStopped post_service_stopped = 17; } } @@ -61,6 +63,10 @@ message EventInitFailed { message EventInitComplete {} +message EventPostServiceStarted {} + +message EventPostServiceStopped {} + message EventPostStart { bytes challenge = 1; } diff --git a/spacemesh/v1/post.proto b/spacemesh/v1/post.proto new file mode 100644 index 00000000..bee9cedc --- /dev/null +++ b/spacemesh/v1/post.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +import "spacemesh/v1/post_types.proto"; + +package spacemesh.v1; + +// PostService is used by dedicated PoST nodes to interact with the spacemesh +// node. +service PostService { + // Register is a bi-directional stream that allows a dedicated PoST node to connect to the spacemesh node. + // The node will send NodeRequets to PoST and the service will respond with ServiceResponses. + rpc Register(stream ServiceResponse) returns (stream NodeRequest); +} diff --git a/spacemesh/v1/post_types.proto b/spacemesh/v1/post_types.proto new file mode 100644 index 00000000..ab8ca0f7 --- /dev/null +++ b/spacemesh/v1/post_types.proto @@ -0,0 +1,65 @@ +syntax = "proto3"; + +import "spacemesh/v1/types.proto"; + +package spacemesh.v1; + +// NodeRequest is a request sent from the node to the post service. +message NodeRequest { + oneof kind { + MetadataRequest metadata = 1; + GenProofRequest gen_proof = 2; + // InitRequest init = 3; + // ResizeRequest resize = 4; + } +} + +// ServiceResponse is a response sent from the post service to the node. +message ServiceResponse { + oneof kind { + MetadataResponse metadata = 1; + GenProofResponse gen_proof = 2; + // InitResponse init = 3; + // ResizeResponse resize = 4; + } +} + +message GenProofRequest { bytes challenge = 1; } + +message Proof { + uint32 nonce = 1; + bytes indices = 2; + uint64 pow = 3; +} + +message Metadata { + bytes node_id = 1; + bytes commitment_atx_id = 2; + optional uint64 nonce = 3; + + uint32 num_units = 4; + uint64 labels_per_unit = 5; +} + +message ProofMetadata { + bytes challenge = 1; + Metadata meta = 2; +} + +enum GenProofStatus { + GEN_PROOF_STATUS_UNSPECIFIED = 0; + GEN_PROOF_STATUS_OK = 1; + GEN_PROOF_STATUS_ERROR = 2; +} + +message GenProofResponse { + GenProofStatus status = 1; + Proof proof = 2; + ProofMetadata metadata = 3; +} + +message MetadataRequest {} + +message MetadataResponse { + Metadata meta = 1; +}