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

php - multilevel menu with multilevel array -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

objective c - iPhone and it's wireless area -