This was a mistake caused by a logic error, due to the fact that the Health message is used in the HealthStatus message as its second field.
However, as stated in the protobuff documentation, message fields are independant from other messages (and, as a counter-example, Health could also be used as the third field of another message, breaking the logic).
Fixes :
into:
This was a mistake caused by a logic error, due to the fact that the
Health
message is used in theHealthStatus
message as its second field. However, as stated in the protobuff documentation, message fields are independant from other messages (and, as a counter-example,Health
could also be used as the third field of another message, breaking the logic).Link to doc : https://protobuf.dev/programming-guides/proto3/#assigning citing:
Also see the following: https://protobuf.dev/programming-guides/proto3/#other