Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: internal/testprotos/legacy/legacy.proto |
| 3 | |
| 4 | package legacy |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | proto2_v0_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v0.0.0-20160225-2fc053c5" |
| 10 | proto2_v0_01 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v0.0.0-20160519-a4ab9ec5" |
| 11 | proto2_v1_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.0.0-20180125-92554152" |
| 12 | proto2_v1_1 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.1.0-20180430-b4deda09" |
| 13 | proto2_v1_2 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.2.0-20180814-aa810b61" |
Joe Tsai | 25cc69d | 2018-11-28 23:43:49 -0800 | [diff] [blame^] | 14 | proto2_v1_21 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.2.1-20181126-8d0c54c1" |
Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 15 | proto3_v0_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v0.0.0-20160225-2fc053c5" |
| 16 | proto3_v0_01 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v0.0.0-20160519-a4ab9ec5" |
| 17 | proto3_v1_0 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.0.0-20180125-92554152" |
| 18 | proto3_v1_1 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.1.0-20180430-b4deda09" |
| 19 | proto3_v1_2 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.2.0-20180814-aa810b61" |
Joe Tsai | 25cc69d | 2018-11-28 23:43:49 -0800 | [diff] [blame^] | 20 | proto3_v1_21 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto3.v1.2.1-20181126-8d0c54c1" |
Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 21 | math "math" |
| 22 | ) |
| 23 | |
| 24 | // Reference imports to suppress errors if they are not otherwise used. |
| 25 | var _ = proto.Marshal |
| 26 | var _ = fmt.Errorf |
| 27 | var _ = math.Inf |
| 28 | |
| 29 | // This is a compile-time assertion to ensure that this generated file |
| 30 | // is compatible with the proto package it is being compiled against. |
| 31 | // A compilation error at this line likely means your copy of the |
| 32 | // proto package needs to be updated. |
Joe Tsai | 25cc69d | 2018-11-28 23:43:49 -0800 | [diff] [blame^] | 33 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 34 | |
| 35 | type Legacy struct { |
| 36 | F1 *proto2_v0_0.Message `protobuf:"bytes,1,opt,name=f1,proto3" json:"f1,omitempty"` |
| 37 | F2 *proto3_v0_0.Message `protobuf:"bytes,2,opt,name=f2,proto3" json:"f2,omitempty"` |
| 38 | F3 *proto2_v0_01.Message `protobuf:"bytes,3,opt,name=f3,proto3" json:"f3,omitempty"` |
| 39 | F4 *proto3_v0_01.Message `protobuf:"bytes,4,opt,name=f4,proto3" json:"f4,omitempty"` |
| 40 | F5 *proto2_v1_0.Message `protobuf:"bytes,5,opt,name=f5,proto3" json:"f5,omitempty"` |
| 41 | F6 *proto3_v1_0.Message `protobuf:"bytes,6,opt,name=f6,proto3" json:"f6,omitempty"` |
| 42 | F7 *proto2_v1_1.Message `protobuf:"bytes,7,opt,name=f7,proto3" json:"f7,omitempty"` |
| 43 | F8 *proto3_v1_1.Message `protobuf:"bytes,8,opt,name=f8,proto3" json:"f8,omitempty"` |
| 44 | F9 *proto2_v1_2.Message `protobuf:"bytes,9,opt,name=f9,proto3" json:"f9,omitempty"` |
| 45 | F10 *proto3_v1_2.Message `protobuf:"bytes,10,opt,name=f10,proto3" json:"f10,omitempty"` |
Joe Tsai | 25cc69d | 2018-11-28 23:43:49 -0800 | [diff] [blame^] | 46 | F11 *proto2_v1_21.Message `protobuf:"bytes,11,opt,name=f11,proto3" json:"f11,omitempty"` |
| 47 | F12 *proto3_v1_21.Message `protobuf:"bytes,12,opt,name=f12,proto3" json:"f12,omitempty"` |
Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 48 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 49 | XXX_unrecognized []byte `json:"-"` |
| 50 | XXX_sizecache int32 `json:"-"` |
| 51 | } |
| 52 | |
| 53 | func (m *Legacy) Reset() { *m = Legacy{} } |
| 54 | func (m *Legacy) String() string { return proto.CompactTextString(m) } |
| 55 | func (*Legacy) ProtoMessage() {} |
| 56 | func (*Legacy) Descriptor() ([]byte, []int) { |
| 57 | return fileDescriptor_5fbf266527ec81d8, []int{0} |
| 58 | } |
| 59 | |
| 60 | func (m *Legacy) XXX_Unmarshal(b []byte) error { |
| 61 | return xxx_messageInfo_Legacy.Unmarshal(m, b) |
| 62 | } |
| 63 | func (m *Legacy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 64 | return xxx_messageInfo_Legacy.Marshal(b, m, deterministic) |
| 65 | } |
| 66 | func (m *Legacy) XXX_Merge(src proto.Message) { |
| 67 | xxx_messageInfo_Legacy.Merge(m, src) |
| 68 | } |
| 69 | func (m *Legacy) XXX_Size() int { |
| 70 | return xxx_messageInfo_Legacy.Size(m) |
| 71 | } |
| 72 | func (m *Legacy) XXX_DiscardUnknown() { |
| 73 | xxx_messageInfo_Legacy.DiscardUnknown(m) |
| 74 | } |
| 75 | |
| 76 | var xxx_messageInfo_Legacy proto.InternalMessageInfo |
| 77 | |
| 78 | func (m *Legacy) GetF1() *proto2_v0_0.Message { |
| 79 | if m != nil { |
| 80 | return m.F1 |
| 81 | } |
| 82 | return nil |
| 83 | } |
| 84 | |
| 85 | func (m *Legacy) GetF2() *proto3_v0_0.Message { |
| 86 | if m != nil { |
| 87 | return m.F2 |
| 88 | } |
| 89 | return nil |
| 90 | } |
| 91 | |
| 92 | func (m *Legacy) GetF3() *proto2_v0_01.Message { |
| 93 | if m != nil { |
| 94 | return m.F3 |
| 95 | } |
| 96 | return nil |
| 97 | } |
| 98 | |
| 99 | func (m *Legacy) GetF4() *proto3_v0_01.Message { |
| 100 | if m != nil { |
| 101 | return m.F4 |
| 102 | } |
| 103 | return nil |
| 104 | } |
| 105 | |
| 106 | func (m *Legacy) GetF5() *proto2_v1_0.Message { |
| 107 | if m != nil { |
| 108 | return m.F5 |
| 109 | } |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | func (m *Legacy) GetF6() *proto3_v1_0.Message { |
| 114 | if m != nil { |
| 115 | return m.F6 |
| 116 | } |
| 117 | return nil |
| 118 | } |
| 119 | |
| 120 | func (m *Legacy) GetF7() *proto2_v1_1.Message { |
| 121 | if m != nil { |
| 122 | return m.F7 |
| 123 | } |
| 124 | return nil |
| 125 | } |
| 126 | |
| 127 | func (m *Legacy) GetF8() *proto3_v1_1.Message { |
| 128 | if m != nil { |
| 129 | return m.F8 |
| 130 | } |
| 131 | return nil |
| 132 | } |
| 133 | |
| 134 | func (m *Legacy) GetF9() *proto2_v1_2.Message { |
| 135 | if m != nil { |
| 136 | return m.F9 |
| 137 | } |
| 138 | return nil |
| 139 | } |
| 140 | |
| 141 | func (m *Legacy) GetF10() *proto3_v1_2.Message { |
| 142 | if m != nil { |
| 143 | return m.F10 |
| 144 | } |
| 145 | return nil |
| 146 | } |
| 147 | |
Joe Tsai | 25cc69d | 2018-11-28 23:43:49 -0800 | [diff] [blame^] | 148 | func (m *Legacy) GetF11() *proto2_v1_21.Message { |
| 149 | if m != nil { |
| 150 | return m.F11 |
| 151 | } |
| 152 | return nil |
| 153 | } |
| 154 | |
| 155 | func (m *Legacy) GetF12() *proto3_v1_21.Message { |
| 156 | if m != nil { |
| 157 | return m.F12 |
| 158 | } |
| 159 | return nil |
| 160 | } |
| 161 | |
Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 162 | func init() { |
| 163 | proto.RegisterType((*Legacy)(nil), "google.golang.org.Legacy") |
| 164 | } |
| 165 | |
| 166 | func init() { |
| 167 | proto.RegisterFile("internal/testprotos/legacy/legacy.proto", fileDescriptor_5fbf266527ec81d8) |
| 168 | } |
| 169 | |
| 170 | var fileDescriptor_5fbf266527ec81d8 = []byte{ |
Joe Tsai | 25cc69d | 2018-11-28 23:43:49 -0800 | [diff] [blame^] | 171 | // 400 bytes of a gzipped FileDescriptorProto |
| 172 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0xd3, 0xcf, 0xce, 0xd2, 0x40, |
| 173 | 0x14, 0x05, 0xf0, 0x00, 0x82, 0x5a, 0xdc, 0xc8, 0x6a, 0xe2, 0xca, 0xb8, 0xd1, 0x98, 0x74, 0x3a, |
| 174 | 0xf7, 0x76, 0xa6, 0x4c, 0x89, 0x2b, 0x13, 0x77, 0xba, 0x71, 0xe9, 0xc6, 0x4c, 0xcb, 0x74, 0x24, |
| 175 | 0xa9, 0xd4, 0xd0, 0x42, 0xe2, 0xcb, 0xfa, 0x2c, 0x86, 0x5b, 0x9a, 0x14, 0xf4, 0xe3, 0x1b, 0xfe, |
| 176 | 0xac, 0x08, 0x4d, 0x7e, 0xe7, 0x9c, 0xc5, 0xdc, 0xe0, 0xed, 0x6a, 0xdd, 0xd8, 0xcd, 0xda, 0x94, |
| 177 | 0x51, 0x63, 0xeb, 0xe6, 0xd7, 0xa6, 0x6a, 0xaa, 0x3a, 0x2a, 0xad, 0x33, 0xf9, 0xef, 0xc3, 0x0f, |
| 178 | 0xa7, 0x8f, 0xb3, 0x97, 0xae, 0xaa, 0x5c, 0x69, 0xb9, 0xab, 0x4a, 0xb3, 0x76, 0xbc, 0xda, 0xb8, |
| 179 | 0x57, 0x9f, 0xce, 0x58, 0xfa, 0x87, 0x7c, 0x27, 0xb8, 0xe0, 0x22, 0x44, 0x01, 0x89, 0x40, 0x54, |
| 180 | 0x21, 0x16, 0xb9, 0x50, 0x71, 0xae, 0x48, 0xb4, 0xc9, 0x8f, 0xc7, 0xc4, 0xf7, 0x89, 0x39, 0x5e, |
| 181 | 0xa3, 0x20, 0x0d, 0x8d, 0x34, 0x59, 0x6a, 0x6f, 0x5a, 0x73, 0x75, 0x0c, 0xf2, 0x1d, 0x74, 0x31, |
| 182 | 0x5a, 0x00, 0xaa, 0x30, 0x45, 0xa5, 0x24, 0x28, 0xbc, 0x74, 0xcd, 0x3d, 0x62, 0x68, 0x0d, 0x74, |
| 183 | 0x31, 0x32, 0x16, 0x61, 0x26, 0x97, 0x76, 0x69, 0x44, 0x7a, 0xf9, 0x9a, 0xdb, 0x63, 0x68, 0x0d, |
| 184 | 0x76, 0x31, 0x1a, 0x64, 0x68, 0x8c, 0x06, 0x91, 0x25, 0x70, 0xf9, 0x9a, 0xdb, 0x63, 0x0e, 0x6b, |
| 185 | 0x80, 0x62, 0x00, 0x30, 0x09, 0xf5, 0x52, 0xe4, 0x4a, 0xe6, 0x57, 0xad, 0x39, 0x1f, 0xf3, 0xe6, |
| 186 | 0xcf, 0x38, 0x98, 0x7c, 0x26, 0x35, 0x5b, 0x04, 0xc3, 0x02, 0xd8, 0xe0, 0xf5, 0xe0, 0xdd, 0x14, |
| 187 | 0xdf, 0xf3, 0x7f, 0xce, 0xaf, 0x05, 0xf8, 0xbd, 0x3b, 0x0a, 0xfe, 0xc5, 0xd6, 0xb5, 0x71, 0xf6, |
| 188 | 0xeb, 0xb0, 0x00, 0xb2, 0xc8, 0x86, 0xe7, 0x6d, 0xfc, 0x3f, 0x8b, 0x64, 0x63, 0x36, 0xf2, 0xea, |
| 189 | 0x55, 0x90, 0xf6, 0x6c, 0x4c, 0x56, 0xb2, 0x27, 0x5e, 0xbd, 0xc7, 0x56, 0x92, 0x55, 0x6c, 0xec, |
| 190 | 0xd1, 0x4b, 0x0f, 0xbd, 0x67, 0x15, 0xd9, 0x84, 0x4d, 0x3c, 0x7a, 0x4f, 0x6d, 0x42, 0x76, 0xce, |
| 191 | 0x9e, 0x7a, 0xf5, 0xca, 0x58, 0xf4, 0xec, 0x9c, 0xac, 0x66, 0xcf, 0xbc, 0x7a, 0x8f, 0xad, 0x26, |
| 192 | 0x9b, 0xb2, 0xe7, 0x5e, 0xbd, 0x1a, 0x64, 0xcf, 0xa6, 0xb3, 0x0f, 0xc1, 0xa8, 0x00, 0xc1, 0x02, |
| 193 | 0xaf, 0xe2, 0x3e, 0xde, 0xb3, 0x56, 0x03, 0x9b, 0xfa, 0x54, 0xef, 0x5f, 0x6a, 0x5f, 0x43, 0xab, |
| 194 | 0x91, 0xbd, 0xf0, 0xe9, 0x3e, 0xd5, 0xf8, 0x71, 0xf1, 0x4d, 0xbb, 0x55, 0xf3, 0x63, 0x9b, 0xf1, |
| 195 | 0xbc, 0xfa, 0x19, 0xb5, 0xaa, 0x3d, 0x90, 0x6c, 0x5b, 0x44, 0x3b, 0x8c, 0x1e, 0xbe, 0xa3, 0x6c, |
| 196 | 0xd2, 0x26, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x78, 0x39, 0xb9, 0x4a, 0xb5, 0x06, 0x00, 0x00, |
Joe Tsai | ea11813 | 2018-11-11 17:56:21 -0800 | [diff] [blame] | 197 | } |