github.com/gogo/protobuf@v1.3.2/test/theproto3/maps.proto (about) 1 2 enum MapEnum { 3 MA = 0; 4 MB = 1; 5 MC = 2; 6 } 7 8 message AllMaps { 9 map<string, double> StringToDoubleMap = 1; 10 map<string, float> StringToFloatMap = 2; 11 map<int32, int32> Int32Map = 3; 12 map<int64, int64> Int64Map = 4; 13 map<uint32, uint32> Uint32Map = 5; 14 map<uint64, uint64> Uint64Map = 6; 15 map<sint32, sint32> Sint32Map = 7; 16 map<sint64, sint64> Sint64Map = 8; 17 map<fixed32, fixed32> Fixed32Map = 9; 18 map<sfixed32, sfixed32> Sfixed32Map = 10; 19 map<fixed64, fixed64> Fixed64Map = 11; 20 map<sfixed64, sfixed64> Sfixed64Map = 12; 21 map<bool, bool> BoolMap = 13; 22 map<string, string> StringMap = 14; 23 map<string, bytes> StringToBytesMap = 15; 24 map<string, MapEnum> StringToEnumMap = 16; 25 map<string, FloatingPoint> StringToMsgMap = 17; 26 } 27 28 message AllMapsOrdered { 29 option (gogoproto.stable_marshaler) = true; 30 31 map<string, double> StringToDoubleMap = 1; 32 map<string, float> StringToFloatMap = 2; 33 map<int32, int32> Int32Map = 3; 34 map<int64, int64> Int64Map = 4; 35 map<uint32, uint32> Uint32Map = 5; 36 map<uint64, uint64> Uint64Map = 6; 37 map<sint32, sint32> Sint32Map = 7; 38 map<sint64, sint64> Sint64Map = 8; 39 map<fixed32, fixed32> Fixed32Map = 9; 40 map<sfixed32, sfixed32> Sfixed32Map = 10; 41 map<fixed64, fixed64> Fixed64Map = 11; 42 map<sfixed64, sfixed64> Sfixed64Map = 12; 43 map<bool, bool> BoolMap = 13; 44 map<string, string> StringMap = 14; 45 map<string, bytes> StringToBytesMap = 15; 46 map<string, MapEnum> StringToEnumMap = 16; 47 map<string, FloatingPoint> StringToMsgMap = 17; 48 }