enum.pb.go 20 KB

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