enum.pb.go 20 KB

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