github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/import_public/b.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: import_public/b.proto 3 4 package import_public 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 sub "github.com/gogo/protobuf/protoc-gen-gogo/testdata/import_public/sub" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 23 24 type Local struct { 25 M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` 26 E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.test.import_public.sub.E" json:"e,omitempty"` 27 XXX_NoUnkeyedLiteral struct{} `json:"-"` 28 XXX_unrecognized []byte `json:"-"` 29 XXX_sizecache int32 `json:"-"` 30 } 31 32 func (m *Local) Reset() { *m = Local{} } 33 func (m *Local) String() string { return proto.CompactTextString(m) } 34 func (*Local) ProtoMessage() {} 35 func (*Local) Descriptor() ([]byte, []int) { 36 return fileDescriptor_84995586b3d09710, []int{0} 37 } 38 func (m *Local) XXX_Unmarshal(b []byte) error { 39 return xxx_messageInfo_Local.Unmarshal(m, b) 40 } 41 func (m *Local) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 return xxx_messageInfo_Local.Marshal(b, m, deterministic) 43 } 44 func (m *Local) XXX_Merge(src proto.Message) { 45 xxx_messageInfo_Local.Merge(m, src) 46 } 47 func (m *Local) XXX_Size() int { 48 return xxx_messageInfo_Local.Size(m) 49 } 50 func (m *Local) XXX_DiscardUnknown() { 51 xxx_messageInfo_Local.DiscardUnknown(m) 52 } 53 54 var xxx_messageInfo_Local proto.InternalMessageInfo 55 56 func (m *Local) GetM() *sub.M { 57 if m != nil { 58 return m.M 59 } 60 return nil 61 } 62 63 func (m *Local) GetE() sub.E { 64 if m != nil && m.E != nil { 65 return *m.E 66 } 67 return sub.E_ZERO 68 } 69 70 func init() { 71 proto.RegisterType((*Local)(nil), "goproto.test.import_public.Local") 72 } 73 74 func init() { proto.RegisterFile("import_public/b.proto", fileDescriptor_84995586b3d09710) } 75 76 var fileDescriptor_84995586b3d09710 = []byte{ 77 // 166 bytes of a gzipped FileDescriptorProto 78 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xcc, 0x2d, 0xc8, 79 0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x4f, 0xd2, 0x2b, 0x28, 0xca, 0x2f, 80 0xc9, 0x17, 0x92, 0x4a, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b, 0xf4, 0x50, 0xd4, 0x48, 81 0x49, 0xa2, 0x6a, 0x29, 0x2e, 0x4d, 0xd2, 0x4f, 0x84, 0x68, 0x53, 0xca, 0xe4, 0x62, 0xf5, 0xc9, 82 0x4f, 0x4e, 0xcc, 0x11, 0xd2, 0xe7, 0x62, 0xcc, 0x95, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x36, 0x52, 83 0xd4, 0xc3, 0x6d, 0x96, 0x5e, 0x71, 0x69, 0x92, 0x9e, 0x6f, 0x10, 0x63, 0x2e, 0x48, 0x43, 0xaa, 84 0x04, 0x93, 0x02, 0xa3, 0x06, 0x1f, 0x61, 0x0d, 0xae, 0x41, 0x8c, 0xa9, 0x4e, 0x8e, 0x51, 0xf6, 85 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xe9, 0xf9, 0xe9, 0xf9, 0xfa, 86 0x60, 0x4d, 0x49, 0xa5, 0x69, 0x10, 0x46, 0xb2, 0x6e, 0x7a, 0x6a, 0x9e, 0x2e, 0x58, 0x02, 0x64, 87 0x4e, 0x4a, 0x62, 0x49, 0xa2, 0x3e, 0x8a, 0x59, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb0, 0xbb, 88 0x8d, 0x44, 0xfc, 0x00, 0x00, 0x00, 89 }