You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
4.8 KiB

  1. // Protocol Buffers for Go with Gadgets
  2. //
  3. // Copied from https://github.com/gogo/protobuf/blob/master/gogoproto/gogo.proto
  4. //
  5. // Copyright (c) 2013, The GoGo Authors. All rights reserved.
  6. // http://github.com/gogo/protobuf
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions are
  10. // met:
  11. //
  12. // * Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. // * Redistributions in binary form must reproduce the above
  15. // copyright notice, this list of conditions and the following disclaimer
  16. // in the documentation and/or other materials provided with the
  17. // distribution.
  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. syntax = "proto2";
  31. package gogoproto;
  32. import "google/protobuf/descriptor.proto";
  33. option java_package = "com.google.protobuf";
  34. option java_outer_classname = "GoGoProtos";
  35. option go_package = "github.com/gogo/protobuf/gogoproto";
  36. extend google.protobuf.EnumOptions {
  37. optional bool goproto_enum_prefix = 62001;
  38. optional bool goproto_enum_stringer = 62021;
  39. optional bool enum_stringer = 62022;
  40. optional string enum_customname = 62023;
  41. optional bool enumdecl = 62024;
  42. }
  43. extend google.protobuf.EnumValueOptions {
  44. optional string enumvalue_customname = 66001;
  45. }
  46. extend google.protobuf.FileOptions {
  47. optional bool goproto_getters_all = 63001;
  48. optional bool goproto_enum_prefix_all = 63002;
  49. optional bool goproto_stringer_all = 63003;
  50. optional bool verbose_equal_all = 63004;
  51. optional bool face_all = 63005;
  52. optional bool gostring_all = 63006;
  53. optional bool populate_all = 63007;
  54. optional bool stringer_all = 63008;
  55. optional bool onlyone_all = 63009;
  56. optional bool equal_all = 63013;
  57. optional bool description_all = 63014;
  58. optional bool testgen_all = 63015;
  59. optional bool benchgen_all = 63016;
  60. optional bool marshaler_all = 63017;
  61. optional bool unmarshaler_all = 63018;
  62. optional bool stable_marshaler_all = 63019;
  63. optional bool sizer_all = 63020;
  64. optional bool goproto_enum_stringer_all = 63021;
  65. optional bool enum_stringer_all = 63022;
  66. optional bool unsafe_marshaler_all = 63023;
  67. optional bool unsafe_unmarshaler_all = 63024;
  68. optional bool goproto_extensions_map_all = 63025;
  69. optional bool goproto_unrecognized_all = 63026;
  70. optional bool gogoproto_import = 63027;
  71. optional bool protosizer_all = 63028;
  72. optional bool compare_all = 63029;
  73. optional bool typedecl_all = 63030;
  74. optional bool enumdecl_all = 63031;
  75. optional bool goproto_registration = 63032;
  76. optional bool messagename_all = 63033;
  77. optional bool goproto_sizecache_all = 63034;
  78. optional bool goproto_unkeyed_all = 63035;
  79. }
  80. extend google.protobuf.MessageOptions {
  81. optional bool goproto_getters = 64001;
  82. optional bool goproto_stringer = 64003;
  83. optional bool verbose_equal = 64004;
  84. optional bool face = 64005;
  85. optional bool gostring = 64006;
  86. optional bool populate = 64007;
  87. optional bool stringer = 67008;
  88. optional bool onlyone = 64009;
  89. optional bool equal = 64013;
  90. optional bool description = 64014;
  91. optional bool testgen = 64015;
  92. optional bool benchgen = 64016;
  93. optional bool marshaler = 64017;
  94. optional bool unmarshaler = 64018;
  95. optional bool stable_marshaler = 64019;
  96. optional bool sizer = 64020;
  97. optional bool unsafe_marshaler = 64023;
  98. optional bool unsafe_unmarshaler = 64024;
  99. optional bool goproto_extensions_map = 64025;
  100. optional bool goproto_unrecognized = 64026;
  101. optional bool protosizer = 64028;
  102. optional bool compare = 64029;
  103. optional bool typedecl = 64030;
  104. optional bool messagename = 64033;
  105. optional bool goproto_sizecache = 64034;
  106. optional bool goproto_unkeyed = 64035;
  107. }
  108. extend google.protobuf.FieldOptions {
  109. optional bool nullable = 65001;
  110. optional bool embed = 65002;
  111. optional string customtype = 65003;
  112. optional string customname = 65004;
  113. optional string jsontag = 65005;
  114. optional string moretags = 65006;
  115. optional string casttype = 65007;
  116. optional string castkey = 65008;
  117. optional string castvalue = 65009;
  118. optional bool stdtime = 65010;
  119. optional bool stdduration = 65011;
  120. optional bool wktpointer = 65012;
  121. optional string castrepeated = 65013;
  122. }