github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/runtime/protobuf/person.proto (about) 1 syntax = "proto3"; 2 3 // package domain; 4 // option go_package = "domain"; 5 6 message Person { 7 string name = 1; 8 int32 age = 2; 9 Gender gender = 3; 10 Address address = 4; 11 repeated string hobbies = 5; 12 13 bool boolField = 6; 14 string stringField = 7; 15 float floatField = 8; 16 double doubleField = 9; 17 int32 int32Field = 10; 18 uint32 uint32Field = 11; 19 int64 int64Field = 12; 20 uint64 uint64Field = 13; 21 } 22 23 enum Gender { 24 M = 0; 25 F = 1; 26 } 27 28 message Address { 29 string city = 1; 30 repeated AddressItem AddressItems = 3; 31 } 32 33 message AddressItem { 34 string street = 1; 35 string building = 2; 36 }