fuzz.proto 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Protocol Buffers for Go with Gadgets
  2. //
  3. // Copyright (c) 2015, The GoGo Authors. All rights reserved.
  4. // http://github.com/gogo/protobuf
  5. //
  6. // Redistribution and use in source and binary forms, with or without
  7. // modification, are permitted provided that the following conditions are
  8. // met:
  9. //
  10. // * Redistributions of source code must retain the above copyright
  11. // notice, this list of conditions and the following disclaimer.
  12. // * Redistributions in binary form must reproduce the above
  13. // copyright notice, this list of conditions and the following disclaimer
  14. // in the documentation and/or other materials provided with the
  15. // distribution.
  16. //
  17. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  18. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  19. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  20. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  21. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  22. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  23. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  24. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  25. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  27. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28. syntax = "proto2";
  29. package fuzztests;
  30. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  31. option (gogoproto.gostring_all) = true;
  32. message Nil {
  33. }
  34. message NinRepPackedNative {
  35. repeated double Field1 = 1 [packed = true];
  36. repeated float Field2 = 2 [packed = true];
  37. repeated int32 Field3 = 3 [packed = true];
  38. repeated int64 Field4 = 4 [packed = true];
  39. repeated uint32 Field5 = 5 [packed = true];
  40. repeated uint64 Field6 = 6 [packed = true];
  41. repeated sint32 Field7 = 7 [packed = true];
  42. repeated sint64 Field8 = 8 [packed = true];
  43. repeated fixed32 Field9 = 9 [packed = true];
  44. repeated sfixed32 Field10 = 10 [packed = true];
  45. repeated fixed64 Field11 = 11 [packed = true];
  46. repeated sfixed64 Field12 = 12 [packed = true];
  47. repeated bool Field13 = 13 [packed = true];
  48. }
  49. message NinOptNative {
  50. optional double Field1 = 1;
  51. optional float Field2 = 2;
  52. optional int32 Field3 = 3;
  53. optional int64 Field4 = 4;
  54. optional uint32 Field5 = 5;
  55. optional uint64 Field6 = 6;
  56. optional sint32 Field7 = 7;
  57. optional sint64 Field8 = 8;
  58. optional fixed32 Field9 = 9;
  59. optional sfixed32 Field10 = 10;
  60. optional fixed64 Field11 = 11;
  61. optional sfixed64 Field12 = 12;
  62. optional bool Field13 = 13;
  63. optional string Field14 = 14;
  64. optional bytes Field15 = 15;
  65. }
  66. message NinOptStruct {
  67. optional double Field1 = 1;
  68. optional float Field2 = 2;
  69. optional NinOptNative Field3 = 3;
  70. optional NinOptNative Field4 = 4;
  71. optional uint64 Field6 = 6;
  72. optional sint32 Field7 = 7;
  73. optional NinOptNative Field8 = 8;
  74. optional bool Field13 = 13;
  75. optional string Field14 = 14;
  76. optional bytes Field15 = 15;
  77. }