add helper getEnumValue
This commit is contained in:
14
examples/enum/proto/sample.proto
Normal file
14
examples/enum/proto/sample.proto
Normal file
@@ -0,0 +1,14 @@
|
||||
syntax = "proto3";
|
||||
package Sample;
|
||||
|
||||
enum Colors {
|
||||
red = 0;
|
||||
blue = 1;
|
||||
black = 2;
|
||||
yellow = 3;
|
||||
green = 4;
|
||||
dark = 5;
|
||||
white = 6;
|
||||
gray = 7;
|
||||
orange = 8;
|
||||
}
|
Reference in New Issue
Block a user