Class ProtobufValueHelper

java.lang.Object
io.dapr.client.ProtobufValueHelper

public class ProtobufValueHelper extends Object
Helper class to convert Java objects to Google Protobuf Value types.
  • Constructor Details

    • ProtobufValueHelper

      public ProtobufValueHelper()
  • Method Details

    • toProtobufValue

      public static com.google.protobuf.Value toProtobufValue(Object obj) throws IOException
      Converts a Java object to a Google Protobuf Value.
      Parameters:
      obj - the Java object to convert
      Returns:
      the corresponding Protobuf Value
      Throws:
      IOException - if serialization fails