Fix wrong protocol
diff --git a/register/Register.proto b/register/Register.proto
index f5f9767..aff9ea5 100644
--- a/register/Register.proto
+++ b/register/Register.proto
@@ -106,9 +106,10 @@
 }
 
 message EndpointMappingElement {
-    string endpointName = 1;
-    int32 serviceId = 2;
-    DetectPoint from = 3;
+    int32 serviceId = 1;
+    string endpointName = 2;
+    int32 endpointId = 3;
+    DetectPoint from = 4;
 }
 
 message ServiceAndNetworkAddressMappings {