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