Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 2 | // source: test.proto |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 3 | |
| 4 | package testprotos |
| 5 | |
| 6 | import ( |
| 7 | proto "github.com/golang/protobuf/proto" |
Joe Tsai | cf81e67 | 2019-02-28 14:08:31 -0800 | [diff] [blame] | 8 | protoapi "github.com/golang/protobuf/protoapi" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 9 | protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 10 | protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl" |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 11 | reflect "reflect" |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 12 | ) |
| 13 | |
| 14 | // This is a compile-time assertion to ensure that this generated file |
| 15 | // is compatible with the proto package it is being compiled against. |
| 16 | // A compilation error at this line likely means your copy of the |
| 17 | // proto package needs to be updated. |
| 18 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 19 | |
| 20 | type Enum1 int32 |
| 21 | |
| 22 | const ( |
| 23 | Enum1_ONE Enum1 = 1 |
| 24 | ) |
| 25 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 26 | func (e Enum1) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 27 | return xxx_File_test_proto_enumTypes[0] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 28 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 29 | func (e Enum1) Number() protoreflect.EnumNumber { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 30 | return protoreflect.EnumNumber(e) |
| 31 | } |
| 32 | |
| 33 | var Enum1_name = map[int32]string{ |
| 34 | 1: "ONE", |
| 35 | } |
| 36 | |
| 37 | var Enum1_value = map[string]int32{ |
| 38 | "ONE": 1, |
| 39 | } |
| 40 | |
| 41 | func (x Enum1) Enum() *Enum1 { |
| 42 | p := new(Enum1) |
| 43 | *p = x |
| 44 | return p |
| 45 | } |
| 46 | |
| 47 | func (x Enum1) String() string { |
| 48 | return proto.EnumName(Enum1_name, int32(x)) |
| 49 | } |
| 50 | |
| 51 | func (x *Enum1) UnmarshalJSON(data []byte) error { |
| 52 | value, err := proto.UnmarshalJSONEnum(Enum1_value, data, "Enum1") |
| 53 | if err != nil { |
| 54 | return err |
| 55 | } |
| 56 | *x = Enum1(value) |
| 57 | return nil |
| 58 | } |
| 59 | |
| 60 | func (Enum1) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 61 | return xxx_File_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 62 | } |
| 63 | |
| 64 | type Enum2 int32 |
| 65 | |
| 66 | const ( |
| 67 | Enum2_UNO Enum2 = 1 |
| 68 | ) |
| 69 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 70 | func (e Enum2) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 71 | return xxx_File_test_proto_enumTypes[1] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 72 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 73 | func (e Enum2) Number() protoreflect.EnumNumber { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 74 | return protoreflect.EnumNumber(e) |
| 75 | } |
| 76 | |
| 77 | var Enum2_name = map[int32]string{ |
| 78 | 1: "UNO", |
| 79 | } |
| 80 | |
| 81 | var Enum2_value = map[string]int32{ |
| 82 | "UNO": 1, |
| 83 | } |
| 84 | |
| 85 | func (x Enum2) Enum() *Enum2 { |
| 86 | p := new(Enum2) |
| 87 | *p = x |
| 88 | return p |
| 89 | } |
| 90 | |
| 91 | func (x Enum2) String() string { |
| 92 | return proto.EnumName(Enum2_name, int32(x)) |
| 93 | } |
| 94 | |
| 95 | func (x *Enum2) UnmarshalJSON(data []byte) error { |
| 96 | value, err := proto.UnmarshalJSONEnum(Enum2_value, data, "Enum2") |
| 97 | if err != nil { |
| 98 | return err |
| 99 | } |
| 100 | *x = Enum2(value) |
| 101 | return nil |
| 102 | } |
| 103 | |
| 104 | func (Enum2) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 105 | return xxx_File_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | type Enum3 int32 |
| 109 | |
| 110 | const ( |
| 111 | Enum3_YI Enum3 = 1 |
| 112 | ) |
| 113 | |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 114 | func (e Enum3) Type() protoreflect.EnumType { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 115 | return xxx_File_test_proto_enumTypes[2] |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 116 | } |
Damien Neil | a8593ba | 2019-01-08 16:18:07 -0800 | [diff] [blame] | 117 | func (e Enum3) Number() protoreflect.EnumNumber { |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 118 | return protoreflect.EnumNumber(e) |
| 119 | } |
| 120 | |
| 121 | var Enum3_name = map[int32]string{ |
| 122 | 1: "YI", |
| 123 | } |
| 124 | |
| 125 | var Enum3_value = map[string]int32{ |
| 126 | "YI": 1, |
| 127 | } |
| 128 | |
| 129 | func (x Enum3) Enum() *Enum3 { |
| 130 | p := new(Enum3) |
| 131 | *p = x |
| 132 | return p |
| 133 | } |
| 134 | |
| 135 | func (x Enum3) String() string { |
| 136 | return proto.EnumName(Enum3_name, int32(x)) |
| 137 | } |
| 138 | |
| 139 | func (x *Enum3) UnmarshalJSON(data []byte) error { |
| 140 | value, err := proto.UnmarshalJSONEnum(Enum3_value, data, "Enum3") |
| 141 | if err != nil { |
| 142 | return err |
| 143 | } |
| 144 | *x = Enum3(value) |
| 145 | return nil |
| 146 | } |
| 147 | |
| 148 | func (Enum3) EnumDescriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 149 | return xxx_File_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 150 | } |
| 151 | |
| 152 | type Message1 struct { |
| 153 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 154 | proto.XXX_InternalExtensions `json:"-"` |
| 155 | XXX_unrecognized []byte `json:"-"` |
| 156 | XXX_sizecache int32 `json:"-"` |
| 157 | } |
| 158 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 159 | func (m *Message1) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 160 | return xxx_File_test_proto_messageTypes[0].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 161 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 162 | func (m *Message1) Reset() { *m = Message1{} } |
| 163 | func (m *Message1) String() string { return proto.CompactTextString(m) } |
| 164 | func (*Message1) ProtoMessage() {} |
| 165 | func (*Message1) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 166 | return xxx_File_test_proto_rawdesc_gzipped, []int{0} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 167 | } |
| 168 | |
| 169 | var extRange_Message1 = []proto.ExtensionRange{ |
| 170 | {Start: 10, End: 536870911}, |
| 171 | } |
| 172 | |
| 173 | func (*Message1) ExtensionRangeArray() []proto.ExtensionRange { |
| 174 | return extRange_Message1 |
| 175 | } |
| 176 | |
| 177 | func (m *Message1) XXX_Unmarshal(b []byte) error { |
| 178 | return xxx_messageInfo_Message1.Unmarshal(m, b) |
| 179 | } |
| 180 | func (m *Message1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 181 | return xxx_messageInfo_Message1.Marshal(b, m, deterministic) |
| 182 | } |
| 183 | func (m *Message1) XXX_Merge(src proto.Message) { |
| 184 | xxx_messageInfo_Message1.Merge(m, src) |
| 185 | } |
| 186 | func (m *Message1) XXX_Size() int { |
| 187 | return xxx_messageInfo_Message1.Size(m) |
| 188 | } |
| 189 | func (m *Message1) XXX_DiscardUnknown() { |
| 190 | xxx_messageInfo_Message1.DiscardUnknown(m) |
| 191 | } |
| 192 | |
| 193 | var xxx_messageInfo_Message1 proto.InternalMessageInfo |
| 194 | |
| 195 | type Message2 struct { |
| 196 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 197 | XXX_unrecognized []byte `json:"-"` |
| 198 | XXX_sizecache int32 `json:"-"` |
| 199 | } |
| 200 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 201 | func (m *Message2) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 202 | return xxx_File_test_proto_messageTypes[1].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 203 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 204 | func (m *Message2) Reset() { *m = Message2{} } |
| 205 | func (m *Message2) String() string { return proto.CompactTextString(m) } |
| 206 | func (*Message2) ProtoMessage() {} |
| 207 | func (*Message2) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 208 | return xxx_File_test_proto_rawdesc_gzipped, []int{1} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 209 | } |
| 210 | |
| 211 | func (m *Message2) XXX_Unmarshal(b []byte) error { |
| 212 | return xxx_messageInfo_Message2.Unmarshal(m, b) |
| 213 | } |
| 214 | func (m *Message2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 215 | return xxx_messageInfo_Message2.Marshal(b, m, deterministic) |
| 216 | } |
| 217 | func (m *Message2) XXX_Merge(src proto.Message) { |
| 218 | xxx_messageInfo_Message2.Merge(m, src) |
| 219 | } |
| 220 | func (m *Message2) XXX_Size() int { |
| 221 | return xxx_messageInfo_Message2.Size(m) |
| 222 | } |
| 223 | func (m *Message2) XXX_DiscardUnknown() { |
| 224 | xxx_messageInfo_Message2.DiscardUnknown(m) |
| 225 | } |
| 226 | |
| 227 | var xxx_messageInfo_Message2 proto.InternalMessageInfo |
| 228 | |
| 229 | type Message3 struct { |
| 230 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 231 | XXX_unrecognized []byte `json:"-"` |
| 232 | XXX_sizecache int32 `json:"-"` |
| 233 | } |
| 234 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 235 | func (m *Message3) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 236 | return xxx_File_test_proto_messageTypes[2].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 237 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 238 | func (m *Message3) Reset() { *m = Message3{} } |
| 239 | func (m *Message3) String() string { return proto.CompactTextString(m) } |
| 240 | func (*Message3) ProtoMessage() {} |
| 241 | func (*Message3) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 242 | return xxx_File_test_proto_rawdesc_gzipped, []int{2} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 243 | } |
| 244 | |
| 245 | func (m *Message3) XXX_Unmarshal(b []byte) error { |
| 246 | return xxx_messageInfo_Message3.Unmarshal(m, b) |
| 247 | } |
| 248 | func (m *Message3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 249 | return xxx_messageInfo_Message3.Marshal(b, m, deterministic) |
| 250 | } |
| 251 | func (m *Message3) XXX_Merge(src proto.Message) { |
| 252 | xxx_messageInfo_Message3.Merge(m, src) |
| 253 | } |
| 254 | func (m *Message3) XXX_Size() int { |
| 255 | return xxx_messageInfo_Message3.Size(m) |
| 256 | } |
| 257 | func (m *Message3) XXX_DiscardUnknown() { |
| 258 | xxx_messageInfo_Message3.DiscardUnknown(m) |
| 259 | } |
| 260 | |
| 261 | var xxx_messageInfo_Message3 proto.InternalMessageInfo |
| 262 | |
| 263 | type Message4 struct { |
| 264 | BoolField *bool `protobuf:"varint,30,opt,name=bool_field,json=boolField" json:"bool_field,omitempty"` |
| 265 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 266 | XXX_unrecognized []byte `json:"-"` |
| 267 | XXX_sizecache int32 `json:"-"` |
| 268 | } |
| 269 | |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 270 | func (m *Message4) ProtoReflect() protoreflect.Message { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 271 | return xxx_File_test_proto_messageTypes[3].MessageOf(m) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 272 | } |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 273 | func (m *Message4) Reset() { *m = Message4{} } |
| 274 | func (m *Message4) String() string { return proto.CompactTextString(m) } |
| 275 | func (*Message4) ProtoMessage() {} |
| 276 | func (*Message4) Descriptor() ([]byte, []int) { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 277 | return xxx_File_test_proto_rawdesc_gzipped, []int{3} |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 278 | } |
| 279 | |
| 280 | func (m *Message4) XXX_Unmarshal(b []byte) error { |
| 281 | return xxx_messageInfo_Message4.Unmarshal(m, b) |
| 282 | } |
| 283 | func (m *Message4) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 284 | return xxx_messageInfo_Message4.Marshal(b, m, deterministic) |
| 285 | } |
| 286 | func (m *Message4) XXX_Merge(src proto.Message) { |
| 287 | xxx_messageInfo_Message4.Merge(m, src) |
| 288 | } |
| 289 | func (m *Message4) XXX_Size() int { |
| 290 | return xxx_messageInfo_Message4.Size(m) |
| 291 | } |
| 292 | func (m *Message4) XXX_DiscardUnknown() { |
| 293 | xxx_messageInfo_Message4.DiscardUnknown(m) |
| 294 | } |
| 295 | |
| 296 | var xxx_messageInfo_Message4 proto.InternalMessageInfo |
| 297 | |
| 298 | func (m *Message4) GetBoolField() bool { |
| 299 | if m != nil && m.BoolField != nil { |
| 300 | return *m.BoolField |
| 301 | } |
| 302 | return false |
| 303 | } |
| 304 | |
| 305 | var E_StringField = &proto.ExtensionDesc{ |
| 306 | ExtendedType: (*Message1)(nil), |
| 307 | ExtensionType: (*string)(nil), |
| 308 | Field: 11, |
| 309 | Name: "testprotos.string_field", |
| 310 | Tag: "bytes,11,opt,name=string_field", |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 311 | Filename: "test.proto", |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 312 | } |
| 313 | |
| 314 | var E_EnumField = &proto.ExtensionDesc{ |
| 315 | ExtendedType: (*Message1)(nil), |
| 316 | ExtensionType: (*Enum1)(nil), |
| 317 | Field: 12, |
| 318 | Name: "testprotos.enum_field", |
| 319 | Tag: "varint,12,opt,name=enum_field,enum=testprotos.Enum1", |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 320 | Filename: "test.proto", |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 321 | } |
| 322 | |
| 323 | var E_MessageField = &proto.ExtensionDesc{ |
| 324 | ExtendedType: (*Message1)(nil), |
| 325 | ExtensionType: (*Message2)(nil), |
| 326 | Field: 13, |
| 327 | Name: "testprotos.message_field", |
| 328 | Tag: "bytes,13,opt,name=message_field", |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 329 | Filename: "test.proto", |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 330 | } |
| 331 | |
| 332 | var E_Message4_MessageField = &proto.ExtensionDesc{ |
| 333 | ExtendedType: (*Message1)(nil), |
| 334 | ExtensionType: (*Message2)(nil), |
| 335 | Field: 21, |
| 336 | Name: "testprotos.Message4.message_field", |
| 337 | Tag: "bytes,21,opt,name=message_field", |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 338 | Filename: "test.proto", |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 339 | } |
| 340 | |
| 341 | var E_Message4_EnumField = &proto.ExtensionDesc{ |
| 342 | ExtendedType: (*Message1)(nil), |
| 343 | ExtensionType: (*Enum1)(nil), |
| 344 | Field: 22, |
| 345 | Name: "testprotos.Message4.enum_field", |
| 346 | Tag: "varint,22,opt,name=enum_field,enum=testprotos.Enum1", |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 347 | Filename: "test.proto", |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 348 | } |
| 349 | |
| 350 | var E_Message4_StringField = &proto.ExtensionDesc{ |
| 351 | ExtendedType: (*Message1)(nil), |
| 352 | ExtensionType: (*string)(nil), |
| 353 | Field: 23, |
| 354 | Name: "testprotos.Message4.string_field", |
| 355 | Tag: "bytes,23,opt,name=string_field", |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 356 | Filename: "test.proto", |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 357 | } |
| 358 | |
| 359 | func init() { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 360 | proto.RegisterFile("test.proto", xxx_File_test_proto_rawdesc_gzipped) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 361 | proto.RegisterEnum("testprotos.Enum1", Enum1_name, Enum1_value) |
| 362 | proto.RegisterEnum("testprotos.Enum2", Enum2_name, Enum2_value) |
| 363 | proto.RegisterEnum("testprotos.Enum3", Enum3_name, Enum3_value) |
| 364 | proto.RegisterType((*Message1)(nil), "testprotos.Message1") |
| 365 | proto.RegisterType((*Message2)(nil), "testprotos.Message2") |
| 366 | proto.RegisterType((*Message3)(nil), "testprotos.Message3") |
| 367 | proto.RegisterType((*Message4)(nil), "testprotos.Message4") |
| 368 | proto.RegisterExtension(E_StringField) |
| 369 | proto.RegisterExtension(E_EnumField) |
| 370 | proto.RegisterExtension(E_MessageField) |
| 371 | proto.RegisterExtension(E_Message4_MessageField) |
| 372 | proto.RegisterExtension(E_Message4_EnumField) |
| 373 | proto.RegisterExtension(E_Message4_StringField) |
| 374 | } |
| 375 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 376 | var xxx_File_test_proto_rawdesc = []byte{ |
| 377 | // 653 bytes of the wire-encoded FileDescriptorProto |
| 378 | 0x0a, 0x0a, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, |
| 379 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x22, 0x14, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, |
| 380 | 0x61, 0x67, 0x65, 0x31, 0x2a, 0x08, 0x08, 0x0a, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x22, 0x0a, |
| 381 | 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x22, 0x0a, 0x0a, 0x08, 0x4d, 0x65, |
| 382 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x33, 0x22, 0xfb, 0x01, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, |
| 383 | 0x67, 0x65, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, |
| 384 | 0x64, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, |
| 385 | 0x6c, 0x64, 0x32, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, |
| 386 | 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
| 387 | 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 388 | 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, |
| 389 | 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, |
| 390 | 0x65, 0x6c, 0x64, 0x32, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 391 | 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 392 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 393 | 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 394 | 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x37, 0x0a, 0x0c, 0x73, |
| 395 | 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 396 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 397 | 0x31, 0x18, 0x17, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, |
| 398 | 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x12, 0x07, 0x0a, |
| 399 | 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x2a, 0x10, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x32, 0x12, |
| 400 | 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x2a, 0x0f, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, |
| 401 | 0x33, 0x12, 0x06, 0x0a, 0x02, 0x59, 0x49, 0x10, 0x01, 0x3a, 0x37, 0x0a, 0x0c, 0x73, 0x74, 0x72, |
| 402 | 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, |
| 403 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, |
| 404 | 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, |
| 405 | 0x6c, 0x64, 0x3a, 0x46, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 406 | 0x12, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, |
| 407 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x31, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x74, |
| 408 | 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x31, 0x52, |
| 409 | 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x3a, 0x4f, 0x0a, 0x0d, 0x6d, 0x65, |
| 410 | 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x14, 0x2e, 0x74, 0x65, |
| 411 | 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 412 | 0x31, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, |
| 413 | 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0c, 0x6d, |
| 414 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x40, 0x5a, 0x3e, 0x67, |
| 415 | 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, |
| 416 | 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x66, |
| 417 | 0x6c, 0x65, 0x63, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, |
| 418 | 0x72, 0x79, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 419 | } |
| 420 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 421 | var xxx_File_test_proto_rawdesc_gzipped = protoapi.CompressGZIP(xxx_File_test_proto_rawdesc) |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 422 | |
| 423 | const _ = protoimpl.EnforceVersion(protoimpl.Version - 0) |
| 424 | |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 425 | var File_test_proto protoreflect.FileDescriptor |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 426 | |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame^] | 427 | var xxx_File_test_proto_enumTypes = make([]protoreflect.EnumType, 3) |
| 428 | var xxx_File_test_proto_messageTypes = make([]protoimpl.MessageType, 4) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 429 | var xxx_File_test_proto_goTypes = []interface{}{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 430 | (Enum1)(0), // 0: testprotos.Enum1 |
| 431 | (Enum2)(0), // 1: testprotos.Enum2 |
| 432 | (Enum3)(0), // 2: testprotos.Enum3 |
| 433 | (*Message1)(nil), // 3: testprotos.Message1 |
| 434 | (*Message2)(nil), // 4: testprotos.Message2 |
| 435 | (*Message3)(nil), // 5: testprotos.Message3 |
| 436 | (*Message4)(nil), // 6: testprotos.Message4 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 437 | } |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 438 | var xxx_File_test_proto_depIdxs = []int32{ |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 439 | 3, // testprotos.string_field:extendee -> testprotos.Message1 |
| 440 | 3, // testprotos.enum_field:extendee -> testprotos.Message1 |
| 441 | 3, // testprotos.message_field:extendee -> testprotos.Message1 |
| 442 | 3, // testprotos.Message4.message_field:extendee -> testprotos.Message1 |
| 443 | 3, // testprotos.Message4.enum_field:extendee -> testprotos.Message1 |
| 444 | 3, // testprotos.Message4.string_field:extendee -> testprotos.Message1 |
| 445 | 0, // testprotos.enum_field:type_name -> testprotos.Enum1 |
| 446 | 4, // testprotos.message_field:type_name -> testprotos.Message2 |
| 447 | 4, // testprotos.Message4.message_field:type_name -> testprotos.Message2 |
| 448 | 0, // testprotos.Message4.enum_field:type_name -> testprotos.Enum1 |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 449 | } |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 450 | |
| 451 | func init() { |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame^] | 452 | messageTypes := make([]protoreflect.MessageType, 4) |
| 453 | extensionTypes := make([]protoreflect.ExtensionType, 6) |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 454 | File_test_proto = protoimpl.FileBuilder{ |
| 455 | RawDescriptor: xxx_File_test_proto_rawdesc, |
| 456 | GoTypes: xxx_File_test_proto_goTypes, |
| 457 | DependencyIndexes: xxx_File_test_proto_depIdxs, |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame^] | 458 | EnumOutputTypes: xxx_File_test_proto_enumTypes, |
| 459 | MessageOutputTypes: messageTypes, |
| 460 | ExtensionOutputTypes: extensionTypes, |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 461 | }.Init() |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 462 | messageGoTypes := xxx_File_test_proto_goTypes[3:][:4] |
Damien Neil | 6bb8dec | 2019-03-01 13:22:30 -0800 | [diff] [blame^] | 463 | for i, mt := range messageTypes { |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 464 | xxx_File_test_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i]) |
| 465 | xxx_File_test_proto_messageTypes[i].PBType = mt |
Damien Neil | 8012b44 | 2019-01-18 09:32:24 -0800 | [diff] [blame] | 466 | } |
| 467 | E_StringField.Type = extensionTypes[0] |
| 468 | E_EnumField.Type = extensionTypes[1] |
| 469 | E_MessageField.Type = extensionTypes[2] |
| 470 | E_Message4_MessageField.Type = extensionTypes[3] |
| 471 | E_Message4_EnumField.Type = extensionTypes[4] |
| 472 | E_Message4_StringField.Type = extensionTypes[5] |
Joe Tsai | 1905843 | 2019-02-27 21:46:29 -0800 | [diff] [blame] | 473 | xxx_File_test_proto_goTypes = nil |
| 474 | xxx_File_test_proto_depIdxs = nil |
Herbie Ong | 6e67a1d | 2018-12-26 15:57:16 -0800 | [diff] [blame] | 475 | } |