You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
代码中引起protobuf的struct结构,kitex命令行生成文件时报错。
kitex_gen/userve/userve.pb.fast.go:444:49: cannot use &v (value of type *structpb.Struct) as fastpb.Reader value in argument to fastpb.ReadMessage: *structpb.Struct does not implement fastpb.Reader (missing method FastRead)
kitex_gen/userve/userve.pb.fast.go:790:62: cannot use v (variable of type *structpb.Struct) as fastpb.Writer value in argument to fastpb.WriteMessage: *structpb.Struct does not implement fastpb.Writer (missing method FastWrite)
kitex_gen/userve/userve.pb.fast.go:1106:42: cannot use v (variable of type *structpb.Struct) as fastpb.Sizer value in argument to fastpb.SizeMessage: *structpb.Struct does not implement fastpb.Sizer (missing method Size)
kitex_gen/userve/userve.pb.fast.go:1215:18: undefined: structpb.File_api_struct_proto
Is your feature request related to a problem? Please describe.
代码中引起protobuf的struct结构,kitex命令行生成文件时报错。
kitex_gen/userve/userve.pb.fast.go:444:49: cannot use &v (value of type *structpb.Struct) as fastpb.Reader value in argument to fastpb.ReadMessage: *structpb.Struct does not implement fastpb.Reader (missing method FastRead)
kitex_gen/userve/userve.pb.fast.go:790:62: cannot use v (variable of type *structpb.Struct) as fastpb.Writer value in argument to fastpb.WriteMessage: *structpb.Struct does not implement fastpb.Writer (missing method FastWrite)
kitex_gen/userve/userve.pb.fast.go:1106:42: cannot use v (variable of type *structpb.Struct) as fastpb.Sizer value in argument to fastpb.SizeMessage: *structpb.Struct does not implement fastpb.Sizer (missing method Size)
kitex_gen/userve/userve.pb.fast.go:1215:18: undefined: structpb.File_api_struct_proto
proto用法:
...
import "google/protobuf/struct.proto";
message GetUserDataResponse {
map<string, google.protobuf.Struct> data = 1;
}
...
Describe the solution you'd like
kitex工具支持import "google/protobuf/struct.proto"应用protobuf Struct结构
Describe alternatives you've considered
无
Additional context
protobuf struct文档:
https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/struct.proto
The text was updated successfully, but these errors were encountered: