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_a1m2.proto 7 8package imports 9 10import ( 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) 17 18type A1M2 struct { 19 state protoimpl.MessageState 20 sizeCache protoimpl.SizeCache 21 unknownFields protoimpl.UnknownFields 22 23 F *test_a_1.M2 `protobuf:"bytes,1,opt,name=f,proto3" json:"f,omitempty"` 24} 25 26func (x *A1M2) Reset() { 27 *x = A1M2{} 28 if protoimpl.UnsafeEnabled { 29 mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0] 30 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 31 ms.StoreMessageInfo(mi) 32 } 33} 34 35func (x *A1M2) String() string { 36 return protoimpl.X.MessageStringOf(x) 37} 38 39func (*A1M2) ProtoMessage() {} 40 41func (x *A1M2) ProtoReflect() protoreflect.Message { 42 mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0] 43 if protoimpl.UnsafeEnabled && x != nil { 44 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 45 if ms.LoadMessageInfo() == nil { 46 ms.StoreMessageInfo(mi) 47 } 48 return ms 49 } 50 return mi.MessageOf(x) 51} 52 53// Deprecated: Use A1M2.ProtoReflect.Descriptor instead. 54func (*A1M2) Descriptor() ([]byte, []int) { 55 return file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescGZIP(), []int{0} 56} 57 58func (x *A1M2) GetF() *test_a_1.M2 { 59 if x != nil { 60 return x.F 61 } 62 return nil 63} 64 65var File_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto protoreflect.FileDescriptor 66 67var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc = []byte{ 68 0x0a, 0x39, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 69 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 70 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 71 0x5f, 0x61, 0x31, 0x6d, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, 0x65, 0x73, 72 0x74, 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 73 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 74 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x2f, 0x6d, 75 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x20, 0x0a, 0x04, 0x41, 0x31, 0x4d, 0x32, 0x12, 76 0x18, 0x0a, 0x01, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x65, 0x73, 77 0x74, 0x2e, 0x61, 0x2e, 0x4d, 0x32, 0x52, 0x01, 0x66, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x6f, 0x6f, 78 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 79 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 80 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 81 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 82 0x6f, 0x33, 83} 84 85var ( 86 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescOnce sync.Once 87 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescData = file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc 88) 89 90func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescGZIP() []byte { 91 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescOnce.Do(func() { 92 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescData) 93 }) 94 return file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescData 95} 96 97var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 98var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_goTypes = []interface{}{ 99 (*A1M2)(nil), // 0: test.A1M2 100 (*test_a_1.M2)(nil), // 1: test.a.M2 101} 102var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_depIdxs = []int32{ 103 1, // 0: test.A1M2.f:type_name -> test.a.M2 104 1, // [1:1] is the sub-list for method output_type 105 1, // [1:1] is the sub-list for method input_type 106 1, // [1:1] is the sub-list for extension type_name 107 1, // [1:1] is the sub-list for extension extendee 108 0, // [0:1] is the sub-list for field type_name 109} 110 111func init() { file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_init() } 112func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_init() { 113 if File_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto != nil { 114 return 115 } 116 if !protoimpl.UnsafeEnabled { 117 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 118 switch v := v.(*A1M2); i { 119 case 0: 120 return &v.state 121 case 1: 122 return &v.sizeCache 123 case 2: 124 return &v.unknownFields 125 default: 126 return nil 127 } 128 } 129 } 130 type x struct{} 131 out := protoimpl.TypeBuilder{ 132 File: protoimpl.DescBuilder{ 133 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 134 RawDescriptor: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc, 135 NumEnums: 0, 136 NumMessages: 1, 137 NumExtensions: 0, 138 NumServices: 0, 139 }, 140 GoTypes: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_goTypes, 141 DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_depIdxs, 142 MessageInfos: file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes, 143 }.Build() 144 File_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto = out.File 145 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc = nil 146 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_goTypes = nil 147 file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_depIdxs = nil 148} 149