Class ProtoUtils

java.lang.Object
io.temporal.internal.common.ProtoUtils

public class ProtoUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends com.google.protobuf.Message>
    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 Details

    • ProtoUtils

      public ProtoUtils()
  • Method Details

    • packAny

      public static <T extends com.google.protobuf.Message> 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.