Package io.dapr.client
Class ProtobufValueHelper
java.lang.Object
io.dapr.client.ProtobufValueHelper
Helper class to convert Java objects to Google Protobuf Value types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.ValuetoProtobufValue(Object obj) Converts a Java object to a Google Protobuf Value.
-
Constructor Details
-
ProtobufValueHelper
public ProtobufValueHelper()
-
-
Method Details
-
toProtobufValue
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
-