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/c.proto
7
8package import_public
9
10import (
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
18type UsingPublicImport struct {
19	state         protoimpl.MessageState
20	sizeCache     protoimpl.SizeCache
21	unknownFields protoimpl.UnknownFields
22
23	// Local is declared in b.proto, which is a public import of a.proto.
24	Local *Local `protobuf:"bytes,1,opt,name=local" json:"local,omitempty"`
25	// Sub2Message is declared in sub2/a.proto, which is a public import of
26	// sub/a.proto, which is a public import of a.proto.
27	Sub2 *sub2.Sub2Message `protobuf:"bytes,2,opt,name=sub2" json:"sub2,omitempty"` // declared in sub2/a.proto
28}
29
30func (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
39func (x *UsingPublicImport) String() string {
40	return protoimpl.X.MessageStringOf(x)
41}
42
43func (*UsingPublicImport) ProtoMessage() {}
44
45func (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// Deprecated: Use UsingPublicImport.ProtoReflect.Descriptor instead.
58func (*UsingPublicImport) Descriptor() ([]byte, []int) {
59	return file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescGZIP(), []int{0}
60}
61
62func (x *UsingPublicImport) GetLocal() *Local {
63	if x != nil {
64		return x.Local
65	}
66	return nil
67}
68
69func (x *UsingPublicImport) GetSub2() *sub2.Sub2Message {
70	if x != nil {
71		return x.Sub2
72	}
73	return nil
74}
75
76var File_cmd_protoc_gen_go_testdata_import_public_c_proto protoreflect.FileDescriptor
77
78var 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
103var (
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
108func 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
115var file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
116var file_cmd_protoc_gen_go_testdata_import_public_c_proto_goTypes = []interface{}{
117	(*UsingPublicImport)(nil), // 0: goproto.protoc.import_public.UsingPublicImport
118	(*Local)(nil),             // 1: goproto.protoc.import_public.Local
119	(*sub2.Sub2Message)(nil),  // 2: goproto.protoc.import_public.sub2.Sub2Message
120}
121var file_cmd_protoc_gen_go_testdata_import_public_c_proto_depIdxs = []int32{
122	1, // 0: goproto.protoc.import_public.UsingPublicImport.local:type_name -> goproto.protoc.import_public.Local
123	2, // 1: goproto.protoc.import_public.UsingPublicImport.sub2:type_name -> goproto.protoc.import_public.sub2.Sub2Message
124	2, // [2:2] is the sub-list for method output_type
125	2, // [2:2] is the sub-list for method input_type
126	2, // [2:2] is the sub-list for extension type_name
127	2, // [2:2] is the sub-list for extension extendee
128	0, // [0:2] is the sub-list for field type_name
129}
130
131func init() { file_cmd_protoc_gen_go_testdata_import_public_c_proto_init() }
132func 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