syncthing/vendor/github.com/gogo/protobuf/test/enumdecl_all/enumdeclall.proto
Jakob Borg 93a04158fd vendor: Update github.com/gogo/protobuf, keeping all files
gvt fetch -a, because we need the protobuf files etc for regeneration
2017-06-14 05:24:09 +02:00

36 lines
886 B
Protocol Buffer

syntax = "proto3";
package enumdeclall;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.testgen_all) = true;
option (gogoproto.populate_all) = true;
option (gogoproto.benchgen_all) = true;
option (gogoproto.unmarshaler_all) = true;
option (gogoproto.marshaler_all) = true;
option (gogoproto.sizer_all) = true;
option (gogoproto.equal_all) = true;
option (gogoproto.verbose_equal_all) = true;
option (gogoproto.unsafe_marshaler_all) = false;
option (gogoproto.unsafe_unmarshaler_all) = false;
option (gogoproto.enumdecl_all) = false;
enum MyEnum {
option (gogoproto.goproto_enum_prefix) = false;
A = 0;
B = 1;
}
enum MyOtherEnum {
option (gogoproto.enumdecl) = true;
option (gogoproto.goproto_enum_prefix) = false;
C = 0;
D = 1;
}
message Message {
MyEnum enumerated_field = 1;
MyOtherEnum otherenumerated_field = 2;
}