| 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/import_public/sub/b.proto |
| 7 |
|
| 8 |
package sub |
| 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 M2 struct { |
| 19 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 20 |
unknownFields protoimpl.UnknownFields |
| 21 |
sizeCache protoimpl.SizeCache |
| 22 |
} |
| 23 |
|
| 24 |
func (x *M2) Reset() { |
| 25 |
*x = M2{} |
| 26 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0] |
| 27 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 28 |
ms.StoreMessageInfo(mi) |
| 29 |
} |
| 30 |
|
| 31 |
func (x *M2) String() string { |
| 32 |
return protoimpl.X.MessageStringOf(x) |
| 33 |
} |
| 34 |
|
| 35 |
func (*M2) ProtoMessage() {} |
| 36 |
|
| 37 |
func (x *M2) ProtoReflect() protoreflect.Message { |
| 38 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0] |
| 39 |
if x != nil { |
| 40 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 41 |
if ms.LoadMessageInfo() == nil { |
| 42 |
ms.StoreMessageInfo(mi) |
| 43 |
} |
| 44 |
return ms |
| 45 |
} |
| 46 |
return mi.MessageOf(x) |
| 47 |
} |
| 48 |
|
| 49 |
// Deprecated: Use M2.ProtoReflect.Descriptor instead. |
| 50 |
func (*M2) Descriptor() ([]byte, []int) { |
| 51 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescGZIP(), []int{0} |
| 52 |
} |
| 53 |
|
| 54 |
var File_cmd_protoc_gen_go_testdata_import_public_sub_b_proto protoreflect.FileDescriptor |
| 55 |
|
| 56 |
const file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc = "" + |
| 57 |
"\n" + |
| 58 |
"4cmd/protoc-gen-go/testdata/import_public/sub/b.proto\x12 goproto.protoc.import_public.sub\"\x04\n" + |
| 59 |
"\x02M2BIZGgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub" |
| 60 |
|
| 61 |
var ( |
| 62 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescOnce sync.Once |
| 63 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescData []byte |
| 64 |
) |
| 65 |
|
| 66 |
func file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescGZIP() []byte { |
| 67 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescOnce.Do(func() { |
| 68 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc))) |
| 69 |
}) |
| 70 |
return file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescData |
| 71 |
} |
| 72 |
|
| 73 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 74 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_goTypes = []any{ |
| 75 |
(*M2)(nil), // 0: goproto.protoc.import_public.sub.M2 |
| 76 |
} |
| 77 |
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_depIdxs = []int32{ |
| 78 |
0, // [0:0] is the sub-list for method output_type |
| 79 |
0, // [0:0] is the sub-list for method input_type |
| 80 |
0, // [0:0] is the sub-list for extension type_name |
| 81 |
0, // [0:0] is the sub-list for extension extendee |
| 82 |
0, // [0:0] is the sub-list for field type_name |
| 83 |
} |
| 84 |
|
| 85 |
func init() { file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init() } |
| 86 |
func file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init() { |
| 87 |
if File_cmd_protoc_gen_go_testdata_import_public_sub_b_proto != nil { |
| 88 |
return |
| 89 |
} |
| 90 |
type x struct{} |
| 91 |
out := protoimpl.TypeBuilder{ |
| 92 |
File: protoimpl.DescBuilder{ |
| 93 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 94 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc)), |
| 95 |
NumEnums: 0, |
| 96 |
NumMessages: 1, |
| 97 |
NumExtensions: 0, |
| 98 |
NumServices: 0, |
| 99 |
}, |
| 100 |
GoTypes: file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_goTypes, |
| 101 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_depIdxs, |
| 102 |
MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes, |
| 103 |
}.Build() |
| 104 |
File_cmd_protoc_gen_go_testdata_import_public_sub_b_proto = out.File |
| 105 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_goTypes = nil |
| 106 |
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_depIdxs = nil |
| 107 |
} |