Collections in Protocol Buffers messages? -
Is there a message with the compilation of nested messages in protocol buffers? For example a message supervisor may have an employee's name and a collection of supervisor of the department.
Yes. You use the duplicate field;
Message Employee {...} Message Supervisor {Dual employee employee = 1; } You can then access the Employees field as a list.
Comments
Post a Comment