| 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/imports/test_import_a1m1.proto |
| 7 |
|
| 8 |
package imports |
| 9 |
|
| 10 |
import ( |
| 11 |
test_a_1 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1" |
| 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 A1M1 struct { |
| 20 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 21 |
F *test_a_1.M1 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"` |
| 22 |
unknownFields protoimpl.UnknownFields |
| 23 |
sizeCache protoimpl.SizeCache |
| 24 |
} |
| 25 |
|
| 26 |
func (x *A1M1) Reset() { |
| 27 |
*x = A1M1{} |
| 28 |
mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0] |
| 29 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 30 |
ms.StoreMessageInfo(mi) |
| 31 |
} |
| 32 |
|
| 33 |
func (x *A1M1) String() string { |
| 34 |
return protoimpl.X.MessageStringOf(x) |
| 35 |
} |
| 36 |
|
| 37 |
func (*A1M1) ProtoMessage() {} |
| 38 |
|
| 39 |
func (x *A1M1) ProtoReflect() protoreflect.Message { |
| 40 |
mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0] |
| 41 |
if x != nil { |
| 42 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 43 |
if ms.LoadMessageInfo() == nil { |
| 44 |
ms.StoreMessageInfo(mi) |
| 45 |
} |
| 46 |
return ms |
| 47 |
} |
| 48 |
return mi.MessageOf(x) |
| 49 |
} |
| 50 |
|
| 51 |
// Deprecated: Use A1M1.ProtoReflect.Descriptor instead. |
| 52 |
func (*A1M1) Descriptor() ([]byte, []int) { |
| 53 |
return file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescGZIP(), []int{0} |
| 54 |
} |
| 55 |
|
| 56 |
func (x *A1M1) GetF() *test_a_1.M1 { |
| 57 |
if x != nil { |
| 58 |
return x.F |
| 59 |
} |
| 60 |
return nil |
| 61 |
} |
| 62 |
|
| 63 |
var File_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto protoreflect.FileDescriptor |
| 64 |
|
| 65 |
const file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc = "" + |
| 66 |
"\n" + |
| 67 |
"9cmd/protoc-gen-go/testdata/imports/test_import_a1m1.proto\x12\x04test\x1a4cmd/protoc-gen-go/testdata/imports/test_a_1/m1.proto\" \n" + |
| 68 |
"\x04A1M1\x12\x18\n" + |
| 69 |
"\x01f\x18\x01 \x01(\v2\n" + |
| 70 |
".test.a.M1R\x01fB?Z=google.golang.org/protobuf/cmd/protoc-gen-go/testdata/importsb\x06proto3" |
| 71 |
|
| 72 |
var ( |
| 73 |
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescOnce sync.Once |
| 74 |
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescData []byte |
| 75 |
) |
| 76 |
|
| 77 |
func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescGZIP() []byte { |
| 78 |
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescOnce.Do(func() { |
| 79 |
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc))) |
| 80 |
}) |
| 81 |
return file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescData |
| 82 |
} |
| 83 |
|
| 84 |
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 85 |
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_goTypes = []any{ |
| 86 |
(*A1M1)(nil), // 0: test.A1M1 |
| 87 |
(*test_a_1.M1)(nil), // 1: test.a.M1 |
| 88 |
} |
| 89 |
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_depIdxs = []int32{ |
| 90 |
1, // 0: test.A1M1.f:type_name -> test.a.M1 |
| 91 |
1, // [1:1] is the sub-list for method output_type |
| 92 |
1, // [1:1] is the sub-list for method input_type |
| 93 |
1, // [1:1] is the sub-list for extension type_name |
| 94 |
1, // [1:1] is the sub-list for extension extendee |
| 95 |
0, // [0:1] is the sub-list for field type_name |
| 96 |
} |
| 97 |
|
| 98 |
func init() { file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_init() } |
| 99 |
func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_init() { |
| 100 |
if File_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto != nil { |
| 101 |
return |
| 102 |
} |
| 103 |
type x struct{} |
| 104 |
out := protoimpl.TypeBuilder{ |
| 105 |
File: protoimpl.DescBuilder{ |
| 106 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 107 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc)), |
| 108 |
NumEnums: 0, |
| 109 |
NumMessages: 1, |
| 110 |
NumExtensions: 0, |
| 111 |
NumServices: 0, |
| 112 |
}, |
| 113 |
GoTypes: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_goTypes, |
| 114 |
DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_depIdxs, |
| 115 |
MessageInfos: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes, |
| 116 |
}.Build() |
| 117 |
File_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto = out.File |
| 118 |
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_goTypes = nil |
| 119 |
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_depIdxs = nil |
| 120 |
} |