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
5// Code generated by protoc-gen-go. DO NOT EDIT.
6// source: cmd/protoc-gen-go/testdata/import_public/a.proto
7
8package import_public
9
10import (
11	sub "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub"
12	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14	reflect "reflect"
15	sync "sync"
16)
17
18// Symbols defined in public import of cmd/protoc-gen-go/testdata/import_public/sub/a.proto.
19
20type E = sub.E
21
22const E_ZERO = sub.E_ZERO
23
24var E_name = sub.E_name
25var E_value = sub.E_value
26
27type M_Subenum = sub.M_Subenum
28
29const M_M_ZERO = sub.M_M_ZERO
30
31var M_Subenum_name = sub.M_Subenum_name
32var M_Subenum_value = sub.M_Subenum_value
33
34type M_Submessage_Submessage_Subenum = sub.M_Submessage_Submessage_Subenum
35
36const M_Submessage_M_SUBMESSAGE_ZERO = sub.M_Submessage_M_SUBMESSAGE_ZERO
37
38var M_Submessage_Submessage_Subenum_name = sub.M_Submessage_Submessage_Subenum_name
39var M_Submessage_Submessage_Subenum_value = sub.M_Submessage_Submessage_Subenum_value
40
41type M = sub.M
42
43const Default_M_S = sub.Default_M_S
44
45var Default_M_B = sub.Default_M_B
46var Default_M_F = sub.Default_M_F
47
48type M_OneofInt32 = sub.M_OneofInt32
49type M_OneofInt64 = sub.M_OneofInt64
50type M_Submessage = sub.M_Submessage
51type M_Submessage_SubmessageOneofInt32 = sub.M_Submessage_SubmessageOneofInt32
52type M_Submessage_SubmessageOneofInt64 = sub.M_Submessage_SubmessageOneofInt64
53
54var E_ExtensionField = sub.E_ExtensionField
55
56type Public struct {
57	state         protoimpl.MessageState
58	sizeCache     protoimpl.SizeCache
59	unknownFields protoimpl.UnknownFields
60
61	M     *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
62	E     *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
63	Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"`
64}
65
66func (x *Public) Reset() {
67	*x = Public{}
68	if protoimpl.UnsafeEnabled {
69		mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0]
70		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71		ms.StoreMessageInfo(mi)
72	}
73}
74
75func (x *Public) String() string {
76	return protoimpl.X.MessageStringOf(x)
77}
78
79func (*Public) ProtoMessage() {}
80
81func (x *Public) ProtoReflect() protoreflect.Message {
82	mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0]
83	if protoimpl.UnsafeEnabled && x != nil {
84		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85		if ms.LoadMessageInfo() == nil {
86			ms.StoreMessageInfo(mi)
87		}
88		return ms
89	}
90	return mi.MessageOf(x)
91}
92
93// Deprecated: Use Public.ProtoReflect.Descriptor instead.
94func (*Public) Descriptor() ([]byte, []int) {
95	return file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescGZIP(), []int{0}
96}
97
98func (x *Public) GetM() *sub.M {
99	if x != nil {
100		return x.M
101	}
102	return nil
103}
104
105func (x *Public) GetE() sub.E {
106	if x != nil && x.E != nil {
107		return *x.E
108	}
109	return sub.E_ZERO
110}
111
112func (x *Public) GetLocal() *Local {
113	if x != nil {
114		return x.Local
115	}
116	return nil
117}
118
119var File_cmd_protoc_gen_go_testdata_import_public_a_proto protoreflect.FileDescriptor
120
121var file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc = []byte{
122	0x0a, 0x30, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
123	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
124	0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x61, 0x2e, 0x70, 0x72, 0x6f,
125	0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
126	0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
127	0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
128	0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
129	0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x61,
130	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74,
131	0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61,
132	0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
133	0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 0x0a, 0x06, 0x50, 0x75, 0x62,
134	0x6c, 0x69, 0x63, 0x12, 0x31, 0x0a, 0x01, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23,
135	0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e,
136	0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75,
137	0x62, 0x2e, 0x4d, 0x52, 0x01, 0x6d, 0x12, 0x31, 0x0a, 0x01, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
138	0x0e, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
139	0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
140	0x2e, 0x73, 0x75, 0x62, 0x2e, 0x45, 0x52, 0x01, 0x65, 0x12, 0x39, 0x0a, 0x05, 0x6c, 0x6f, 0x63,
141	0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f,
142	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74,
143	0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x52, 0x05, 0x6c,
144	0x6f, 0x63, 0x61, 0x6c, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67,
145	0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
146	0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65,
147	0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d,
148	0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x50, 0x00, 0x50, 0x01,
149}
150
151var (
152	file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescOnce sync.Once
153	file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData = file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc
154)
155
156func file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescGZIP() []byte {
157	file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescOnce.Do(func() {
158		file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData)
159	})
160	return file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData
161}
162
163var file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
164var file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = []interface{}{
165	(*Public)(nil), // 0: goproto.protoc.import_public.Public
166	(*sub.M)(nil),  // 1: goproto.protoc.import_public.sub.M
167	(sub.E)(0),     // 2: goproto.protoc.import_public.sub.E
168	(*Local)(nil),  // 3: goproto.protoc.import_public.Local
169}
170var file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs = []int32{
171	1, // 0: goproto.protoc.import_public.Public.m:type_name -> goproto.protoc.import_public.sub.M
172	2, // 1: goproto.protoc.import_public.Public.e:type_name -> goproto.protoc.import_public.sub.E
173	3, // 2: goproto.protoc.import_public.Public.local:type_name -> goproto.protoc.import_public.Local
174	3, // [3:3] is the sub-list for method output_type
175	3, // [3:3] is the sub-list for method input_type
176	3, // [3:3] is the sub-list for extension type_name
177	3, // [3:3] is the sub-list for extension extendee
178	0, // [0:3] is the sub-list for field type_name
179}
180
181func init() { file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() }
182func file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() {
183	if File_cmd_protoc_gen_go_testdata_import_public_a_proto != nil {
184		return
185	}
186	file_cmd_protoc_gen_go_testdata_import_public_b_proto_init()
187	if !protoimpl.UnsafeEnabled {
188		file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
189			switch v := v.(*Public); i {
190			case 0:
191				return &v.state
192			case 1:
193				return &v.sizeCache
194			case 2:
195				return &v.unknownFields
196			default:
197				return nil
198			}
199		}
200	}
201	type x struct{}
202	out := protoimpl.TypeBuilder{
203		File: protoimpl.DescBuilder{
204			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
205			RawDescriptor: file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc,
206			NumEnums:      0,
207			NumMessages:   1,
208			NumExtensions: 0,
209			NumServices:   0,
210		},
211		GoTypes:           file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes,
212		DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs,
213		MessageInfos:      file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes,
214	}.Build()
215	File_cmd_protoc_gen_go_testdata_import_public_a_proto = out.File
216	file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc = nil
217	file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = nil
218	file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs = nil
219}
220