enum.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: proto2/enum.proto
  3. package proto2
  4. import (
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. prototype "google.golang.org/protobuf/reflect/prototype"
  7. protoiface "google.golang.org/protobuf/runtime/protoiface"
  8. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that runtime/protoimpl is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
  16. )
  17. // EnumType1 comment.
  18. type EnumType1 int32
  19. const (
  20. // EnumType1_ONE comment.
  21. EnumType1_ONE EnumType1 = 1
  22. // EnumType1_TWO comment.
  23. EnumType1_TWO EnumType1 = 2
  24. )
  25. var EnumType1_name = map[int32]string{
  26. 1: "ONE",
  27. 2: "TWO",
  28. }
  29. var EnumType1_value = map[string]int32{
  30. "ONE": 1,
  31. "TWO": 2,
  32. }
  33. func (x EnumType1) Enum() *EnumType1 {
  34. p := new(EnumType1)
  35. *p = x
  36. return p
  37. }
  38. func (x EnumType1) String() string {
  39. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  40. }
  41. func (EnumType1) Descriptor() protoreflect.EnumDescriptor {
  42. return file_proto2_enum_proto_enumTypes[0].EnumDescriptor
  43. }
  44. func (x EnumType1) Number() protoreflect.EnumNumber {
  45. return protoreflect.EnumNumber(x)
  46. }
  47. // Deprecated: Do not use.
  48. func (x *EnumType1) UnmarshalJSON(b []byte) error {
  49. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  50. if err != nil {
  51. return err
  52. }
  53. *x = EnumType1(num)
  54. return nil
  55. }
  56. // Deprecated: Use EnumType1.Type instead.
  57. func (EnumType1) EnumDescriptor() ([]byte, []int) {
  58. return file_proto2_enum_proto_rawDescGZIP(), []int{0}
  59. }
  60. type EnumType2 int32
  61. const (
  62. EnumType2_duplicate1 EnumType2 = 1
  63. EnumType2_duplicate2 EnumType2 = 1
  64. )
  65. var EnumType2_name = map[int32]string{
  66. 1: "duplicate1",
  67. // Duplicate value: 1: "duplicate2",
  68. }
  69. var EnumType2_value = map[string]int32{
  70. "duplicate1": 1,
  71. "duplicate2": 1,
  72. }
  73. func (x EnumType2) Enum() *EnumType2 {
  74. p := new(EnumType2)
  75. *p = x
  76. return p
  77. }
  78. func (x EnumType2) String() string {
  79. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  80. }
  81. func (EnumType2) Descriptor() protoreflect.EnumDescriptor {
  82. return file_proto2_enum_proto_enumTypes[1].EnumDescriptor
  83. }
  84. func (x EnumType2) Number() protoreflect.EnumNumber {
  85. return protoreflect.EnumNumber(x)
  86. }
  87. // Deprecated: Do not use.
  88. func (x *EnumType2) UnmarshalJSON(b []byte) error {
  89. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  90. if err != nil {
  91. return err
  92. }
  93. *x = EnumType2(num)
  94. return nil
  95. }
  96. // Deprecated: Use EnumType2.Type instead.
  97. func (EnumType2) EnumDescriptor() ([]byte, []int) {
  98. return file_proto2_enum_proto_rawDescGZIP(), []int{1}
  99. }
  100. // NestedEnumType1A comment.
  101. type EnumContainerMessage1_NestedEnumType1A int32
  102. const (
  103. // NestedEnumType1A_VALUE comment.
  104. EnumContainerMessage1_NESTED_1A_VALUE EnumContainerMessage1_NestedEnumType1A = 0
  105. )
  106. var EnumContainerMessage1_NestedEnumType1A_name = map[int32]string{
  107. 0: "NESTED_1A_VALUE",
  108. }
  109. var EnumContainerMessage1_NestedEnumType1A_value = map[string]int32{
  110. "NESTED_1A_VALUE": 0,
  111. }
  112. func (x EnumContainerMessage1_NestedEnumType1A) Enum() *EnumContainerMessage1_NestedEnumType1A {
  113. p := new(EnumContainerMessage1_NestedEnumType1A)
  114. *p = x
  115. return p
  116. }
  117. func (x EnumContainerMessage1_NestedEnumType1A) String() string {
  118. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  119. }
  120. func (EnumContainerMessage1_NestedEnumType1A) Descriptor() protoreflect.EnumDescriptor {
  121. return file_proto2_enum_proto_enumTypes[2].EnumDescriptor
  122. }
  123. func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
  124. return protoreflect.EnumNumber(x)
  125. }
  126. // Deprecated: Do not use.
  127. func (x *EnumContainerMessage1_NestedEnumType1A) UnmarshalJSON(b []byte) error {
  128. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  129. if err != nil {
  130. return err
  131. }
  132. *x = EnumContainerMessage1_NestedEnumType1A(num)
  133. return nil
  134. }
  135. // Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
  136. func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
  137. return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
  138. }
  139. type EnumContainerMessage1_NestedEnumType1B int32
  140. const (
  141. EnumContainerMessage1_NESTED_1B_VALUE EnumContainerMessage1_NestedEnumType1B = 0
  142. )
  143. var EnumContainerMessage1_NestedEnumType1B_name = map[int32]string{
  144. 0: "NESTED_1B_VALUE",
  145. }
  146. var EnumContainerMessage1_NestedEnumType1B_value = map[string]int32{
  147. "NESTED_1B_VALUE": 0,
  148. }
  149. func (x EnumContainerMessage1_NestedEnumType1B) Enum() *EnumContainerMessage1_NestedEnumType1B {
  150. p := new(EnumContainerMessage1_NestedEnumType1B)
  151. *p = x
  152. return p
  153. }
  154. func (x EnumContainerMessage1_NestedEnumType1B) String() string {
  155. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  156. }
  157. func (EnumContainerMessage1_NestedEnumType1B) Descriptor() protoreflect.EnumDescriptor {
  158. return file_proto2_enum_proto_enumTypes[3].EnumDescriptor
  159. }
  160. func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
  161. return protoreflect.EnumNumber(x)
  162. }
  163. // Deprecated: Do not use.
  164. func (x *EnumContainerMessage1_NestedEnumType1B) UnmarshalJSON(b []byte) error {
  165. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  166. if err != nil {
  167. return err
  168. }
  169. *x = EnumContainerMessage1_NestedEnumType1B(num)
  170. return nil
  171. }
  172. // Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
  173. func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
  174. return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
  175. }
  176. // NestedEnumType2A comment.
  177. type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A int32
  178. const (
  179. // NestedEnumType2A_VALUE comment.
  180. EnumContainerMessage1_EnumContainerMessage2_NESTED_2A_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A = 0
  181. )
  182. var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_name = map[int32]string{
  183. 0: "NESTED_2A_VALUE",
  184. }
  185. var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A_value = map[string]int32{
  186. "NESTED_2A_VALUE": 0,
  187. }
  188. func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A {
  189. p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)
  190. *p = x
  191. return p
  192. }
  193. func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) String() string {
  194. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  195. }
  196. func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Descriptor() protoreflect.EnumDescriptor {
  197. return file_proto2_enum_proto_enumTypes[4].EnumDescriptor
  198. }
  199. func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
  200. return protoreflect.EnumNumber(x)
  201. }
  202. // Deprecated: Do not use.
  203. func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) UnmarshalJSON(b []byte) error {
  204. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  205. if err != nil {
  206. return err
  207. }
  208. *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A(num)
  209. return nil
  210. }
  211. // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
  212. func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
  213. return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
  214. }
  215. type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
  216. const (
  217. EnumContainerMessage1_EnumContainerMessage2_NESTED_2B_VALUE EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B = 0
  218. )
  219. var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_name = map[int32]string{
  220. 0: "NESTED_2B_VALUE",
  221. }
  222. var EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B_value = map[string]int32{
  223. "NESTED_2B_VALUE": 0,
  224. }
  225. func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Enum() *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B {
  226. p := new(EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)
  227. *p = x
  228. return p
  229. }
  230. func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) String() string {
  231. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  232. }
  233. func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Descriptor() protoreflect.EnumDescriptor {
  234. return file_proto2_enum_proto_enumTypes[5].EnumDescriptor
  235. }
  236. func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
  237. return protoreflect.EnumNumber(x)
  238. }
  239. // Deprecated: Do not use.
  240. func (x *EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) UnmarshalJSON(b []byte) error {
  241. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  242. if err != nil {
  243. return err
  244. }
  245. *x = EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B(num)
  246. return nil
  247. }
  248. // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
  249. func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
  250. return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
  251. }
  252. type EnumContainerMessage1 struct {
  253. DefaultDuplicate1 *EnumType2 `protobuf:"varint,1,opt,name=default_duplicate1,json=defaultDuplicate1,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate1,omitempty"`
  254. DefaultDuplicate2 *EnumType2 `protobuf:"varint,2,opt,name=default_duplicate2,json=defaultDuplicate2,enum=goproto.protoc.proto2.EnumType2,def=1" json:"default_duplicate2,omitempty"`
  255. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  256. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  257. XXX_sizecache protoimpl.SizeCache `json:"-"`
  258. }
  259. func (x *EnumContainerMessage1) Reset() {
  260. *x = EnumContainerMessage1{}
  261. }
  262. func (x *EnumContainerMessage1) String() string {
  263. return protoimpl.X.MessageStringOf(x)
  264. }
  265. func (*EnumContainerMessage1) ProtoMessage() {}
  266. func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
  267. return file_proto2_enum_proto_msgTypes[0].MessageOf(x)
  268. }
  269. func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
  270. return file_proto2_enum_proto_msgTypes[0].Methods()
  271. }
  272. // Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
  273. func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
  274. return file_proto2_enum_proto_rawDescGZIP(), []int{0}
  275. }
  276. const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
  277. const Default_EnumContainerMessage1_DefaultDuplicate2 EnumType2 = EnumType2_duplicate2
  278. func (x *EnumContainerMessage1) GetDefaultDuplicate1() EnumType2 {
  279. if x != nil && x.DefaultDuplicate1 != nil {
  280. return *x.DefaultDuplicate1
  281. }
  282. return Default_EnumContainerMessage1_DefaultDuplicate1
  283. }
  284. func (x *EnumContainerMessage1) GetDefaultDuplicate2() EnumType2 {
  285. if x != nil && x.DefaultDuplicate2 != nil {
  286. return *x.DefaultDuplicate2
  287. }
  288. return Default_EnumContainerMessage1_DefaultDuplicate2
  289. }
  290. type EnumContainerMessage1_EnumContainerMessage2 struct {
  291. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  292. XXX_unrecognized protoimpl.UnknownFields `json:"-"`
  293. XXX_sizecache protoimpl.SizeCache `json:"-"`
  294. }
  295. func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() {
  296. *x = EnumContainerMessage1_EnumContainerMessage2{}
  297. }
  298. func (x *EnumContainerMessage1_EnumContainerMessage2) String() string {
  299. return protoimpl.X.MessageStringOf(x)
  300. }
  301. func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
  302. func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
  303. return file_proto2_enum_proto_msgTypes[1].MessageOf(x)
  304. }
  305. func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
  306. return file_proto2_enum_proto_msgTypes[1].Methods()
  307. }
  308. // Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
  309. func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
  310. return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
  311. }
  312. var File_proto2_enum_proto protoreflect.FileDescriptor
  313. var file_proto2_enum_proto_rawDesc = []byte{
  314. 0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
  315. 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
  316. 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
  317. 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73,
  318. 0x61, 0x67, 0x65, 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f,
  319. 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  320. 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  321. 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70,
  322. 0x65, 0x32, 0x3a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x31, 0x52, 0x11,
  323. 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65,
  324. 0x31, 0x12, 0x5b, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x64, 0x75, 0x70,
  325. 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e,
  326. 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
  327. 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x3a,
  328. 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x52, 0x11, 0x64, 0x65, 0x66,
  329. 0x61, 0x75, 0x6c, 0x74, 0x44, 0x75, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65, 0x32, 0x1a, 0x69,
  330. 0x0a, 0x15, 0x45, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x4d,
  331. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65,
  332. 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x4e,
  333. 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00,
  334. 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79,
  335. 0x70, 0x65, 0x32, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x32,
  336. 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73,
  337. 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x41, 0x12, 0x13, 0x0a,
  338. 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44, 0x5f, 0x31, 0x41, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45,
  339. 0x10, 0x00, 0x22, 0x27, 0x0a, 0x10, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
  340. 0x54, 0x79, 0x70, 0x65, 0x31, 0x42, 0x12, 0x13, 0x0a, 0x0f, 0x4e, 0x45, 0x53, 0x54, 0x45, 0x44,
  341. 0x5f, 0x31, 0x42, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x10, 0x00, 0x2a, 0x1d, 0x0a, 0x09, 0x45,
  342. 0x6e, 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x31, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10,
  343. 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x2a, 0x51, 0x0a, 0x09, 0x45, 0x6e,
  344. 0x75, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x32, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
  345. 0x63, 0x61, 0x74, 0x65, 0x31, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x64, 0x75, 0x70, 0x6c, 0x69,
  346. 0x63, 0x61, 0x74, 0x65, 0x32, 0x10, 0x01, 0x1a, 0x02, 0x10, 0x01, 0x22, 0x04, 0x08, 0x02, 0x10,
  347. 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, 0x03, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45,
  348. 0x44, 0x31, 0x2a, 0x09, 0x52, 0x45, 0x53, 0x45, 0x52, 0x56, 0x45, 0x44, 0x32, 0x42, 0x3e, 0x5a,
  349. 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
  350. 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f,
  351. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65,
  352. 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
  353. }
  354. var (
  355. file_proto2_enum_proto_rawDescOnce sync.Once
  356. file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc
  357. )
  358. func file_proto2_enum_proto_rawDescGZIP() []byte {
  359. file_proto2_enum_proto_rawDescOnce.Do(func() {
  360. file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData)
  361. })
  362. return file_proto2_enum_proto_rawDescData
  363. }
  364. var file_proto2_enum_proto_enumTypes = make([]prototype.Enum, 6)
  365. var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  366. var file_proto2_enum_proto_goTypes = []interface{}{
  367. (EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
  368. (EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
  369. (EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
  370. (EnumContainerMessage1_NestedEnumType1B)(0), // 3: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1B
  371. (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A)(0), // 4: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2A
  372. (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B)(0), // 5: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2.NestedEnumType2B
  373. (*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
  374. (*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
  375. }
  376. var file_proto2_enum_proto_depIdxs = []int32{
  377. 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
  378. 1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
  379. 2, // starting offset of method output_type sub-list
  380. 2, // starting offset of method input_type sub-list
  381. 2, // starting offset of extension type_name sub-list
  382. 2, // starting offset of extension extendee sub-list
  383. 0, // starting offset of field type_name sub-list
  384. }
  385. func init() { file_proto2_enum_proto_init() }
  386. func file_proto2_enum_proto_init() {
  387. if File_proto2_enum_proto != nil {
  388. return
  389. }
  390. out := protoimpl.TypeBuilder{
  391. File: protoimpl.DescBuilder{
  392. RawDescriptor: file_proto2_enum_proto_rawDesc,
  393. NumEnums: 6,
  394. NumMessages: 2,
  395. NumExtensions: 0,
  396. NumServices: 0,
  397. },
  398. GoTypes: file_proto2_enum_proto_goTypes,
  399. DependencyIndexes: file_proto2_enum_proto_depIdxs,
  400. MessageInfos: file_proto2_enum_proto_msgTypes,
  401. }.Build()
  402. File_proto2_enum_proto = out.File
  403. file_proto2_enum_proto_enumTypes = out.Enums
  404. file_proto2_enum_proto_rawDesc = nil
  405. file_proto2_enum_proto_goTypes = nil
  406. file_proto2_enum_proto_depIdxs = nil
  407. }