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_a_1/m1.proto 7 8package test_a_1 9 10import ( 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15) 16 17type E1 int32 18 19const ( 20 E1_E1_ZERO E1 = 0 21) 22 23// Enum value maps for E1. 24var ( 25 E1_name = map[int32]string{ 26 0: "E1_ZERO", 27 } 28 E1_value = map[string]int32{ 29 "E1_ZERO": 0, 30 } 31) 32 33func (x E1) Enum() *E1 { 34 p := new(E1) 35 *p = x 36 return p 37} 38 39func (x E1) String() string { 40 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 41} 42 43func (E1) Descriptor() protoreflect.EnumDescriptor { 44 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes[0].Descriptor() 45} 46 47func (E1) Type() protoreflect.EnumType { 48 return &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes[0] 49} 50 51func (x E1) Number() protoreflect.EnumNumber { 52 return protoreflect.EnumNumber(x) 53} 54 55// Deprecated: Use E1.Descriptor instead. 56func (E1) EnumDescriptor() ([]byte, []int) { 57 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0} 58} 59 60type M1 struct { 61 state protoimpl.MessageState 62 sizeCache protoimpl.SizeCache 63 unknownFields protoimpl.UnknownFields 64} 65 66func (x *M1) Reset() { 67 *x = M1{} 68 if protoimpl.UnsafeEnabled { 69 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0] 70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 71 ms.StoreMessageInfo(mi) 72 } 73} 74 75func (x *M1) String() string { 76 return protoimpl.X.MessageStringOf(x) 77} 78 79func (*M1) ProtoMessage() {} 80 81func (x *M1) ProtoReflect() protoreflect.Message { 82 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0] 83 if protoimpl.UnsafeEnabled && x != nil { 84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 85 if ms.LoadMessageInfo() == nil { 86 ms.StoreMessageInfo(mi) 87 } 88 return ms 89 } 90 return mi.MessageOf(x) 91} 92 93// Deprecated: Use M1.ProtoReflect.Descriptor instead. 94func (*M1) Descriptor() ([]byte, []int) { 95 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0} 96} 97 98type M1_1 struct { 99 state protoimpl.MessageState 100 sizeCache protoimpl.SizeCache 101 unknownFields protoimpl.UnknownFields 102 103 M1 *M1 `protobuf:"bytes,1,opt,name=m1,proto3" json:"m1,omitempty"` 104} 105 106func (x *M1_1) Reset() { 107 *x = M1_1{} 108 if protoimpl.UnsafeEnabled { 109 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1] 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 ms.StoreMessageInfo(mi) 112 } 113} 114 115func (x *M1_1) String() string { 116 return protoimpl.X.MessageStringOf(x) 117} 118 119func (*M1_1) ProtoMessage() {} 120 121func (x *M1_1) ProtoReflect() protoreflect.Message { 122 mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1] 123 if protoimpl.UnsafeEnabled && x != nil { 124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 125 if ms.LoadMessageInfo() == nil { 126 ms.StoreMessageInfo(mi) 127 } 128 return ms 129 } 130 return mi.MessageOf(x) 131} 132 133// Deprecated: Use M1_1.ProtoReflect.Descriptor instead. 134func (*M1_1) Descriptor() ([]byte, []int) { 135 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP(), []int{1} 136} 137 138func (x *M1_1) GetM1() *M1 { 139 if x != nil { 140 return x.M1 141 } 142 return nil 143} 144 145var File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto protoreflect.FileDescriptor 146 147var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc = []byte{ 148 0x0a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 149 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 150 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x2f, 0x6d, 0x31, 151 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x61, 0x22, 0x04, 152 0x0a, 0x02, 0x4d, 0x31, 0x22, 0x22, 0x0a, 0x04, 0x4d, 0x31, 0x5f, 0x31, 0x12, 0x1a, 0x0a, 0x02, 153 0x6d, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 154 0x61, 0x2e, 0x4d, 0x31, 0x52, 0x02, 0x6d, 0x31, 0x2a, 0x11, 0x0a, 0x02, 0x45, 0x31, 0x12, 0x0b, 155 0x0a, 0x07, 0x45, 0x31, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x42, 0x48, 0x5a, 0x46, 0x67, 156 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 157 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 158 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 159 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 160 0x74, 0x5f, 0x61, 0x5f, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 161} 162 163var ( 164 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescOnce sync.Once 165 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData = file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc 166) 167 168func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP() []byte { 169 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescOnce.Do(func() { 170 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData) 171 }) 172 return file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescData 173} 174 175var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 176var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 177var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes = []interface{}{ 178 (E1)(0), // 0: test.a.E1 179 (*M1)(nil), // 1: test.a.M1 180 (*M1_1)(nil), // 2: test.a.M1_1 181} 182var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_depIdxs = []int32{ 183 1, // 0: test.a.M1_1.m1:type_name -> test.a.M1 184 1, // [1:1] is the sub-list for method output_type 185 1, // [1:1] is the sub-list for method input_type 186 1, // [1:1] is the sub-list for extension type_name 187 1, // [1:1] is the sub-list for extension extendee 188 0, // [0:1] is the sub-list for field type_name 189} 190 191func init() { file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() } 192func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() { 193 if File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto != nil { 194 return 195 } 196 if !protoimpl.UnsafeEnabled { 197 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 198 switch v := v.(*M1); i { 199 case 0: 200 return &v.state 201 case 1: 202 return &v.sizeCache 203 case 2: 204 return &v.unknownFields 205 default: 206 return nil 207 } 208 } 209 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 210 switch v := v.(*M1_1); i { 211 case 0: 212 return &v.state 213 case 1: 214 return &v.sizeCache 215 case 2: 216 return &v.unknownFields 217 default: 218 return nil 219 } 220 } 221 } 222 type x struct{} 223 out := protoimpl.TypeBuilder{ 224 File: protoimpl.DescBuilder{ 225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 226 RawDescriptor: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc, 227 NumEnums: 1, 228 NumMessages: 2, 229 NumExtensions: 0, 230 NumServices: 0, 231 }, 232 GoTypes: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes, 233 DependencyIndexes: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_depIdxs, 234 EnumInfos: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes, 235 MessageInfos: file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes, 236 }.Build() 237 File_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto = out.File 238 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc = nil 239 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes = nil 240 file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_depIdxs = nil 241} 242