Protobuf: synchronized test set for protoc with carkot protobufs and changed problematic fields (like double/string) to more convenient int32
This commit is contained in:
@@ -5,13 +5,13 @@ option java_package = "proto.car";
|
||||
option java_outer_classname = "Connect";
|
||||
|
||||
message ConnectionRequest {
|
||||
string ip = 1;
|
||||
int32 ip = 1;
|
||||
int32 port = 2;
|
||||
}
|
||||
|
||||
message ConnectionResponse {
|
||||
int32 uid = 1;
|
||||
int32 code = 2;
|
||||
string errorMsg = 3;
|
||||
int32 errorMsg = 3;
|
||||
|
||||
}
|
||||
|
||||
@@ -17,5 +17,5 @@ message DirectionRequest {
|
||||
|
||||
message DirectionResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
int32 errorMsg = 2;
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ message LocationResponse {
|
||||
|
||||
LocationData locationResponseData = 1;
|
||||
int32 code = 2;
|
||||
string errorMsg = 3;
|
||||
int32 errorMsg = 3;
|
||||
|
||||
message LocationData {
|
||||
double x = 1;
|
||||
double y = 2;
|
||||
double angle = 3;
|
||||
int32 x = 1;
|
||||
int32 y = 2;
|
||||
int32 angle = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "RcSession";
|
||||
|
||||
//session up request is empty. only URL
|
||||
message SessionUpResponse {
|
||||
int32 code = 1;
|
||||
int32 errorMsg = 2;
|
||||
int32 sid = 3;
|
||||
}
|
||||
|
||||
message SessionDownResponse {
|
||||
int32 code = 1;
|
||||
int32 errorMsg = 2;
|
||||
}
|
||||
|
||||
message SessionDownRequest {
|
||||
int32 sid = 1;
|
||||
}
|
||||
|
||||
message HeartBeatRequest {
|
||||
int32 sid = 1;
|
||||
}
|
||||
|
||||
message HeartBeatResponse {
|
||||
int32 code = 1;
|
||||
int32 errorMsg = 2;
|
||||
}
|
||||
@@ -8,12 +8,12 @@ message RouteRequest {
|
||||
repeated WayPoint way_points = 1;
|
||||
|
||||
message WayPoint {
|
||||
double distance = 2;
|
||||
double angle_delta = 3;
|
||||
int32 distance = 2;
|
||||
int32 angle_delta = 3;
|
||||
}
|
||||
}
|
||||
|
||||
message RouteResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
int32 errorMsg = 2;
|
||||
}
|
||||
|
||||
@@ -6,5 +6,5 @@ option java_outer_classname = "RouteDone";
|
||||
|
||||
message RouteDoneResponse {
|
||||
int32 code = 1;
|
||||
string errorMsg = 2;
|
||||
int32 errorMsg = 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user