Hi! I am writing my "file.proto" and when i write a constant the compiler give an error called "Expected top-level statement (e.g. "message")" and i do not know why! In my "file.proto" i have the follow:
"message Test{
string str1 = 1;
DataType data = 2;
}
DataType = DataOther | DataTest;"
This piece above of code is a part of what i have in my "file.proto" and i want define the variable "Datatype" as a constant that can be of 2 different types, being them, DataOther or DataTest. But when i am compiling, the compiler give me the error that i mencioned. Can anyone help me please, because i do not know how solve this problem!?
Thanks in advance and i am waiting for some answer,
Leonardo Toledo