1syntax = "proto3"; 2 3enum Enum { 4 A = 0; 5 B = 1; 6 C = 2; 7} 8 9message Types { 10 Enum a_enum = 1; 11 double a_double = 2; 12 float a_float = 3; 13 int32 a_int32 = 4; 14 int64 a_int64 = 5; 15 uint32 a_uint32 = 6; 16 uint64 a_uint64 = 7; 17 sint32 a_sint32 = 8; 18 sint64 a_sint64 = 9; 19 fixed32 a_fixed32 = 10; 20 fixed64 a_fixed64 = 11; 21 sfixed32 a_sfixed32 = 12; 22 sfixed64 a_sfixed64 = 13; 23 bool a_bool = 14; 24 string a_string = 15; 25 bytes a_bytes = 16; 26 27 repeated Enum repeated_enum = 17; 28 repeated double repeated_double = 18; 29 repeated float repeated_float = 19; 30 repeated int32 repeated_int32 = 20; 31 repeated int64 repeated_int64 = 21; 32 repeated uint32 repeated_uint32 = 22; 33 repeated uint64 repeated_uint64 = 23; 34 repeated sint32 repeated_sint32 = 24; 35 repeated sint64 repeated_sint64 = 25; 36 repeated fixed32 repeated_fixed32 = 26; 37 repeated fixed64 repeated_fixed64 = 27; 38 repeated sfixed32 repeated_sfixed32 = 28; 39 repeated sfixed64 repeated_sfixed64 = 29; 40 repeated bool repeated_bool = 30; 41 repeated string repeated_string = 31; 42 repeated bytes repeated_bytes = 32; 43 44 map<string, Enum> map_string_enum = 33; 45 map<string, double> map_string_double = 34; 46 map<string, float> map_string_float = 35; 47 map<string, int32> map_string_int32 = 36; 48 map<string, int64> map_string_int64 = 37; 49 map<string, uint32> map_string_uint32 = 38; 50 map<string, uint64> map_string_uint64 = 39; 51 map<string, sint32> map_string_sint32 = 40; 52 map<string, sint64> map_string_sint64 = 41; 53 map<string, fixed32> map_string_fixed32 = 42; 54 map<string, fixed64> map_string_fixed64 = 43; 55 map<string, sfixed32> map_string_sfixed32 = 44; 56 map<string, sfixed64> map_string_sfixed64 = 45; 57 map<string, bool> map_string_bool = 46; 58 map<string, string> map_string_string = 47; 59 map<string, bytes> map_string_bytes = 48; 60 61 oneof OneOf { 62 Enum oneof_enum = 49; 63 double oneof_double = 50; 64 float oneof_float = 51; 65 int32 oneof_int32 = 52; 66 int64 oneof_int64 = 53; 67 uint32 oneof_uint32 = 54; 68 uint64 oneof_uint64 = 55; 69 sint32 oneof_sint32 = 56; 70 sint64 oneof_sint64 = 57; 71 fixed32 oneof_fixed32 = 58; 72 fixed64 oneof_fixed64 = 59; 73 sfixed32 oneof_sfixed32 = 60; 74 sfixed64 oneof_sfixed64 = 61; 75 bool oneof_bool = 62; 76 string oneof_string = 63; 77 bytes oneof_bytes = 64; 78 } 79} 80