benchmark_message1_proto3.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. // https://developers.google.com/protocol-buffers/
  4. //
  5. // Redistribution and use in source and binary forms, with or without
  6. // modification, are permitted provided that the following conditions are
  7. // met:
  8. //
  9. // * Redistributions of source code must retain the above copyright
  10. // notice, this list of conditions and the following disclaimer.
  11. // * Redistributions in binary form must reproduce the above
  12. // copyright notice, this list of conditions and the following disclaimer
  13. // in the documentation and/or other materials provided with the
  14. // distribution.
  15. // * Neither the name of Google Inc. nor the names of its
  16. // contributors may be used to endorse or promote products derived from
  17. // this software without specific prior written permission.
  18. //
  19. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  23. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  24. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  25. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  27. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  29. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. // Benchmark messages for proto3.
  31. syntax = "proto3";
  32. package benchmarks.proto3;
  33. option java_package = "com.google.protobuf.benchmarks";
  34. // This is the default, but we specify it here explicitly.
  35. option optimize_for = SPEED;
  36. option cc_enable_arenas = true;
  37. message GoogleMessage1 {
  38. string field1 = 1;
  39. string field9 = 9;
  40. string field18 = 18;
  41. bool field80 = 80;
  42. bool field81 = 81;
  43. int32 field2 = 2;
  44. int32 field3 = 3;
  45. int32 field280 = 280;
  46. int32 field6 = 6;
  47. int64 field22 = 22;
  48. string field4 = 4;
  49. repeated fixed64 field5 = 5;
  50. bool field59 = 59;
  51. string field7 = 7;
  52. int32 field16 = 16;
  53. int32 field130 = 130;
  54. bool field12 = 12;
  55. bool field17 = 17;
  56. bool field13 = 13;
  57. bool field14 = 14;
  58. int32 field104 = 104;
  59. int32 field100 = 100;
  60. int32 field101 = 101;
  61. string field102 = 102;
  62. string field103 = 103;
  63. int32 field29 = 29;
  64. bool field30 = 30;
  65. int32 field60 = 60;
  66. int32 field271 = 271;
  67. int32 field272 = 272;
  68. int32 field150 = 150;
  69. int32 field23 = 23;
  70. bool field24 = 24;
  71. int32 field25 = 25;
  72. GoogleMessage1SubMessage field15 = 15;
  73. bool field78 = 78;
  74. int32 field67 = 67;
  75. int32 field68 = 68;
  76. int32 field128 = 128;
  77. string field129 = 129;
  78. int32 field131 = 131;
  79. }
  80. message GoogleMessage1SubMessage {
  81. int32 field1 = 1;
  82. int32 field2 = 2;
  83. int32 field3 = 3;
  84. string field15 = 15;
  85. bool field12 = 12;
  86. int64 field13 = 13;
  87. int64 field14 = 14;
  88. int32 field16 = 16;
  89. int32 field19 = 19;
  90. bool field20 = 20;
  91. bool field28 = 28;
  92. fixed64 field21 = 21;
  93. int32 field22 = 22;
  94. bool field23 = 23;
  95. bool field206 = 206;
  96. fixed32 field203 = 203;
  97. int32 field204 = 204;
  98. string field205 = 205;
  99. uint64 field207 = 207;
  100. uint64 field300 = 300;
  101. }