github.com/m3db/m3@v1.5.0/src/dbnode/namespace/testdata/mainpkg/main.proto (about) 1 syntax = "proto3"; 2 package mainpkg; 3 4 import "mainpkg/imported.proto"; 5 import "otherpkg/otherpkg.proto"; 6 7 message TestMessage { 8 int32 a_int32 = 1; 9 int64 a_int64 = 2; 10 uint32 a_uint32 = 3; 11 uint64 a_uint64 = 4; 12 sint32 a_sint32 = 5; 13 sint64 a_sint64 = 6; 14 fixed32 a_fixed32 = 7; 15 fixed64 a_fixed64 = 8; 16 sfixed32 a_sfixed32 = 9; 17 sfixed64 a_sfixed64 = 10; 18 bool a_bool = 11; 19 string a_string = 12; 20 bytes a_bytes = 13; 21 double a_double = 14; 22 float a_float = 15; 23 repeated string an_array_string = 16; 24 map<string, int32> a_map_of_int32 = 17; 25 map<string, NestedMessage> a_map_of_nested = 18; 26 27 NestedMessage a_nested_message = 19; 28 ImportedMessage an_imported_message = 20; 29 30 enum Corpus { 31 UNIVERSAL = 0; 32 WEB = 1; 33 IMAGES = 2; 34 LOCAL = 3; 35 NEWS = 4; 36 PRODUCTS = 5; 37 VIDEO = 6; 38 } 39 Corpus an_enum = 21; 40 otherpkg.MessageFromOtherPkg a_message_from_other_pkg = 22; 41 } 42 43 message NestedMessage { 44 int32 a_int32 = 1; 45 int64 a_int64 = 2; 46 uint32 a_uint32 = 3; 47 uint64 a_uint64 = 4; 48 sint32 a_sint32 = 5; 49 sint64 a_sint64 = 6; 50 fixed32 a_fixed32 = 7; 51 fixed64 a_fixed64 = 8; 52 sfixed32 a_sfixed32 = 9; 53 sfixed64 a_sfixed64 = 10; 54 bool a_bool = 11; 55 string a_string = 12; 56 bytes a_bytes = 13; 57 double a_double = 14; 58 float a_float = 15; 59 }