Hi there, i'm trying to setup Wire with grpc so I ...
# squarelibraries
c
Hi there, i'm trying to setup Wire with grpc so I have proto files generating code but there is a
Type mismatch: inferred type is Long? but Any was expected
error on the
Long?
type in generated methods that look like this
override fun ReadPost(): GrpcCall<Long?, Post> =...
(from
rpc ReadPost(google.protobuf.UInt64Value) returns (Post) {}
) I dont understand what's going on and I can't seem to find anything on SO or anywhere. It's the first time I use this kinda stuff so maybe I forgot something silly ?
after investigating more, I'm lost because all "wrapper values" seem to be mapped to nullables, for ex:
UINT64_VALUE: ProtoAdapter<Long?>
but
GrpcCall
doesn't accept nullables:
interface GrpcCall<S : Any, R : Any>
ok so replacing all
google.protobuf.UInt64Value
by a redefined
CustomUInt64Value { uint64 value = 1; }
works but it seems weird to me is this a bug i should file somewhere ?
e
Yeah, filing an issue on GitHub would be nice, thanks!
c