| 1 |
// Copyright 2024 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/protoeditions/nested_messages.proto |
| 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 |
unsafe "unsafe" |
| 16 |
) |
| 17 |
|
| 18 |
type Layer1 struct { |
| 19 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 20 |
L2 *Layer1_Layer2 `protobuf:"bytes,1,opt,name=l2" json:"l2,omitempty"` |
| 21 |
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,2,opt,name=l3" json:"l3,omitempty"` |
| 22 |
unknownFields protoimpl.UnknownFields |
| 23 |
sizeCache protoimpl.SizeCache |
| 24 |
} |
| 25 |
|
| 26 |
func (x *Layer1) Reset() { |
| 27 |
*x = Layer1{} |
| 28 |
mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0] |
| 29 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 30 |
ms.StoreMessageInfo(mi) |
| 31 |
} |
| 32 |
|
| 33 |
func (x *Layer1) String() string { |
| 34 |
return protoimpl.X.MessageStringOf(x) |
| 35 |
} |
| 36 |
|
| 37 |
func (*Layer1) ProtoMessage() {} |
| 38 |
|
| 39 |
func (x *Layer1) ProtoReflect() protoreflect.Message { |
| 40 |
mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0] |
| 41 |
if x != nil { |
| 42 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 43 |
if ms.LoadMessageInfo() == nil { |
| 44 |
ms.StoreMessageInfo(mi) |
| 45 |
} |
| 46 |
return ms |
| 47 |
} |
| 48 |
return mi.MessageOf(x) |
| 49 |
} |
| 50 |
|
| 51 |
// Deprecated: Use Layer1.ProtoReflect.Descriptor instead. |
| 52 |
func (*Layer1) Descriptor() ([]byte, []int) { |
| 53 |
return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP(), []int{0} |
| 54 |
} |
| 55 |
|
| 56 |
func (x *Layer1) GetL2() *Layer1_Layer2 { |
| 57 |
if x != nil { |
| 58 |
return x.L2 |
| 59 |
} |
| 60 |
return nil |
| 61 |
} |
| 62 |
|
| 63 |
func (x *Layer1) GetL3() *Layer1_Layer2_Layer3 { |
| 64 |
if x != nil { |
| 65 |
return x.L3 |
| 66 |
} |
| 67 |
return nil |
| 68 |
} |
| 69 |
|
| 70 |
type Layer1_Layer2 struct { |
| 71 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 72 |
L3 *Layer1_Layer2_Layer3 `protobuf:"bytes,1,opt,name=l3" json:"l3,omitempty"` |
| 73 |
unknownFields protoimpl.UnknownFields |
| 74 |
sizeCache protoimpl.SizeCache |
| 75 |
} |
| 76 |
|
| 77 |
func (x *Layer1_Layer2) Reset() { |
| 78 |
*x = Layer1_Layer2{} |
| 79 |
mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1] |
| 80 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 81 |
ms.StoreMessageInfo(mi) |
| 82 |
} |
| 83 |
|
| 84 |
func (x *Layer1_Layer2) String() string { |
| 85 |
return protoimpl.X.MessageStringOf(x) |
| 86 |
} |
| 87 |
|
| 88 |
func (*Layer1_Layer2) ProtoMessage() {} |
| 89 |
|
| 90 |
func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message { |
| 91 |
mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1] |
| 92 |
if x != nil { |
| 93 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 94 |
if ms.LoadMessageInfo() == nil { |
| 95 |
ms.StoreMessageInfo(mi) |
| 96 |
} |
| 97 |
return ms |
| 98 |
} |
| 99 |
return mi.MessageOf(x) |
| 100 |
} |
| 101 |
|
| 102 |
// Deprecated: Use Layer1_Layer2.ProtoReflect.Descriptor instead. |
| 103 |
func (*Layer1_Layer2) Descriptor() ([]byte, []int) { |
| 104 |
return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP(), []int{0, 0} |
| 105 |
} |
| 106 |
|
| 107 |
func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 { |
| 108 |
if x != nil { |
| 109 |
return x.L3 |
| 110 |
} |
| 111 |
return nil |
| 112 |
} |
| 113 |
|
| 114 |
type Layer1_Layer2_Layer3 struct { |
| 115 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 116 |
unknownFields protoimpl.UnknownFields |
| 117 |
sizeCache protoimpl.SizeCache |
| 118 |
} |
| 119 |
|
| 120 |
func (x *Layer1_Layer2_Layer3) Reset() { |
| 121 |
*x = Layer1_Layer2_Layer3{} |
| 122 |
mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2] |
| 123 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 124 |
ms.StoreMessageInfo(mi) |
| 125 |
} |
| 126 |
|
| 127 |
func (x *Layer1_Layer2_Layer3) String() string { |
| 128 |
return protoimpl.X.MessageStringOf(x) |
| 129 |
} |
| 130 |
|
| 131 |
func (*Layer1_Layer2_Layer3) ProtoMessage() {} |
| 132 |
|
| 133 |
func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message { |
| 134 |
mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2] |
| 135 |
if x != nil { |
| 136 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 137 |
if ms.LoadMessageInfo() == nil { |
| 138 |
ms.StoreMessageInfo(mi) |
| 139 |
} |
| 140 |
return ms |
| 141 |
} |
| 142 |
return mi.MessageOf(x) |
| 143 |
} |
| 144 |
|
| 145 |
// Deprecated: Use Layer1_Layer2_Layer3.ProtoReflect.Descriptor instead. |
| 146 |
func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int) { |
| 147 |
return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0} |
| 148 |
} |
| 149 |
|
| 150 |
var File_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto protoreflect.FileDescriptor |
| 151 |
|
| 152 |
const file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc = "" + |
| 153 |
"\n" + |
| 154 |
">cmd/protoc-gen-go/testdata/protoeditions/nested_messages.proto\x12\x1cgoproto.protoc.protoeditions\"\xe1\x01\n" + |
| 155 |
"\x06Layer1\x12;\n" + |
| 156 |
"\x02l2\x18\x01 \x01(\v2+.goproto.protoc.protoeditions.Layer1.Layer2R\x02l2\x12B\n" + |
| 157 |
"\x02l3\x18\x02 \x01(\v22.goproto.protoc.protoeditions.Layer1.Layer2.Layer3R\x02l3\x1aV\n" + |
| 158 |
"\x06Layer2\x12B\n" + |
| 159 |
"\x02l3\x18\x01 \x01(\v22.goproto.protoc.protoeditions.Layer1.Layer2.Layer3R\x02l3\x1a\b\n" + |
| 160 |
"\x06Layer3BEZCgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/protoeditionsb\beditionsp\xe8\a" |
| 161 |
|
| 162 |
var ( |
| 163 |
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescOnce sync.Once |
| 164 |
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData []byte |
| 165 |
) |
| 166 |
|
| 167 |
func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescGZIP() []byte { |
| 168 |
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescOnce.Do(func() { |
| 169 |
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc))) |
| 170 |
}) |
| 171 |
return file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDescData |
| 172 |
} |
| 173 |
|
| 174 |
var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
| 175 |
var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes = []any{ |
| 176 |
(*Layer1)(nil), // 0: goproto.protoc.protoeditions.Layer1 |
| 177 |
(*Layer1_Layer2)(nil), // 1: goproto.protoc.protoeditions.Layer1.Layer2 |
| 178 |
(*Layer1_Layer2_Layer3)(nil), // 2: goproto.protoc.protoeditions.Layer1.Layer2.Layer3 |
| 179 |
} |
| 180 |
var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_depIdxs = []int32{ |
| 181 |
1, // 0: goproto.protoc.protoeditions.Layer1.l2:type_name -> goproto.protoc.protoeditions.Layer1.Layer2 |
| 182 |
2, // 1: goproto.protoc.protoeditions.Layer1.l3:type_name -> goproto.protoc.protoeditions.Layer1.Layer2.Layer3 |
| 183 |
2, // 2: goproto.protoc.protoeditions.Layer1.Layer2.l3:type_name -> goproto.protoc.protoeditions.Layer1.Layer2.Layer3 |
| 184 |
3, // [3:3] is the sub-list for method output_type |
| 185 |
3, // [3:3] is the sub-list for method input_type |
| 186 |
3, // [3:3] is the sub-list for extension type_name |
| 187 |
3, // [3:3] is the sub-list for extension extendee |
| 188 |
0, // [0:3] is the sub-list for field type_name |
| 189 |
} |
| 190 |
|
| 191 |
func init() { file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init() } |
| 192 |
func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init() { |
| 193 |
if File_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto != nil { |
| 194 |
return |
| 195 |
} |
| 196 |
type x struct{} |
| 197 |
out := protoimpl.TypeBuilder{ |
| 198 |
File: protoimpl.DescBuilder{ |
| 199 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 200 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc)), |
| 201 |
NumEnums: 0, |
| 202 |
NumMessages: 3, |
| 203 |
NumExtensions: 0, |
| 204 |
NumServices: 0, |
| 205 |
}, |
| 206 |
GoTypes: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes, |
| 207 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_depIdxs, |
| 208 |
MessageInfos: file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes, |
| 209 |
}.Build() |
| 210 |
File_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto = out.File |
| 211 |
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes = nil |
| 212 |
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_depIdxs = nil |
| 213 |
} |