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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -