Found an error in one of the examples in the Protocol Buffer Basics Guide

14 views
Skip to first unread message

J. F.

unread,
Feb 5, 2023, 9:53:47 PM2/5/23
to Protocol Buffers
Hi,
Please take a look at the example under the Reading A Message section at
https://developers.google.com/protocol-buffers/docs/javatutorial#reading-a-message

The cases ("MOBILE", "HOME", and "WORK") of the switch statement aren't in scope, are they?

If you scroll up to the Writing A Message example, you'll find that these enum constants should be referenced like "Person.PhoneType.HOME", right?

J.F.
Reply all
Reply to author
Forward
0 new messages