1// Test messages used in compare_test.py. 2syntax = "proto2"; 3 4package compare_test; 5option cc_enable_arenas = true; 6 7enum Enum { 8 A = 0; 9 B = 1; 10 C = 2; 11} 12 13message Small { 14 repeated string strings = 1; 15}; 16 17message Medium { 18 repeated int32 int32s = 1; 19 repeated Small smalls = 2; 20 repeated group GroupA = 3 { 21 repeated group GroupB = 4 { 22 required string strings = 5; 23 } 24 } 25 repeated float floats = 6; 26}; 27 28message Large { 29 optional string string_ = 1; 30 optional int64 int64_ = 2; 31 optional float float_ = 3; 32 optional bool bool_ = 4; 33 optional Enum enum_ = 5; 34 repeated int64 int64s = 6; 35 optional Medium medium = 7; 36 optional Small small = 8; 37 optional double double_ = 9; 38 optional WithMap with_map = 10; 39}; 40 41message Labeled { 42 required int32 required = 1; 43 optional int32 optional = 2; 44} 45 46message WithMap { 47 map<int32, Small> value_message = 1; 48 map<string, string> value_string = 2; 49} 50