| 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/a.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 |
// Symbols defined in public import of cmd/protoc-gen-go/testdata/import_public/sub/a.proto. |
| 20 |
|
| 21 |
type E = sub.E |
| 22 |
|
| 23 |
const E_ZERO = sub.E_ZERO |
| 24 |
|
| 25 |
var E_name = sub.E_name |
| 26 |
var E_value = sub.E_value |
| 27 |
|
| 28 |
type M_Subenum = sub.M_Subenum |
| 29 |
|
| 30 |
const M_M_ZERO = sub.M_M_ZERO |
| 31 |
|
| 32 |
var M_Subenum_name = sub.M_Subenum_name |
| 33 |
var M_Subenum_value = sub.M_Subenum_value |
| 34 |
|
| 35 |
type M_Submessage_Submessage_Subenum = sub.M_Submessage_Submessage_Subenum |
| 36 |
|
| 37 |
const M_Submessage_M_SUBMESSAGE_ZERO = sub.M_Submessage_M_SUBMESSAGE_ZERO |
| 38 |
|
| 39 |
var M_Submessage_Submessage_Subenum_name = sub.M_Submessage_Submessage_Subenum_name |
| 40 |
var M_Submessage_Submessage_Subenum_value = sub.M_Submessage_Submessage_Subenum_value |
| 41 |
|
| 42 |
type M = sub.M |
| 43 |
|
| 44 |
const Default_M_S = sub.Default_M_S |
| 45 |
|
| 46 |
var Default_M_B = sub.Default_M_B |
| 47 |
var Default_M_F = sub.Default_M_F |
| 48 |
|
| 49 |
type M_OneofInt32 = sub.M_OneofInt32 |
| 50 |
type M_OneofInt64 = sub.M_OneofInt64 |
| 51 |
type M_Submessage = sub.M_Submessage |
| 52 |
type M_Submessage_SubmessageOneofInt32 = sub.M_Submessage_SubmessageOneofInt32 |
| 53 |
type M_Submessage_SubmessageOneofInt64 = sub.M_Submessage_SubmessageOneofInt64 |
| 54 |
|
| 55 |
var E_ExtensionField = sub.E_ExtensionField |
| 56 |
|
| 57 |
type Public struct { |
| 58 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 59 |
M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` |
| 60 |
E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.protoc.import_public.sub.E" json:"e,omitempty"` |
| 61 |
Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"` |
| 62 |
unknownFields protoimpl.UnknownFields |
| 63 |
sizeCache protoimpl.SizeCache |
| 64 |
} |
| 65 |
|
| 66 |
func (x *Public) Reset() { |
| 67 |
*x = Public{} |
| 68 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0] |
| 69 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 70 |
ms.StoreMessageInfo(mi) |
| 71 |
} |
| 72 |
|
| 73 |
func (x *Public) String() string { |
| 74 |
return protoimpl.X.MessageStringOf(x) |
| 75 |
} |
| 76 |
|
| 77 |
func (*Public) ProtoMessage() {} |
| 78 |
|
| 79 |
func (x *Public) ProtoReflect() protoreflect.Message { |
| 80 |
mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0] |
| 81 |
if x != nil { |
| 82 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 83 |
if ms.LoadMessageInfo() == nil { |
| 84 |
ms.StoreMessageInfo(mi) |
| 85 |
} |
| 86 |
return ms |
| 87 |
} |
| 88 |
return mi.MessageOf(x) |
| 89 |
} |
| 90 |
|
| 91 |
// Deprecated: Use Public.ProtoReflect.Descriptor instead. |
| 92 |
func (*Public) Descriptor() ([]byte, []int) { |
| 93 |
return file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescGZIP(), []int{0} |
| 94 |
} |
| 95 |
|
| 96 |
func (x *Public) GetM() *sub.M { |
| 97 |
if x != nil { |
| 98 |
return x.M |
| 99 |
} |
| 100 |
return nil |
| 101 |
} |
| 102 |
|
| 103 |
func (x *Public) GetE() sub.E { |
| 104 |
if x != nil && x.E != nil { |
| 105 |
return *x.E |
| 106 |
} |
| 107 |
return sub.E(0) |
| 108 |
} |
| 109 |
|
| 110 |
func (x *Public) GetLocal() *Local { |
| 111 |
if x != nil { |
| 112 |
return x.Local |
| 113 |
} |
| 114 |
return nil |
| 115 |
} |
| 116 |
|
| 117 |
var File_cmd_protoc_gen_go_testdata_import_public_a_proto protoreflect.FileDescriptor |
| 118 |
|
| 119 |
const file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc = "" + |
| 120 |
"\n" + |
| 121 |
"0cmd/protoc-gen-go/testdata/import_public/a.proto\x12\x1cgoproto.protoc.import_public\x1a0cmd/protoc-gen-go/testdata/import_public/b.proto\x1a4cmd/protoc-gen-go/testdata/import_public/sub/a.proto\"\xa9\x01\n" + |
| 122 |
"\x06Public\x121\n" + |
| 123 |
"\x01m\x18\x01 \x01(\v2#.goproto.protoc.import_public.sub.MR\x01m\x121\n" + |
| 124 |
"\x01e\x18\x02 \x01(\x0e2#.goproto.protoc.import_public.sub.ER\x01e\x129\n" + |
| 125 |
"\x05local\x18\x03 \x01(\v2#.goproto.protoc.import_public.LocalR\x05localBEZCgoogle.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_publicP\x00P\x01" |
| 126 |
|
| 127 |
var ( |
| 128 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescOnce sync.Once |
| 129 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData []byte |
| 130 |
) |
| 131 |
|
| 132 |
func file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescGZIP() []byte { |
| 133 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescOnce.Do(func() { |
| 134 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc))) |
| 135 |
}) |
| 136 |
return file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescData |
| 137 |
} |
| 138 |
|
| 139 |
var file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 140 |
var file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = []any{ |
| 141 |
(*Public)(nil), // 0: goproto.protoc.import_public.Public |
| 142 |
(*sub.M)(nil), // 1: goproto.protoc.import_public.sub.M |
| 143 |
(sub.E)(0), // 2: goproto.protoc.import_public.sub.E |
| 144 |
(*Local)(nil), // 3: goproto.protoc.import_public.Local |
| 145 |
} |
| 146 |
var file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs = []int32{ |
| 147 |
1, // 0: goproto.protoc.import_public.Public.m:type_name -> goproto.protoc.import_public.sub.M |
| 148 |
2, // 1: goproto.protoc.import_public.Public.e:type_name -> goproto.protoc.import_public.sub.E |
| 149 |
3, // 2: goproto.protoc.import_public.Public.local:type_name -> goproto.protoc.import_public.Local |
| 150 |
3, // [3:3] is the sub-list for method output_type |
| 151 |
3, // [3:3] is the sub-list for method input_type |
| 152 |
3, // [3:3] is the sub-list for extension type_name |
| 153 |
3, // [3:3] is the sub-list for extension extendee |
| 154 |
0, // [0:3] is the sub-list for field type_name |
| 155 |
} |
| 156 |
|
| 157 |
func init() { file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() } |
| 158 |
func file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() { |
| 159 |
if File_cmd_protoc_gen_go_testdata_import_public_a_proto != nil { |
| 160 |
return |
| 161 |
} |
| 162 |
file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() |
| 163 |
type x struct{} |
| 164 |
out := protoimpl.TypeBuilder{ |
| 165 |
File: protoimpl.DescBuilder{ |
| 166 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 167 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc)), |
| 168 |
NumEnums: 0, |
| 169 |
NumMessages: 1, |
| 170 |
NumExtensions: 0, |
| 171 |
NumServices: 0, |
| 172 |
}, |
| 173 |
GoTypes: file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes, |
| 174 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs, |
| 175 |
MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes, |
| 176 |
}.Build() |
| 177 |
File_cmd_protoc_gen_go_testdata_import_public_a_proto = out.File |
| 178 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = nil |
| 179 |
file_cmd_protoc_gen_go_testdata_import_public_a_proto_depIdxs = nil |
| 180 |
} |