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

objective c - iPhone and it's wireless area -

unix - Listing all shared memory segments used by a process on AIX5.3+ -

tsql - Correct sql/hql query (aggregate in where clause) -