mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-06 13:27:54 +00:00
28 lines
704 B
Protocol Buffer
28 lines
704 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package enumdecl;
|
||
|
|
||
|
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;
|
||
|
|
||
|
enum MyEnum {
|
||
|
option (gogoproto.enumdecl) = false;
|
||
|
option (gogoproto.goproto_enum_prefix) = false;
|
||
|
A = 0;
|
||
|
B = 1;
|
||
|
}
|
||
|
|
||
|
message Message {
|
||
|
MyEnum enumerated_field = 1;
|
||
|
}
|