Groups
Groups
Sign in
Groups
Groups
Protocol Buffers
Conversations
About
Send feedback
Help
Found an error in one of the examples in the Protocol Buffer Basics Guide
18 views
Skip to first unread message
J. F.
unread,
Feb 5, 2023, 9:53:47 PM
2/5/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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