5 option java_multiple_files = true;
6 option java_package = "it.polito.verigraph.grpc";
7 option java_outer_classname = "VerigraphProto";
9 // The service definition.
11 // Obtains a list of graphs
12 rpc GetGraphs (GetRequest) returns (stream GraphGrpc) {}
14 rpc GetGraph (RequestID) returns (GraphGrpc) {}
15 // Obtains a list of Nodes
16 rpc GetNodes (RequestID) returns (stream NodeGrpc) {}
18 rpc GetNode (RequestID) returns (NodeGrpc) {}
19 // Obtains a list of Neighbours
20 rpc GetNeighbours (RequestID) returns (stream NeighbourGrpc) {}
21 // Obtains a Neighbour
22 rpc GetNeighbour (RequestID) returns (NeighbourGrpc) {}
25 rpc CreateGraph (GraphGrpc) returns (NewGraph) {}
27 rpc DeleteGraph (RequestID) returns (Status) {}
29 rpc UpdateGraph (GraphGrpc) returns (NewGraph) {}
31 rpc VerifyPolicy (Policy) returns (VerificationGrpc) {}
34 rpc CreateNode (NodeGrpc) returns (NewNode) {}
36 rpc DeleteNode (RequestID) returns (Status) {}
38 rpc UpdateNode (NodeGrpc) returns (NewNode) {}
40 rpc ConfigureNode (ConfigurationGrpc) returns (Status) {}
42 // Creates a neighbour
43 rpc CreateNeighbour (NeighbourGrpc) returns (NewNeighbour) {}
45 rpc DeleteNeighbour (RequestID) returns (Status) {}
46 // Updates a neighbour
47 rpc UpdateNeighbour (NeighbourGrpc) returns (NewNeighbour) {}
56 int64 idNeighbour = 3;
62 string destination = 3;
72 message ConfigurationGrpc{
75 string description = 3;
76 string configuration = 4;
100 FunctionalType functional_type = 4;
101 repeated NeighbourGrpc neighbour = 5;
102 ConfigurationGrpc configuration = 6;
103 string errorMessage = 7;
108 repeated NodeGrpc node = 2;
109 string errorMessage = 3;
112 message NeighbourGrpc{
117 string errorMessage = 5;
123 string errorMessage = 3;
129 string errorMessage = 3;
132 message NewNeighbour{
134 NeighbourGrpc neighbour = 2;
135 string errorMessage = 3;
139 repeated NodeGrpc node = 1;
143 message VerificationGrpc{
144 bool successOfOperation = 1;
147 repeated TestGrpc test = 4;
148 string errorMessage = 5;
153 string errorMessage = 2;