Class ProtoUtils


  • public class ProtoUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends com.google.protobuf.GeneratedMessageV3>
      com.google.protobuf.Any
      packAny​(T details, com.google.protobuf.Descriptors.Descriptor descriptor)
      This method does exactly what Any.pack(Message) does.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProtoUtils

        public ProtoUtils()
    • Method Detail

      • packAny

        public static <T extends com.google.protobuf.GeneratedMessageV3> com.google.protobuf.Any packAny​(T details,
                                                                                                         com.google.protobuf.Descriptors.Descriptor descriptor)
        This method does exactly what Any.pack(Message) does. But it doesn't go into reflection to fetch the descriptor, which allows us to avoid a bunch of Graal reflection configs.