...
1syntax = "proto3";
2
3package enumdecl;
4
5import "github.com/gogo/protobuf/gogoproto/gogo.proto";
6
7option (gogoproto.testgen_all) = true;
8option (gogoproto.populate_all) = true;
9option (gogoproto.benchgen_all) = true;
10option (gogoproto.unmarshaler_all) = true;
11option (gogoproto.marshaler_all) = true;
12option (gogoproto.sizer_all) = true;
13option (gogoproto.equal_all) = true;
14option (gogoproto.verbose_equal_all) = true;
15option (gogoproto.unsafe_marshaler_all) = false;
16option (gogoproto.unsafe_unmarshaler_all) = false;
17
18enum MyEnum {
19 option (gogoproto.enumdecl) = false;
20 option (gogoproto.goproto_enum_prefix) = false;
21 A = 0;
22 B = 1;
23}
24
25message Message {
26 MyEnum enumerated_field = 1;
27}
View as plain text