Created
March 21, 2014 18:36
-
-
Save kospol/9692848 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
option java_package = "com.example.zoo"; | |
option java_outer_classname = "ZooLand"; | |
message MyAnimalList { | |
repeated Animal animals = 1; | |
} | |
message Animal { | |
extensions 100 to max; | |
enum Type | |
{ | |
Pinguin = 2; | |
Lion = 3; | |
} | |
required Type type = 4; | |
required int32 weight = 5; | |
required int32 age = 6; | |
} | |
message Pinguin { | |
extend Animal { | |
required Pinguin mPinguin = 100; | |
} | |
required int32 jumpsPerDay = 1; | |
required int32 height = 2; | |
} | |
message Lion { | |
extend Animal { | |
required Lion mLion = 101; | |
} | |
required bool king = 1; | |
required double roarms = 2; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment