corrected proto files
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
import "error.proto";
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "ConnectP";
|
||||
@@ -10,5 +11,8 @@ message ConnectionRequest {
|
||||
}
|
||||
|
||||
message ConnectionResponse {
|
||||
string uid = 1;
|
||||
oneof response {
|
||||
Error error = 2;
|
||||
int32 uid = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "ErrorP";
|
||||
|
||||
message Error {
|
||||
string errorMessage = 1;
|
||||
int32 errorCode = 2;
|
||||
}
|
||||
@@ -1,11 +1,18 @@
|
||||
syntax = "proto3";
|
||||
package carkot;
|
||||
import "error.proto";
|
||||
|
||||
option java_package = "proto.car";
|
||||
option java_outer_classname = "LocationP";
|
||||
|
||||
message Location {
|
||||
double x = 1;
|
||||
double y = 2;
|
||||
double angle = 3;
|
||||
oneof response {
|
||||
Error error = 2;
|
||||
LocationResponse locationResponse = 1;
|
||||
}
|
||||
message LocationResponse {
|
||||
double x = 1;
|
||||
double y = 2;
|
||||
double angle = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ option java_package = "proto.car";
|
||||
option java_outer_classname = "RouteDoneP";
|
||||
|
||||
message RouteDone {
|
||||
string uid = 1;
|
||||
int32 uid = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user