1
2
3
4
5
6
7
8 package protoeditions
9
10 import (
11 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13 reflect "reflect"
14 sync "sync"
15 )
16
17 type Layer1 struct {
18 state protoimpl.MessageState
19 sizeCache protoimpl.SizeCache
20 unknownFields protoimpl.UnknownFields
21
22 L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"`
23 L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"`
24 }
25
26 func (x *Layer1) Reset() {
27 *x = Layer1{}
28 if protoimpl.UnsafeEnabled {
29 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0]
30 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
31 ms.StoreMessageInfo(mi)
32 }
33 }
34
35 func (x *Layer1) String() string {
36 return protoimpl.X.MessageStringOf(x)
37 }
38
39 func (*Layer1) ProtoMessage() {}
40
41 func (x *Layer1) ProtoReflect() protoreflect.Message {
42 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0]
43 if protoimpl.UnsafeEnabled && x != nil {
44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
45 if ms.LoadMessageInfo() == nil {
46 ms.StoreMessageInfo(mi)
47 }
48 return ms
49 }
50 return mi.MessageOf(x)
51 }
52
53
54 func (*Layer1) Descriptor() ([]byte, []int) {
55 return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP(), []int{0}
56 }
57
58 func (x *Layer1) GetL2() *Layer1_Layer2 {
59 if x != nil {
60 return x.L2
61 }
62 return nil
63 }
64
65 func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 {
66 if x != nil {
67 return x.L3
68 }
69 return nil
70 }
71
72 type Layer1_Layer2 struct {
73 state protoimpl.MessageState
74 sizeCache protoimpl.SizeCache
75 unknownFields protoimpl.UnknownFields
76
77 L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"`
78 }
79
80 func (x *Layer1_Layer2) Reset() {
81 *x = Layer1_Layer2{}
82 if protoimpl.UnsafeEnabled {
83 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1]
84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85 ms.StoreMessageInfo(mi)
86 }
87 }
88
89 func (x *Layer1_Layer2) String() string {
90 return protoimpl.X.MessageStringOf(x)
91 }
92
93 func (*Layer1_Layer2) ProtoMessage() {}
94
95 func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message {
96 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1]
97 if protoimpl.UnsafeEnabled && x != nil {
98 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
99 if ms.LoadMessageInfo() == nil {
100 ms.StoreMessageInfo(mi)
101 }
102 return ms
103 }
104 return mi.MessageOf(x)
105 }
106
107
108 func (*Layer1_Layer2) Descriptor() ([]byte, []int) {
109 return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP(), []int{0, 0}
110 }
111
112 func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
113 if x != nil {
114 return x.L3
115 }
116 return nil
117 }
118
119 type Layer1_Layer2_Layer3 struct {
120 state protoimpl.MessageState
121 sizeCache protoimpl.SizeCache
122 unknownFields protoimpl.UnknownFields
123 }
124
125 func (x *Layer1_Layer2_Layer3) Reset() {
126 *x = Layer1_Layer2_Layer3{}
127 if protoimpl.UnsafeEnabled {
128 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132 }
133
134 func (x *Layer1_Layer2_Layer3) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*Layer1_Layer2_Layer3) ProtoMessage() {}
139
140 func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message {
141 mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2]
142 if protoimpl.UnsafeEnabled && x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152
153 func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int) {
154 return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0}
155 }
156
157 var File_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto protoreflect.FileDescriptor
158
159 var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc = []byte{
160 0x0a, 0x3e, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
161 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f,
162 0x74, 0x6f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x6e, 0x65, 0x73, 0x74, 0x65,
163 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
164 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
165 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe1,
166 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x12, 0x3b, 0x0a, 0x02, 0x6c, 0x32, 0x18,
167 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
168 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x64, 0x69, 0x74,
169 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65,
170 0x72, 0x32, 0x52, 0x02, 0x6c, 0x32, 0x12, 0x42, 0x0a, 0x02, 0x6c, 0x33, 0x18, 0x02, 0x20, 0x01,
171 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
172 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
173 0x73, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e,
174 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x52, 0x02, 0x6c, 0x33, 0x1a, 0x56, 0x0a, 0x06, 0x4c, 0x61,
175 0x79, 0x65, 0x72, 0x32, 0x12, 0x42, 0x0a, 0x02, 0x6c, 0x33, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
176 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
177 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
178 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x4c, 0x61,
179 0x79, 0x65, 0x72, 0x33, 0x52, 0x02, 0x6c, 0x33, 0x1a, 0x08, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65,
180 0x72, 0x33, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
181 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
182 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d,
183 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74,
184 0x6f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x62, 0x08, 0x65, 0x64, 0x69, 0x74, 0x69,
185 0x6f, 0x6e, 0x73, 0x70, 0xe8, 0x07,
186 }
187
188 var (
189 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescOnce sync.Once
190 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData = file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc
191 )
192
193 func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP() []byte {
194 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescOnce.Do(func() {
195 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData)
196 })
197 return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData
198 }
199
200 var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
201 var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes = []interface{}{
202 (*Layer1)(nil),
203 (*Layer1_Layer2)(nil),
204 (*Layer1_Layer2_Layer3)(nil),
205 }
206 var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_depIdxs = []int32{
207 1,
208 2,
209 2,
210 3,
211 3,
212 3,
213 3,
214 0,
215 }
216
217 func init() { file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init() }
218 func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init() {
219 if File_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto != nil {
220 return
221 }
222 if !protoimpl.UnsafeEnabled {
223 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
224 switch v := v.(*Layer1); i {
225 case 0:
226 return &v.state
227 case 1:
228 return &v.sizeCache
229 case 2:
230 return &v.unknownFields
231 default:
232 return nil
233 }
234 }
235 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
236 switch v := v.(*Layer1_Layer2); i {
237 case 0:
238 return &v.state
239 case 1:
240 return &v.sizeCache
241 case 2:
242 return &v.unknownFields
243 default:
244 return nil
245 }
246 }
247 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
248 switch v := v.(*Layer1_Layer2_Layer3); i {
249 case 0:
250 return &v.state
251 case 1:
252 return &v.sizeCache
253 case 2:
254 return &v.unknownFields
255 default:
256 return nil
257 }
258 }
259 }
260 type x struct{}
261 out := protoimpl.TypeBuilder{
262 File: protoimpl.DescBuilder{
263 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
264 RawDescriptor: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc,
265 NumEnums: 0,
266 NumMessages: 3,
267 NumExtensions: 0,
268 NumServices: 0,
269 },
270 GoTypes: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes,
271 DependencyIndexes: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_depIdxs,
272 MessageInfos: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes,
273 }.Build()
274 File_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto = out.File
275 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc = nil
276 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes = nil
277 file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_depIdxs = nil
278 }
279
View as plain text