Nested messages

message Bar 
{
  // Some variables.
  int32 x = 1;
}

Message Foo
{
  Bar nested_bar = 1;
}

The message Foo uses an instance of a Bar message as one of it’s variables. To access the variables in nested_bar the message Foo will generate the same functions as for a basic variable with the addition of one. For nested messages also a non const mutable function will be available.

Bar& mutable_bar();

With this function it is possible to access the non const setter functions of the class Bar like set_x() and clear_x().