fromProto static method

ParameterServiceInputMessage fromProto(
  1. Message proto
)

Implementation

static ParameterServiceInputMessage fromProto(cmd_handling_pb.Message proto) {
  return switch (proto.whichMessage()) {
    cmd_handling_pb.Message_Message.update =>
      ParameterServiceInputMessageUpdateProtoEx.fromProto(proto.update),
    cmd_handling_pb.Message_Message.initialise => throw ProtoException(),
    cmd_handling_pb.Message_Message.notSet => throw ProtoException(),
  };
}