missing_fields.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /* Test for one missing field among many */
  2. syntax = "proto2";
  3. message AllFields
  4. {
  5. required int32 field1 = 1;
  6. required int32 field2 = 2;
  7. required int32 field3 = 3;
  8. required int32 field4 = 4;
  9. required int32 field5 = 5;
  10. required int32 field6 = 6;
  11. required int32 field7 = 7;
  12. required int32 field8 = 8;
  13. required int32 field9 = 9;
  14. required int32 field10 = 10;
  15. required int32 field11 = 11;
  16. required int32 field12 = 12;
  17. required int32 field13 = 13;
  18. required int32 field14 = 14;
  19. required int32 field15 = 15;
  20. required int32 field16 = 16;
  21. required int32 field17 = 17;
  22. required int32 field18 = 18;
  23. required int32 field19 = 19;
  24. required int32 field20 = 20;
  25. required int32 field21 = 21;
  26. required int32 field22 = 22;
  27. required int32 field23 = 23;
  28. required int32 field24 = 24;
  29. required int32 field25 = 25;
  30. required int32 field26 = 26;
  31. required int32 field27 = 27;
  32. required int32 field28 = 28;
  33. required int32 field29 = 29;
  34. required int32 field30 = 30;
  35. required int32 field31 = 31;
  36. required int32 field32 = 32;
  37. required int32 field33 = 33;
  38. required int32 field34 = 34;
  39. required int32 field35 = 35;
  40. required int32 field36 = 36;
  41. required int32 field37 = 37;
  42. required int32 field38 = 38;
  43. required int32 field39 = 39;
  44. required int32 field40 = 40;
  45. required int32 field41 = 41;
  46. required int32 field42 = 42;
  47. required int32 field43 = 43;
  48. required int32 field44 = 44;
  49. required int32 field45 = 45;
  50. required int32 field46 = 46;
  51. required int32 field47 = 47;
  52. required int32 field48 = 48;
  53. required int32 field49 = 49;
  54. required int32 field50 = 50;
  55. required int32 field51 = 51;
  56. required int32 field52 = 52;
  57. required int32 field53 = 53;
  58. required int32 field54 = 54;
  59. required int32 field55 = 55;
  60. required int32 field56 = 56;
  61. required int32 field57 = 57;
  62. required int32 field58 = 58;
  63. required int32 field59 = 59;
  64. required int32 field60 = 60;
  65. required int32 field61 = 61;
  66. required int32 field62 = 62;
  67. required int32 field63 = 63;
  68. required int32 field64 = 64;
  69. }
  70. message MissingField
  71. {
  72. required int32 field1 = 1;
  73. required int32 field2 = 2;
  74. required int32 field3 = 3;
  75. required int32 field4 = 4;
  76. required int32 field5 = 5;
  77. required int32 field6 = 6;
  78. required int32 field7 = 7;
  79. required int32 field8 = 8;
  80. required int32 field9 = 9;
  81. required int32 field10 = 10;
  82. required int32 field11 = 11;
  83. required int32 field12 = 12;
  84. required int32 field13 = 13;
  85. required int32 field14 = 14;
  86. required int32 field15 = 15;
  87. required int32 field16 = 16;
  88. required int32 field17 = 17;
  89. required int32 field18 = 18;
  90. required int32 field19 = 19;
  91. required int32 field20 = 20;
  92. required int32 field21 = 21;
  93. required int32 field22 = 22;
  94. required int32 field23 = 23;
  95. required int32 field24 = 24;
  96. required int32 field25 = 25;
  97. required int32 field26 = 26;
  98. required int32 field27 = 27;
  99. required int32 field28 = 28;
  100. required int32 field29 = 29;
  101. required int32 field30 = 30;
  102. required int32 field31 = 31;
  103. required int32 field32 = 32;
  104. required int32 field33 = 33;
  105. required int32 field34 = 34;
  106. required int32 field35 = 35;
  107. required int32 field36 = 36;
  108. required int32 field37 = 37;
  109. required int32 field38 = 38;
  110. required int32 field39 = 39;
  111. required int32 field40 = 40;
  112. required int32 field41 = 41;
  113. required int32 field42 = 42;
  114. required int32 field43 = 43;
  115. required int32 field44 = 44;
  116. required int32 field45 = 45;
  117. required int32 field46 = 46;
  118. required int32 field47 = 47;
  119. required int32 field48 = 48;
  120. required int32 field49 = 49;
  121. required int32 field50 = 50;
  122. required int32 field51 = 51;
  123. required int32 field52 = 52;
  124. required int32 field53 = 53;
  125. required int32 field54 = 54;
  126. required int32 field55 = 55;
  127. required int32 field56 = 56;
  128. required int32 field57 = 57;
  129. required int32 field58 = 58;
  130. required int32 field59 = 59;
  131. required int32 field60 = 60;
  132. required int32 field61 = 61;
  133. required int32 field62 = 62;
  134. /* required int32 field63 = 63; */
  135. required int32 field64 = 64;
  136. }