corrected proto files
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "Direction";
|
||||
|
||||
message DirectionRequest {
|
||||
enum Command {
|
||||
stop = 0;
|
||||
forward = 1;
|
||||
backward = 2;
|
||||
left = 3;
|
||||
right = 4;
|
||||
}
|
||||
Command command = 1;
|
||||
}
|
||||
|
||||
message DirectionResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
import "error.proto";
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "ConnectP";
|
||||
option java_outer_classname = "Connect";
|
||||
|
||||
message ConnectionRequest {
|
||||
string ip = 1;
|
||||
@@ -11,8 +10,8 @@ message ConnectionRequest {
|
||||
}
|
||||
|
||||
message ConnectionResponse {
|
||||
oneof response {
|
||||
Error error = 2;
|
||||
int32 uid = 1;
|
||||
}
|
||||
int32 uid = 1;
|
||||
int32 code = 2;
|
||||
string errorMsg = 3;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "ErrorP";
|
||||
|
||||
message Error {
|
||||
string errorMessage = 1;
|
||||
int32 errorCode = 2;
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
import "error.proto";
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "LocationP";
|
||||
option java_outer_classname = "Location";
|
||||
|
||||
message LocationResponse {
|
||||
|
||||
LocationResponse locationResponse = 1;
|
||||
int32 code = 2;
|
||||
string errorMsg = 3;
|
||||
|
||||
message Location {
|
||||
oneof response {
|
||||
Error error = 2;
|
||||
LocationResponse locationResponse = 1;
|
||||
}
|
||||
message LocationResponse {
|
||||
double x = 1;
|
||||
double y = 2;
|
||||
|
||||
@@ -2,10 +2,10 @@ syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "RouteP";
|
||||
option java_outer_classname = "Route";
|
||||
|
||||
message Route {
|
||||
repeated WayPoint way_points = 1;
|
||||
message RouteRequest {
|
||||
repeated WayPoint way_points = 1;
|
||||
|
||||
message WayPoint {
|
||||
double distance = 2;
|
||||
@@ -13,13 +13,7 @@ message Route {
|
||||
}
|
||||
}
|
||||
|
||||
message Direction {
|
||||
enum Command {
|
||||
stop = 0;
|
||||
forward = 1;
|
||||
backward = 2;
|
||||
left = 3;
|
||||
right = 4;
|
||||
}
|
||||
Command command = 1;
|
||||
message RouteResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
@@ -2,8 +2,9 @@ syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "RouteDoneP";
|
||||
option java_outer_classname = "RouteDone";
|
||||
|
||||
message RouteDone {
|
||||
int32 uid = 1;
|
||||
message RouteDoneResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user