I have protocol buffer definitions like this:
package com.asd;
enum AType {
A1 = 0;
A2 = 1;
Unknown = 2;
}
enum BType {
B1 = 0;
B2 = 1;
Unknown = 2;
}
While compiling, I am getting this error:
"Unknown" is already defined in "com.asd". Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it. Therefore, "Other" must be unique within "com.asd", not just within "BType".
Is there a workaround for this problem other than using different packages?