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