cri-o/vendor/github.com/gogo/protobuf/test/theproto3/maps.proto
Mrunal Patel 8e5b17cf13 Switch to github.com/golang/dep for vendoring
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2017-01-31 16:45:59 -08:00

48 lines
1.5 KiB
Protocol Buffer

enum MapEnum {
MA = 0;
MB = 1;
MC = 2;
}
message AllMaps {
map<string, double> StringToDoubleMap = 1;
map<string, float> StringToFloatMap = 2;
map<int32, int32> Int32Map = 3;
map<int64, int64> Int64Map = 4;
map<uint32, uint32> Uint32Map = 5;
map<uint64, uint64> Uint64Map = 6;
map<sint32, sint32> Sint32Map = 7;
map<sint64, sint64> Sint64Map = 8;
map<fixed32, fixed32> Fixed32Map = 9;
map<sfixed32, sfixed32> Sfixed32Map = 10;
map<fixed64, fixed64> Fixed64Map = 11;
map<sfixed64, sfixed64> Sfixed64Map = 12;
map<bool, bool> BoolMap = 13;
map<string, string> StringMap = 14;
map<string, bytes> StringToBytesMap = 15;
map<string, MapEnum> StringToEnumMap = 16;
map<string, FloatingPoint> StringToMsgMap = 17;
}
message AllMapsOrdered {
option (gogoproto.stable_marshaler) = true;
map<string, double> StringToDoubleMap = 1;
map<string, float> StringToFloatMap = 2;
map<int32, int32> Int32Map = 3;
map<int64, int64> Int64Map = 4;
map<uint32, uint32> Uint32Map = 5;
map<uint64, uint64> Uint64Map = 6;
map<sint32, sint32> Sint32Map = 7;
map<sint64, sint64> Sint64Map = 8;
map<fixed32, fixed32> Fixed32Map = 9;
map<sfixed32, sfixed32> Sfixed32Map = 10;
map<fixed64, fixed64> Fixed64Map = 11;
map<sfixed64, sfixed64> Sfixed64Map = 12;
map<bool, bool> BoolMap = 13;
map<string, string> StringMap = 14;
map<string, bytes> StringToBytesMap = 15;
map<string, MapEnum> StringToEnumMap = 16;
map<string, FloatingPoint> StringToMsgMap = 17;
}