1
2
3
4
5
6
7
8 package import_public
9
10 import (
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
19
20 type E = sub.E
21
22 const E_ZERO = sub.E_ZERO
23
24 var E_name = sub.E_name
25 var E_value = sub.E_value
26
27 type M_Subenum = sub.M_Subenum
28
29 const M_M_ZERO = sub.M_M_ZERO
30
31 var M_Subenum_name = sub.M_Subenum_name
32 var M_Subenum_value = sub.M_Subenum_value
33
34 type M_Submessage_Submessage_Subenum = sub.M_Submessage_Submessage_Subenum
35
36 const M_Submessage_M_SUBMESSAGE_ZERO = sub.M_Submessage_M_SUBMESSAGE_ZERO
37
38 var M_Submessage_Submessage_Subenum_name = sub.M_Submessage_Submessage_Subenum_name
39 var M_Submessage_Submessage_Subenum_value = sub.M_Submessage_Submessage_Subenum_value
40
41 type M = sub.M
42
43 const Default_M_S = sub.Default_M_S
44
45 var Default_M_B = sub.Default_M_B
46 var Default_M_F = sub.Default_M_F
47
48 type M_OneofInt32 = sub.M_OneofInt32
49 type M_OneofInt64 = sub.M_OneofInt64
50 type M_Submessage = sub.M_Submessage
51 type M_Submessage_SubmessageOneofInt32 = sub.M_Submessage_SubmessageOneofInt32
52 type M_Submessage_SubmessageOneofInt64 = sub.M_Submessage_SubmessageOneofInt64
53
54 var E_ExtensionField = sub.E_ExtensionField
55
56 type 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
66 func (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
75 func (x *Public) String() string {
76 return protoimpl.X.MessageStringOf(x)
77 }
78
79 func (*Public) ProtoMessage() {}
80
81 func (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
94 func (*Public) Descriptor() ([]byte, []int) {
95 return file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescGZIP(), []int{0}
96 }
97
98 func (x *Public) GetM() *sub.M {
99 if x != nil {
100 return x.M
101 }
102 return nil
103 }
104
105 func (x *Public) GetE() sub.E {
106 if x != nil && x.E != nil {
107 return *x.E
108 }
109 return sub.E(0)
110 }
111
112 func (x *Public) GetLocal() *Local {
113 if x != nil {
114 return x.Local
115 }
116 return nil
117 }
118
119 var File_cmd_protoc_gen_go_testdata_import_public_a_proto protoreflect.FileDescriptor
120
121 var 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
151 var (
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
156 func 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
163 var file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
164 var file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = []interface{}{
165 (*Public)(nil),
166 (*sub.M)(nil),
167 (sub.E)(0),
168 (*Local)(nil),
169 }
170 var file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs = []int32{
171 1,
172 2,
173 3,
174 3,
175 3,
176 3,
177 3,
178 0,
179 }
180
181 func init() { file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() }
182 func 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
View as plain text