a.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549
  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: import_public/sub/a.proto
  6. package sub
  7. import (
  8. sub2 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoiface "google.golang.org/protobuf/runtime/protoiface"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. math "math"
  13. reflect "reflect"
  14. sync "sync"
  15. )
  16. // Symbols defined in public import of import_public/sub2/a.proto.
  17. type Sub2Message = sub2.Sub2Message
  18. type E int32
  19. const (
  20. E_ZERO E = 0
  21. )
  22. // Enum value maps for E.
  23. var (
  24. E_name = map[int32]string{
  25. 0: "ZERO",
  26. }
  27. E_value = map[string]int32{
  28. "ZERO": 0,
  29. }
  30. )
  31. func (x E) Enum() *E {
  32. p := new(E)
  33. *p = x
  34. return p
  35. }
  36. func (x E) String() string {
  37. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  38. }
  39. func (E) Descriptor() protoreflect.EnumDescriptor {
  40. return file_import_public_sub_a_proto_enumTypes[0].Descriptor()
  41. }
  42. func (E) Type() protoreflect.EnumType {
  43. return &file_import_public_sub_a_proto_enumTypes[0]
  44. }
  45. func (x E) Number() protoreflect.EnumNumber {
  46. return protoreflect.EnumNumber(x)
  47. }
  48. // Deprecated: Do not use.
  49. func (x *E) UnmarshalJSON(b []byte) error {
  50. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  51. if err != nil {
  52. return err
  53. }
  54. *x = E(num)
  55. return nil
  56. }
  57. // Deprecated: Use E.Descriptor instead.
  58. func (E) EnumDescriptor() ([]byte, []int) {
  59. return file_import_public_sub_a_proto_rawDescGZIP(), []int{0}
  60. }
  61. type M_Subenum int32
  62. const (
  63. M_M_ZERO M_Subenum = 0
  64. )
  65. // Enum value maps for M_Subenum.
  66. var (
  67. M_Subenum_name = map[int32]string{
  68. 0: "M_ZERO",
  69. }
  70. M_Subenum_value = map[string]int32{
  71. "M_ZERO": 0,
  72. }
  73. )
  74. func (x M_Subenum) Enum() *M_Subenum {
  75. p := new(M_Subenum)
  76. *p = x
  77. return p
  78. }
  79. func (x M_Subenum) String() string {
  80. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  81. }
  82. func (M_Subenum) Descriptor() protoreflect.EnumDescriptor {
  83. return file_import_public_sub_a_proto_enumTypes[1].Descriptor()
  84. }
  85. func (M_Subenum) Type() protoreflect.EnumType {
  86. return &file_import_public_sub_a_proto_enumTypes[1]
  87. }
  88. func (x M_Subenum) Number() protoreflect.EnumNumber {
  89. return protoreflect.EnumNumber(x)
  90. }
  91. // Deprecated: Do not use.
  92. func (x *M_Subenum) UnmarshalJSON(b []byte) error {
  93. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  94. if err != nil {
  95. return err
  96. }
  97. *x = M_Subenum(num)
  98. return nil
  99. }
  100. // Deprecated: Use M_Subenum.Descriptor instead.
  101. func (M_Subenum) EnumDescriptor() ([]byte, []int) {
  102. return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
  103. }
  104. type M_Submessage_Submessage_Subenum int32
  105. const (
  106. M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0
  107. )
  108. // Enum value maps for M_Submessage_Submessage_Subenum.
  109. var (
  110. M_Submessage_Submessage_Subenum_name = map[int32]string{
  111. 0: "M_SUBMESSAGE_ZERO",
  112. }
  113. M_Submessage_Submessage_Subenum_value = map[string]int32{
  114. "M_SUBMESSAGE_ZERO": 0,
  115. }
  116. )
  117. func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum {
  118. p := new(M_Submessage_Submessage_Subenum)
  119. *p = x
  120. return p
  121. }
  122. func (x M_Submessage_Submessage_Subenum) String() string {
  123. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  124. }
  125. func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor {
  126. return file_import_public_sub_a_proto_enumTypes[2].Descriptor()
  127. }
  128. func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType {
  129. return &file_import_public_sub_a_proto_enumTypes[2]
  130. }
  131. func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber {
  132. return protoreflect.EnumNumber(x)
  133. }
  134. // Deprecated: Do not use.
  135. func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error {
  136. num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
  137. if err != nil {
  138. return err
  139. }
  140. *x = M_Submessage_Submessage_Subenum(num)
  141. return nil
  142. }
  143. // Deprecated: Use M_Submessage_Submessage_Subenum.Descriptor instead.
  144. func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
  145. return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0}
  146. }
  147. type M struct {
  148. state protoimpl.MessageState
  149. sizeCache protoimpl.SizeCache
  150. unknownFields protoimpl.UnknownFields
  151. extensionFields protoimpl.ExtensionFields
  152. // Field using a type in the same Go package, but a different source file.
  153. M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
  154. S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"`
  155. B []byte `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"`
  156. F *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"`
  157. // Types that are assignable to OneofField:
  158. // *M_OneofInt32
  159. // *M_OneofInt64
  160. OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
  161. }
  162. // Default values for M fields.
  163. const (
  164. Default_M_S = string("default")
  165. )
  166. // Default values for M fields.
  167. var (
  168. Default_M_B = []byte("default")
  169. Default_M_F = float64(math.NaN())
  170. )
  171. func (x *M) Reset() {
  172. *x = M{}
  173. }
  174. func (x *M) String() string {
  175. return protoimpl.X.MessageStringOf(x)
  176. }
  177. func (*M) ProtoMessage() {}
  178. func (x *M) ProtoReflect() protoreflect.Message {
  179. mi := &file_import_public_sub_a_proto_msgTypes[0]
  180. if protoimpl.UnsafeEnabled && x != nil {
  181. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  182. if ms.LoadMessageInfo() == nil {
  183. ms.StoreMessageInfo(mi)
  184. }
  185. return ms
  186. }
  187. return mi.MessageOf(x)
  188. }
  189. // Deprecated: Use M.ProtoReflect.Descriptor instead.
  190. func (*M) Descriptor() ([]byte, []int) {
  191. return file_import_public_sub_a_proto_rawDescGZIP(), []int{0}
  192. }
  193. var extRange_M = []protoiface.ExtensionRangeV1{
  194. {Start: 100, End: 536870911},
  195. }
  196. // Deprecated: Use M.ProtoReflect.Descriptor.ExtensionRanges instead.
  197. func (*M) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
  198. return extRange_M
  199. }
  200. func (x *M) GetM2() *M2 {
  201. if x != nil {
  202. return x.M2
  203. }
  204. return nil
  205. }
  206. func (x *M) GetS() string {
  207. if x != nil && x.S != nil {
  208. return *x.S
  209. }
  210. return Default_M_S
  211. }
  212. func (x *M) GetB() []byte {
  213. if x != nil && x.B != nil {
  214. return x.B
  215. }
  216. return append([]byte(nil), Default_M_B...)
  217. }
  218. func (x *M) GetF() float64 {
  219. if x != nil && x.F != nil {
  220. return *x.F
  221. }
  222. return Default_M_F
  223. }
  224. func (m *M) GetOneofField() isM_OneofField {
  225. if m != nil {
  226. return m.OneofField
  227. }
  228. return nil
  229. }
  230. func (x *M) GetOneofInt32() int32 {
  231. if x, ok := x.GetOneofField().(*M_OneofInt32); ok {
  232. return x.OneofInt32
  233. }
  234. return 0
  235. }
  236. func (x *M) GetOneofInt64() int64 {
  237. if x, ok := x.GetOneofField().(*M_OneofInt64); ok {
  238. return x.OneofInt64
  239. }
  240. return 0
  241. }
  242. type isM_OneofField interface {
  243. isM_OneofField()
  244. }
  245. type M_OneofInt32 struct {
  246. OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"`
  247. }
  248. type M_OneofInt64 struct {
  249. OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"`
  250. }
  251. func (*M_OneofInt32) isM_OneofField() {}
  252. func (*M_OneofInt64) isM_OneofField() {}
  253. type M_Submessage struct {
  254. state protoimpl.MessageState
  255. sizeCache protoimpl.SizeCache
  256. unknownFields protoimpl.UnknownFields
  257. // Types that are assignable to SubmessageOneofField:
  258. // *M_Submessage_SubmessageOneofInt32
  259. // *M_Submessage_SubmessageOneofInt64
  260. SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"`
  261. }
  262. func (x *M_Submessage) Reset() {
  263. *x = M_Submessage{}
  264. }
  265. func (x *M_Submessage) String() string {
  266. return protoimpl.X.MessageStringOf(x)
  267. }
  268. func (*M_Submessage) ProtoMessage() {}
  269. func (x *M_Submessage) ProtoReflect() protoreflect.Message {
  270. mi := &file_import_public_sub_a_proto_msgTypes[1]
  271. if protoimpl.UnsafeEnabled && x != nil {
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. if ms.LoadMessageInfo() == nil {
  274. ms.StoreMessageInfo(mi)
  275. }
  276. return ms
  277. }
  278. return mi.MessageOf(x)
  279. }
  280. // Deprecated: Use M_Submessage.ProtoReflect.Descriptor instead.
  281. func (*M_Submessage) Descriptor() ([]byte, []int) {
  282. return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
  283. }
  284. func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
  285. if m != nil {
  286. return m.SubmessageOneofField
  287. }
  288. return nil
  289. }
  290. func (x *M_Submessage) GetSubmessageOneofInt32() int32 {
  291. if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt32); ok {
  292. return x.SubmessageOneofInt32
  293. }
  294. return 0
  295. }
  296. func (x *M_Submessage) GetSubmessageOneofInt64() int64 {
  297. if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt64); ok {
  298. return x.SubmessageOneofInt64
  299. }
  300. return 0
  301. }
  302. type isM_Submessage_SubmessageOneofField interface {
  303. isM_Submessage_SubmessageOneofField()
  304. }
  305. type M_Submessage_SubmessageOneofInt32 struct {
  306. SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"`
  307. }
  308. type M_Submessage_SubmessageOneofInt64 struct {
  309. SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"`
  310. }
  311. func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {}
  312. func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {}
  313. var file_import_public_sub_a_proto_extTypes = []protoimpl.ExtensionInfo{
  314. {
  315. ExtendedType: (*M)(nil),
  316. ExtensionType: (*string)(nil),
  317. Field: 100,
  318. Name: "goproto.protoc.import_public.sub.extension_field",
  319. Tag: "bytes,100,opt,name=extension_field",
  320. Filename: "import_public/sub/a.proto",
  321. },
  322. }
  323. // Extension fields to M.
  324. var (
  325. // optional string extension_field = 100;
  326. E_ExtensionField = &file_import_public_sub_a_proto_extTypes[0]
  327. )
  328. var File_import_public_sub_a_proto protoreflect.FileDescriptor
  329. var file_import_public_sub_a_proto_rawDesc = []byte{
  330. 0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
  331. 0x73, 0x75, 0x62, 0x2f, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x70,
  332. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f,
  333. 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x1a, 0x19, 0x69,
  334. 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62,
  335. 0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
  336. 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x32, 0x2f, 0x61, 0x2e, 0x70,
  337. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x03, 0x0a, 0x01, 0x4d, 0x12, 0x34, 0x0a, 0x02, 0x6d, 0x32,
  338. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  339. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70,
  340. 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x32, 0x52, 0x02, 0x6d, 0x32,
  341. 0x12, 0x15, 0x0a, 0x01, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x07, 0x64, 0x65, 0x66,
  342. 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x73, 0x12, 0x15, 0x0a, 0x01, 0x62, 0x18, 0x05, 0x20, 0x01,
  343. 0x28, 0x0c, 0x3a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x62, 0x12, 0x11,
  344. 0x0a, 0x01, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x03, 0x6e, 0x61, 0x6e, 0x52, 0x01,
  345. 0x66, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
  346. 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x49,
  347. 0x6e, 0x74, 0x33, 0x32, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e,
  348. 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 0x65,
  349. 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x1a, 0xc3, 0x01, 0x0a, 0x0a, 0x53, 0x75, 0x62, 0x6d,
  350. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73,
  351. 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32,
  352. 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73,
  353. 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x36,
  354. 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65,
  355. 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
  356. 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f,
  357. 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x2b, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x6d, 0x65, 0x73,
  358. 0x73, 0x61, 0x67, 0x65, 0x5f, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x15, 0x0a, 0x11,
  359. 0x4d, 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x5a, 0x45, 0x52,
  360. 0x4f, 0x10, 0x00, 0x42, 0x18, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  361. 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x15, 0x0a,
  362. 0x07, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x5f, 0x5a, 0x45,
  363. 0x52, 0x4f, 0x10, 0x00, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x42, 0x0d,
  364. 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x0d, 0x0a,
  365. 0x01, 0x45, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x3a, 0x4c, 0x0a, 0x0f,
  366. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12,
  367. 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  368. 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73,
  369. 0x75, 0x62, 0x2e, 0x4d, 0x18, 0x64, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x74, 0x65,
  370. 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x49, 0x5a, 0x47, 0x67, 0x6f,
  371. 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
  372. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f,
  373. 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64,
  374. 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69,
  375. 0x63, 0x2f, 0x73, 0x75, 0x62, 0x50, 0x01,
  376. }
  377. var (
  378. file_import_public_sub_a_proto_rawDescOnce sync.Once
  379. file_import_public_sub_a_proto_rawDescData = file_import_public_sub_a_proto_rawDesc
  380. )
  381. func file_import_public_sub_a_proto_rawDescGZIP() []byte {
  382. file_import_public_sub_a_proto_rawDescOnce.Do(func() {
  383. file_import_public_sub_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_sub_a_proto_rawDescData)
  384. })
  385. return file_import_public_sub_a_proto_rawDescData
  386. }
  387. var file_import_public_sub_a_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  388. var file_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  389. var file_import_public_sub_a_proto_goTypes = []interface{}{
  390. (E)(0), // 0: goproto.protoc.import_public.sub.E
  391. (M_Subenum)(0), // 1: goproto.protoc.import_public.sub.M.Subenum
  392. (M_Submessage_Submessage_Subenum)(0), // 2: goproto.protoc.import_public.sub.M.Submessage.Submessage_Subenum
  393. (*M)(nil), // 3: goproto.protoc.import_public.sub.M
  394. (*M_Submessage)(nil), // 4: goproto.protoc.import_public.sub.M.Submessage
  395. (*M2)(nil), // 5: goproto.protoc.import_public.sub.M2
  396. }
  397. var file_import_public_sub_a_proto_depIdxs = []int32{
  398. 5, // 0: goproto.protoc.import_public.sub.M.m2:type_name -> goproto.protoc.import_public.sub.M2
  399. 3, // 1: goproto.protoc.import_public.sub.extension_field:extendee -> goproto.protoc.import_public.sub.M
  400. 2, // [2:2] is the sub-list for method output_type
  401. 2, // [2:2] is the sub-list for method input_type
  402. 2, // [2:2] is the sub-list for extension type_name
  403. 1, // [1:2] is the sub-list for extension extendee
  404. 0, // [0:1] is the sub-list for field type_name
  405. }
  406. func init() { file_import_public_sub_a_proto_init() }
  407. func file_import_public_sub_a_proto_init() {
  408. if File_import_public_sub_a_proto != nil {
  409. return
  410. }
  411. file_import_public_sub_b_proto_init()
  412. if !protoimpl.UnsafeEnabled {
  413. file_import_public_sub_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  414. switch v := v.(*M); i {
  415. case 0:
  416. return &v.state
  417. case 1:
  418. return &v.sizeCache
  419. case 2:
  420. return &v.unknownFields
  421. case 3:
  422. return &v.extensionFields
  423. default:
  424. return nil
  425. }
  426. }
  427. file_import_public_sub_a_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  428. switch v := v.(*M_Submessage); i {
  429. case 0:
  430. return &v.state
  431. case 1:
  432. return &v.sizeCache
  433. case 2:
  434. return &v.unknownFields
  435. default:
  436. return nil
  437. }
  438. }
  439. }
  440. file_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []interface{}{
  441. (*M_OneofInt32)(nil),
  442. (*M_OneofInt64)(nil),
  443. }
  444. file_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []interface{}{
  445. (*M_Submessage_SubmessageOneofInt32)(nil),
  446. (*M_Submessage_SubmessageOneofInt64)(nil),
  447. }
  448. type x struct{}
  449. out := protoimpl.TypeBuilder{
  450. File: protoimpl.DescBuilder{
  451. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  452. RawDescriptor: file_import_public_sub_a_proto_rawDesc,
  453. NumEnums: 3,
  454. NumMessages: 2,
  455. NumExtensions: 1,
  456. NumServices: 0,
  457. },
  458. GoTypes: file_import_public_sub_a_proto_goTypes,
  459. DependencyIndexes: file_import_public_sub_a_proto_depIdxs,
  460. EnumInfos: file_import_public_sub_a_proto_enumTypes,
  461. MessageInfos: file_import_public_sub_a_proto_msgTypes,
  462. ExtensionInfos: file_import_public_sub_a_proto_extTypes,
  463. }.Build()
  464. File_import_public_sub_a_proto = out.File
  465. file_import_public_sub_a_proto_rawDesc = nil
  466. file_import_public_sub_a_proto_goTypes = nil
  467. file_import_public_sub_a_proto_depIdxs = nil
  468. }