it's working after getting some guidance from Ignition support team
-
Define the Protobuf schema that describes the structure of the data you want to serialize/deserialize. This schema file (
.proto
) defines the types and structure of the messages. -
Generate Java code from the Protobuf schema using a Protobuf compiler (
protoc
) to generate Java classes from the.proto
schema file.
- The
protoc
compiler reads the.proto
file and outputs Java source files corresponding to the schema.
- Compile the generated Java code using a Java compiler (
javac
). - Use the generated Java code by adding the compiled Java classes & JAR file to Ignition, then importing these classes within your script.
- Now serialize/deserialize Protobuf messages using the generated code in your script.