| 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/imports/test_import_all.proto |
| 7 |
|
| 8 |
package imports |
| 9 |
|
| 10 |
import ( |
| 11 |
fmt "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt" |
| 12 |
test_a_1 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1" |
| 13 |
_ "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2" |
| 14 |
test_b_1 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1" |
| 15 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 16 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 17 |
reflect "reflect" |
| 18 |
sync "sync" |
| 19 |
unsafe "unsafe" |
| 20 |
) |
| 21 |
|
| 22 |
type All struct { |
| 23 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 24 |
Am1 *test_a_1.M1 `protobuf:"bytes,1,opt,name=am1,proto3" json:"am1,omitempty"` |
| 25 |
Am2 *test_a_1.M2 `protobuf:"bytes,2,opt,name=am2,proto3" json:"am2,omitempty"` |
| 26 |
Bm1 *test_b_1.M1 `protobuf:"bytes,5,opt,name=bm1,proto3" json:"bm1,omitempty"` |
| 27 |
Bm2 *test_b_1.M2 `protobuf:"bytes,6,opt,name=bm2,proto3" json:"bm2,omitempty"` |
| 28 |
Fmt *fmt.M `protobuf:"bytes,7,opt,name=fmt,proto3" json:"fmt,omitempty"` |
| 29 |
unknownFields protoimpl.UnknownFields |
| 30 |
sizeCache protoimpl.SizeCache |
| 31 |
} |
| 32 |
|
| 33 |
func (x *All) Reset() { |
| 34 |
*x = All{} |
| 35 |
mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] |
| 36 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 37 |
ms.StoreMessageInfo(mi) |
| 38 |
} |
| 39 |
|
| 40 |
func (x *All) String() string { |
| 41 |
return protoimpl.X.MessageStringOf(x) |
| 42 |
} |
| 43 |
|
| 44 |
func (*All) ProtoMessage() {} |
| 45 |
|
| 46 |
func (x *All) ProtoReflect() protoreflect.Message { |
| 47 |
mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] |
| 48 |
if x != nil { |
| 49 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 50 |
if ms.LoadMessageInfo() == nil { |
| 51 |
ms.StoreMessageInfo(mi) |
| 52 |
} |
| 53 |
return ms |
| 54 |
} |
| 55 |
return mi.MessageOf(x) |
| 56 |
} |
| 57 |
|
| 58 |
// Deprecated: Use All.ProtoReflect.Descriptor instead. |
| 59 |
func (*All) Descriptor() ([]byte, []int) { |
| 60 |
return file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescGZIP(), []int{0} |
| 61 |
} |
| 62 |
|
| 63 |
func (x *All) GetAm1() *test_a_1.M1 { |
| 64 |
if x != nil { |
| 65 |
return x.Am1 |
| 66 |
} |
| 67 |
return nil |
| 68 |
} |
| 69 |
|
| 70 |
func (x *All) GetAm2() *test_a_1.M2 { |
| 71 |
if x != nil { |
| 72 |
return x.Am2 |
| 73 |
} |
| 74 |
return nil |
| 75 |
} |
| 76 |
|
| 77 |
func (x *All) GetBm1() *test_b_1.M1 { |
| 78 |
if x != nil { |
| 79 |
return x.Bm1 |
| 80 |
} |
| 81 |
return nil |
| 82 |
} |
| 83 |
|
| 84 |
func (x *All) GetBm2() *test_b_1.M2 { |
| 85 |
if x != nil { |
| 86 |
return x.Bm2 |
| 87 |
} |
| 88 |
return nil |
| 89 |
} |
| 90 |
|
| 91 |
func (x *All) GetFmt() *fmt.M { |
| 92 |
if x != nil { |
| 93 |
return x.Fmt |
| 94 |
} |
| 95 |
return nil |
| 96 |
} |
| 97 |
|
| 98 |
var File_cmd_protoc_gen_go_testdata_imports_test_import_all_proto protoreflect.FileDescriptor |
| 99 |
|
| 100 |
const file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc = "" + |
| 101 |
"\n" + |
| 102 |
"8cmd/protoc-gen-go/testdata/imports/test_import_all.proto\x12\x04test\x1a.cmd/protoc-gen-go/testdata/imports/fmt/m.proto\x1a4cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto\x1a4cmd/protoc-gen-go/testdata/imports/test_a_1/m2.proto\x1a4cmd/protoc-gen-go/testdata/imports/test_a_2/m3.proto\x1a4cmd/protoc-gen-go/testdata/imports/test_a_2/m4.proto\x1a4cmd/protoc-gen-go/testdata/imports/test_b_1/m1.proto\x1a4cmd/protoc-gen-go/testdata/imports/test_b_1/m2.proto\"\xa3\x01\n" + |
| 103 |
"\x03All\x12\x1c\n" + |
| 104 |
"\x03am1\x18\x01 \x01(\v2\n" + |
| 105 |
".test.a.M1R\x03am1\x12\x1c\n" + |
| 106 |
"\x03am2\x18\x02 \x01(\v2\n" + |
| 107 |
".test.a.M2R\x03am2\x12\"\n" + |
| 108 |
"\x03bm1\x18\x05 \x01(\v2\x10.test.b.part1.M1R\x03bm1\x12\"\n" + |
| 109 |
"\x03bm2\x18\x06 \x01(\v2\x10.test.b.part2.M2R\x03bm2\x12\x18\n" + |
| 110 |
"\x03fmt\x18\a \x01(\v2\x06.fmt.MR\x03fmtB?Z=google.golang.org/protobuf/cmd/protoc-gen-go/testdata/importsb\x06proto3" |
| 111 |
|
| 112 |
var ( |
| 113 |
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescOnce sync.Once |
| 114 |
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData []byte |
| 115 |
) |
| 116 |
|
| 117 |
func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescGZIP() []byte { |
| 118 |
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescOnce.Do(func() { |
| 119 |
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc))) |
| 120 |
}) |
| 121 |
return file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData |
| 122 |
} |
| 123 |
|
| 124 |
var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 125 |
var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes = []any{ |
| 126 |
(*All)(nil), // 0: test.All |
| 127 |
(*test_a_1.M1)(nil), // 1: test.a.M1 |
| 128 |
(*test_a_1.M2)(nil), // 2: test.a.M2 |
| 129 |
(*test_b_1.M1)(nil), // 3: test.b.part1.M1 |
| 130 |
(*test_b_1.M2)(nil), // 4: test.b.part2.M2 |
| 131 |
(*fmt.M)(nil), // 5: fmt.M |
| 132 |
} |
| 133 |
var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_depIdxs = []int32{ |
| 134 |
1, // 0: test.All.am1:type_name -> test.a.M1 |
| 135 |
2, // 1: test.All.am2:type_name -> test.a.M2 |
| 136 |
3, // 2: test.All.bm1:type_name -> test.b.part1.M1 |
| 137 |
4, // 3: test.All.bm2:type_name -> test.b.part2.M2 |
| 138 |
5, // 4: test.All.fmt:type_name -> fmt.M |
| 139 |
5, // [5:5] is the sub-list for method output_type |
| 140 |
5, // [5:5] is the sub-list for method input_type |
| 141 |
5, // [5:5] is the sub-list for extension type_name |
| 142 |
5, // [5:5] is the sub-list for extension extendee |
| 143 |
0, // [0:5] is the sub-list for field type_name |
| 144 |
} |
| 145 |
|
| 146 |
func init() { file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_init() } |
| 147 |
func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_init() { |
| 148 |
if File_cmd_protoc_gen_go_testdata_imports_test_import_all_proto != nil { |
| 149 |
return |
| 150 |
} |
| 151 |
type x struct{} |
| 152 |
out := protoimpl.TypeBuilder{ |
| 153 |
File: protoimpl.DescBuilder{ |
| 154 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 155 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc)), |
| 156 |
NumEnums: 0, |
| 157 |
NumMessages: 1, |
| 158 |
NumExtensions: 0, |
| 159 |
NumServices: 0, |
| 160 |
}, |
| 161 |
GoTypes: file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes, |
| 162 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_depIdxs, |
| 163 |
MessageInfos: file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes, |
| 164 |
}.Build() |
| 165 |
File_cmd_protoc_gen_go_testdata_imports_test_import_all_proto = out.File |
| 166 |
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes = nil |
| 167 |
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_depIdxs = nil |
| 168 |
} |