Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
bdabaeb0
Commit
bdabaeb0
authored
Dec 02, 2015
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1016 from tswast/tutorial-regions
Add region tags for protocol buffers tutorials.
parents
1a59a715
bc472348
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
addressbook.proto
examples/addressbook.proto
+17
-3
No files found.
examples/addressbook.proto
View file @
bdabaeb0
// See README.txt for information and build instructions.
//
// Note: START and END tags are used in comments to define sections used in
// tutorials. They are not part of the syntax for Protocol Buffers.
//
// To get an in-depth walkthrough of this file and the related examples, see:
// https://developers.google.com/protocol-buffers/docs/tutorials
// [START declaration]
syntax
=
"proto3"
;
package
tutorial
;
// [END declaration]
// [START java_declaration]
option
java_package
=
"com.example.tutorial"
;
option
java_outer_classname
=
"AddressBookProtos"
;
// [END java_declaration]
// [START csharp_declaration]
option
csharp_namespace
=
"Google.Protobuf.Examples.AddressBook"
;
// [END csharp_declaration]
// [START messages]
message
Person
{
string
name
=
1
;
int32
id
=
2
;
// Unique ID number for this person.
int32
id
=
2
;
// Unique ID number for this person.
string
email
=
3
;
enum
PhoneType
{
...
...
@@ -31,3 +44,4 @@ message Person {
message
AddressBook
{
repeated
Person
people
=
1
;
}
// [END messages]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment