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 8package imports 9 10import ( 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) 20 21type All struct { 22 state protoimpl.MessageState 23 sizeCache protoimpl.SizeCache 24 unknownFields protoimpl.UnknownFields 25 26 Am1 *test_a_1.M1 `protobuf:"bytes,1,opt,name=am1,proto3" json:"am1,omitempty"` 27 Am2 *test_a_1.M2 `protobuf:"bytes,2,opt,name=am2,proto3" json:"am2,omitempty"` 28 Bm1 *test_b_1.M1 `protobuf:"bytes,5,opt,name=bm1,proto3" json:"bm1,omitempty"` 29 Bm2 *test_b_1.M2 `protobuf:"bytes,6,opt,name=bm2,proto3" json:"bm2,omitempty"` 30 Fmt *fmt.M `protobuf:"bytes,7,opt,name=fmt,proto3" json:"fmt,omitempty"` 31} 32 33func (x *All) Reset() { 34 *x = All{} 35 if protoimpl.UnsafeEnabled { 36 mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] 37 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 38 ms.StoreMessageInfo(mi) 39 } 40} 41 42func (x *All) String() string { 43 return protoimpl.X.MessageStringOf(x) 44} 45 46func (*All) ProtoMessage() {} 47 48func (x *All) ProtoReflect() protoreflect.Message { 49 mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] 50 if protoimpl.UnsafeEnabled && x != nil { 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 if ms.LoadMessageInfo() == nil { 53 ms.StoreMessageInfo(mi) 54 } 55 return ms 56 } 57 return mi.MessageOf(x) 58} 59 60// Deprecated: Use All.ProtoReflect.Descriptor instead. 61func (*All) Descriptor() ([]byte, []int) { 62 return file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescGZIP(), []int{0} 63} 64 65func (x *All) GetAm1() *test_a_1.M1 { 66 if x != nil { 67 return x.Am1 68 } 69 return nil 70} 71 72func (x *All) GetAm2() *test_a_1.M2 { 73 if x != nil { 74 return x.Am2 75 } 76 return nil 77} 78 79func (x *All) GetBm1() *test_b_1.M1 { 80 if x != nil { 81 return x.Bm1 82 } 83 return nil 84} 85 86func (x *All) GetBm2() *test_b_1.M2 { 87 if x != nil { 88 return x.Bm2 89 } 90 return nil 91} 92 93func (x *All) GetFmt() *fmt.M { 94 if x != nil { 95 return x.Fmt 96 } 97 return nil 98} 99 100var File_cmd_protoc_gen_go_testdata_imports_test_import_all_proto protoreflect.FileDescriptor 101 102var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc = []byte{ 103 0x0a, 0x38, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 104 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 105 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 106 0x5f, 0x61, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 107 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 108 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 109 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x2f, 0x6d, 0x31, 110 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 111 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 112 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 113 0x61, 0x5f, 0x31, 0x2f, 0x6d, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x63, 0x6d, 114 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 115 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 116 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x32, 0x2f, 0x6d, 0x33, 0x2e, 0x70, 0x72, 0x6f, 117 0x74, 0x6f, 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 118 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 119 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x32, 0x2f, 120 0x6d, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 121 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 122 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 123 0x74, 0x5f, 0x62, 0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 124 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 125 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 126 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x62, 0x5f, 0x31, 0x2f, 0x6d, 0x32, 0x2e, 0x70, 127 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 128 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 129 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x66, 0x6d, 0x74, 0x2f, 0x6d, 0x2e, 0x70, 130 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x01, 0x0a, 0x03, 0x41, 0x6c, 0x6c, 0x12, 0x1c, 0x0a, 0x03, 131 0x61, 0x6d, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x65, 0x73, 0x74, 132 0x2e, 0x61, 0x2e, 0x4d, 0x31, 0x52, 0x03, 0x61, 0x6d, 0x31, 0x12, 0x1c, 0x0a, 0x03, 0x61, 0x6d, 133 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 134 0x2e, 0x4d, 0x32, 0x52, 0x03, 0x61, 0x6d, 0x32, 0x12, 0x22, 0x0a, 0x03, 0x62, 0x6d, 0x31, 0x18, 135 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x62, 0x2e, 0x70, 136 0x61, 0x72, 0x74, 0x31, 0x2e, 0x4d, 0x31, 0x52, 0x03, 0x62, 0x6d, 0x31, 0x12, 0x22, 0x0a, 0x03, 137 0x62, 0x6d, 0x32, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x65, 0x73, 0x74, 138 0x2e, 0x62, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x32, 0x2e, 0x4d, 0x32, 0x52, 0x03, 0x62, 0x6d, 0x32, 139 0x12, 0x18, 0x0a, 0x03, 0x66, 0x6d, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 140 0x66, 0x6d, 0x74, 0x2e, 0x4d, 0x52, 0x03, 0x66, 0x6d, 0x74, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x6f, 141 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 142 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 143 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 144 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 145 0x74, 0x6f, 0x33, 146} 147 148var ( 149 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescOnce sync.Once 150 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData = file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc 151) 152 153func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescGZIP() []byte { 154 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescOnce.Do(func() { 155 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData) 156 }) 157 return file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescData 158} 159 160var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 161var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes = []interface{}{ 162 (*All)(nil), // 0: test.All 163 (*test_a_1.M1)(nil), // 1: test.a.M1 164 (*test_a_1.M2)(nil), // 2: test.a.M2 165 (*test_b_1.M1)(nil), // 3: test.b.part1.M1 166 (*test_b_1.M2)(nil), // 4: test.b.part2.M2 167 (*fmt.M)(nil), // 5: fmt.M 168} 169var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_depIdxs = []int32{ 170 1, // 0: test.All.am1:type_name -> test.a.M1 171 2, // 1: test.All.am2:type_name -> test.a.M2 172 3, // 2: test.All.bm1:type_name -> test.b.part1.M1 173 4, // 3: test.All.bm2:type_name -> test.b.part2.M2 174 5, // 4: test.All.fmt:type_name -> fmt.M 175 5, // [5:5] is the sub-list for method output_type 176 5, // [5:5] is the sub-list for method input_type 177 5, // [5:5] is the sub-list for extension type_name 178 5, // [5:5] is the sub-list for extension extendee 179 0, // [0:5] is the sub-list for field type_name 180} 181 182func init() { file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_init() } 183func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_init() { 184 if File_cmd_protoc_gen_go_testdata_imports_test_import_all_proto != nil { 185 return 186 } 187 if !protoimpl.UnsafeEnabled { 188 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 189 switch v := v.(*All); 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_imports_test_import_all_proto_rawDesc, 206 NumEnums: 0, 207 NumMessages: 1, 208 NumExtensions: 0, 209 NumServices: 0, 210 }, 211 GoTypes: file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes, 212 DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_depIdxs, 213 MessageInfos: file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes, 214 }.Build() 215 File_cmd_protoc_gen_go_testdata_imports_test_import_all_proto = out.File 216 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc = nil 217 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes = nil 218 file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_depIdxs = nil 219} 220