1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: import_public/importing/importing.proto 3 4package importing 5 6import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 _ "github.com/golang/protobuf/protoc-gen-go/testdata/import_public" 10 sub "github.com/golang/protobuf/protoc-gen-go/testdata/import_public/sub" 11 math "math" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25type M struct { 26 // Message type defined in a file publicly imported by a file we import. 27 M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` 28 XXX_NoUnkeyedLiteral struct{} `json:"-"` 29 XXX_unrecognized []byte `json:"-"` 30 XXX_sizecache int32 `json:"-"` 31} 32 33func (m *M) Reset() { *m = M{} } 34func (m *M) String() string { return proto.CompactTextString(m) } 35func (*M) ProtoMessage() {} 36func (*M) Descriptor() ([]byte, []int) { 37 return fileDescriptor_36b835b3b8f6171a, []int{0} 38} 39 40func (m *M) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_M.Unmarshal(m, b) 42} 43func (m *M) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_M.Marshal(b, m, deterministic) 45} 46func (m *M) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_M.Merge(m, src) 48} 49func (m *M) XXX_Size() int { 50 return xxx_messageInfo_M.Size(m) 51} 52func (m *M) XXX_DiscardUnknown() { 53 xxx_messageInfo_M.DiscardUnknown(m) 54} 55 56var xxx_messageInfo_M proto.InternalMessageInfo 57 58func (m *M) GetM() *sub.M { 59 if m != nil { 60 return m.M 61 } 62 return nil 63} 64 65func init() { 66 proto.RegisterType((*M)(nil), "goproto.test.import_public.importing.M") 67} 68 69func init() { 70 proto.RegisterFile("import_public/importing/importing.proto", fileDescriptor_36b835b3b8f6171a) 71} 72 73var fileDescriptor_36b835b3b8f6171a = []byte{ 74 // 153 bytes of a gzipped FileDescriptorProto 75 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0xcf, 0xcc, 0x2d, 0xc8, 76 0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x87, 0xf0, 0x32, 0xf3, 0xd2, 0x11, 77 0x2c, 0xbd, 0x82, 0xa2, 0xfc, 0x92, 0x7c, 0x21, 0x95, 0xf4, 0x7c, 0x30, 0x43, 0xaf, 0x24, 0xb5, 78 0xb8, 0x44, 0x0f, 0x45, 0x97, 0x1e, 0x5c, 0xad, 0x94, 0x28, 0xaa, 0x71, 0x89, 0x10, 0xcd, 0x4a, 79 0x26, 0x5c, 0x8c, 0xbe, 0x42, 0xfa, 0x5c, 0x8c, 0xb9, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 80 0x8a, 0x7a, 0x78, 0x4c, 0x2b, 0x2e, 0x4d, 0xd2, 0xf3, 0x0d, 0x62, 0xcc, 0x75, 0xf2, 0x8e, 0xf2, 81 0x4c, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, 0x4f, 0xcf, 0xcf, 0x49, 0xcc, 82 0x4b, 0xd7, 0x07, 0x6b, 0x4b, 0x2a, 0x4d, 0x83, 0x30, 0x92, 0x75, 0xd3, 0x53, 0xf3, 0x74, 0xd3, 83 0xf3, 0xf5, 0x41, 0xe6, 0xa4, 0x24, 0x96, 0x24, 0xea, 0xe3, 0xf0, 0x0f, 0x20, 0x00, 0x00, 0xff, 84 0xff, 0xd8, 0x7e, 0x58, 0x1c, 0xe9, 0x00, 0x00, 0x00, 85} 86