1// This proto file is only used for testing purpose. 2syntax = "proto2"; 3 4package android.util; 5 6message PrimitiveProto { 7 8 optional int32 val_int32 = 1; 9 optional int64 val_int64 = 2; 10 optional float val_float = 3; 11 optional double val_double = 4; 12 optional uint32 val_uint32 = 5; 13 optional uint64 val_uint64 = 6; 14 optional fixed32 val_fixed32 = 7; 15 optional fixed64 val_fixed64 = 8; 16 optional bool val_bool = 9; 17 optional string val_string = 10; 18 optional bytes val_bytes = 11; 19 optional sfixed32 val_sfixed32 = 12; 20 optional sfixed64 val_sfixed64 = 13; 21 optional sint32 val_sint32 = 14; 22 optional sint64 val_sint64 = 15; 23 24 enum Count { 25 ZERO = 0; 26 ONE = 1; 27 TWO = 2; 28 }; 29 optional Count val_enum = 16; 30} 31 32message ComplexProto { 33 34 repeated int32 ints = 1; 35 36 message Log { 37 optional int32 id = 1; 38 optional string name = 2; 39 optional bytes data = 3; 40 } 41 repeated Log logs = 2; 42} 43