diff --git a/proto/spacemesh/v1/node.proto b/proto/spacemesh/v1/node.proto index 2b5ab220..d5aa5d24 100644 --- a/proto/spacemesh/v1/node.proto +++ b/proto/spacemesh/v1/node.proto @@ -24,6 +24,9 @@ service NodeService { // Request that the node initiate graceful shutdown rpc Shutdown(ShutdownRequest) returns (ShutdownResponse); + // UpdatePoetServer updates poet server + rpc UpdatePoetServer(UpdatePoetServerRequest) returns (UpdatePoetServerResponse); + ////////// Node streaming data // Node status events (sync and net) diff --git a/proto/spacemesh/v1/node_types.proto b/proto/spacemesh/v1/node_types.proto index 18bde08f..2353b3d0 100644 --- a/proto/spacemesh/v1/node_types.proto +++ b/proto/spacemesh/v1/node_types.proto @@ -47,6 +47,14 @@ message StatusResponse { NodeStatus status = 1; } +message UpdatePoetServerRequest { + string url = 1; +} + +message UpdatePoetServerResponse { + google.rpc.Status status = 1; +} + message StatusStreamRequest {} message StatusStreamResponse { @@ -76,4 +84,3 @@ message ErrorStreamRequest {} message ErrorStreamResponse { NodeError error = 1; } - diff --git a/release/go/spacemesh/v1/node.pb.go b/release/go/spacemesh/v1/node.pb.go index 57bbb825..27f1bf24 100644 --- a/release/go/spacemesh/v1/node.pb.go +++ b/release/go/spacemesh/v1/node.pb.go @@ -38,7 +38,7 @@ var file_spacemesh_v1_node_proto_rawDesc = []byte{ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1d, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x32, 0xd9, 0x04, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x6f, 0x74, 0x6f, 0x32, 0xbc, 0x05, 0x0a, 0x0b, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x19, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, @@ -65,39 +65,47 @@ var file_spacemesh_v1_node_proto_rawDesc = []byte{ 0x2e, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x57, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, - 0x12, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, + 0x12, 0x61, 0x0a, 0x10, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x12, 0x25, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, + 0x65, 0x61, 0x6d, 0x12, 0x21, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x54, 0x0a, 0x0b, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x20, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, - 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, - 0x34, 0x5a, 0x32, 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, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, + 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, + 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x30, 0x01, 0x12, 0x54, 0x0a, 0x0b, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x20, 0x2e, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 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, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var file_spacemesh_v1_node_proto_goTypes = []interface{}{ - (*EchoRequest)(nil), // 0: spacemesh.v1.EchoRequest - (*empty.Empty)(nil), // 1: google.protobuf.Empty - (*StatusRequest)(nil), // 2: spacemesh.v1.StatusRequest - (*SyncStartRequest)(nil), // 3: spacemesh.v1.SyncStartRequest - (*ShutdownRequest)(nil), // 4: spacemesh.v1.ShutdownRequest - (*StatusStreamRequest)(nil), // 5: spacemesh.v1.StatusStreamRequest - (*ErrorStreamRequest)(nil), // 6: spacemesh.v1.ErrorStreamRequest - (*EchoResponse)(nil), // 7: spacemesh.v1.EchoResponse - (*VersionResponse)(nil), // 8: spacemesh.v1.VersionResponse - (*BuildResponse)(nil), // 9: spacemesh.v1.BuildResponse - (*StatusResponse)(nil), // 10: spacemesh.v1.StatusResponse - (*SyncStartResponse)(nil), // 11: spacemesh.v1.SyncStartResponse - (*ShutdownResponse)(nil), // 12: spacemesh.v1.ShutdownResponse - (*StatusStreamResponse)(nil), // 13: spacemesh.v1.StatusStreamResponse - (*ErrorStreamResponse)(nil), // 14: spacemesh.v1.ErrorStreamResponse + (*EchoRequest)(nil), // 0: spacemesh.v1.EchoRequest + (*empty.Empty)(nil), // 1: google.protobuf.Empty + (*StatusRequest)(nil), // 2: spacemesh.v1.StatusRequest + (*SyncStartRequest)(nil), // 3: spacemesh.v1.SyncStartRequest + (*ShutdownRequest)(nil), // 4: spacemesh.v1.ShutdownRequest + (*UpdatePoetServerRequest)(nil), // 5: spacemesh.v1.UpdatePoetServerRequest + (*StatusStreamRequest)(nil), // 6: spacemesh.v1.StatusStreamRequest + (*ErrorStreamRequest)(nil), // 7: spacemesh.v1.ErrorStreamRequest + (*EchoResponse)(nil), // 8: spacemesh.v1.EchoResponse + (*VersionResponse)(nil), // 9: spacemesh.v1.VersionResponse + (*BuildResponse)(nil), // 10: spacemesh.v1.BuildResponse + (*StatusResponse)(nil), // 11: spacemesh.v1.StatusResponse + (*SyncStartResponse)(nil), // 12: spacemesh.v1.SyncStartResponse + (*ShutdownResponse)(nil), // 13: spacemesh.v1.ShutdownResponse + (*UpdatePoetServerResponse)(nil), // 14: spacemesh.v1.UpdatePoetServerResponse + (*StatusStreamResponse)(nil), // 15: spacemesh.v1.StatusStreamResponse + (*ErrorStreamResponse)(nil), // 16: spacemesh.v1.ErrorStreamResponse } var file_spacemesh_v1_node_proto_depIdxs = []int32{ 0, // 0: spacemesh.v1.NodeService.Echo:input_type -> spacemesh.v1.EchoRequest @@ -106,18 +114,20 @@ var file_spacemesh_v1_node_proto_depIdxs = []int32{ 2, // 3: spacemesh.v1.NodeService.Status:input_type -> spacemesh.v1.StatusRequest 3, // 4: spacemesh.v1.NodeService.SyncStart:input_type -> spacemesh.v1.SyncStartRequest 4, // 5: spacemesh.v1.NodeService.Shutdown:input_type -> spacemesh.v1.ShutdownRequest - 5, // 6: spacemesh.v1.NodeService.StatusStream:input_type -> spacemesh.v1.StatusStreamRequest - 6, // 7: spacemesh.v1.NodeService.ErrorStream:input_type -> spacemesh.v1.ErrorStreamRequest - 7, // 8: spacemesh.v1.NodeService.Echo:output_type -> spacemesh.v1.EchoResponse - 8, // 9: spacemesh.v1.NodeService.Version:output_type -> spacemesh.v1.VersionResponse - 9, // 10: spacemesh.v1.NodeService.Build:output_type -> spacemesh.v1.BuildResponse - 10, // 11: spacemesh.v1.NodeService.Status:output_type -> spacemesh.v1.StatusResponse - 11, // 12: spacemesh.v1.NodeService.SyncStart:output_type -> spacemesh.v1.SyncStartResponse - 12, // 13: spacemesh.v1.NodeService.Shutdown:output_type -> spacemesh.v1.ShutdownResponse - 13, // 14: spacemesh.v1.NodeService.StatusStream:output_type -> spacemesh.v1.StatusStreamResponse - 14, // 15: spacemesh.v1.NodeService.ErrorStream:output_type -> spacemesh.v1.ErrorStreamResponse - 8, // [8:16] is the sub-list for method output_type - 0, // [0:8] is the sub-list for method input_type + 5, // 6: spacemesh.v1.NodeService.UpdatePoetServer:input_type -> spacemesh.v1.UpdatePoetServerRequest + 6, // 7: spacemesh.v1.NodeService.StatusStream:input_type -> spacemesh.v1.StatusStreamRequest + 7, // 8: spacemesh.v1.NodeService.ErrorStream:input_type -> spacemesh.v1.ErrorStreamRequest + 8, // 9: spacemesh.v1.NodeService.Echo:output_type -> spacemesh.v1.EchoResponse + 9, // 10: spacemesh.v1.NodeService.Version:output_type -> spacemesh.v1.VersionResponse + 10, // 11: spacemesh.v1.NodeService.Build:output_type -> spacemesh.v1.BuildResponse + 11, // 12: spacemesh.v1.NodeService.Status:output_type -> spacemesh.v1.StatusResponse + 12, // 13: spacemesh.v1.NodeService.SyncStart:output_type -> spacemesh.v1.SyncStartResponse + 13, // 14: spacemesh.v1.NodeService.Shutdown:output_type -> spacemesh.v1.ShutdownResponse + 14, // 15: spacemesh.v1.NodeService.UpdatePoetServer:output_type -> spacemesh.v1.UpdatePoetServerResponse + 15, // 16: spacemesh.v1.NodeService.StatusStream:output_type -> spacemesh.v1.StatusStreamResponse + 16, // 17: spacemesh.v1.NodeService.ErrorStream:output_type -> spacemesh.v1.ErrorStreamResponse + 9, // [9:18] is the sub-list for method output_type + 0, // [0:9] 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 @@ -172,6 +182,8 @@ type NodeServiceClient interface { SyncStart(ctx context.Context, in *SyncStartRequest, opts ...grpc.CallOption) (*SyncStartResponse, error) // Request that the node initiate graceful shutdown Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) + // UpdatePoetServer updates poet server + UpdatePoetServer(ctx context.Context, in *UpdatePoetServerRequest, opts ...grpc.CallOption) (*UpdatePoetServerResponse, error) // Node status events (sync and net) StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (NodeService_StatusStreamClient, error) // Node error events @@ -240,6 +252,15 @@ func (c *nodeServiceClient) Shutdown(ctx context.Context, in *ShutdownRequest, o return out, nil } +func (c *nodeServiceClient) UpdatePoetServer(ctx context.Context, in *UpdatePoetServerRequest, opts ...grpc.CallOption) (*UpdatePoetServerResponse, error) { + out := new(UpdatePoetServerResponse) + err := c.cc.Invoke(ctx, "/spacemesh.v1.NodeService/UpdatePoetServer", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *nodeServiceClient) StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (NodeService_StatusStreamClient, error) { stream, err := c.cc.NewStream(ctx, &_NodeService_serviceDesc.Streams[0], "/spacemesh.v1.NodeService/StatusStream", opts...) if err != nil { @@ -318,6 +339,8 @@ type NodeServiceServer interface { SyncStart(context.Context, *SyncStartRequest) (*SyncStartResponse, error) // Request that the node initiate graceful shutdown Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) + // UpdatePoetServer updates poet server + UpdatePoetServer(context.Context, *UpdatePoetServerRequest) (*UpdatePoetServerResponse, error) // Node status events (sync and net) StatusStream(*StatusStreamRequest, NodeService_StatusStreamServer) error // Node error events @@ -346,6 +369,9 @@ func (*UnimplementedNodeServiceServer) SyncStart(context.Context, *SyncStartRequ func (*UnimplementedNodeServiceServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Shutdown not implemented") } +func (*UnimplementedNodeServiceServer) UpdatePoetServer(context.Context, *UpdatePoetServerRequest) (*UpdatePoetServerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdatePoetServer not implemented") +} func (*UnimplementedNodeServiceServer) StatusStream(*StatusStreamRequest, NodeService_StatusStreamServer) error { return status.Errorf(codes.Unimplemented, "method StatusStream not implemented") } @@ -465,6 +491,24 @@ func _NodeService_Shutdown_Handler(srv interface{}, ctx context.Context, dec fun return interceptor(ctx, in, info, handler) } +func _NodeService_UpdatePoetServer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdatePoetServerRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(NodeServiceServer).UpdatePoetServer(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/spacemesh.v1.NodeService/UpdatePoetServer", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(NodeServiceServer).UpdatePoetServer(ctx, req.(*UpdatePoetServerRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _NodeService_StatusStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(StatusStreamRequest) if err := stream.RecvMsg(m); err != nil { @@ -535,6 +579,10 @@ var _NodeService_serviceDesc = grpc.ServiceDesc{ MethodName: "Shutdown", Handler: _NodeService_Shutdown_Handler, }, + { + MethodName: "UpdatePoetServer", + Handler: _NodeService_UpdatePoetServer_Handler, + }, }, Streams: []grpc.StreamDesc{ { diff --git a/release/go/spacemesh/v1/node_types.pb.go b/release/go/spacemesh/v1/node_types.pb.go index c80d1d16..cc179d50 100644 --- a/release/go/spacemesh/v1/node_types.pb.go +++ b/release/go/spacemesh/v1/node_types.pb.go @@ -613,6 +613,100 @@ func (x *StatusResponse) GetStatus() *NodeStatus { return nil } +type UpdatePoetServerRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` +} + +func (x *UpdatePoetServerRequest) Reset() { + *x = UpdatePoetServerRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_node_types_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePoetServerRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePoetServerRequest) ProtoMessage() {} + +func (x *UpdatePoetServerRequest) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_node_types_proto_msgTypes[11] + 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 UpdatePoetServerRequest.ProtoReflect.Descriptor instead. +func (*UpdatePoetServerRequest) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{11} +} + +func (x *UpdatePoetServerRequest) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +type UpdatePoetServerResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` +} + +func (x *UpdatePoetServerResponse) Reset() { + *x = UpdatePoetServerResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_spacemesh_v1_node_types_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdatePoetServerResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdatePoetServerResponse) ProtoMessage() {} + +func (x *UpdatePoetServerResponse) ProtoReflect() protoreflect.Message { + mi := &file_spacemesh_v1_node_types_proto_msgTypes[12] + 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 UpdatePoetServerResponse.ProtoReflect.Descriptor instead. +func (*UpdatePoetServerResponse) Descriptor() ([]byte, []int) { + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{12} +} + +func (x *UpdatePoetServerResponse) GetStatus() *status.Status { + if x != nil { + return x.Status + } + return nil +} + type StatusStreamRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -622,7 +716,7 @@ type StatusStreamRequest struct { func (x *StatusStreamRequest) Reset() { *x = StatusStreamRequest{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[11] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -635,7 +729,7 @@ func (x *StatusStreamRequest) String() string { func (*StatusStreamRequest) ProtoMessage() {} func (x *StatusStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[11] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -648,7 +742,7 @@ func (x *StatusStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusStreamRequest.ProtoReflect.Descriptor instead. func (*StatusStreamRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{11} + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{13} } type StatusStreamResponse struct { @@ -662,7 +756,7 @@ type StatusStreamResponse struct { func (x *StatusStreamResponse) Reset() { *x = StatusStreamResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[12] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -675,7 +769,7 @@ func (x *StatusStreamResponse) String() string { func (*StatusStreamResponse) ProtoMessage() {} func (x *StatusStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[12] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -688,7 +782,7 @@ func (x *StatusStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use StatusStreamResponse.ProtoReflect.Descriptor instead. func (*StatusStreamResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{12} + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{14} } func (x *StatusStreamResponse) GetStatus() *NodeStatus { @@ -712,7 +806,7 @@ type NodeError struct { func (x *NodeError) Reset() { *x = NodeError{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[13] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -725,7 +819,7 @@ func (x *NodeError) String() string { func (*NodeError) ProtoMessage() {} func (x *NodeError) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[13] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -738,7 +832,7 @@ func (x *NodeError) ProtoReflect() protoreflect.Message { // Deprecated: Use NodeError.ProtoReflect.Descriptor instead. func (*NodeError) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{13} + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{15} } func (x *NodeError) GetLevel() LogLevel { @@ -778,7 +872,7 @@ type ErrorStreamRequest struct { func (x *ErrorStreamRequest) Reset() { *x = ErrorStreamRequest{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[14] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -791,7 +885,7 @@ func (x *ErrorStreamRequest) String() string { func (*ErrorStreamRequest) ProtoMessage() {} func (x *ErrorStreamRequest) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[14] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -804,7 +898,7 @@ func (x *ErrorStreamRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ErrorStreamRequest.ProtoReflect.Descriptor instead. func (*ErrorStreamRequest) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{14} + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{16} } type ErrorStreamResponse struct { @@ -818,7 +912,7 @@ type ErrorStreamResponse struct { func (x *ErrorStreamResponse) Reset() { *x = ErrorStreamResponse{} if protoimpl.UnsafeEnabled { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[15] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -831,7 +925,7 @@ func (x *ErrorStreamResponse) String() string { func (*ErrorStreamResponse) ProtoMessage() {} func (x *ErrorStreamResponse) ProtoReflect() protoreflect.Message { - mi := &file_spacemesh_v1_node_types_proto_msgTypes[15] + mi := &file_spacemesh_v1_node_types_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -844,7 +938,7 @@ func (x *ErrorStreamResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ErrorStreamResponse.ProtoReflect.Descriptor instead. func (*ErrorStreamResponse) Descriptor() ([]byte, []int) { - return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{15} + return file_spacemesh_v1_node_types_proto_rawDescGZIP(), []int{17} } func (x *ErrorStreamResponse) GetError() *NodeError { @@ -913,43 +1007,50 @@ var file_spacemesh_v1_node_types_proto_rawDesc = []byte{ 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x22, 0x48, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x73, 0x70, 0x61, - 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x84, 0x01, 0x0a, - 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2c, 0x0a, 0x05, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, - 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x75, - 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, - 0x73, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, 0x74, 0x72, 0x61, 0x63, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x54, 0x72, - 0x61, 0x63, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x44, 0x0a, 0x13, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, - 0x6f, 0x64, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, - 0xb7, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x19, 0x0a, 0x15, - 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, - 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, - 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x02, - 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x57, 0x41, - 0x52, 0x4e, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, - 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x4f, 0x47, - 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x44, 0x50, 0x41, 0x4e, 0x49, 0x43, 0x10, 0x05, 0x12, - 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x50, 0x41, 0x4e, - 0x49, 0x43, 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, - 0x4c, 0x5f, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x07, 0x42, 0x34, 0x5a, 0x32, 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, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2b, 0x0a, 0x17, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x22, 0x46, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x6f, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, + 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x22, 0x15, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x48, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4e, + 0x6f, 0x64, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x22, 0x84, 0x01, 0x0a, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, + 0x2c, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, + 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x16, 0x0a, + 0x06, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, + 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x63, 0x6b, + 0x5f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x74, + 0x61, 0x63, 0x6b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x22, 0x14, 0x0a, 0x12, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x44, + 0x0a, 0x13, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x73, 0x70, 0x61, 0x63, 0x65, 0x6d, 0x65, 0x73, 0x68, + 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x05, 0x65, + 0x72, 0x72, 0x6f, 0x72, 0x2a, 0xb7, 0x01, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, + 0x6c, 0x12, 0x19, 0x0a, 0x15, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x55, + 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, + 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, + 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x49, + 0x4e, 0x46, 0x4f, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, + 0x45, 0x4c, 0x5f, 0x57, 0x41, 0x52, 0x4e, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, + 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, + 0x0a, 0x10, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x44, 0x50, 0x41, 0x4e, + 0x49, 0x43, 0x10, 0x05, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, 0x5f, 0x4c, 0x45, 0x56, 0x45, + 0x4c, 0x5f, 0x50, 0x41, 0x4e, 0x49, 0x43, 0x10, 0x06, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x47, + 0x5f, 0x4c, 0x45, 0x56, 0x45, 0x4c, 0x5f, 0x46, 0x41, 0x54, 0x41, 0x4c, 0x10, 0x07, 0x42, 0x34, + 0x5a, 0x32, 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, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -965,48 +1066,51 @@ func file_spacemesh_v1_node_types_proto_rawDescGZIP() []byte { } var file_spacemesh_v1_node_types_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_spacemesh_v1_node_types_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_spacemesh_v1_node_types_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_spacemesh_v1_node_types_proto_goTypes = []interface{}{ - (LogLevel)(0), // 0: spacemesh.v1.LogLevel - (*EchoRequest)(nil), // 1: spacemesh.v1.EchoRequest - (*EchoResponse)(nil), // 2: spacemesh.v1.EchoResponse - (*VersionResponse)(nil), // 3: spacemesh.v1.VersionResponse - (*BuildResponse)(nil), // 4: spacemesh.v1.BuildResponse - (*SyncStartRequest)(nil), // 5: spacemesh.v1.SyncStartRequest - (*SyncStartResponse)(nil), // 6: spacemesh.v1.SyncStartResponse - (*ShutdownRequest)(nil), // 7: spacemesh.v1.ShutdownRequest - (*ShutdownResponse)(nil), // 8: spacemesh.v1.ShutdownResponse - (*NodeStatus)(nil), // 9: spacemesh.v1.NodeStatus - (*StatusRequest)(nil), // 10: spacemesh.v1.StatusRequest - (*StatusResponse)(nil), // 11: spacemesh.v1.StatusResponse - (*StatusStreamRequest)(nil), // 12: spacemesh.v1.StatusStreamRequest - (*StatusStreamResponse)(nil), // 13: spacemesh.v1.StatusStreamResponse - (*NodeError)(nil), // 14: spacemesh.v1.NodeError - (*ErrorStreamRequest)(nil), // 15: spacemesh.v1.ErrorStreamRequest - (*ErrorStreamResponse)(nil), // 16: spacemesh.v1.ErrorStreamResponse - (*SimpleString)(nil), // 17: spacemesh.v1.SimpleString - (*status.Status)(nil), // 18: google.rpc.Status - (*LayerNumber)(nil), // 19: spacemesh.v1.LayerNumber + (LogLevel)(0), // 0: spacemesh.v1.LogLevel + (*EchoRequest)(nil), // 1: spacemesh.v1.EchoRequest + (*EchoResponse)(nil), // 2: spacemesh.v1.EchoResponse + (*VersionResponse)(nil), // 3: spacemesh.v1.VersionResponse + (*BuildResponse)(nil), // 4: spacemesh.v1.BuildResponse + (*SyncStartRequest)(nil), // 5: spacemesh.v1.SyncStartRequest + (*SyncStartResponse)(nil), // 6: spacemesh.v1.SyncStartResponse + (*ShutdownRequest)(nil), // 7: spacemesh.v1.ShutdownRequest + (*ShutdownResponse)(nil), // 8: spacemesh.v1.ShutdownResponse + (*NodeStatus)(nil), // 9: spacemesh.v1.NodeStatus + (*StatusRequest)(nil), // 10: spacemesh.v1.StatusRequest + (*StatusResponse)(nil), // 11: spacemesh.v1.StatusResponse + (*UpdatePoetServerRequest)(nil), // 12: spacemesh.v1.UpdatePoetServerRequest + (*UpdatePoetServerResponse)(nil), // 13: spacemesh.v1.UpdatePoetServerResponse + (*StatusStreamRequest)(nil), // 14: spacemesh.v1.StatusStreamRequest + (*StatusStreamResponse)(nil), // 15: spacemesh.v1.StatusStreamResponse + (*NodeError)(nil), // 16: spacemesh.v1.NodeError + (*ErrorStreamRequest)(nil), // 17: spacemesh.v1.ErrorStreamRequest + (*ErrorStreamResponse)(nil), // 18: spacemesh.v1.ErrorStreamResponse + (*SimpleString)(nil), // 19: spacemesh.v1.SimpleString + (*status.Status)(nil), // 20: google.rpc.Status + (*LayerNumber)(nil), // 21: spacemesh.v1.LayerNumber } var file_spacemesh_v1_node_types_proto_depIdxs = []int32{ - 17, // 0: spacemesh.v1.EchoRequest.msg:type_name -> spacemesh.v1.SimpleString - 17, // 1: spacemesh.v1.EchoResponse.msg:type_name -> spacemesh.v1.SimpleString - 17, // 2: spacemesh.v1.VersionResponse.version_string:type_name -> spacemesh.v1.SimpleString - 17, // 3: spacemesh.v1.BuildResponse.build_string:type_name -> spacemesh.v1.SimpleString - 18, // 4: spacemesh.v1.SyncStartResponse.status:type_name -> google.rpc.Status - 18, // 5: spacemesh.v1.ShutdownResponse.status:type_name -> google.rpc.Status - 19, // 6: spacemesh.v1.NodeStatus.synced_layer:type_name -> spacemesh.v1.LayerNumber - 19, // 7: spacemesh.v1.NodeStatus.top_layer:type_name -> spacemesh.v1.LayerNumber - 19, // 8: spacemesh.v1.NodeStatus.verified_layer:type_name -> spacemesh.v1.LayerNumber + 19, // 0: spacemesh.v1.EchoRequest.msg:type_name -> spacemesh.v1.SimpleString + 19, // 1: spacemesh.v1.EchoResponse.msg:type_name -> spacemesh.v1.SimpleString + 19, // 2: spacemesh.v1.VersionResponse.version_string:type_name -> spacemesh.v1.SimpleString + 19, // 3: spacemesh.v1.BuildResponse.build_string:type_name -> spacemesh.v1.SimpleString + 20, // 4: spacemesh.v1.SyncStartResponse.status:type_name -> google.rpc.Status + 20, // 5: spacemesh.v1.ShutdownResponse.status:type_name -> google.rpc.Status + 21, // 6: spacemesh.v1.NodeStatus.synced_layer:type_name -> spacemesh.v1.LayerNumber + 21, // 7: spacemesh.v1.NodeStatus.top_layer:type_name -> spacemesh.v1.LayerNumber + 21, // 8: spacemesh.v1.NodeStatus.verified_layer:type_name -> spacemesh.v1.LayerNumber 9, // 9: spacemesh.v1.StatusResponse.status:type_name -> spacemesh.v1.NodeStatus - 9, // 10: spacemesh.v1.StatusStreamResponse.status:type_name -> spacemesh.v1.NodeStatus - 0, // 11: spacemesh.v1.NodeError.level:type_name -> spacemesh.v1.LogLevel - 14, // 12: spacemesh.v1.ErrorStreamResponse.error:type_name -> spacemesh.v1.NodeError - 13, // [13:13] is the sub-list for method output_type - 13, // [13:13] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name + 20, // 10: spacemesh.v1.UpdatePoetServerResponse.status:type_name -> google.rpc.Status + 9, // 11: spacemesh.v1.StatusStreamResponse.status:type_name -> spacemesh.v1.NodeStatus + 0, // 12: spacemesh.v1.NodeError.level:type_name -> spacemesh.v1.LogLevel + 16, // 13: spacemesh.v1.ErrorStreamResponse.error:type_name -> spacemesh.v1.NodeError + 14, // [14:14] is the sub-list for method output_type + 14, // [14:14] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_spacemesh_v1_node_types_proto_init() } @@ -1149,7 +1253,7 @@ func file_spacemesh_v1_node_types_proto_init() { } } file_spacemesh_v1_node_types_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusStreamRequest); i { + switch v := v.(*UpdatePoetServerRequest); i { case 0: return &v.state case 1: @@ -1161,7 +1265,7 @@ func file_spacemesh_v1_node_types_proto_init() { } } file_spacemesh_v1_node_types_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusStreamResponse); i { + switch v := v.(*UpdatePoetServerResponse); i { case 0: return &v.state case 1: @@ -1173,7 +1277,7 @@ func file_spacemesh_v1_node_types_proto_init() { } } file_spacemesh_v1_node_types_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodeError); i { + switch v := v.(*StatusStreamRequest); i { case 0: return &v.state case 1: @@ -1185,7 +1289,7 @@ func file_spacemesh_v1_node_types_proto_init() { } } file_spacemesh_v1_node_types_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrorStreamRequest); i { + switch v := v.(*StatusStreamResponse); i { case 0: return &v.state case 1: @@ -1197,6 +1301,30 @@ func file_spacemesh_v1_node_types_proto_init() { } } file_spacemesh_v1_node_types_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*NodeError); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_node_types_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ErrorStreamRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_spacemesh_v1_node_types_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ErrorStreamResponse); i { case 0: return &v.state @@ -1215,7 +1343,7 @@ func file_spacemesh_v1_node_types_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_spacemesh_v1_node_types_proto_rawDesc, NumEnums: 1, - NumMessages: 16, + NumMessages: 18, NumExtensions: 0, NumServices: 0, },