Re: [protobuf] How do I create a field mask for a field of a repeated field?

2018-02-20 Thread 'Feng Xiao' via Protocol Buffers
On Sun, Feb 18, 2018 at 9:05 PM Shelley Tong wrote: > Let's say you have a proto defined as the following: > > message Zoo { > repeated Cat cats = 1; > } > > Let's say cat looks like this: > > message Cat { > google.protobuf.StringValue name = 1 > Decimal

[protobuf] How do I create a field mask for a field of a repeated field?

2018-02-18 Thread Shelley Tong
Let's say you have a proto defined as the following: message Zoo { repeated Cat cats = 1; } Let's say cat looks like this: message Cat { google.protobuf.StringValue name = 1 Decimal age = 2; } If I want to reduce the amount of data in Zoo such that sample data only contains Cat