Skip to content
Snippets Groups Projects
Commit aaad71d8 authored by Fabian Helm's avatar Fabian Helm
Browse files

Removed useless setters and added repeated in listsetters

parent 5a6dd4fc
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ service PndService { ...@@ -90,7 +90,7 @@ service PndService {
get: "/v1/pnds/{pid}/onds/{did}/paths/{path}" get: "/v1/pnds/{pid}/onds/{did}/paths/{path}"
}; };
} }
rpc SetPath(SetPathRequest) returns (SetPathResponse) { rpc SetPathList(SetPathListRequest) returns (SetPathListResponse) {
option (google.api.http) = { option (google.api.http) = {
post: "/v1/pnds/{pid}/onds/{did}/paths" post: "/v1/pnds/{pid}/onds/{did}/paths"
body: "*" body: "*"
...@@ -229,43 +229,25 @@ message Change { ...@@ -229,43 +229,25 @@ message Change {
State state = 3; State state = 3;
} }
message SetOndRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
SetOnd ond = 2;
string pid = 3;
}
message SetOndListRequest { message SetOndListRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated SetOnd ond = 2; repeated SetOnd ond = 2;
string pid = 3; string pid = 3;
} }
message SetSbiRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
SetSbi sbi = 2;
string pid = 3;
}
message SetSbiListRequest { message SetSbiListRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated SetSbi sbi = 2; repeated SetSbi sbi = 2;
string pid = 3; string pid = 3;
} }
message SetChangeRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
SetChange change = 2;
string pid = 3;
}
message SetChangeListRequest { message SetChangeListRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated SetChange change = 2; repeated SetChange change = 2;
string pid = 3; string pid = 3;
} }
message SetPathRequest { message SetPathListRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated ChangeRequest change_request = 2; repeated ChangeRequest change_request = 2;
string did = 3; string did = 3;
...@@ -311,11 +293,6 @@ message SetResponse{ ...@@ -311,11 +293,6 @@ message SetResponse{
Status status = 2; Status status = 2;
} }
message SetOndResponse{
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
Status status = 2;
}
message SetOndListResponse{ message SetOndListResponse{
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
Status status = 2; Status status = 2;
...@@ -339,9 +316,10 @@ message SetSbiListResponse{ ...@@ -339,9 +316,10 @@ message SetSbiListResponse{
repeated SetResponse responses = 3; repeated SetResponse responses = 3;
} }
message SetPathResponse{ message SetPathListResponse{
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
Status status = 2; Status status = 2;
repeated SetResponse responses = 3;
} }
message DeletePndRequest { message DeletePndRequest {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment