Class PyObjectSerializer
java.lang.Object
com.inductiveautomation.ignition.gateway.gan.protoserializers.PyObjectSerializer
- All Implemented Interfaces:
com.inductiveautomation.metro.api.ProtobufSerializable<org.python.core.PyObject,
PyObjectProto.PyObjectPB>
public class PyObjectSerializer
extends Object
implements com.inductiveautomation.metro.api.ProtobufSerializable<org.python.core.PyObject,PyObjectProto.PyObjectPB>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.python.core.PyObject
fromProtobufMessage
(com.google.protobuf.Message theMessage) toProtobufMessage
(org.python.core.PyObject pyObject)
-
Constructor Details
-
PyObjectSerializer
public PyObjectSerializer()
-
-
Method Details
-
getProtoMsgInstance
- Specified by:
getProtoMsgInstance
in interfacecom.inductiveautomation.metro.api.ProtobufSerializable<org.python.core.PyObject,
PyObjectProto.PyObjectPB>
-
toProtobufMessage
public PyObjectProto.PyObjectPB toProtobufMessage(org.python.core.PyObject pyObject) throws ProtobufSerializationException - Specified by:
toProtobufMessage
in interfacecom.inductiveautomation.metro.api.ProtobufSerializable<org.python.core.PyObject,
PyObjectProto.PyObjectPB> - Throws:
ProtobufSerializationException
-
fromProtobufMessage
public org.python.core.PyObject fromProtobufMessage(com.google.protobuf.Message theMessage) throws ProtobufDeserializationException - Specified by:
fromProtobufMessage
in interfacecom.inductiveautomation.metro.api.ProtobufSerializable<org.python.core.PyObject,
PyObjectProto.PyObjectPB> - Throws:
ProtobufDeserializationException
-