| 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 |
|
| 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 |
unsafe "unsafe" |
| 17 |
) |
| 18 |
|
| 19 |
type UsingPublicImport struct { |
| 20 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 21 |
// Local is declared in b.proto, which is a public import of a.proto. |
| 22 |
Local *Local `protobuf:"bytes,1,opt,name=local" json:"local,omitempty"` |
| 23 |
// Sub2Message is declared in sub2/a.proto, which is a public import of |
| 24 |
// sub/a.proto, which is a public import of a.proto. |
| 25 |
Sub2 *sub2.Sub2Message `protobuf:"bytes,2,opt,name=sub2" json:"sub2,omitempty"` // declared in sub2/a.proto |
| 26 |
unknownFields protoimpl.UnknownFields |
| 27 |
sizeCache protoimpl.SizeCache |
| 28 |
} |
| 29 |
|
| 30 |
func (x *UsingPublicImport) Reset() { |
| 31 |
*x = UsingPublicImport{} |
| 32 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0] |
| 33 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 34 |
ms.StoreMessageInfo(mi) |
| 35 |
} |
| 36 |
|
| 37 |
func (x *UsingPublicImport) String() string { |
| 38 |
return protoimpl.X.MessageStringOf(x) |
| 39 |
} |
| 40 |
|
| 41 |
func (*UsingPublicImport) ProtoMessage() {} |
| 42 |
|
| 43 |
func (x *UsingPublicImport) ProtoReflect() protoreflect.Message { |
| 44 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0] |
| 45 |
if x != nil { |
| 46 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 47 |
if ms.LoadMessageInfo() == nil { |
| 48 |
ms.StoreMessageInfo(mi) |
| 49 |
} |
| 50 |
return ms |
| 51 |
} |
| 52 |
return mi.MessageOf(x) |
| 53 |
} |
| 54 |
|
| 55 |
// Deprecated: Use UsingPublicImport.ProtoReflect.Descriptor instead. |
| 56 |
func (*UsingPublicImport) Descriptor() ([]byte, []int) { |
| 57 |
return file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescGZIP(), []int{0} |
| 58 |
} |
| 59 |
|
| 60 |
func (x *UsingPublicImport) GetLocal() *Local { |
| 61 |
if x != nil { |
| 62 |
return x.Local |
| 63 |
} |
| 64 |
return nil |
| 65 |
} |
| 66 |
|
| 67 |
func (x *UsingPublicImport) GetSub2() *sub2.Sub2Message { |
| 68 |
if x != nil { |
| 69 |
return x.Sub2 |
| 70 |
} |
| 71 |
return nil |
| 72 |
} |
| 73 |
|
| 74 |
var File_cmd_protoc_gen_go_testdata_import_public_c_proto protoreflect.FileDescriptor |
| 75 |
|
| 76 |
const file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc = "" + |
| 77 |
"\n" + |
| 78 |
"0cmd/protoc-gen-go/testdata/import_public/c.proto\x12\x1cgoproto.protoc.import_public\x1a0cmd/protoc-gen-go/testdata/import_public/a.proto\"\x92\x01\n" + |
| 79 |
"\x11UsingPublicImport\x129\n" + |
| 80 |
"\x05local\x18\x01 \x01(\v2#.goproto.protoc.import_public.LocalR\x05local\x12B\n" + |
| 81 |
"\x04sub2\x18\x02 \x01(\v2..goproto.protoc.import_public.sub2.Sub2MessageR\x04sub2BEZCgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public" |
| 82 |
|
| 83 |
var ( |
| 84 |
file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescOnce sync.Once |
| 85 |
file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescData []byte |
| 86 |
) |
| 87 |
|
| 88 |
func file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescGZIP() []byte { |
| 89 |
file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescOnce.Do(func() { |
| 90 |
file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc))) |
| 91 |
}) |
| 92 |
return file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescData |
| 93 |
} |
| 94 |
|
| 95 |
var file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 96 |
var file_cmd_protoc_gen_go_testdata_import_public_c_proto_goTypes = []any{ |
| 97 |
(*UsingPublicImport)(nil), // 0: goproto.protoc.import_public.UsingPublicImport |
| 98 |
(*Local)(nil), // 1: goproto.protoc.import_public.Local |
| 99 |
(*sub2.Sub2Message)(nil), // 2: goproto.protoc.import_public.sub2.Sub2Message |
| 100 |
} |
| 101 |
var file_cmd_protoc_gen_go_testdata_import_public_c_proto_depIdxs = []int32{ |
| 102 |
1, // 0: goproto.protoc.import_public.UsingPublicImport.local:type_name -> goproto.protoc.import_public.Local |
| 103 |
2, // 1: goproto.protoc.import_public.UsingPublicImport.sub2:type_name -> goproto.protoc.import_public.sub2.Sub2Message |
| 104 |
2, // [2:2] is the sub-list for method output_type |
| 105 |
2, // [2:2] is the sub-list for method input_type |
| 106 |
2, // [2:2] is the sub-list for extension type_name |
| 107 |
2, // [2:2] is the sub-list for extension extendee |
| 108 |
0, // [0:2] is the sub-list for field type_name |
| 109 |
} |
| 110 |
|
| 111 |
func init() { file_cmd_protoc_gen_go_testdata_import_public_c_proto_init() } |
| 112 |
func file_cmd_protoc_gen_go_testdata_import_public_c_proto_init() { |
| 113 |
if File_cmd_protoc_gen_go_testdata_import_public_c_proto != nil { |
| 114 |
return |
| 115 |
} |
| 116 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() |
| 117 |
type x struct{} |
| 118 |
out := protoimpl.TypeBuilder{ |
| 119 |
File: protoimpl.DescBuilder{ |
| 120 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 121 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc)), |
| 122 |
NumEnums: 0, |
| 123 |
NumMessages: 1, |
| 124 |
NumExtensions: 0, |
| 125 |
NumServices: 0, |
| 126 |
}, |
| 127 |
GoTypes: file_cmd_protoc_gen_go_testdata_import_public_c_proto_goTypes, |
| 128 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_c_proto_depIdxs, |
| 129 |
MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes, |
| 130 |
}.Build() |
| 131 |
File_cmd_protoc_gen_go_testdata_import_public_c_proto = out.File |
| 132 |
file_cmd_protoc_gen_go_testdata_import_public_c_proto_goTypes = nil |
| 133 |
file_cmd_protoc_gen_go_testdata_import_public_c_proto_depIdxs = nil |
| 134 |
} |