xref: /aosp_15_r20/external/golang-protobuf/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go (revision 1c12ee1efe575feb122dbf939ff15148a3b3e8f2)
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/proto2/nested_messages.proto
7
8package proto2
9
10import (
11	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
12	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
13	reflect "reflect"
14	sync "sync"
15)
16
17type 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
26func (x *Layer1) Reset() {
27	*x = Layer1{}
28	if protoimpl.UnsafeEnabled {
29		mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0]
30		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
31		ms.StoreMessageInfo(mi)
32	}
33}
34
35func (x *Layer1) String() string {
36	return protoimpl.X.MessageStringOf(x)
37}
38
39func (*Layer1) ProtoMessage() {}
40
41func (x *Layer1) ProtoReflect() protoreflect.Message {
42	mi := &file_cmd_protoc_gen_go_testdata_proto2_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// Deprecated: Use Layer1.ProtoReflect.Descriptor instead.
54func (*Layer1) Descriptor() ([]byte, []int) {
55	return file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescGZIP(), []int{0}
56}
57
58func (x *Layer1) GetL2() *Layer1_Layer2 {
59	if x != nil {
60		return x.L2
61	}
62	return nil
63}
64
65func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 {
66	if x != nil {
67		return x.L3
68	}
69	return nil
70}
71
72type 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
80func (x *Layer1_Layer2) Reset() {
81	*x = Layer1_Layer2{}
82	if protoimpl.UnsafeEnabled {
83		mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1]
84		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85		ms.StoreMessageInfo(mi)
86	}
87}
88
89func (x *Layer1_Layer2) String() string {
90	return protoimpl.X.MessageStringOf(x)
91}
92
93func (*Layer1_Layer2) ProtoMessage() {}
94
95func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message {
96	mi := &file_cmd_protoc_gen_go_testdata_proto2_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// Deprecated: Use Layer1_Layer2.ProtoReflect.Descriptor instead.
108func (*Layer1_Layer2) Descriptor() ([]byte, []int) {
109	return file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0}
110}
111
112func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
113	if x != nil {
114		return x.L3
115	}
116	return nil
117}
118
119type Layer1_Layer2_Layer3 struct {
120	state         protoimpl.MessageState
121	sizeCache     protoimpl.SizeCache
122	unknownFields protoimpl.UnknownFields
123}
124
125func (x *Layer1_Layer2_Layer3) Reset() {
126	*x = Layer1_Layer2_Layer3{}
127	if protoimpl.UnsafeEnabled {
128		mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2]
129		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130		ms.StoreMessageInfo(mi)
131	}
132}
133
134func (x *Layer1_Layer2_Layer3) String() string {
135	return protoimpl.X.MessageStringOf(x)
136}
137
138func (*Layer1_Layer2_Layer3) ProtoMessage() {}
139
140func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message {
141	mi := &file_cmd_protoc_gen_go_testdata_proto2_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// Deprecated: Use Layer1_Layer2_Layer3.ProtoReflect.Descriptor instead.
153func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int) {
154	return file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0}
155}
156
157var File_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto protoreflect.FileDescriptor
158
159var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc = []byte{
160	0x0a, 0x37, 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, 0x32, 0x2f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
163	0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f,
164	0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
165	0x22, 0xcc, 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x12, 0x34, 0x0a, 0x02, 0x6c,
166	0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
167	0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e,
168	0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x52, 0x02, 0x6c,
169	0x32, 0x12, 0x3b, 0x0a, 0x02, 0x6c, 0x33, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e,
170	0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
171	0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79,
172	0x65, 0x72, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x52, 0x02, 0x6c, 0x33, 0x1a, 0x4f,
173	0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x12, 0x3b, 0x0a, 0x02, 0x6c, 0x33, 0x18, 0x01,
174	0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
175	0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e, 0x4c, 0x61, 0x79,
176	0x65, 0x72, 0x31, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x32, 0x2e, 0x4c, 0x61, 0x79, 0x65, 0x72,
177	0x33, 0x52, 0x02, 0x6c, 0x33, 0x1a, 0x08, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x33, 0x42,
178	0x3e, 0x5a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
179	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d,
180	0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f,
181	0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32,
182}
183
184var (
185	file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescOnce sync.Once
186	file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescData = file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc
187)
188
189func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescGZIP() []byte {
190	file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescOnce.Do(func() {
191		file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescData)
192	})
193	return file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescData
194}
195
196var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
197var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_goTypes = []interface{}{
198	(*Layer1)(nil),               // 0: goproto.protoc.proto2.Layer1
199	(*Layer1_Layer2)(nil),        // 1: goproto.protoc.proto2.Layer1.Layer2
200	(*Layer1_Layer2_Layer3)(nil), // 2: goproto.protoc.proto2.Layer1.Layer2.Layer3
201}
202var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_depIdxs = []int32{
203	1, // 0: goproto.protoc.proto2.Layer1.l2:type_name -> goproto.protoc.proto2.Layer1.Layer2
204	2, // 1: goproto.protoc.proto2.Layer1.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
205	2, // 2: goproto.protoc.proto2.Layer1.Layer2.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
206	3, // [3:3] is the sub-list for method output_type
207	3, // [3:3] is the sub-list for method input_type
208	3, // [3:3] is the sub-list for extension type_name
209	3, // [3:3] is the sub-list for extension extendee
210	0, // [0:3] is the sub-list for field type_name
211}
212
213func init() { file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_init() }
214func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_init() {
215	if File_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto != nil {
216		return
217	}
218	if !protoimpl.UnsafeEnabled {
219		file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
220			switch v := v.(*Layer1); i {
221			case 0:
222				return &v.state
223			case 1:
224				return &v.sizeCache
225			case 2:
226				return &v.unknownFields
227			default:
228				return nil
229			}
230		}
231		file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
232			switch v := v.(*Layer1_Layer2); i {
233			case 0:
234				return &v.state
235			case 1:
236				return &v.sizeCache
237			case 2:
238				return &v.unknownFields
239			default:
240				return nil
241			}
242		}
243		file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
244			switch v := v.(*Layer1_Layer2_Layer3); i {
245			case 0:
246				return &v.state
247			case 1:
248				return &v.sizeCache
249			case 2:
250				return &v.unknownFields
251			default:
252				return nil
253			}
254		}
255	}
256	type x struct{}
257	out := protoimpl.TypeBuilder{
258		File: protoimpl.DescBuilder{
259			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
260			RawDescriptor: file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc,
261			NumEnums:      0,
262			NumMessages:   3,
263			NumExtensions: 0,
264			NumServices:   0,
265		},
266		GoTypes:           file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_goTypes,
267		DependencyIndexes: file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_depIdxs,
268		MessageInfos:      file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes,
269	}.Build()
270	File_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto = out.File
271	file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc = nil
272	file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_goTypes = nil
273	file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_depIdxs = nil
274}
275