github.com/gogo/protobuf@v1.3.2/protoc-gen-gogo/testdata/import_public/a.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: import_public/a.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 const Default_M_DefaultField = sub.Default_M_DefaultField 25 26 // M from public import import_public/sub/a.proto 27 type M = sub.M 28 type M_OneofInt32 = sub.M_OneofInt32 29 type M_OneofInt64 = sub.M_OneofInt64 30 31 // M_Grouping from public import import_public/sub/a.proto 32 type M_Grouping = sub.M_Grouping 33 34 // M_Submessage from public import import_public/sub/a.proto 35 type M_Submessage = sub.M_Submessage 36 type M_Submessage_SubmessageOneofInt32 = sub.M_Submessage_SubmessageOneofInt32 37 type M_Submessage_SubmessageOneofInt64 = sub.M_Submessage_SubmessageOneofInt64 38 39 // E from public import import_public/sub/a.proto 40 type E = sub.E 41 42 var E_name = sub.E_name 43 var E_value = sub.E_value 44 45 const E_ZERO = E(sub.E_ZERO) 46 47 // M_Subenum from public import import_public/sub/a.proto 48 type M_Subenum = sub.M_Subenum 49 50 var M_Subenum_name = sub.M_Subenum_name 51 var M_Subenum_value = sub.M_Subenum_value 52 53 const M_M_ZERO = M_Subenum(sub.M_M_ZERO) 54 55 // M_Submessage_Submessage_Subenum from public import import_public/sub/a.proto 56 type M_Submessage_Submessage_Subenum = sub.M_Submessage_Submessage_Subenum 57 58 var M_Submessage_Submessage_Subenum_name = sub.M_Submessage_Submessage_Subenum_name 59 var M_Submessage_Submessage_Subenum_value = sub.M_Submessage_Submessage_Subenum_value 60 61 const M_Submessage_M_SUBMESSAGE_ZERO = M_Submessage_Submessage_Subenum(sub.M_Submessage_M_SUBMESSAGE_ZERO) 62 63 var E_ExtensionField = sub.E_ExtensionField 64 65 type Public struct { 66 M *sub.M `protobuf:"bytes,1,opt,name=m" json:"m,omitempty"` 67 E *sub.E `protobuf:"varint,2,opt,name=e,enum=goproto.test.import_public.sub.E" json:"e,omitempty"` 68 Local *Local `protobuf:"bytes,3,opt,name=local" json:"local,omitempty"` 69 XXX_NoUnkeyedLiteral struct{} `json:"-"` 70 XXX_unrecognized []byte `json:"-"` 71 XXX_sizecache int32 `json:"-"` 72 } 73 74 func (m *Public) Reset() { *m = Public{} } 75 func (m *Public) String() string { return proto.CompactTextString(m) } 76 func (*Public) ProtoMessage() {} 77 func (*Public) Descriptor() ([]byte, []int) { 78 return fileDescriptor_73b7577c95fa6b70, []int{0} 79 } 80 func (m *Public) XXX_Unmarshal(b []byte) error { 81 return xxx_messageInfo_Public.Unmarshal(m, b) 82 } 83 func (m *Public) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 84 return xxx_messageInfo_Public.Marshal(b, m, deterministic) 85 } 86 func (m *Public) XXX_Merge(src proto.Message) { 87 xxx_messageInfo_Public.Merge(m, src) 88 } 89 func (m *Public) XXX_Size() int { 90 return xxx_messageInfo_Public.Size(m) 91 } 92 func (m *Public) XXX_DiscardUnknown() { 93 xxx_messageInfo_Public.DiscardUnknown(m) 94 } 95 96 var xxx_messageInfo_Public proto.InternalMessageInfo 97 98 func (m *Public) GetM() *sub.M { 99 if m != nil { 100 return m.M 101 } 102 return nil 103 } 104 105 func (m *Public) GetE() sub.E { 106 if m != nil && m.E != nil { 107 return *m.E 108 } 109 return sub.E_ZERO 110 } 111 112 func (m *Public) GetLocal() *Local { 113 if m != nil { 114 return m.Local 115 } 116 return nil 117 } 118 119 func init() { 120 proto.RegisterType((*Public)(nil), "goproto.test.import_public.Public") 121 } 122 123 func init() { proto.RegisterFile("import_public/a.proto", fileDescriptor_73b7577c95fa6b70) } 124 125 var fileDescriptor_73b7577c95fa6b70 = []byte{ 126 // 192 bytes of a gzipped FileDescriptorProto 127 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0xcc, 0x2d, 0xc8, 128 0x2f, 0x2a, 0x89, 0x2f, 0x28, 0x4d, 0xca, 0xc9, 0x4c, 0xd6, 0x4f, 0xd4, 0x2b, 0x28, 0xca, 0x2f, 129 0xc9, 0x17, 0x92, 0x4a, 0xcf, 0x07, 0x33, 0xf4, 0x4a, 0x52, 0x8b, 0x4b, 0xf4, 0x50, 0xd4, 0x48, 130 0x49, 0xa2, 0x6a, 0x29, 0x2e, 0x4d, 0x82, 0x69, 0x93, 0x42, 0x33, 0x2d, 0x09, 0x22, 0xac, 0xb4, 131 0x98, 0x91, 0x8b, 0x2d, 0x00, 0x2c, 0x24, 0xa4, 0xcf, 0xc5, 0x98, 0x2b, 0xc1, 0xa8, 0xc0, 0xa8, 132 0xc1, 0x6d, 0xa4, 0xa8, 0x87, 0xdb, 0x12, 0xbd, 0xe2, 0xd2, 0x24, 0x3d, 0xdf, 0x20, 0xc6, 0x5c, 133 0x90, 0x86, 0x54, 0x09, 0x26, 0x05, 0x46, 0x0d, 0x3e, 0xc2, 0x1a, 0x5c, 0x83, 0x18, 0x53, 0x85, 134 0xcc, 0xb9, 0x58, 0x73, 0xf2, 0x93, 0x13, 0x73, 0x24, 0x98, 0x09, 0xdb, 0xe2, 0x03, 0x52, 0x18, 135 0x04, 0x51, 0xef, 0xe4, 0x18, 0x65, 0x9f, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 136 0xab, 0x9f, 0x9e, 0x9f, 0x9e, 0xaf, 0x0f, 0xd6, 0x98, 0x54, 0x9a, 0x06, 0x61, 0x24, 0xeb, 0xa6, 137 0xa7, 0xe6, 0xe9, 0x82, 0x25, 0x40, 0x66, 0xa5, 0x24, 0x96, 0x24, 0xea, 0xa3, 0x98, 0x17, 0xc0, 138 0x10, 0xc0, 0x08, 0x08, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xfb, 0x07, 0xae, 0x52, 0x01, 0x00, 0x00, 139 }