I am wondering if there is a good way to test methods that take protos as
parameters? For each of my test methods, I seem to have to create a pretty
complicated proto only to set a single field nested deep inside. This
results in a lot of setup code for my tests. Is there a faster way to make
test protos that only have a couple fields set (or intentionally not set) ?
So far I have been using .buildPartial() to shorten code, but it still
seems pretty long.
The language is Java for reference.
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To view this discussion on the web visit
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at