protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

gofast can't use google/protobuf/any.proto?

Open AC089 opened this issue 3 years ago • 4 comments

gofast can't use google/protobuf/any.proto? I got the mistake: m.Data.MarshalToSizedBuffer undefined (type *anypb.Any has no field or method MarshalToSizedBuffer) m.Data.Size undefined (type *anypb.Any has no field or method Size) m.Data.Unmarshal undefined (type *anypb.Any has no field or method Unmarshal)

AC089 avatar Jun 05 '21 04:06 AC089

fuck I can't use too

ChenMoGe2 avatar Jul 06 '21 13:07 ChenMoGe2

me too

hzxgo avatar Jul 31 '21 10:07 hzxgo

Add this to your code generation process: protoc -I=. --gogofast_out=Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types

yurisasuke avatar Jun 09 '22 03:06 yurisasuke

It's work, many thanks @Keithwachira

9bany avatar Oct 05 '23 08:10 9bany