[#103] protogen: Handle uint32 type

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-08-09 10:22:13 +03:00
parent ff4f31b6f3
commit 19247e8941

View file

@ -229,7 +229,8 @@ type marshalerDesc struct {
var marshalers = map[protoreflect.Kind]marshalerDesc{ var marshalers = map[protoreflect.Kind]marshalerDesc{
protoreflect.BoolKind: {Prefix: "Bool"}, protoreflect.BoolKind: {Prefix: "Bool"},
protoreflect.EnumKind: {Prefix: "Enum"}, protoreflect.EnumKind: {Prefix: "Enum"},
// protoreflect.Int32Kind: "",
protoreflect.Int32Kind: {Prefix: "Int32", RepeatedDouble: true},
// protoreflect.Sint32Kind: "", // protoreflect.Sint32Kind: "",
protoreflect.Uint32Kind: {Prefix: "UInt32", RepeatedDouble: true}, protoreflect.Uint32Kind: {Prefix: "UInt32", RepeatedDouble: true},
protoreflect.Int64Kind: {Prefix: "Int64", RepeatedDouble: true}, protoreflect.Int64Kind: {Prefix: "Int64", RepeatedDouble: true},