1
2
3
4
5
6
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 )
17
18 type Local struct {
19 state protoimpl.MessageState
20 sizeCache protoimpl.SizeCache
21 unknownFields protoimpl.UnknownFields
22
23 M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"`
24 E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"`
25 }
26
27 func (x *Local) Reset() {
28 *x = Local{}
29 if protoimpl.UnsafeEnabled {
30 mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0]
31 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
32 ms.StoreMessageInfo(mi)
33 }
34 }
35
36 func (x *Local) String() string {
37 return protoimpl.X.MessageStringOf(x)
38 }
39
40 func (*Local) ProtoMessage() {}
41
42 func (x *Local) ProtoReflect() protoreflect.Message {
43 mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0]
44 if protoimpl.UnsafeEnabled && x != nil {
45 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
46 if ms.LoadMessageInfo() == nil {
47 ms.StoreMessageInfo(mi)
48 }
49 return ms
50 }
51 return mi.MessageOf(x)
52 }
53
54
55 func (*Local) Descriptor() ([]byte, []int) {
56 return file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescGZIP(), []int{0}
57 }
58
59 func (x *Local) GetM() *sub.M {
60 if x != nil {
61 return x.M
62 }
63 return nil
64 }
65
66 func (x *Local) GetE() sub.E {
67 if x != nil && x.E != nil {
68 return *x.E
69 }
70 return sub.E(0)
71 }
72
73 var File_cmd_protoc_gen_go_testdata_import_public_b_proto protoreflect.FileDescriptor
74
75 var file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc = []byte{
76 0x0a, 0x30, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
77 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
78 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f,
79 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
80 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
81 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
82 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
83 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x61,
84 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6d, 0x0a, 0x05, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x12,
85 0x31, 0x0a, 0x01, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x70,
86 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f,
87 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x52,
88 0x01, 0x6d, 0x12, 0x31, 0x0a, 0x01, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e,
89 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69,
90 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62,
91 0x2e, 0x45, 0x52, 0x01, 0x65, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
92 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
93 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67,
94 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69,
95 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
96 }
97
98 var (
99 file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescOnce sync.Once
100 file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData = file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc
101 )
102
103 func file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescGZIP() []byte {
104 file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescOnce.Do(func() {
105 file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData)
106 })
107 return file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescData
108 }
109
110 var file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
111 var file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes = []interface{}{
112 (*Local)(nil),
113 (*sub.M)(nil),
114 (sub.E)(0),
115 }
116 var file_cmd_protoc_gen_go_testdata_import_public_b_proto_depIdxs = []int32{
117 1,
118 2,
119 2,
120 2,
121 2,
122 2,
123 0,
124 }
125
126 func init() { file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() }
127 func file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() {
128 if File_cmd_protoc_gen_go_testdata_import_public_b_proto != nil {
129 return
130 }
131 if !protoimpl.UnsafeEnabled {
132 file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
133 switch v := v.(*Local); i {
134 case 0:
135 return &v.state
136 case 1:
137 return &v.sizeCache
138 case 2:
139 return &v.unknownFields
140 default:
141 return nil
142 }
143 }
144 }
145 type x struct{}
146 out := protoimpl.TypeBuilder{
147 File: protoimpl.DescBuilder{
148 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
149 RawDescriptor: file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc,
150 NumEnums: 0,
151 NumMessages: 1,
152 NumExtensions: 0,
153 NumServices: 0,
154 },
155 GoTypes: file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes,
156 DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_b_proto_depIdxs,
157 MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes,
158 }.Build()
159 File_cmd_protoc_gen_go_testdata_import_public_b_proto = out.File
160 file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc = nil
161 file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes = nil
162 file_cmd_protoc_gen_go_testdata_import_public_b_proto_depIdxs = nil
163 }
164
View as plain text