github.com/simpleiot/simpleiot@v0.18.3/internal/pb/node.proto (about) 1 syntax = "proto3"; 2 package pb; 3 4 option go_package = "internal/pb"; 5 6 import "point.proto"; 7 8 // Maps to NodeEdge type in data/node.go 9 message Node { 10 string id = 1; 11 string type = 2; 12 int32 hash = 4; 13 // bool tombstone = 5; // DEPRECATED: Tombstone is now an edge point 14 string parent = 6; 15 repeated Point points = 3; 16 repeated Point edgePoints = 7; 17 } 18 19 message NodeRequest { 20 Node node = 1; 21 string error = 2; 22 } 23 24 message Nodes { 25 repeated Node nodes = 1; 26 } 27 28 message NodesRequest { 29 repeated Node nodes = 1; 30 string error = 2; 31 }