On Wednesday, August 8, 2018 at 3:01:02 PM UTC-7, Grpc learner wrote: > I am thinking how to use this function to check if the msg is larger than > the threshold of the channel we are using. and trying to avoid some > resources exhaust issue. I am using java and gprc 1.13.1 and protobuf > 3.5.1.
I belive then that you want com.google.protobuf.MessageList.getSerializedSize() [1]. [1]: https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/MessageLite#getSerializedSize-- -- Christopher Warrington Microsoft Corp. -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5dae08ed-b874-47dc-97ad-4282f2dfeb5c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
