| 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/b.proto |
| 7 |
|
| 8 |
package import_public |
| 9 |
|
| 10 |
import ( |
| 11 |
sub "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub" |
| 12 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 |
reflect "reflect" |
| 15 |
sync "sync" |
| 16 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
type Local struct { |
| 20 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 21 |
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` |
| 22 |
E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"` |
| 23 |
unknownFields protoimpl.UnknownFields |
| 24 |
sizeCache protoimpl.SizeCache |
| 25 |
} |
| 26 |
|
| 27 |
func (x *Local) Reset() { |
| 28 |
*x = Local{} |
| 29 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0] |
| 30 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 31 |
ms.StoreMessageInfo(mi) |
| 32 |
} |
| 33 |
|
| 34 |
func (x *Local) String() string { |
| 35 |
return protoimpl.X.MessageStringOf(x) |
| 36 |
} |
| 37 |
|
| 38 |
func (*Local) ProtoMessage() {} |
| 39 |
|
| 40 |
func (x *Local) ProtoReflect() protoreflect.Message { |
| 41 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0] |
| 42 |
if x != nil { |
| 43 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 44 |
if ms.LoadMessageInfo() == nil { |
| 45 |
ms.StoreMessageInfo(mi) |
| 46 |
} |
| 47 |
return ms |
| 48 |
} |
| 49 |
return mi.MessageOf(x) |
| 50 |
} |
| 51 |
|
| 52 |
// Deprecated: Use Local.ProtoReflect.Descriptor instead. |
| 53 |
func (*Local) Descriptor() ([]byte, []int) { |
| 54 |
return file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescGZIP(), []int{0} |
| 55 |
} |
| 56 |
|
| 57 |
func (x *Local) GetM() *sub.M { |
| 58 |
if x != nil { |
| 59 |
return x.M |
| 60 |
} |
| 61 |
return nil |
| 62 |
} |
| 63 |
|
| 64 |
func (x *Local) GetE() sub.E { |
| 65 |
if x != nil && x.E != nil { |
| 66 |
return *x.E |
| 67 |
} |
| 68 |
return sub.E(0) |
| 69 |
} |
| 70 |
|
| 71 |
var File_cmd_protoc_gen_go_testdata_import_public_b_proto protoreflect.FileDescriptor |
| 72 |
|
| 73 |
const file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc = "" + |
| 74 |
"\n" + |
| 75 |
"0cmd/protoc-gen-go/testdata/import_public/b.proto\x12\x1cgoproto.protoc.import_public\x1a4cmd/protoc-gen-go/testdata/import_public/sub/a.proto\"m\n" + |
| 76 |
"\x05Local\x121\n" + |
| 77 |
"\x01m\x18\x01 \x01(\v2#.goproto.protoc.import_public.sub.MR\x01m\x121\n" + |
| 78 |
"\x01e\x18\x02 \x01(\x0e2#.goproto.protoc.import_public.sub.ER\x01eBEZCgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public" |
| 79 |
|
| 80 |
var ( |
| 81 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescOnce sync.Once |
| 82 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData []byte |
| 83 |
) |
| 84 |
|
| 85 |
func file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescGZIP() []byte { |
| 86 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescOnce.Do(func() { |
| 87 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc))) |
| 88 |
}) |
| 89 |
return file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData |
| 90 |
} |
| 91 |
|
| 92 |
var file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 93 |
var file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes = []any{ |
| 94 |
(*Local)(nil), // 0: goproto.protoc.import_public.Local |
| 95 |
(*sub.M)(nil), // 1: goproto.protoc.import_public.sub.M |
| 96 |
(sub.E)(0), // 2: goproto.protoc.import_public.sub.E |
| 97 |
} |
| 98 |
var file_cmd_protoc_gen_go_testdata_import_public_b_proto_depIdxs = []int32{ |
| 99 |
1, // 0: goproto.protoc.import_public.Local.m:type_name -> goproto.protoc.import_public.sub.M |
| 100 |
2, // 1: goproto.protoc.import_public.Local.e:type_name -> goproto.protoc.import_public.sub.E |
| 101 |
2, // [2:2] is the sub-list for method output_type |
| 102 |
2, // [2:2] is the sub-list for method input_type |
| 103 |
2, // [2:2] is the sub-list for extension type_name |
| 104 |
2, // [2:2] is the sub-list for extension extendee |
| 105 |
0, // [0:2] is the sub-list for field type_name |
| 106 |
} |
| 107 |
|
| 108 |
func init() { file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() } |
| 109 |
func file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() { |
| 110 |
if File_cmd_protoc_gen_go_testdata_import_public_b_proto != nil { |
| 111 |
return |
| 112 |
} |
| 113 |
type x struct{} |
| 114 |
out := protoimpl.TypeBuilder{ |
| 115 |
File: protoimpl.DescBuilder{ |
| 116 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 117 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc)), |
| 118 |
NumEnums: 0, |
| 119 |
NumMessages: 1, |
| 120 |
NumExtensions: 0, |
| 121 |
NumServices: 0, |
| 122 |
}, |
| 123 |
GoTypes: file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes, |
| 124 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_b_proto_depIdxs, |
| 125 |
MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes, |
| 126 |
}.Build() |
| 127 |
File_cmd_protoc_gen_go_testdata_import_public_b_proto = out.File |
| 128 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes = nil |
| 129 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_depIdxs = nil |
| 130 |
} |