Class AlarmPropertySerializer
java.lang.Object
com.inductiveautomation.ignition.gateway.gan.protoserializers.alarm.AlarmPropertySerializer
- All Implemented Interfaces:
com.inductiveautomation.metro.api.ProtobufSerializable<AlarmProperty<?>,
BasicAlarmPropertyProto.AlarmPropPB>
public class AlarmPropertySerializer
extends Object
implements com.inductiveautomation.metro.api.ProtobufSerializable<AlarmProperty<?>,BasicAlarmPropertyProto.AlarmPropPB>
Handles serializing BasicAlarmProperties and also CommonAlarmProperties values
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromProtobufMessage
(com.google.protobuf.Message theMessage) toProtobufMessage
(AlarmProperty<?> alarmProp)
-
Constructor Details
-
AlarmPropertySerializer
public AlarmPropertySerializer()
-
-
Method Details
-
getProtoMsgInstance
- Specified by:
getProtoMsgInstance
in interfacecom.inductiveautomation.metro.api.ProtobufSerializable<AlarmProperty<?>,
BasicAlarmPropertyProto.AlarmPropPB>
-
toProtobufMessage
public BasicAlarmPropertyProto.AlarmPropPB toProtobufMessage(AlarmProperty<?> alarmProp) throws ProtobufSerializationException - Specified by:
toProtobufMessage
in interfacecom.inductiveautomation.metro.api.ProtobufSerializable<AlarmProperty<?>,
BasicAlarmPropertyProto.AlarmPropPB> - Throws:
ProtobufSerializationException
-
fromProtobufMessage
public AlarmProperty<?> fromProtobufMessage(com.google.protobuf.Message theMessage) throws ProtobufDeserializationException - Specified by:
fromProtobufMessage
in interfacecom.inductiveautomation.metro.api.ProtobufSerializable<AlarmProperty<?>,
BasicAlarmPropertyProto.AlarmPropPB> - Throws:
ProtobufDeserializationException
-