google_size.proto 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. syntax = "proto2";
  2. package benchmarks;
  3. option java_outer_classname = "GoogleSize";
  4. option optimize_for = CODE_SIZE;
  5. message SizeMessage1 {
  6. required string field1 = 1;
  7. optional string field9 = 9;
  8. optional string field18 = 18;
  9. optional bool field80 = 80 [default=false];
  10. optional bool field81 = 81 [default=true];
  11. required int32 field2 = 2;
  12. required int32 field3 = 3;
  13. optional int32 field280 = 280;
  14. optional int32 field6 = 6 [default=0];
  15. optional int64 field22 = 22;
  16. optional string field4 = 4;
  17. repeated fixed64 field5 = 5;
  18. optional bool field59 = 59 [default=false];
  19. optional string field7 = 7;
  20. optional int32 field16 = 16;
  21. optional int32 field130 = 130 [default=0];
  22. optional bool field12 = 12 [default=true];
  23. optional bool field17 = 17 [default=true];
  24. optional bool field13 = 13 [default=true];
  25. optional bool field14 = 14 [default=true];
  26. optional int32 field104 = 104 [default=0];
  27. optional int32 field100 = 100 [default=0];
  28. optional int32 field101 = 101 [default=0];
  29. optional string field102 = 102;
  30. optional string field103 = 103;
  31. optional int32 field29 = 29 [default=0];
  32. optional bool field30 = 30 [default=false];
  33. optional int32 field60 = 60 [default=-1];
  34. optional int32 field271 = 271 [default=-1];
  35. optional int32 field272 = 272 [default=-1];
  36. optional int32 field150 = 150;
  37. optional int32 field23 = 23 [default=0];
  38. optional bool field24 = 24 [default=false];
  39. optional int32 field25 = 25 [default=0];
  40. optional SizeMessage1SubMessage field15 = 15;
  41. optional bool field78 = 78;
  42. optional int32 field67 = 67 [default=0];
  43. optional int32 field68 = 68;
  44. optional int32 field128 = 128 [default=0];
  45. optional string field129 = 129 [default="xxxxxxxxxxxxxxxxxxxxx"];
  46. optional int32 field131 = 131 [default=0];
  47. }
  48. message SizeMessage1SubMessage {
  49. optional int32 field1 = 1 [default=0];
  50. optional int32 field2 = 2 [default=0];
  51. optional int32 field3 = 3 [default=0];
  52. optional string field15 = 15;
  53. optional bool field12 = 12 [default=true];
  54. optional int64 field13 = 13;
  55. optional int64 field14 = 14;
  56. optional int32 field16 = 16;
  57. optional int32 field19 = 19 [default=2];
  58. optional bool field20 = 20 [default=true];
  59. optional bool field28 = 28 [default=true];
  60. optional fixed64 field21 = 21;
  61. optional int32 field22 = 22;
  62. optional bool field23 = 23 [ default=false ];
  63. optional bool field206 = 206 [default=false];
  64. optional fixed32 field203 = 203;
  65. optional int32 field204 = 204;
  66. optional string field205 = 205;
  67. optional uint64 field207 = 207;
  68. optional uint64 field300 = 300;
  69. }
  70. message SizeMessage2 {
  71. optional string field1 = 1;
  72. optional int64 field3 = 3;
  73. optional int64 field4 = 4;
  74. optional int64 field30 = 30;
  75. optional bool field75 = 75 [default=false];
  76. optional string field6 = 6;
  77. optional bytes field2 = 2;
  78. optional int32 field21 = 21 [default=0];
  79. optional int32 field71 = 71;
  80. optional float field25 = 25;
  81. optional int32 field109 = 109 [default=0];
  82. optional int32 field210 = 210 [default=0];
  83. optional int32 field211 = 211 [default=0];
  84. optional int32 field212 = 212 [default=0];
  85. optional int32 field213 = 213 [default=0];
  86. optional int32 field216 = 216 [default=0];
  87. optional int32 field217 = 217 [default=0];
  88. optional int32 field218 = 218 [default=0];
  89. optional int32 field220 = 220 [default=0];
  90. optional int32 field221 = 221 [default=0];
  91. optional float field222 = 222 [default=0.0];
  92. optional int32 field63 = 63;
  93. repeated group Group1 = 10 {
  94. required float field11 = 11;
  95. optional float field26 = 26;
  96. optional string field12 = 12;
  97. optional string field13 = 13;
  98. repeated string field14 = 14;
  99. required uint64 field15 = 15;
  100. optional int32 field5 = 5;
  101. optional string field27 = 27;
  102. optional int32 field28 = 28;
  103. optional string field29 = 29;
  104. optional string field16 = 16;
  105. repeated string field22 = 22;
  106. repeated int32 field73 = 73;
  107. optional int32 field20 = 20 [default=0];
  108. optional string field24 = 24;
  109. optional SizeMessage2GroupedMessage field31 = 31;
  110. }
  111. repeated string field128 = 128;
  112. optional int64 field131 = 131;
  113. repeated string field127 = 127;
  114. optional int32 field129 = 129;
  115. repeated int64 field130 = 130;
  116. optional bool field205 = 205 [default=false];
  117. optional bool field206 = 206 [default=false];
  118. }
  119. message SizeMessage2GroupedMessage {
  120. optional float field1 = 1;
  121. optional float field2 = 2;
  122. optional float field3 = 3 [default=0.0];
  123. optional bool field4 = 4;
  124. optional bool field5 = 5;
  125. optional bool field6 = 6 [default=true];
  126. optional bool field7 = 7 [default=false];
  127. optional float field8 = 8;
  128. optional bool field9 = 9;
  129. optional float field10 = 10;
  130. optional int64 field11 = 11;
  131. }