a.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: import_public/sub/a.proto
  3. package sub
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. type E int32
  19. const (
  20. E_ZERO E = 0
  21. )
  22. var E_name = map[int32]string{
  23. 0: "ZERO",
  24. }
  25. var E_value = map[string]int32{
  26. "ZERO": 0,
  27. }
  28. func (x E) Enum() *E {
  29. p := new(E)
  30. *p = x
  31. return p
  32. }
  33. func (x E) String() string {
  34. return proto.EnumName(E_name, int32(x))
  35. }
  36. func (x *E) UnmarshalJSON(data []byte) error {
  37. value, err := proto.UnmarshalJSONEnum(E_value, data, "E")
  38. if err != nil {
  39. return err
  40. }
  41. *x = E(value)
  42. return nil
  43. }
  44. func (E) EnumDescriptor() ([]byte, []int) {
  45. return fileDescriptor_382f7805394b5c4e, []int{0}
  46. }
  47. type M_Subenum int32
  48. const (
  49. M_M_ZERO M_Subenum = 0
  50. )
  51. var M_Subenum_name = map[int32]string{
  52. 0: "M_ZERO",
  53. }
  54. var M_Subenum_value = map[string]int32{
  55. "M_ZERO": 0,
  56. }
  57. func (x M_Subenum) Enum() *M_Subenum {
  58. p := new(M_Subenum)
  59. *p = x
  60. return p
  61. }
  62. func (x M_Subenum) String() string {
  63. return proto.EnumName(M_Subenum_name, int32(x))
  64. }
  65. func (x *M_Subenum) UnmarshalJSON(data []byte) error {
  66. value, err := proto.UnmarshalJSONEnum(M_Subenum_value, data, "M_Subenum")
  67. if err != nil {
  68. return err
  69. }
  70. *x = M_Subenum(value)
  71. return nil
  72. }
  73. func (M_Subenum) EnumDescriptor() ([]byte, []int) {
  74. return fileDescriptor_382f7805394b5c4e, []int{0, 0}
  75. }
  76. type M_Submessage_Submessage_Subenum int32
  77. const (
  78. M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0
  79. )
  80. var M_Submessage_Submessage_Subenum_name = map[int32]string{
  81. 0: "M_SUBMESSAGE_ZERO",
  82. }
  83. var M_Submessage_Submessage_Subenum_value = map[string]int32{
  84. "M_SUBMESSAGE_ZERO": 0,
  85. }
  86. func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum {
  87. p := new(M_Submessage_Submessage_Subenum)
  88. *p = x
  89. return p
  90. }
  91. func (x M_Submessage_Submessage_Subenum) String() string {
  92. return proto.EnumName(M_Submessage_Submessage_Subenum_name, int32(x))
  93. }
  94. func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(data []byte) error {
  95. value, err := proto.UnmarshalJSONEnum(M_Submessage_Submessage_Subenum_value, data, "M_Submessage_Submessage_Subenum")
  96. if err != nil {
  97. return err
  98. }
  99. *x = M_Submessage_Submessage_Subenum(value)
  100. return nil
  101. }
  102. func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
  103. return fileDescriptor_382f7805394b5c4e, []int{0, 1, 0}
  104. }
  105. type M struct {
  106. // Field using a type in the same Go package, but a different source file.
  107. M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
  108. // Types that are valid to be assigned to OneofField:
  109. // *M_OneofInt32
  110. // *M_OneofInt64
  111. OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
  112. Grouping *M_Grouping `protobuf:"group,4,opt,name=Grouping,json=grouping" json:"grouping,omitempty"`
  113. DefaultField *string `protobuf:"bytes,6,opt,name=default_field,json=defaultField,def=def" json:"default_field,omitempty"`
  114. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  115. XXX_unrecognized []byte `json:"-"`
  116. XXX_sizecache int32 `json:"-"`
  117. }
  118. func (m *M) Reset() { *m = M{} }
  119. func (m *M) String() string { return proto.CompactTextString(m) }
  120. func (*M) ProtoMessage() {}
  121. func (*M) Descriptor() ([]byte, []int) {
  122. return fileDescriptor_382f7805394b5c4e, []int{0}
  123. }
  124. func (m *M) XXX_Unmarshal(b []byte) error {
  125. return xxx_messageInfo_M.Unmarshal(m, b)
  126. }
  127. func (m *M) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  128. return xxx_messageInfo_M.Marshal(b, m, deterministic)
  129. }
  130. func (m *M) XXX_Merge(src proto.Message) {
  131. xxx_messageInfo_M.Merge(m, src)
  132. }
  133. func (m *M) XXX_Size() int {
  134. return xxx_messageInfo_M.Size(m)
  135. }
  136. func (m *M) XXX_DiscardUnknown() {
  137. xxx_messageInfo_M.DiscardUnknown(m)
  138. }
  139. var xxx_messageInfo_M proto.InternalMessageInfo
  140. const Default_M_DefaultField string = "def"
  141. func (m *M) GetM2() *M2 {
  142. if m != nil {
  143. return m.M2
  144. }
  145. return nil
  146. }
  147. type isM_OneofField interface {
  148. isM_OneofField()
  149. }
  150. type M_OneofInt32 struct {
  151. OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"`
  152. }
  153. type M_OneofInt64 struct {
  154. OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"`
  155. }
  156. func (*M_OneofInt32) isM_OneofField() {}
  157. func (*M_OneofInt64) isM_OneofField() {}
  158. func (m *M) GetOneofField() isM_OneofField {
  159. if m != nil {
  160. return m.OneofField
  161. }
  162. return nil
  163. }
  164. func (m *M) GetOneofInt32() int32 {
  165. if x, ok := m.GetOneofField().(*M_OneofInt32); ok {
  166. return x.OneofInt32
  167. }
  168. return 0
  169. }
  170. func (m *M) GetOneofInt64() int64 {
  171. if x, ok := m.GetOneofField().(*M_OneofInt64); ok {
  172. return x.OneofInt64
  173. }
  174. return 0
  175. }
  176. func (m *M) GetGrouping() *M_Grouping {
  177. if m != nil {
  178. return m.Grouping
  179. }
  180. return nil
  181. }
  182. func (m *M) GetDefaultField() string {
  183. if m != nil && m.DefaultField != nil {
  184. return *m.DefaultField
  185. }
  186. return Default_M_DefaultField
  187. }
  188. // XXX_OneofWrappers is for the internal use of the proto package.
  189. func (*M) XXX_OneofWrappers() []interface{} {
  190. return []interface{}{
  191. (*M_OneofInt32)(nil),
  192. (*M_OneofInt64)(nil),
  193. }
  194. }
  195. type M_Grouping struct {
  196. GroupField *string `protobuf:"bytes,5,opt,name=group_field,json=groupField" json:"group_field,omitempty"`
  197. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  198. XXX_unrecognized []byte `json:"-"`
  199. XXX_sizecache int32 `json:"-"`
  200. }
  201. func (m *M_Grouping) Reset() { *m = M_Grouping{} }
  202. func (m *M_Grouping) String() string { return proto.CompactTextString(m) }
  203. func (*M_Grouping) ProtoMessage() {}
  204. func (*M_Grouping) Descriptor() ([]byte, []int) {
  205. return fileDescriptor_382f7805394b5c4e, []int{0, 0}
  206. }
  207. func (m *M_Grouping) XXX_Unmarshal(b []byte) error {
  208. return xxx_messageInfo_M_Grouping.Unmarshal(m, b)
  209. }
  210. func (m *M_Grouping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  211. return xxx_messageInfo_M_Grouping.Marshal(b, m, deterministic)
  212. }
  213. func (m *M_Grouping) XXX_Merge(src proto.Message) {
  214. xxx_messageInfo_M_Grouping.Merge(m, src)
  215. }
  216. func (m *M_Grouping) XXX_Size() int {
  217. return xxx_messageInfo_M_Grouping.Size(m)
  218. }
  219. func (m *M_Grouping) XXX_DiscardUnknown() {
  220. xxx_messageInfo_M_Grouping.DiscardUnknown(m)
  221. }
  222. var xxx_messageInfo_M_Grouping proto.InternalMessageInfo
  223. func (m *M_Grouping) GetGroupField() string {
  224. if m != nil && m.GroupField != nil {
  225. return *m.GroupField
  226. }
  227. return ""
  228. }
  229. type M_Submessage struct {
  230. // Types that are valid to be assigned to SubmessageOneofField:
  231. // *M_Submessage_SubmessageOneofInt32
  232. // *M_Submessage_SubmessageOneofInt64
  233. SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"`
  234. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  235. XXX_unrecognized []byte `json:"-"`
  236. XXX_sizecache int32 `json:"-"`
  237. }
  238. func (m *M_Submessage) Reset() { *m = M_Submessage{} }
  239. func (m *M_Submessage) String() string { return proto.CompactTextString(m) }
  240. func (*M_Submessage) ProtoMessage() {}
  241. func (*M_Submessage) Descriptor() ([]byte, []int) {
  242. return fileDescriptor_382f7805394b5c4e, []int{0, 1}
  243. }
  244. func (m *M_Submessage) XXX_Unmarshal(b []byte) error {
  245. return xxx_messageInfo_M_Submessage.Unmarshal(m, b)
  246. }
  247. func (m *M_Submessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  248. return xxx_messageInfo_M_Submessage.Marshal(b, m, deterministic)
  249. }
  250. func (m *M_Submessage) XXX_Merge(src proto.Message) {
  251. xxx_messageInfo_M_Submessage.Merge(m, src)
  252. }
  253. func (m *M_Submessage) XXX_Size() int {
  254. return xxx_messageInfo_M_Submessage.Size(m)
  255. }
  256. func (m *M_Submessage) XXX_DiscardUnknown() {
  257. xxx_messageInfo_M_Submessage.DiscardUnknown(m)
  258. }
  259. var xxx_messageInfo_M_Submessage proto.InternalMessageInfo
  260. type isM_Submessage_SubmessageOneofField interface {
  261. isM_Submessage_SubmessageOneofField()
  262. }
  263. type M_Submessage_SubmessageOneofInt32 struct {
  264. SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"`
  265. }
  266. type M_Submessage_SubmessageOneofInt64 struct {
  267. SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"`
  268. }
  269. func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {}
  270. func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {}
  271. func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
  272. if m != nil {
  273. return m.SubmessageOneofField
  274. }
  275. return nil
  276. }
  277. func (m *M_Submessage) GetSubmessageOneofInt32() int32 {
  278. if x, ok := m.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt32); ok {
  279. return x.SubmessageOneofInt32
  280. }
  281. return 0
  282. }
  283. func (m *M_Submessage) GetSubmessageOneofInt64() int64 {
  284. if x, ok := m.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt64); ok {
  285. return x.SubmessageOneofInt64
  286. }
  287. return 0
  288. }
  289. // XXX_OneofWrappers is for the internal use of the proto package.
  290. func (*M_Submessage) XXX_OneofWrappers() []interface{} {
  291. return []interface{}{
  292. (*M_Submessage_SubmessageOneofInt32)(nil),
  293. (*M_Submessage_SubmessageOneofInt64)(nil),
  294. }
  295. }
  296. var E_ExtensionField = &proto.ExtensionDesc{
  297. ExtendedType: (*M2)(nil),
  298. ExtensionType: (*string)(nil),
  299. Field: 1,
  300. Name: "goproto.test.import_public.sub.extension_field",
  301. Tag: "bytes,1,opt,name=extension_field",
  302. Filename: "import_public/sub/a.proto",
  303. }
  304. func init() {
  305. proto.RegisterEnum("goproto.test.import_public.sub.E", E_name, E_value)
  306. proto.RegisterEnum("goproto.test.import_public.sub.M_Subenum", M_Subenum_name, M_Subenum_value)
  307. proto.RegisterEnum("goproto.test.import_public.sub.M_Submessage_Submessage_Subenum", M_Submessage_Submessage_Subenum_name, M_Submessage_Submessage_Subenum_value)
  308. proto.RegisterType((*M)(nil), "goproto.test.import_public.sub.M")
  309. proto.RegisterType((*M_Grouping)(nil), "goproto.test.import_public.sub.M.Grouping")
  310. proto.RegisterType((*M_Submessage)(nil), "goproto.test.import_public.sub.M.Submessage")
  311. proto.RegisterExtension(E_ExtensionField)
  312. }
  313. func init() { proto.RegisterFile("import_public/sub/a.proto", fileDescriptor_382f7805394b5c4e) }
  314. var fileDescriptor_382f7805394b5c4e = []byte{
  315. // 410 bytes of a gzipped FileDescriptorProto
  316. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x6e, 0xd3, 0x40,
  317. 0x10, 0xc6, 0xbb, 0x49, 0x5a, 0xd2, 0x09, 0xe1, 0xcf, 0x8a, 0x22, 0xd3, 0x03, 0x98, 0x9c, 0xac,
  318. 0x56, 0x5d, 0x4b, 0x26, 0xf2, 0xa1, 0x37, 0x82, 0xdc, 0x82, 0x90, 0x55, 0xc9, 0x16, 0x97, 0x5e,
  319. 0x2c, 0x6f, 0xbc, 0x5e, 0x2c, 0xd9, 0xbb, 0x56, 0xbc, 0x2b, 0xf1, 0x08, 0xbc, 0x17, 0x2f, 0x86,
  320. 0xbc, 0xb6, 0x93, 0x46, 0x04, 0xe8, 0x6d, 0x3d, 0xf3, 0xfd, 0xbe, 0xd1, 0x7c, 0x1e, 0x78, 0x53,
  321. 0x54, 0xb5, 0xdc, 0xa8, 0xa4, 0xd6, 0xb4, 0x2c, 0xd6, 0x6e, 0xa3, 0xa9, 0x9b, 0x92, 0x7a, 0x23,
  322. 0x95, 0xc4, 0x6f, 0xb9, 0x34, 0x0f, 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, 0xe7, 0x2f, 0x17, 0x97, 0x80, 0x77, 0xd3, 0x93, 0x58, 0x53, 0x26, 0x74,
  334. 0x85, 0xcf, 0xe0, 0x65, 0x98, 0xc4, 0xdf, 0x56, 0x61, 0x10, 0xc7, 0x1f, 0x6f, 0x83, 0xe4, 0x3e,
  335. 0x88, 0xee, 0x5e, 0x1c, 0xad, 0xac, 0x03, 0x43, 0xcc, 0x5e, 0x8b, 0x33, 0x78, 0x32, 0xb0, 0x00,
  336. 0x27, 0xe1, 0x00, 0xcc, 0x87, 0xdf, 0x63, 0x54, 0x17, 0x73, 0x40, 0x01, 0x9e, 0xc2, 0xa4, 0xeb,
  337. 0x5e, 0x7f, 0x85, 0xe7, 0xec, 0x87, 0x62, 0xa2, 0x29, 0xa4, 0xe8, 0x14, 0xf8, 0x11, 0xa7, 0x61,
  338. 0x82, 0x38, 0x8d, 0x9e, 0x6d, 0x51, 0x93, 0xe3, 0x2a, 0xb8, 0xff, 0xc4, 0x0b, 0xf5, 0x5d, 0x53,
  339. 0xb2, 0x96, 0x95, 0xcb, 0x65, 0x99, 0x0a, 0xee, 0x1a, 0x2b, 0xaa, 0xf3, 0xee, 0xb1, 0xbe, 0xe2,
  340. 0x4c, 0x5c, 0x71, 0xe9, 0xb6, 0xde, 0x59, 0xaa, 0x52, 0xf7, 0x8f, 0xab, 0xfd, 0x1d, 0x00, 0x00,
  341. 0xff, 0xff, 0x13, 0x4f, 0x31, 0x07, 0x04, 0x03, 0x00, 0x00,
  342. }